调用顺序
先完成选择资产,再按报价与下单发起交易。订单找回和结果核对见订单与持仓。
辅助查询
- Retrieve price history:获取资产图表数据。参考行情不能替代交易报价。
- List orders:按客户参考号找回订单,或查询历史订单。
- List corporate actions:核对持仓变动时,查询已应用的资产调整。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
按资产、报价、订单和持仓的顺序完成接入。
| 步骤 | 接口 | 传递给下一步的数据 |
|---|---|---|
| 1. 选择资产 | List assets → Retrieve asset | 保存 asset_id,检查 can_buy、can_sell 和支持的资金币种。 |
| 2. 获取报价 | Create quote | 传入 asset_id、交易方向及金额或数量,保存返回的 quote_id。 |
| 3. 提交订单 | Create order | 传入 quote_id,按需附带 client_reference,保存返回的 order_id。 |
| 4. 跟踪结果 | Retrieve order 与 Stocks 订单 Webhook | 按 order_id 跟踪至 SUCCESS 或 FAILED。 |
| 5. 核对持仓 | List positions 与 List position events | 查询对应资产的持仓,以及关联 order_id 的数量变动。 |
