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."
}