查询申购历史 (USER_DATA)
接口描述
查询申购历史
HTTP请求
GET /sapi/v1/lending/auto-invest/history/list
请求权重(IP):
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
planId | LONG | NO | 计划id |
startTime | LONG | NO | |
endTime | LONG | NO | |
targetAsset | STRING | NO | |
planType | ENUM | NO | SINGLE, PORTFOLIO, INDEX, ALL |
size | LONG | NO | 默认10, 最大100 |
current | LONG | NO | 当前查询页。 默认为1 |
recvWindow | LONG | NO | 不超过60000 |
timestamp | LONG | YES |
startTime
与endTime
不超过30天- 如果不传
startTime
与endTime
,默认30天
响应示例
[
{
"id":1111,
"targetAsset":"BTC", //name of the asset
"planType":"SINGLE", //plan type of which this transaction is from
"planName":"BTC", // plan name of which this transaction is from
"planId":1234, // plan identifier of which this transaction is from
"transactionDateTime":1648378800000, //transaction timestamp
"transactionStatus":"SUCCESS", //status of the transaction: "SUCCESS","FAILED","PENDING"
"failedType":"INSUFFICIENT_BALANCE",// only show when transactionStatus = FAILED, INSUFFICIENT_BALANCE,TRANSACTION_REJECT/GCC_RJECT
"sourceAsset":"BUSD", //source asset of the transaction
"sourceAssetAmount":"297.12345", //amount of source asset used
"targetAssetAmount":"0.005", //purchased amount of the asset
"sourceWallet":"SPOT_WALLET", // SPOT_WALLET,FLEXIBLE_SAVINGS,SPOT_WALLET_FLEXIBLE_SAVINGS,REWARDS
"flexibleUsed":"false", //whether simple earn wallet is used
"transactionFee":"0.002", //transaction fee amount
"transactionFeeUnit":"BUSD", //denominated coin of the transaction fee
"executionPrice":"2342" //price of the subscription price. It's amount of source asset equivilent of 1 unit of target asset
"executionType":"RECURRING" //ONE_TIME,RECURRING
"subscriptionCycle": "WEEKLY"
}
]