Query borrow/repay records in Margin account(USER_DATA)
#
API DescriptionQuery borrow/repay records in Margin account
#
HTTP RequestGET /sapi/v1/margin/borrow-repay
#
Request Weight10(IP)
#
Request ParametersName | Type | Mandatory | Description |
---|---|---|---|
asset | STRING | NO | |
isolatedSymbol | STRING | NO | Symbol in Isolated Margin |
txId | LONG | NO | tranId in POST /sapi/v1/margin/loan |
startTime | LONG | NO | |
endTime | LONG | NO | |
current | LONG | NO | Current querying page. Start from 1. Default:1 |
size | LONG | NO | Default:10 Max:100 |
type | STRING | YES | BORROW or REPAY |
recvWindow | LONG | NO | The value cannot be greater than 60000 |
timestamp | LONG | YES |
txId
orstartTime
must be sent.txId
takes precedence. Response in descending order- If an asset is sent, data within 30 days before
endTime
; If an asset is not sent, data within 7 days beforeendTime
- If neither
startTime
norendTime
is sent, the recent 7-day data will be returned.startTime
set asendTime
- 7days by default,endTime
set as current time by default