Query Margin Loan Record(USER_DATA)
API Description
Query margin loan record
HTTP Request
GET /papi/v1/margin/marginLoan
Request Weight
10
Request Parameters
| Name | Type | Mandatory | Description | 
|---|---|---|---|
| asset | STRING | YES | |
| txId | LONG | NO | the tranId in POST/papi/v1/marginLoan | 
| 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 | 
- txId or startTime must be sent. txId takes precedence.
 - Response in descending order
 - The max interval between
 startTimeandendTimeis 30 days.- If
 startTimeandendTimenot sent, return records of the last 7 days by default- Set
 archivedtotrueto query data from 6 months ago
Response Example
{
  "rows": [
    {
        "txId": 12807067523,
        "asset": "BNB",
        "principal": "0.84624403",
        "timestamp": 1555056425000,
        "status": "CONFIRMED"   //one of PENDING (pending execution), CONFIRMED (successfully loaned), FAILED (execution failed, nothing happened to your account);
    }
  ],
  "total": 1
}