- API
- Portfolio risk
- Hedge recommendations
Portfolio risk API, POST /hedge-recommendations
How many SPY puts or shares neutralise my delta?
Stock and option hedges that bring your net delta to a target. Computes net portfolio delta and returns a share hedge and an option alternative on the hedge ticker sized to reach the target delta, with cost estimates and projected Greeks after the hedge.
The answer, in one call
Units first,
then the request.
Deltas in share-equivalents; est_cost in dollars.
Share-equivalent hedge, not beta-weighted. Option hedge uses the live chain on hedge_ticker.
curl -X POST "https://apexvol.com/api/mcp/data/hedge-recommendations" \
-H "Authorization: Bearer avmcp_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"positions": [{"ticker": "SPY", "position_type": "STOCK", "quantity": 100, "current_price": 770.25}, {"ticker": "SPY", "position_type": "PUT", "quantity": -1, "strike": 755.0, "expiration": "2026-10-09", "current_price": 6.359999999999999, "delta": -0.3014, "theta": -0.1785, "vega": 0.8379, "iv": 0.1365}], "hedge_ticker": "SPY", "target_delta": 0}'
import requests
headers = {"Authorization": "Bearer avmcp_YOUR_TOKEN"}
body = {"positions": [{"ticker": "SPY", "position_type": "STOCK", "quantity": 100, "current_price": 770.25}, {"ticker": "SPY", "position_type": "PUT", "quantity": -1, "strike": 755.0, "expiration": "2026-10-09", "current_price": 6.359999999999999, "delta": -0.3014, "theta": -0.1785, "vega": 0.8379, "iv": 0.1365}], "hedge_ticker": "SPY", "target_delta": 0}
r = requests.post("https://apexvol.com/api/mcp/data/hedge-recommendations", headers=headers, json=body)
r.raise_for_status()
data = r.json()["data"]
print(data["current_delta"])
How do I delta-hedge my book with SPY puts?
The assistant calls get_hedge_recommendations and answers from the JSON below.{
"success": true,
"data": {
"current_delta": 130.14,
"delta_gap": -130.14,
"hedge_ticker": "SPY",
"hedges": [
{
"action": "BUY",
"contracts": 3,
"delta_per_contract": -49.4,
"description": "BUY 3 SPY 2026-09-30 770 puts",
"details": "~-49 delta per contract at 9.32 mid (est. cost $2,796).",
"est_cost": 2796.0,
"expiration": "2026-09-30",
"option_type": "put",
"strike": 770.0,
"ticker": "SPY",
"type": "option"
}
],
"note": "Hedges close a -130 share-equivalent delta gap using SPY. Deltas are NOT beta-weighted: hedging single names with an index proxy needs your own beta scaling.",
"portfolio_greeks": {
"daily_decay_pct": 0.0234,
"delta_exposure_pct": 130.6218,
"risk_level": "LOW",
"total_cost_basis": 0,
"total_delta": 130.14,
"total_pnl": 76389.0,
"total_pnl_pct": 0,
"total_positions": 2,
"total_theta": 17.85,
"total_value": 76389.0,
"total_vega": -83.79,
"vega_risk_pct": 0.1097
},
"projected_greeks": {
"changes": {
"delta": {
"change": -130.0,
"change_pct": -99.8924,
"current": 130.14,
"projected": 0.14
},
"gamma": {
"change": 0.0,
"change_pct": 0.0,
"current": -1.3185,
"projected": -1.3185
},
"theta": {
"change": 0.0,
"change_pct": 0.0,
"current": 17.85,
"projected": 17.85
},
"vega": {
"change": 0.0,
"change_pct": 0.0,
"current": -83.79,
"projected": -83.79
}
},
"current_greeks": {
"charm": 28.4278,
"delta": 130.14,
"gamma": -1.3185,
"rho": 29.8407,
"theta": 17.85,
"vanna": 23.8358,
"vega": -83.79,
"vomma": -6.3954
},
"current_risk_level": "LOW",
"hedge_cost": 0,
"hedge_trades": [
{
"position_type": "STOCK",
"quantity": -130,
"ticker": "SPY"
}
],
"projected_greeks": {
"charm": 28.4278,
"delta": 0.14,
"gamma": -1.3185,
"rho": 29.8407,
"theta": 17.85,
"vanna": 23.8358,
"vega": -83.79,
"vomma": -6.3954
},
"projected_risk_level": "LOW",
"success": true,
"timestamp": "2026-09-08T08:07:43.195925"
},
"target_delta": 0.0
}
}
Every response is wrapped as {"success": true, "data": {...}}. Lists in the sample are cut to a few rows so it fits on a page; the shape is exactly what your code receives.
Parameters
Bounded,
and the bounds are stated.
Out-of-range numbers are clamped to the documented range, never silently changed to something else. A missing required field returns 400 with the reason.
| Name | In | Default | Range | Meaning |
|---|---|---|---|---|
positions required | body | as /portfolio-greeks | The book. | |
hedge_ticker | body | SPY | symbol | What to hedge with. |
target_delta | body | 0 | share-equivalents | Where to land. |
Field by field
What each
number means.
current_delta, delta_gap, target_delta- The gap to close.
hedges[].type, action, contracts, strike, expiration, est_cost, description- Each hedge.
projected_greeks- Greeks after the hedge.
Access, limits, errors
Before the
first call.
- Plan
- Pro Pro and above. Tokens are issued to paid and trial accounts from $55 a month; each endpoint follows the tier of its web feature. An endpoint above your plan answers 402 and names the plan it needs.
- Auth
- Bearer token, prefix
avmcp_, created under Account, then API Access. Shown once, hashed at rest, rotates in one click. Always callhttps://apexvol.com, never www. - Limits
- 60 requests a minute and 1,000 an hour per token, plus a monthly allowance by plan. Every response carries the remaining counts in
X-RateLimit-*headers; a 429 carriesRetry-Afterin seconds. - Errors
401no or revoked token;429Retry-After seconds;403Pro plan required;400missing or malformed body. The full list with payload shapes is on the errors page.- Since
- API 1.0. Units, bases and timestamps follow the conventions shared by every endpoint; changes are logged in the API changelog.
- Machine-readable
- This page as Markdown, the family as one file, the whole API as llms-full.txt or OpenAPI 3.1.
The same data, in plain English
Ask for it
in an MCP client.
Connect the ApexVol MCP server and the assistant calls get_hedge_recommendations by name. One URL, a sign-in, no token to paste.
How do I delta-hedge my book with SPY puts?
YouHow many SPY shares neutralise these positions?
YouGet me to flat delta using QQQ options.
More in the prompt library. Set the server up in Claude Desktop, Claude Code, Cursor, ChatGPT, VS Code, Windsurf or Gemini CLI.
Included with
every paid plan.
From $55 a month, tier-matched: your token queries the data your plan includes and Pro unlocks the full surface.
Real market data, not a sandbox. See it live on AAPL.