獲取訂單費用
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.futunn.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"
}
]
}
}