Options

Use Synth API for options pricing and trading.

Get Option Prices

get_option_prices.py
import requests

response = requests.get(
    "https://api.synthdata.co/insights/option-pricing",
    headers={"Authorization": "Apikey YOUR_API_KEY"},
    params={"asset": "BTC"}
)

data = response.json()
current_price = data['current_price']
call_options = data['call_options']  # {"84000": 4813.78, "84500": 4313.81, ...}
put_options = data['put_options']    # {"84000": 0.0, "84500": 0.03, ...}
expiry = data['expiry_time']         # "2026-01-23 08:00:00Z"

Find Mispriced Options

find_mispriced_options.py
for strike, synth_call in call_options.items():
    market_call = get_market_price(strike)
    
    if synth_call > 0:
        edge = (market_call - synth_call) / synth_call
        
        if edge > 0.05:
            print(f"SELL {strike} call - {edge:.1%} edge")
        elif edge < -0.05:
            print(f"BUY {strike} call - {abs(edge):.1%} edge")

Bull Call Spread

Last updated