交易
交易指南
下单、监控成交、管理仓位。本章从第一个 curl 调用到运行报价程序,全面介绍 SatoriEx 交易流程。
默认托管,按需上链
SatoriEx is a custodial CLOB exchange — orders are signed by your session token, not by your wallet, so trades are fast and require no per-trade network gas. On-chain settlement via the CTF bridge is planned. Today, every fill settles on the SatoriEx ledger.
全程演示:您的第一笔交易
使用 REST API 读取订单簿,然后下限价单。公开市场数据无需身份验证;下单需要。
# 1) Read the order book
curl https://staging.satoriex.io/api/v1/markets/MKT_ID/orderbook
# 2) Place a limit order (auth required)
# Returns 202 Accepted — order is queued; fills arrive via WebSocket
curl -X POST https://staging.satoriex.io/api/v1/orders \
-H "Authorization: Bearer $SATORIEX_TOKEN" \
-H "Content-Type: application/json" \
-d '{"market_id":"MKT_ID","outcome_id":"OUT_ID","side":1,"price":4200,"quantity":100}'
# side: 1=buy 2=sell | price: BPS (4200 = 42%) | quantity: sharesReplace MKT_ID and OUT_ID with values from /api/v1/markets. Start with small sizes on a low-volume market while you validate your integration.