Skip to content

API reference Basics

API reference

A JSON API over HTTPS. Send your key as Authorization: Bearer opc_live_...; every response is {"success": true, "data": …} or {"success": false, "error": …}.

Base URLhttps://www.optionsprofitcalculator.com/api/v1
AuthenticationAPI key in the Authorization or X-API-Key header
OpenAPI/openapi.json
LimitsPer plan; see rate limits and quotas

Endpoints

Market data

GET /quote The stock's delayed price, bid and ask, previous close and 30-day implied volatility. No key needed.
GET /expirations Every expiry date with options listed for a stock. No key needed.
GET /chain Calls and puts for one expiry, with bid, ask, volume, open interest and implied volatility.

Calculations

POST /pop Probability of profit, breakevens, and max profit and loss for any position: up to 8 option legs plus stock.
POST /calculate Everything /pop returns, plus the profit/loss grid the calculator charts: P/L by stock price and date up to the earliest expiry.
GET /finder The best options or spreads for a price target, a date and a budget, ranked by return on risk. Also accepts POST with a JSON body.

Site trends

GET /popular-strategies The positions visitors calculate most on Options Profit Calculator. Positions with an expired leg are left out. No key needed.
GET /popular-symbols The tickers visitors calculate most on Options Profit Calculator. No key needed.
GET /put-call-ratio Put/call ratio of the option legs in calculations on the site, site-wide or for one ticker. It reflects site activity, not market volume. No key needed.