Guide

Integrate market data API with Python

Integrate TIQEX with Python: start with REST quotes/candles, then add WebSocket when you need live ticks.

Setup and auth

Use requests for REST or websockets for streaming. Keep API keys in env vars and send X-API-Key. Never commit keys.

REST quotes and candles

Crypto quote: GET /api/v1/market/crypto/quote?symbols=BTCUSDT. US candles: GET /api/v1/market/equity/kline?symbol=AAPL&interval=1d. Success is succ=true with a data payload.

Errors and limits

On failure read msg/code; trace with X-Request-Id. Back off on 429 using Retry-After. Cap concurrency for history jobs.

Next steps

Switch to stream for live data. Full fields live on /docs/api/crypto-quote and /docs/api/equity-kline.

Minimal workflow

Print data[0].last from one quote, then load ~100 daily bars into a DataFrame before strategy work.