Skip to main content
These recipes use only the standard library + requests. No SDK required. Set your key in an env var so it doesn’t get committed:

Watch GEX levels for the universe

Single call, four symbols, all the includes:

Build the OPEX calendar widget

Show the next 30 days of expirations with their OI and walls, sorted by DTE:

Filter the chain to ATM ±10% with greeks only

Cuts payload by ~80% vs the full chain:

Implied price band for risk sizing

Get the 1σ price band for the next monthly OPEX expiry:

Paginate the GEX history

Walk backwards through the time-series using cursor pagination:

Backtest setup — historical levels

Pull 30 days of HVL / walls / net GEX for a regime study:

Health check before each polling cycle

For long-running dashboards:

See also

TypeScript recipes

Same patterns in TypeScript / Node.js.

curl recipes

Pure-curl one-liners for each common workflow.

Errors

Robust error handling with backoff.

Rate limits

Stay under your tier without hitting 429.