Skip to content

查詢最大買賣數量

GET /api/v1/crypto/accounts/{acc_id}/purchasing-power

查詢指定賬戶的最大可買賣數量和金額。

路徑參數

參數類型必填說明
acc_iduint64賬戶 ID

請求參數

參數類型位置必填說明
order_typestring查詢訂單類型,可選值參見命名詞典
currencystring查詢結算貨幣,如 USD
coinstring查詢交易標的,如 BTC
pricestring查詢條件委託價格。order_typeLIMITTAKE_PROFIT_LIMITSTOP_LOSS_LIMIT 時必填且必須大於 0

響應參數

字段類型說明
max_cash_buy_qtystring現金最大可買數量
max_sell_qtystring最大可賣數量
max_cash_buy_amountstring現金最大可買金額

請求示例

bash
curl -X GET "https://webapi.futunn.com/api/v1/crypto/accounts/123456/purchasing-power?order_type=LIMIT&currency=USD&coin=BTC&price=30000" \
  -H "X-Api-Key: <AppKey>" \
  -H "X-Timestamp: <timestamp_ms>" \
  -H "X-Nonce: <nonce>" \
  -H "Authorization: <signature_base64>"

響應示例

json
{
  "code": 0,
  "msg": "success",
  "data": {
    "max_cash_buy_qty": "0.033",
    "max_sell_qty": "1.5",
    "max_cash_buy_amount": "990.00"
  }
}

失敗響應:

json
{
  "code": 1,
  "msg": "Error message."
}