Chuyển đến nội dung

Giao dịch

Hướng dẫn giao dịch

Đặt lệnh, theo dõi khớp lệnh, quản lý vị thế. Chương này hướng dẫn giao dịch trên SatoriEx từ đầu đến cuối, từ lệnh gọi curl đầu tiên đến chạy bot chào giá.

Lưu ký theo mặc định, trên chuỗi khi bạn muốn

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.

Giao dịch đầu tiên của bạn, từ đầu đến cuối

Dùng REST API để đọc sổ lệnh, sau đó đặt lệnh giới hạn. Dữ liệu thị trường công khai không yêu cầu xác thực; đặt lệnh thì có.

# 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: shares

Replace 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.

Khám phá chương