Auto Invest Endpoints

Get target asset list (USER_DATA)

get_target_asset_list(self, **kwargs)

Get target asset list (USER_DATA)

Weight(IP): 1

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

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

Keyword Arguments:
  • targetAsset (str)

  • size (int, optional) – Default:8 Max:100

  • current (int, optional) – Current querying page. Start from 1. Default:1

  • recvWindow (int, optional) – The value cannot be greater than 60000

Get target asset ROI data (USER_DATA)

get_target_asset_roi_data(self, targetAsset: str, hisRoiType: str, **kwargs)

Get target asset ROI data (USER_DATA)

ROI return list for target asset

Weight(IP): 1

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:
  • targetAsset (str)

  • hisRoiType (str)

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Query all source asset and target asset (USER_DATA)

query_all_source_asset_and_target_asset(self, **kwargs)

Query all source asset and target asset (USER_DATA)

Query all source assets and target assets

Weight(IP): 1

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

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

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Query source asset list (USER_DATA)

query_source_asset_list(self, usageType: str, **kwargs)

Query source asset list (USER_DATA)

Query Source Asset to be used for investment

Weight(IP): 1

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

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

Parameters:

usageType (str)

Keyword Arguments:
  • targetAsset (array, optional)

  • indexId (int, optional)

  • flexibleAllowedToUse (boolean, optional)

  • sourceType (str, optional)

  • recvWindow (int, optional) – The value cannot be greater than 60000

Change Plan Status (TRADE)

change_plan_status(self, planId: int, status: str, **kwargs)

Change Plan Status (TRADE)

Change Plan Status

Weight(IP): 1

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

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

Parameters:
  • planId (int)

  • status (Status)

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Get list of plans (USER_DATA)

get_list_of_plans(self, planType: str, **kwargs)

Get list of plans (USER_DATA)

Query plan lists

Weight(IP): 1

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

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

Parameters:

planType (str)

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Query holding details of the plan (USER_DATA)

query_holding_details_of_the_plan(self, **kwargs)

Query holding details of the plan (USER_DATA)

Query holding details of the plan

Weight(IP): 1

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

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

Keyword Arguments:
  • planId (int, optional)

  • requestId (str, optional)

  • recvWindow (int, optional) – The value cannot be greater than 60000

Query subscription transaction history (USER_DATA)

query_subscription_transaction_history(self, **kwargs)

Query subscription transaction history (USER_DATA)

Query subscription transaction history of a plan

Weight(IP): 1

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

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

Keyword Arguments:
  • planType (str, optional)

  • planId (int, optional)

  • startTime (int, optional) – UTC timestamp in ms

  • endTime (int, optional) – UTC timestamp in ms

  • targetAsset (float, optional)

  • size (int, optional) – Default:10 Max:100

  • current (int, optional) – Current querying page. Start from 1. Default:1

  • recvWindow (int, optional) – The value cannot be greater than 60000

Query Index Details (USER_DATA)

query_index_details(self, indexId: int, **kwargs)

Query Index Details (USER_DATA)

Query index details

Weight(IP): 1

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

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

Parameters:

indexId (int)

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Query Index Linked Plan Position Details (USER_DATA)

query_index_linked_plan_position_details(self, indexId: int, **kwargs)

Query Index Linked Plan Position Details (USER_DATA)

Details on users Index-Linked plan position details

Weight(IP): 1

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

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

Parameters:

indexId (int)

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

One Time Transaction (TRADE)

one_time_transaction(self, sourceType: str, subscriptionAmount: float, sourceAsset: str, **kwargs)

One Time Transaction (TRADE)

One time transaction

Weight(IP): 1

POST /sapi/v1/lending/auto-invest/one-off

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

Parameters:
  • sourceType (str)

  • subscriptionAmount (float)

  • sourceAsset (str)

Keyword Arguments:
  • requestId (str, optional)

  • flexibleAllowedToUse (boolean, optional)

  • planId (int, optional)

  • indexId (int, optional)

  • details (list, optional)

  • recvWindow (int, optional) – The value cannot be greater than 60000

Query One-Time Transaction Status (USER_DATA)

query_one_time_transaction_status(self, transactionId: int, **kwargs)

Query One-Time Transaction Status (USER_DATA)

Transaction status for one-time transaction

Weight(IP): 1

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

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

Parameters:

transactionId (int)

Keyword Arguments:
  • requestId (str, optional)

  • recvWindow (int, optional) – The value cannot be greater than 60000

Index Linked Plan Redemption (TRADE)

index_linked_plan_redemption(self, indexId: int, redemptionPercentage: int, **kwargs)

Index Linked Plan Redemption (TRADE)

To redeem index-Linked plan holdings

Weight(IP): 1

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

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

Parameters:
  • indexId (int)

  • redemptionPercentage (int)

Keyword Arguments:
  • requestId (str, optional)

  • recvWindow (int, optional) – The value cannot be greater than 60000

Index Linked Plan Redemption (USER_DATA)

get_index_linked_plan_redemption_history(self, requestId: int, **kwargs)

Index Linked Plan Redemption (USER_DATA)

Get the history of Index Linked Plan Redemption transactions

Weight(IP): 1

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

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

Parameters:

requestId (int)

Keyword Arguments:
  • asset (str, optional)

  • startTime (int, optional) – UTC timestamp in ms

  • endTime (int, optional) – UTC timestamp in ms

  • current (int, optional) – Current querying page. Start from 1. Default:1

  • size (int, optional) – Default:10 Max:100

  • recvWindow (int, optional) – The value cannot be greater than 60000

Index Linked Plan Rebalance Details (USER_DATA)

index_linked_plan_rebalance_details(self, **kwargs)

Index Linked Plan Rebalance Details (USER_DATA)

Get the history of Index Linked Plan Redemption transactions

Max 30 day difference between startTime and endTime If no startTime and endTime, default to show past 30 day records

Weight(IP): 1

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

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

Keyword Arguments:
  • startTime (int, optional) – UTC timestamp in ms

  • endTime (int, optional) – UTC timestamp in ms

  • current (int, optional) – Current querying page. Start from 1. Default:1

  • size (int, optional) – Default:10 Max:100

  • recvWindow (int, optional) – The value cannot be greater than 60000