单次申购(TRADE)
接口描述
单次申购
HTTP请求
POST /sapi/v1/lending/auto-invest/one-off
请求权重(IP)
1
频次限制
每个账户最多三秒一次
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
sourceType | STRING | YES | "MAIN_SITE",“TR” 只有Binance Turkey使用TR入参 |
requestId | STRING | NO | if not null, must follow businessReference + unique string, e.g: TR12354859 |
subscriptionAmount | DECIMAL | YES | |
sourceAsset | STRING | YES | “USDT”,”BUSD” |
flexibleAllowedToUse | BOOLEAN | NO | true/false,True:使用flexible wallet,TR业务使用false |
planId | LONG | NO | PORTFOLIO plan Id |
indexId | LONG | NO | 目前只有 1 |
details | Array<PortfolioDetail> | YES | sum(all node's percentage) == 100,sum(all node's percentage) == 100, When input request parameter, each entry should be like details[0].targetAsset=BTC, Example of the request parameter array: |
details[0].targetAsset=BTC details[0].percentage=60 details[1].targetAsset=ETH details[1].percentage=40 | |||
recvWindow | LONG | NO | 不超过 60000 |
timestamp | LONG | YES |
planId
/indexId
/details
不能均为空
响应示例
{
"transactionId": 12345, //交易id
"waitSecond": 5 // 需停留5秒,查询结果
}