Get On-chain Yields Locked Rewards History (USER_DATA)
API Description
Get On-chain Yields Locked Rewards History
HTTP Request
GET /sapi/v1/onchain-yields/locked/history/rewardsRecord
Request Weight(IP)
50
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| positionId | STRING | NO | |
| asset | STRING | NO | |
| startTime | LONG | NO | |
| endTime | LONG | NO | |
| current | LONG | NO | Currently querying the page. Start from 1, Default:1, Max: 1,000 |
| size | LONG | NO | Default:10, Max:100 |
| recvWindow | LONG | NO | |
| timestamp | LONG | YES |
- The time between
startTimeandendTimecannot be longer than 3 months.- If
startTimeandendTimeare both not sent, then the last 30 days' data will be returned.- If
startTimeis sent butendTimeis not sent, the next 30 days' data beginning fromstartTimewill be returned.- If
endTimeis sent butstartTimeis not sent, the 30 days' data beforeendTimewill be returned.
Response Example
{
"rows": [
{
"positionId":"123123",
"time":1575018510000,
"asset":"BNB",
"lockPeriod":"30",
"amount":"21312.23223"
}
],
"total": 1
}