— 端点(REST) —
/api/v1/info
、/api/v1/book
、/api/v1/recent_trades
(如有)/api/v1/orders/create_market
、/api/v1/orders/create
、/api/v1/orders/stop/create
、/api/v1/orders/cancel
、/api/v1/orders/cancel_all
、/api/v1/orders/batch
、/api/v1/orders
(受限)/api/v1/account/info
、/api/v1/positions
、/api/v1/account/update-leverage
、/api/v1/account/update-margin-mode
/api/v1/subaccounts/create
、/api/v1/subaccounts/transfer
— 签名 —
X-PUBKEY/X-TS/X-SIGNATURE
(部分 POST 可关闭 header 签名,仅 body 签名){timestamp, expiry_window, type, data}
的紧凑 JSON 签名;account/agent_wallet
不进签名。agent_wallet
。— WS —
wss://ws.pacifica.fi/ws
,无需 login;subscribe
+ ping
心跳。prices
、book
、trades
、account_info
、account_balance
、account_positions
、account_orders
。docs/market/WS_NORMALIZATION.md
。— 常见错误 —
client_order_id
需 UUID;symbol
需基础符号。