Skip to content

Get Maximum Buy/Sell Quantity

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

Query the maximum buy/sell quantity and amount for a specified account.

Path Parameters

ParameterTypeRequiredDescription
acc_iduint64YesAccount ID

Request Parameters

ParameterTypeLocationRequiredDescription
order_typestringQueryNoOrder type. See Naming Dictionary for valid values.
currencystringQueryNoSettlement currency, e.g. USD
coinstringQueryNoTrading asset, e.g. BTC
pricestringQueryConditionalLimit price. Required and must be greater than 0 when order_type is LIMIT, TAKE_PROFIT_LIMIT, or STOP_LOSS_LIMIT.

Response Parameters

FieldTypeDescription
max_cash_buy_qtystringMaximum buy quantity using cash
max_sell_qtystringMaximum sell quantity
max_cash_buy_amountstringMaximum buy amount using cash

Request Example

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

Response Example

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

Error Response:

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