Get Borrowable Coin Info
info
Do not need authentication
HTTP Request
GET /v5/spot-cross-margin-trade/borrow-token
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | false | string | Coin name |
Response Parameters
Parameter | Type | Comments |
---|---|---|
list | array | Object |
> coin | string | Coin name |
> borrowingPrecision | integer | Accuracy of loan amount |
> repaymentPrecision | integer | Accuracy of repayment amount |
Request Example
- HTTP
- Python
GET /v5/spot-cross-margin-trade/borrow-token?coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.spot_margin_trade_normal_get_borrowable_coin_info(
coin="ETH",
))
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"borrowingPrecision": 5,
"coin": "ETH",
"repaymentPrecision": 4
}
]
},
"retExtInfo": {},
"time": 1677750685331
}