获取订单费用
GET/api/v1.0/accounts/{acc_id}/orders/{order_id}/fees查询指定订单的费用明细,包括各费用项类型、金额及合计费用。
注意
暂不支持查询外汇订单的费用明细。 加拿大券商账户不支持查询订单费用。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
acc_id | string | 是 | 业务账户 ID。 |
order_id | string | 是 | 订单 ID。 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/orders/{order_id}/fees' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 字段 | 类型 | 说明 |
|---|---|---|
order_id | string | 订单 ID。 |
currency | string | 币种。 |
total_fee | string | 总费用金额。 |
fees | list[order_fee] | 费用明细列表。 |
响应示例
json
{
"s": "ok",
"d": {
"order_id": "123456789",
"currency": "USD",
"total_fee": "3.88",
"fees": [
{
"type": "佣金",
"amount": "2.99"
},
{
"type": "平台费",
"amount": "0.89"
}
]
}
}