Get an option chain
GET /api/v1/chain
Calls and puts for one expiry, with bid, ask, volume, open interest and implied volatility.
Query parameters
symbolstring required Ticker, e.g. AAPL. expirystring required Expiry date, YYYY-MM-DD. Use /expirations to list them. Response
The fields in data. See requests and responses for the envelope and errors .
symbol, expirystring What you asked for.
underlyingPricenumber|null The stock price used to work out IVs.
daysToExpirynumber Days until expiry.
interestRatenumber Risk-free rate used, percent.
calls[], puts[]array Sorted by strike. Each has strike, bid, ask, last, mid, volume, openInterest and iv (whole percent, from the mid price; null when it can't be worked out).
Request curl Python JavaScript Apps Script
Copy curl "https://www.optionsprofitcalculator.com/api/v1/chain?symbol=AAPL&expiry=2026-12-18" \
-H "Authorization: Bearer $OPC_API_KEY"import os
import requests
r = requests.get(
"https://www.optionsprofitcalculator.com/api/v1/chain",
params={"symbol": "AAPL", "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 params = new URLSearchParams({"symbol": "AAPL", "expiry": "2026-12-18"});
const res = await fetch(`https://www.optionsprofitcalculator.com/api/v1/chain?${params}`, {
headers: { Authorization: `Bearer ${process.env.OPC_API_KEY}` },
});
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 url = 'https://www.optionsprofitcalculator.com/api/v1/chain?symbol=AAPL&expiry=2026-12-18';
const res = UrlFetchApp.fetch(url, {
headers: { Authorization: 'Bearer ' + key },
muteHttpExceptions: true,
});
const json = JSON.parse(res.getContentText());
if (!json.success) throw new Error(json.error.message);
return json.data;
} Response · Shortened to one strike per side; example values. Copy
{
"success": true,
"data": {
"symbol": "AAPL",
"expiry": "2026-12-18",
"underlyingPrice": 344.87,
"daysToExpiry": 26.88,
"interestRate": 4.16,
"calls": [
{
"strike": 345,
"bid": 12,
"ask": 12.2,
"last": 12.1,
"mid": 12.1,
"volume": 3120,
"openInterest": 18455,
"iv": 29.4
}
],
"puts": [
{
"strike": 345,
"bid": 11.05,
"ask": 11.25,
"last": 11.2,
"mid": 11.15,
"volume": 2210,
"openInterest": 12930,
"iv": 29.9
}
]
}
}