Skip to main content

Get Repayment Order Detail

Covers: Margin trade (Classic Account)

HTTP Request

GET /v5/spot-cross-margin-trade/repay-history

Request Parameters

ParameterRequiredTypeComments
startTimefalselongThe start timestamp (ms)
endTimefalselongThe end timestamp (ms)
coinfalsestringCoin name
limitfalseintegerLimit for data size per page. [1, 500], Default: 500

Response Parameters

ParameterTypeComments
listarrayObject
> accountIdstringAccount ID
> coinstringCoin name
> repaidAmountstringRepaid amount
> repayIdstringRepay ID
> repayMarginOrderIdstringRepay margin order ID
> repayTimestringRepay timestamp (ms)
> transactIdsarrayObject
>> repaidIntereststringInterest repaid
>> repaidPrincipalstringPrincipal repaid
>> repaidSerialNumberstringRepayment No. (Borrowing Order)
>> transactIdstringBorrowing transaction ID

Request Example

GET /v5/spot-cross-margin-trade/repay-history?coin=ETH&limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: XXXXXXX
X-BAPI-TIMESTAMP: 1677755884678
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: XXXXXXX

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"list": [
{
"accountId": "592335",
"coin": "ETH",
"repaidAmount": "10.0001",
"repayId": "19070",
"repayMarginOrderId": "1367476828218072576",
"repayTime": "1677751941000",
"transactIds": [
{
"repaidAmount": "10.0001",
"repaidInterest": "0.0001",
"repaidPrincipal": "10",
"repaidSerialNumber": "1367475973544746496",
"transactId": "21005"
}
]
}
]
},
"retExtInfo": {},
"time": 1677755885169
}