Option Finder
GET /api/v1/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.
Query parameters
symbolstring required Ticker.
targetstring required eq (at the price), gt (above it) or lt (below it).
pricenumber required Target stock price.
datestring required When you expect it, YYYY-MM-DD.
strategiesstring required Comma list of option-purchase, short-option, credit-spread, debit-spread.
budgetnumber optional Most to risk, in dollars. Positions are sized to fit.
exactExpiryboolean optional true: only the expiry on (or next after) the date. Default: every expiry from the date on.
underlyingPrice, iv30number optional Override the current price and IV30. Response
The fields in data. See requests and responses for the envelope and errors .
symbol, underlyingPrice, iv30The stock and the values used.
results[]array Up to 5 positions: strategy, title, legs, netCost, maxLoss, returnAtTarget, returnOnRisk (or returnOnMargin and marginEstimate for naked short options), probabilityOfProfit and calculatorUrl.
rankedBystring How results are ordered.
Request curl Python JavaScript Apps Script
Copy curl "https://www.optionsprofitcalculator.com/api/v1/finder?symbol=AAPL&target=gt&price=360&date=2026-12-18&budget=1000&strategies=option-purchase,debit-spread" \
-H "Authorization: Bearer $OPC_API_KEY"import os
import requests
r = requests.get(
"https://www.optionsprofitcalculator.com/api/v1/finder",
params={
"symbol": "AAPL",
"target": "gt",
"price": 360,
"date": "2026-12-18",
"budget": 1000,
"strategies": "option-purchase,debit-spread"
},
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",
"target": "gt",
"price": 360,
"date": "2026-12-18",
"budget": 1000,
"strategies": "option-purchase,debit-spread"
});
const res = await fetch(`https://www.optionsprofitcalculator.com/api/v1/finder?${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/finder?symbol=AAPL&target=gt&price=360&date=2026-12-18&budget=1000&strategies=option-purchase,debit-spread';
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 result; example values. Copy
{
"success": true,
"data": {
"symbol": "AAPL",
"underlyingPrice": 344.87,
"iv30": 30.077,
"results": [
{
"strategy": "debit-spread",
"title": "Call Spread",
"legs": [
{
"type": "call",
"action": "buy",
"quantity": 1,
"strike": 345,
"expiry": "2026-12-18",
"price": 12.1,
"iv": 29.4
},
{
"type": "call",
"action": "sell",
"quantity": 1,
"strike": 360,
"expiry": "2026-12-18",
"price": 5.72,
"iv": 28.1
}
],
"netCost": 638,
"maxLoss": 638,
"maxLossUnlimited": false,
"returnAtTarget": 862,
"returnOnRisk": 1.351,
"marginEstimate": null,
"returnOnMargin": null,
"probabilityOfProfit": 0.381,
"calculatorUrl": "https://www.optionsprofitcalculator.com/calculator/…"
},
…
],
"rankedBy": "Return on max risk (return on estimated margin for naked short options), at the target price and date"
}
}