Get On-chain Yields Locked Redemption Record (USER_DATA)
API Description
Get On-chain Yields Locked Redemption Record
HTTP Request
GET /sapi/v1/onchain-yields/locked/history/redemptionRecord
Request Weight(IP)
50
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
positionId | INT | NO | |
redeemId | STRING | NO | |
asset | STRING | NO | |
startTime | LONG | NO | |
endTime | LONG | NO | |
current | LONG | NO | Currently querying the page. Start from 1. Default:1 |
size | LONG | NO | Default:10, Max:100 |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
- The time between
startTime
andendTime
cannot be longer than 3 months.- If
startTime
andendTime
are both not sent, then the last 30 days' data will be returned.- If
startTime
is sent butendTime
is not sent, the next 30 days' data beginning fromstartTime
will be returned.- If
endTime
is sent butstartTime
is not sent, the 30 days' data beforeendTime
will be returned.
Response Example
{
"rows": [
{
"positionId":"123123",
"redeemId": 40607,
"time":1575018510000,
"asset":"BTC",
"lockPeriod":"30",
"amount":"21312.23223",
"originalAmount": "21312.23223",
"type": "NORMAL", // NORMAL for normal maturity redemption, EARLY for early redemption, CONVERT for redeem to simple earn flexible
"deliverDate":"1575018510000", //Redemption date
"lossAmount":"0.00001232",// Loss of profit on early redemption
"isComplete":true,
"rewardAsset":"SOLV",
"rewardAmt":"5.17181528",
"status":"PAID" // CREATED/PAID
}
],
"total": 1
}