Get Loan Info
Get loan orders information
HTTP Request
GET /spot/v3/private/margin-loan-infos
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
orderId | false | string | Loan order id. If not passed, then return all orders, sort by loanTime in descend |
startTime | false | integer | Start timestamp (ms) |
endTime | false | integer | End timestamp (ms) |
limit | false | integer | Limit for data size. [1 , 100 ], Default: 10 |
Response Parameters
Parameter | Type | Comments |
---|---|---|
loanInfo | array | Object |
> orderId | string | Loan order ID |
> orderProductId | string | Product ID |
> parentUid | string | User parent UID |
> loanTime | string | Loan timestamp, in milliseconds |
> loanCoin | string | Loan coin |
> loanAmount | string | Loan amount |
> unpaidAmount | string | Unpaid principal |
> unpaidInterest | string | Unpaid interest |
> repaidAmount | string | Repaid principal |
> repaidInterest | string | Repaid interest |
> interestRate | string | Daily interest rate |
> status | integer | 1 :outstanding; 2 :paid off |
> leverage | string | leverage |
> supportSpot | integer | Whether to support spot. 0 :false; 1 :true |
> supportContract | integer | Whether to support contract . 0 :false; 1 :true |
> withdrawLine | string | Restrict line for withdrawal |
> transferLine | string | Restrict line for transfer |
> spotBuyLine | string | Restrict line for SPOT buy |
> spotSellLine | string | Restrict line for SPOT sell |
> contractOpenLine | string | Restrict line for CONTRACT open position |
> liquidationLine | string | Line for liquidation |
> stopLiquidationLine | string | Line for stop liquidation |
> contractLeverage | string | Allowed max leverage of opening contract position |
> transferRatio | string | Available transfer ratio of loan funds |
> spotSymbols | array | The whitelist of spot trading pairs |
> contractSymbols | array | The whitelist of contract trading pairs |
Request Example
curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/private/margin-loan-infos' \
--header 'X-BAPI-SIGN-TYPE: 2' \
--header 'X-BAPI-API-KEY: XXXXXXXXXXX' \
--header 'X-BAPI-TIMESTAMP: 1669364798602' \
--header 'X-BAPI-RECV-WINDOW: 5000' \
--header 'X-BAPI-SIGN: XXXXX'
Response Example
{
"retCode": 0,
"retMsg": "OK",
"result": {
"loanInfo": [
{
"orderId": "1244781478207029504",
"orderProductId": "34",
"parentUid": "999805",
"loanTime": "1663126149000",
"loanCoin": "USDT",
"loanAmount": "500000",
"unpaidAmount": "6351.49614274",
"unpaidInterest": "264.0137162",
"repaidAmount": "493648.50385726",
"repaidInterest": "0",
"interestRate": "0.00027397",
"status": 1,
"leverage": "20",
"supportSpot": 1,
"supportContract": 1,
"withdrawLine": "0.5",
"transferLine": "0.6",
"spotBuyLine": "0.7",
"spotSellLine": "0.8",
"contractOpenLine": "0.9",
"liquidationLine": "0.95",
"stopLiquidationLine": "0.20000000",
"contractLeverage": "3",
"transferRatio": "0.1",
"spotSymbols": [
"DYDXQQTEST001",
"DYDXNEO",
"PMTEST16USDT"
],
"contractSymbols": [
"RAYUSDT",
"API3USDT",
"SUSHIUSDT"
]
}
]
},
"retExtInfo": {},
"time": 1669364798924
}