TaifoonTAIFOON
Taifoon · Docs
API Reference

Orders

Place, cancel, and list orders. Synchronous matcher ack at ~79ms p50. Attribution is the identity; pass session= during a warp to scope into the partitioned book.
POST/book/v1/orders
REAL
Submit a single order. Returns the matcher-assigned order_id.
Request body
FieldTypeRequiredDescription
marketstringyese.g. "BTC-PERP".
sidestringyes"buy" | "sell".
qtystringyesDecimal string.
pricestringyesDecimal string. Required for limit orders.
tifstringno"gtc" | "ioc" | "fok". Default "gtc".
attributionstringyesStable identity string.
sessionstringnoWarp session id.
idempotency_keystringnoPLANNED Phase B. No-op today.
Response
FieldTypeRequiredDescription
order_idstringnoUUID assigned by the matcher.
t_placedintegernoUnix seconds.
speed_xnumbernoSession speed (1.0 live).
Code
curl -s -X POST https://api.taifoon.dev/book/v1/orders \
  -H 'Content-Type: application/json' \
  -d '{"market":"BTC-PERP","side":"buy","qty":"0.01","price":"75000","tif":"gtc","attribution":"bot-demo"}'
Errors
  • 400BadRequestMissing field, malformed decimal, unknown market, qty < step_size.
  • 409SessionInvalidSession expired or session_id unknown.
GET/book/v1/orders
REAL
List open orders, optionally filtered by market or attribution.
Query parameters
FieldTypeRequiredDescription
marketstringnoFilter by market.
attributionstringnoFilter by attribution.
limitintegernoDefault 100.
Response
FieldTypeRequiredDescription
ordersarraynoOpen orders matching the filter.
Code
curl -s 'https://api.taifoon.dev/book/v1/orders?market=BTC-PERP&limit=3' | jq
DELETE/book/v1/orders/{order_id}
REAL
Cancel a single order by id. Matcher applies the cancel synchronously.
Code
curl -s -X DELETE https://api.taifoon.dev/book/v1/orders/<order_id>
DELETE/book/v1/orders
REAL
Bulk cancel by attribution (and optionally market). Cancels every open order matching the filter atomically. Idempotent; returns the cancelled count.
Query parameters
FieldTypeRequiredDescription
attributionstringyesRequired to prevent accidental venue-wide cancels.
marketstringnoNarrow to a single market.
Code
curl -s -X DELETE 'https://api.taifoon.dev/book/v1/orders?attribution=mm-foo-stratA'