Find trades with the Option Finder
Tell GET /finder where you think a stock is going, by when, and how much you want to risk.
It searches the chain and returns the best positions.
Example: AAPL above $360 by December
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;
}Choosing parameters
target:gtif you expect the stock aboveprice,ltbelow,eqat it.date: when you expect it. Expiries on or after the date are searched, or only the nearest one withexactExpiry=true.budget: the most you'd lose. Positions are sized to fit.strategies: any ofoption-purchase,debit-spread,credit-spread,short-option.
Results
Up to 5 positions, ranked by return on max risk at your target price and date (return on estimated margin for naked short options).
Each has its legs, cost, max loss, return at the target, probability of profit and a calculatorUrl.
Note
A search counts as 5 requests. Identical searches within 2 minutes come from cache.