API auto-invest endpoints

Parameters:
NameTypeDescription
superclass*

Methods

changePlanStatus(planId, status, optionsopt)

Change Plan Status

POST /sapi/v1/lending/auto-invest/plan/edit-status

https://developers.binance.com/docs/auto_invest/trade/Change-Plan-Status

Parameters:
NameTypeAttributesDescription
planIdnumber
statusStatus
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

getListOfPlans(planType, optionsopt)

Get list of plans

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

https://developers.binance.com/docs/auto_invest/market-data/Get-list-of-plans

Parameters:
NameTypeAttributesDescription
planTypestring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

getTargetAssetList(optionsopt)

Get target asset list (USER_DATA)

GET /sapi/v1/lending/auto-invest/target-asset/list

https://developers.binance.com/docs/auto_invest/market-data/Get-target-asset-list

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
targetAssetstring<optional>
sizenumber<optional>

Default:10 Max:100

currentnumber<optional>

Current querying page. Start from 1. Default:1

recvWindownumber<optional>

The value cannot be greater than 60000

getTargetAssetRoiData(targetAsset, hisRoiType, optionsopt)

Get target asset ROI data (USER_DATA)

GET /sapi/v1/lending/auto-invest/target-asset/roi/list

https://developers.binance.com/docs/auto_invest/market-data/Get-target-asset-ROI-data

Parameters:
NameTypeAttributesDescription
targetAssetstring
hisRoiTypestring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

indexLinkedPlanRebalanceDetails(optionsopt)

Index Linked Plan Rebalance Details (USER_DATA)

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

https://developers.binance.com/docs/auto_invest/trade/Index-Linked-Plan-Rebalance-Details

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
startTimenumber<optional>

UTC timestamp in ms

endTimenumber<optional>

UTC timestamp in ms

currentnumber<optional>

Current querying page. Start from 1. Default:1

sizenumber<optional>

Default:10 Max:100

recvWindownumber<optional>

The value cannot be greater than 60000

indexLinkedPlanRedemption(indexId, redemptionPercentage, optionsopt)

Index Linked Plan Redemption (TRADE)

POST /sapi/v1/lending/auto-invest/redeem

https://developers.binance.com/docs/auto_invest/trade/Index-Linked-Plan-Redemption

Parameters:
NameTypeAttributesDescription
indexIdnumber

PORTFOLIO plan's Id

redemptionPercentagenumber

user redeem percentage,10/20/100.

optionsobject<optional>
Properties
NameTypeAttributesDescription
requestIdstring<optional>

sourceType + unique, transactionId and requestId cannot be empty at the same time

recvWindownumber<optional>

The value cannot be greater than 60000

indexLinkedPlanRedemptionHistory(requestId, optionsopt)

Index Linked Plan Redemption History (USER_DATA)

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

https://developers.binance.com/docs/auto_invest/trade/Query-Index-Linked-Plan-Redemption

Parameters:
NameTypeAttributesDescription
requestIdnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
startTimenumber<optional>

UTC timestamp in ms

endTimenumber<optional>

UTC timestamp in ms

currentnumber<optional>

Current querying page. Start from 1. Default:1

assetstring<optional>
sizenumber<optional>

Default:10 Max:100

recvWindownumber<optional>

The value cannot be greater than 60000

queryAllSourceAssetAndTargetAsset(optionsopt)

Query all source asset and target asset (USER_DATA)

GET /sapi/v1/lending/auto-invest/all/asset

https://developers.binance.com/docs/auto_invest/market-data/Query-all-source-asset-and-target-asset

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

queryHoldingDetailsOfThePlan(optionsopt)

Query holding details of the plan

GET /sapi/v1/lending/auto-invest/plan/id

https://developers.binance.com/docs/auto_invest/trade/Query-holding-details-of-the-plan

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
planIdnumber<optional>
requestIdstring<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

queryIndexDetails(indexId, optionsopt)

Query Index Details (USER_DATA)

GET /sapi/v1/lending/auto-invest/index/info

https://developers.binance.com/docs/auto_invest/market-data/Query-Index-Details

Parameters:
NameTypeAttributesDescription
indexIdnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

queryIndexLinkedPlanPositionDetails(indexId, optionsopt)

Query Index Linked Plan Position Details (USER_DATA)

GET /sapi/v1/lending/auto-invest/index/user-summary

https://developers.binance.com/docs/auto_invest/trade/Query-Index-Linked-Plan-Position-Details

Parameters:
NameTypeAttributesDescription
indexIdnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

queryOnetimeTransactionStatus(transactionId, optionsopt)

Query One-Time Transaction Status (USER_DATA)

GET /sapi/v1/lending/auto-invest/one-off/status

https://developers.binance.com/docs/auto_invest/trade/Query-One-Time-Transaction-Status

Parameters:
NameTypeAttributesDescription
transactionIdnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
requestIdstring<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

querySourceAssetList(usageType, optionsopt)

Query source asset list (USER_DATA)

GET /sapi/v1/lending/auto-invest/source-asset/list

https://developers.binance.com/docs/auto_invest/market-data/Query-source-asset-list

Parameters:
NameTypeAttributesDescription
usageTypestring
optionsobject<optional>
Properties
NameTypeAttributesDescription
targetAssetstring<optional>
indexIdnumber<optional>
flexibleAllowedToUseboolean<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

querySubscriptionTransactionHistory(optionsopt)

Query subscription transaction history

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

https://developers.binance.com/docs/auto_invest/trade/Query-subscription-transaction-history

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
planIdnumber<optional>
startTimenumber<optional>

UTC timestamp in ms

endTimenumber<optional>

UTC timestamp in ms

targetAssetnumber<optional>
planTypePlanType<optional>
sizenumber<optional>

Default:10 Max:100

currentnumber<optional>

Current querying page. Start from 1. Default:1

recvWindownumber<optional>

The value cannot be greater than 60000