- API
- Strategies
- Probability of profit
Strategies API, POST /pop
What is the probability of profit on these legs?
Probability of profit for a set of legs at expiration. Given legs with IV and premium, the spot and days to expiry, returns the probability the position finishes profitable.
The answer, in one call
Units first,
then the request.
probability_of_profit in percent.
N(d2)-style probability at expiration from the supplied IVs.
curl -X POST "https://apexvol.com/api/mcp/data/pop" \
-H "Authorization: Bearer avmcp_YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"legs": [{"option_type": "PUT", "action": "SELL", "strike": 755.0, "premium": 6.359999999999999, "quantity": 1, "iv": 0.1365}, {"option_type": "PUT", "action": "BUY", "strike": 750.0, "premium": 5.35, "quantity": 1, "iv": 0.1416}, {"option_type": "CALL", "action": "SELL", "strike": 785.0, "premium": 4.785, "quantity": 1, "iv": 0.1084}, {"option_type": "CALL", "action": "BUY", "strike": 790.0, "premium": 3.275, "quantity": 1, "iv": 0.1062}], "stock_price": 770.25, "days_to_exp": 30}'
import requests
headers = {"Authorization": "Bearer avmcp_YOUR_TOKEN"}
body = {"legs": [{"option_type": "PUT", "action": "SELL", "strike": 755.0, "premium": 6.359999999999999, "quantity": 1, "iv": 0.1365}, {"option_type": "PUT", "action": "BUY", "strike": 750.0, "premium": 5.35, "quantity": 1, "iv": 0.1416}, {"option_type": "CALL", "action": "SELL", "strike": 785.0, "premium": 4.785, "quantity": 1, "iv": 0.1084}, {"option_type": "CALL", "action": "BUY", "strike": 790.0, "premium": 3.275, "quantity": 1, "iv": 0.1062}], "stock_price": 770.25, "days_to_exp": 30}
r = requests.post("https://apexvol.com/api/mcp/data/pop", headers=headers, json=body)
r.raise_for_status()
data = r.json()["data"]
print(data["probability_of_profit"])
What is the probability of profit on this SPY iron condor?
The assistant calls calculate_probability_of_profit and answers from the JSON below.{
"success": true,
"data": {
"legs_count": 4,
"probability_of_profit": 41.7
}
}
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 |
|---|---|---|---|---|
legs required | body | array of {option_type, action, strike, iv, premium, quantity} | The legs. | |
stock_price required | body | dollars | Spot. | |
days_to_exp required | body | days | Days to expiration. |
Field by field
What each
number means.
probability_of_profit- Percent.
legs_count- How many legs were read.
Access, limits, errors
Before the
first call.
- Plan
- Basic Basic 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;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 calculate_probability_of_profit by name. One URL, a sign-in, no token to paste.
What is the probability of profit on this SPY iron condor?
YouHow likely is my NVDA put spread to expire profitable?
YouCompute POP for a 16-delta strangle on AAPL.
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.