Get Rate History(USER_DATA)
API Description
Get Rate History
HTTP Request
GET /sapi/v1/simple-earn/flexible/history/rateHistory
Request Weight(IP)
150
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| productId | STRING | YES | |
| aprPeriod | ENUM | NO | "DAY","YEAR",default"DAY" |
| startTime | LONG | NO | |
| endTime | LONG | NO | |
| current | LONG | NO | Currently querying page. Start from 1. Default:1 |
| size | LONG | NO | Default:10, Max:100 |
| recvWindow | LONG | NO | The value cannot be greater than 60000 |
| timestamp | LONG | YES |
- The time between startTime and endTime cannot be longer than 1 year.
- 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": [
{
"productId": "BUSD001",
"asset": "BUSD",
"annualPercentageRate": "0.00006408",
"time": 1577233578000
}
],
"total": "1"
}