查询定投计划列表 (USER_DATA)
接口描述
查询定投计划列表
HTTP请求
GET /sapi/v1/lending/auto-invest/plan/list
请求权重(IP)
1
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
planType | STRING | YES | “SINGLE”,”PORTFOLIO”,”INDEX”用以区分查询计划类型 |
recvWindow | LONG | NO | 不超过60000 |
timestamp | LONG | YES |
- 单个账户每秒最多请求3次
响应示例
当planType为 SINGLE/PORTFOLIO
{
"planValueInUSD": "123",
"planValueInBTC":"0.1",
"pnlInUSD":"120",
"roi":"2.3",
"plans": [
{
"planId": 12345,
"planType": "SINGLE",
"editAllowed": "true",
"creationDateTime": 1648378800000,
"firstExecutionDateTime": 1648378800000, //first subscription date time
"nextExecutionDateTime": 1648378800000,
"status": "ONGOING", // ONGOING,PAUSED
"lastUpdatedDateTime": 1648378800000,
"targetAsset": "BTC",
"totalTargetAmount":"0.111",
"sourceAsset": "BUSD",
"totalInvestedInUSD":"4.555",
"subscriptionAmount": "0.1",
"subscriptionCycle": "WEEKLY",
"subscriptionStartDay": null,
"subscriptionStartWeekday" : "MON",
"subscriptionStartTime": "1",
"sourceWallet": "SPOT_WALLET",
"flexibleAllowedToUse": "false",
"planValueInUSD": "101.2",
"pnlInUSD": "101.2",
"roi": "1.02"
}
]
}
当planType为 INDEX
{
"planValueInUSD": "123",
"planValueInBTC": "0.1",
"plans": [
{
"planId": 12345,
"planType": "INDEX",
"editAllowed": "true",
"creationDateTime": 1648378800000,
"firstExecutionDateTime": 1648378800000, //first subscription date time
"nextExecutionDateTime": 1648378800000,
"status": "ONGOING",
"lastUpdatedDateTime": 1648378800000,
"targetAsset": "BTC",
"sourceAsset": "BUSD",
"totalInvestedInUSD":"4.555",
"subscriptionAmount": "0.1",
"subscriptionCycle": "DAILY",
"subscriptionStartDay": "1",
"subscriptionStartWeekday" : null,
"subscriptionStartTime": "2",
"sourceWallet": "SPOT",
"flexibleAllowedToUse": "false",
}
]
}