TaifoonTAIFOON
Taifoon · Docs
API Reference

Book

Read-side endpoints for the orderbook: depth ladder, single snapshot, recent fills. All three are live and back the trade.taifoon.dev UI directly.
GET/book/v1/depth/{market}
REAL
Returns the full bid/ask ladder for the given market. Each level is an aggregated price + quantity. Prices and quantities are decimal strings on the wire.
Query parameters
FieldTypeRequiredDescription
marketstring (path)yese.g. "BTC-PERP".
Response
FieldTypeRequiredDescription
marketstringnoEchoed.
bidsarraynoDescending by price. Each: { price: string, qty: string }.
asksarraynoAscending by price. Same shape as bids.
Code
curl -s https://api.taifoon.dev/book/v1/depth/BTC-PERP | jq '{bids:.bids[:3], asks:.asks[:3]}'
GET/book/v1/snapshot
STUB · 400
A single snapshot of the top of book. Returns 400 today — schema not finalised. Use /book/v1/depth/<market> and take bids[0] / asks[0].
Query parameters
FieldTypeRequiredDescription
marketstringyesRequired once wired.
GET/book/v1/fills
REAL
Recent fills for a market, newest first. Used by the RECENT FILLS panel.
Query parameters
FieldTypeRequiredDescription
marketstringyese.g. "BTC-PERP".
limitintegernoDefault 50, max 500.
attributionstringnoPrefix-match server-side filter. Returns fills where attribution starts with this value (both maker and taker sides).
Response
FieldTypeRequiredDescription
fillsarraynoMost recent first.
fills[].fill_idstringnoUUID.
fills[].order_idstringnoOriginating order UUID.
fills[].sidestringno"buy" | "sell" — the taker side.
fills[].qtystringnoFilled qty.
fills[].pricestringnoCross price.
fills[].attributionstringnoOriginating attribution.
fills[].was_makerbooleannoTrue iff the resting side; false for the crosser.
fills[].t_logicalintegernoUnix seconds.
Code
curl -s 'https://api.taifoon.dev/book/v1/fills?market=BTC-PERP&limit=3' | jq