Skip to main content

查询申购历史 (USER_DATA)

接口描述#

查询申购历史

HTTP请求#

GET /sapi/v1/lending/auto-invest/history/list

请求权重(IP):#

1

请求参数#

名称类型是否必需描述
planIdLONGNO计划id
startTimeLONGNO
endTimeLONGNO
targetAssetSTRINGNO
planTypeENUMNOSINGLE, PORTFOLIO, INDEX, ALL
sizeLONGNO默认10, 最大100
currentLONGNO当前查询页。 默认为1
recvWindowLONGNO不超过60000
timestampLONGYES
  • startTimeendTime不超过30天
  • 如果不传startTimeendTime,默认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"  }]