Skip to main content

Borrow

Covers: Margin trade (Classic Account)

HTTP Request

POST /v5/spot-cross-margin-trade/loan

Request Parameters

ParameterRequiredTypeComments
cointruestringCoin name
qtytruestringAmount to borrow

Response Parameters

ParameterTypeComments
transactIdstringBorrow transaction ID

Request Example

POST /v5/spot-cross-margin-trade/loan HTTP/1.1
Host: api-testnet.bybit.com
Content-Type: application/json
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1677751838628
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXX
Content-Length: 38

{
"coin": "ETH",
"qty": "10"
}

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"transactId": "21005"
},
"retExtInfo": {},
"time": 1677751839688
}