Skip to main content

Get Flexible Subscription Record(USER_DATA)

API Description

Get Flexible Subscription Record

HTTP Request

GET /sapi/v1/simple-earn/flexible/history/subscriptionRecord

Request Weight(IP)

150

Request Parameters

NameTypeMandatoryDescription
productIdSTRINGNO
purchaseIdSTRINGNO
assetSTRINGNO
startTimeLONGNO
endTimeLONGNO
currentLONGNOCurrently querying the page. Start from 1. Default:1
sizeLONGNODefault:10, Max:100
recvWindowLONGNO
timestampLONGYES
  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

Response Example

{
"rows": [
{
"amount": "100.00000000",
"asset": "USDT",
"time": 1575018510000,
"purchaseId": 26055,
"productId": "USDT001",
"type": "AUTO", // AUTO for auto subscribe, NORMAL for normal subscription, CONVERT for Locked to Flexible, LOAN for flexible loan collateral, AI for Auto Invest subscribe, TRANSFER for Locked Savings to Flexible
"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
}