One Time Transaction(TRADE)
API Description
One time transaction
HTTP Request
POST /sapi/v1/lending/auto-invest/one-off
Request Weight(IP)
1
Rate Limit
once every 3s per account
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
sourceType | STRING | YES | "MAIN_SITE" for Binance,“TR” for Binance Turkey |
requestId | STRING | NO | if not null, must follow sourceType + unique string, e.g: TR12354859 |
subscriptionAmount | DECIMAL | YES | |
sourceAsset | STRING | YES | e.g “USDT” |
flexibleAllowedToUse | BOOLEAN | NO | true/false;true: using flexible wallet |
planId | LONG | NO | PORTFOLIO plan's Id |
indexId | LONG | NO | now only can set = 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 | no more than 60000 |
timestamp | LONG | YES |
planId
/planId
/details
must not all be null
Response Example
{
"transactionId": 12345, //transaction identifier
"waitSecond": 5 // wait this second,then check the result
}