Options math for your app, bot or AI assistant
The Options Profit Calculator API gives you probability of profit, breakevens, P/L graphs, the Option Finder and market data, from the same engine as our calculator. Use it over REST or connect AI assistants with MCP.
curl -X POST https://www.optionsprofitcalculator.com/api/v1/pop \
-H "Authorization: Bearer $OPC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"symbol": "AAPL",
"legs": [
{"type": "call", "action": "buy", "strike": 345, "expiry": "2026-12-18"},
{"type": "call", "action": "sell", "strike": 360, "expiry": "2026-12-18"}
]
}'import os
import requests
r = requests.post(
"https://www.optionsprofitcalculator.com/api/v1/pop",
json={
"symbol": "AAPL",
"legs": [
{"type": "call", "action": "buy", "strike": 345, "expiry": "2026-12-18"},
{"type": "call", "action": "sell", "strike": 360, "expiry": "2026-12-18"}
]
},
headers={"Authorization": "Bearer " + os.environ["OPC_API_KEY"]},
)
data = r.json()
if not data["success"]:
raise RuntimeError(data["error"]["message"])
print(data["data"])const res = await fetch("https://www.optionsprofitcalculator.com/api/v1/pop", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.OPC_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"symbol": "AAPL",
"legs": [
{"type": "call", "action": "buy", "strike": 345, "expiry": "2026-12-18"},
{"type": "call", "action": "sell", "strike": 360, "expiry": "2026-12-18"}
]
}),
});
const { success, data, error } = await res.json();
if (!success) throw new Error(error.message);
console.log(data);function callOpcApi() {
const key = PropertiesService.getScriptProperties().getProperty('OPC_API_KEY');
const body = {
"symbol": "AAPL",
"legs": [
{"type": "call", "action": "buy", "strike": 345, "expiry": "2026-12-18"},
{"type": "call", "action": "sell", "strike": 360, "expiry": "2026-12-18"}
]
};
const res = UrlFetchApp.fetch('https://www.optionsprofitcalculator.com/api/v1/pop', {
method: 'post',
contentType: 'application/json',
headers: { Authorization: 'Bearer ' + key },
payload: JSON.stringify(body),
muteHttpExceptions: true,
});
const json = JSON.parse(res.getContentText());
if (!json.success) throw new Error(json.error.message);
return json.data;
}Get started
Free plan: 1,000 requests a month. No charge, just a card on file to keep it fair.
Explore the platform
One key and one plan cover all of it.
Probability of profitPoP, breakevens, max profit and loss for up to 8 legs plus stock.P/L graphsProfit or loss by stock price and date, the data behind the calculator's chart.Option FinderThe best options or spreads for a price target, date and budget.Market dataDelayed quotes, expirations and option chains with implied volatility.Site trendsWhat traders calculate most on our site, and a put/call ratio.MCP serverThe calculator as tools for Claude, Cursor, VS Code and other assistants.
Use Options Profit Calculator in Claude
We're in Claude's directory. Search for Options Profit Calculator in Claude, click Connect and sign in. No key or code needed. How it works
Popular pages
- ErrorsEvery error code and what to do about it.
- Rate limits and quotasHeaders, limits and what happens at the limit.
- PlansFrom free to 33 million requests a month, with a cost estimate.
- ChangelogWhat's new in the API and MCP server.
Need help?
- FAQ and troubleshootingAnswers to common questions.
- SupportHow to reach us.
- OpenAPI specGenerate a client in any language.