TaifoonTAIFOON
Taifoon · Docs
API Reference

Tape

The tape surface backs replay sessions and historical reads. Candles, the matcher clock, and the mark price all live here. In a warp session, every endpoint accepts a session= query param and answers in session time.
GET/tape/v1/candles
REAL
OHLCV candles for a market and timeframe. Backed by the matcher cross stream. In a warp session it streams the session's replayed crosses.
Query parameters
FieldTypeRequiredDescription
marketstringyese.g. "BTC-PERP".
tfstringyes"1m" | "3m" | "10m" | "30m" | "90m" | "session" | "day" | "week".
limitintegernoDefault 200, max 1000.
tointegernoUpper-bound t_logical. Default = now.
sessionstringnoWarp session id.
Response
FieldTypeRequiredDescription
candlesarraynoAscending by t.
candles[].tintegernoBucket-open unix seconds.
candles[].onumbernoOpen price.
candles[].hnumbernoHigh.
candles[].lnumbernoLow.
candles[].cnumbernoClose.
candles[].vnumbernoVolume in base units.
modestringno"wall" or "warp".
speed_xnumberno1.0 in live; the session speed in warp.
t_logicalintegernoCurrent cursor.
Code
curl -s 'https://api.taifoon.dev/tape/v1/candles?market=BTC-PERP&tf=1m&limit=3' | jq
GET/tape/v1/clock
REAL
The matcher clock — current logical time, current mode, current session (if any).
Query parameters
FieldTypeRequiredDescription
sessionstringnoIf present, returns the session clock.
Response
FieldTypeRequiredDescription
nowintegernoCurrent t_logical (unix seconds).
speed_xnumberno1.0 in wall mode.
modestringno"wall" | "warp".
sessionstring|nullnoSession id when in warp mode.
Code
curl -s https://api.taifoon.dev/tape/v1/clock | jq
GET/tape/v1/mark
PLANNED · 404
Oracle-backed mark price. Phase B will pull Binance/Kraken/Drift index. Today the UI synthesises this from the book midpoint.
GET/tape/v1/fills
PLANNED · 404
The cross-market fill firehose. Returns 404 today. Use /book/v1/fills?market=... per-market for now.