Pagination
Every docs page as Markdown: /docs/llms.txt
Long lists come a page at a time, newest first.
- Ask for up to limit rows. When there are more, send next_cursor back as cursor with the same parameters, or call next_url with your key. Both fields are null on the last page.
curl "https://tradytics.com/api/public/v1/options/flow?symbol=SPY&date=2026-10-29&limit=1000&cursor=2026-10-29:60911822&apiKey=$TRADYTICS_API_KEY"- Cursors are opaque: pass them as they come. A page with filters can hold fewer rows than limit and still have a next page, so follow next_cursor until it is null.
- Options flow and dark pool prints take since: the newest id you hold. The answer lists only prints after it, oldest first, so a loop that keeps the last id sees every print once.
import os, time, requests
last = 0
while True:
r = requests.get("https://tradytics.com/api/public/v1/options/flow", params={"since": last, "min_premium": 250000,
"apiKey": os.environ["TRADYTICS_API_KEY"]}).json()
for p in r["data"]:
print(p["time"], p["symbol"], p["type"], p["strike"], p["premium_usd"])
last = p["id"]
time.sleep(2)