Get Margin Borrow/Loan Interest History(USER_DATA)
API Description
Get Margin Borrow/Loan Interest History
HTTP Request
GET /papi/v1/margin/marginInterestHistory
Request Weight
1
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| asset | STRING | NO | |
| startTime | LONG | NO | |
| endTime | LONG | NO | |
| current | LONG | NO | Currently querying page. Start from 1. Default:1 |
| size | LONG | NO | Default:10 Max:100 |
| archived | STRING | NO | Default: false. Set to true for archived data from 6 months ago |
| recvWindow | LONG | NO | The value cannot be greater than 60000 |
| timestamp | LONG | YES |
- Response in descending order
- The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness.
- If
startTimeandendTimenot sent, return records of the last 7 days by default- If
startTimeis sent andendTimeis not sent, the records fromstartTimeto the present will be returned; ifstartTimeis more than 30 days ago, the records of the past 30 days will be returned.- If
startTimeis not sent andendTimeis sent, the records of the 7 days beforeendTimeis returned.- Type in response has 5 enums:
PERIODICinterest charged per hourON_BORROWfirst interest charged on borrowPERIODIC_CONVERTEDinterest charged per hour converted into BNBON_BORROW_CONVERTEDfirst interest charged on borrow converted into BNBPORTFOLIOPortfolio Margin negative balance daily interest
Response Example
{
"rows": [
{
"txId": 1352286576452864727,
"interestAccuredTime": 1672160400000,
"asset": "USDT",
"rawAsset": “USDT”,
"principal": "45.3313",
"interest": "0.00024995",
"interestRate": "0.00013233",
"type": "ON_BORROW"
}
],
"total": 1
}