Get Locked Subscription Record(USER_DATA)
API Description
Get Locked Subscription Record
HTTP Request
GET /sapi/v1/simple-earn/locked/history/subscriptionRecord
Request Weight(IP)
150
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
purchaseId | 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,
"purchaseId": "26055",
"projectId": "Axs*90",
"time": 1575018510000,
"asset": "BNB",
"amount": "21312.23223",
"lockPeriod": "30",
"type": "AUTO", // NORMAL for normal subscription, AUTO for auto-subscription order, ACTIVITY for activity order, TRIAL for trial fund order, RESTAKE for restake order
"sourceAccount": "SPOT", // SPOT, FUNDING, SPOTANDFUNDING
"amtFromSpot": "30", // Display if sourceAccount is SPOTANDFUNDING
"amtFromFunding": "70", // Display if sourceAccount is SPOTANDFUNDING
"status": "SUCCESS" // PURCHASING/SUCCESS/FAILED
}
],
"total": 1
}