Skip to main content

Get Borrow Quota (Spot)

Query the available balance for Spot trading and Margin trading

Covers: Spot (Unified Account)

HTTP Request

GET /v5/order/spot-borrow-check

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type. spot
symboltruestringSymbol name
sidetruestringTransaction side. Buy,Sell

Response Parameters

ParameterTypeComments
symbolstringSymbol name
sidestringSide
maxTradeQtystringThe maximum base coin qty can be traded
  • If spot margin trade on and symbol is margin trading pair, it returns available balance + max.borrowable amount
  • Otherwise, it returns actual balance
  • up to 4 decimals
maxTradeAmountstringThe maximum quote coin amount can be traded
  • If spot margin trade on and symbol is margin trading pair, it returns available balance + max.borrowable amount
  • Otherwise, it returns actual balance
  • up to 8 decimals
spotMaxTradeQtystringNo matter your Spot margin switch on or not, it always returns actual qty of base coin you can trade or you have, up to 4 decimals
spotMaxTradeAmountstringNo matter your Spot margin switch on or not, it always returns actual amount of quote coin you can trade or you have, up to 8 decimals
borrowCoinstringBorrow coin

Request Example

GET /v5/order/spot-borrow-check?category=spot&symbol=BTCUSDT&side=Buy HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672228522214
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"symbol": "BTCUSDT",
"maxTradeQty": "6.6065",
"side": "Buy",
"spotMaxTradeAmount": "9004.75628594",
"maxTradeAmount": "218014.01330797",
"borrowCoin": "USDT",
"spotMaxTradeQty": "0.2728"
},
"retExtInfo": {},
"time": 1698895841534
}