Skip to main content

Query Margin repay Record(USER_DATA)

API Description#

Query margin repay record.

HTTP Request#

GET /papi/v1/margin/repayLoan

Request Weight#

10

Request Parameters#

NameTypeMandatoryDescription
assetSTRINGYES
txIdLONGNOthe tranId in POST/papi/v1/repayLoan
startTimeLONGNO
endTimeLONGNO
currentLONGNOCurrently querying page. Start from 1. Default:1
sizeLONGNODefault:10 Max:100
archivedSTRINGNODefault: false. Set to true for archived data from 6 months ago
recvWindowLONGNOThe value cannot be greater than 60000
timestampLONGYES
  • txId or startTime must be sent. txId takes precedence.
  • Response in descending order
  • The max interval between startTime and endTime is 30 days.
  • If startTime and endTime not sent, return records of the last 7 days by default
  • Set archived to true to query data from 6 months ago

Response Example#

{     "rows": [         {                "amount": "14.00000000",   //Total amount repaid                "asset": "BNB",                   "interest": "0.01866667",    //Interest repaid                "principal": "13.98133333",   //Principal repaid                "status": "CONFIRMED",   //one of PENDING (pending execution), CONFIRMED (successfully execution), FAILED (execution failed, nothing happened to your account)                "timestamp": 1563438204000,                "txId": 2970933056         }     ],     "total": 1}