|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
DerivativesTradingPortfolioMargin REST API client. More...
#include <rest_api.hpp>
Static Public Member Functions | |
| static RestApi | from_config (common::RestApiConfig config) |
| A client for config.base_path, production when it is not set. | |
| static RestApi | production (common::RestApiConfig config) |
| A client for production (Derivatives Trading Portfolio Margin REST API). | |
| static RestApi | testnet (common::RestApiConfig config) |
| A client for the testnet. | |
DerivativesTradingPortfolioMargin REST API client.
Cheap to copy: copies share one common::RestClient (connection pool and executor).
Every endpoint has a blocking form (name(params)) and an asynchronous form (async_name(params, token)) that accepts any Asio completion token.
|
explicit |
Throws common::ConfigError if the configuration is invalid.
|
staticnodiscard |
A client for config.base_path, production when it is not set.
|
staticnodiscard |
A client for production (Derivatives Trading Portfolio Margin REST API).
|
staticnodiscard |
A client for the testnet.
|
nodiscardnoexcept |
|
inlinenodiscard |
Calls an endpoint the SDK does not wrap yet. T may be boost::json::value.
|
inlinenodiscard |
Like send_request, but signed (adds timestamp and signature).
|
inline |
|
inline |
|
inlinenodiscard |
Account Balance (USER_DATA).
GET /papi/v1/balance.
Query account balance
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous account_balance().
|
inlinenodiscard |
Account Information (USER_DATA).
GET /papi/v1/account.
Query account information
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous account_information().
|
inlinenodiscard |
BNB transfer (TRADE).
POST /papi/v1/bnb-transfer.
Transfer BNB in and out of UM
Weight(IP): 750
Security Type: TRADE
Notes:
|
inline |
Asynchronous bnb_transfer().
|
inlinenodiscard |
Change Auto-repay-futures Status (TRADE).
POST /papi/v1/repay-futures-switch.
Change Auto-repay-futures Status
Weight(IP): 750
Security Type: TRADE
|
inline |
Asynchronous change_auto_repay_futures_status().
|
inlinenodiscard |
Get Auto-repay-futures Status (USER_DATA).
GET /papi/v1/repay-futures-switch.
Query Auto-repay-futures Status
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_auto_repay_futures_status().
|
inlinenodiscard |
Change CM Initial Leverage (TRADE).
POST /papi/v1/cm/leverage.
Change user's initial leverage of specific symbol in CM.
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_cm_initial_leverage().
|
inlinenodiscard |
Change CM Position Mode (TRADE).
POST /papi/v1/cm/positionSide/dual.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_cm_position_mode().
|
inlinenodiscard |
Get CM Current Position Mode (USER_DATA).
GET /papi/v1/cm/positionSide/dual.
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_cm_current_position_mode().
|
inlinenodiscard |
Change UM Initial Leverage (TRADE).
POST /papi/v1/um/leverage.
Change user's initial leverage of specific symbol in UM.
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_um_initial_leverage().
|
inlinenodiscard |
Change UM Position Mode (TRADE).
POST /papi/v1/um/positionSide/dual.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous change_um_position_mode().
|
inlinenodiscard |
Get UM Current Position Mode (USER_DATA).
GET /papi/v1/um/positionSide/dual.
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_um_current_position_mode().
|
inlinenodiscard |
CM Notional and Leverage Brackets (USER_DATA).
GET /papi/v1/cm/leverageBracket.
Query CM notional and leverage brackets
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous cm_notional_and_leverage_brackets().
|
inlinenodiscard |
Fund Auto-collection (TRADE).
POST /papi/v1/auto-collection.
Fund collection for Portfolio Margin
Weight(IP): 750
Security Type: TRADE
Notes:
|
inline |
Asynchronous fund_auto_collection().
|
inlinenodiscard |
Fund Collection by Asset (TRADE).
POST /papi/v1/asset-collection.
Transfers specific asset from Futures Account to Margin account
Weight(IP): 30
Security Type: TRADE
Notes:
|
inline |
Asynchronous fund_collection_by_asset().
|
inlinenodiscard |
Get CM Account Detail (USER_DATA).
GET /papi/v1/cm/account.
Get current CM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous get_cm_account_detail().
|
inlinenodiscard |
Get CM Futures Order Download Link by Id (USER_DATA).
GET /papi/v1/cm/order/asyn/id.
Get CM futures order download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_futures_order_download_link_by_id().
|
inlinenodiscard |
Get CM Futures Trade Download Link by Id (USER_DATA).
GET /papi/v1/cm/trade/asyn/id.
Get CM futures trade download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_futures_trade_download_link_by_id().
|
inlinenodiscard |
Get CM Futures Transaction Download Link by Id (USER_DATA).
GET /papi/v1/cm/income/asyn/id.
Get CM futures Transaction download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_futures_transaction_download_link_by_id().
|
inlinenodiscard |
Get CM Income History (USER_DATA).
GET /papi/v1/cm/income.
Get CM Income History.
Weight(IP): 30
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_cm_income_history().
|
inlinenodiscard |
Get Download Id For CM Futures Order History (USER_DATA).
GET /papi/v1/cm/order/asyn.
Get download id for CM futures order history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_cm_futures_order_history().
|
inlinenodiscard |
Get Download Id For CM Futures Trade History (USER_DATA).
GET /papi/v1/cm/trade/asyn.
Get download id for CM futures trade history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_cm_futures_trade_history().
|
inlinenodiscard |
Get Download Id For CM Futures Transaction History (USER_DATA).
GET /papi/v1/cm/income/asyn.
Get download id for CM futures transaction history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_cm_futures_transaction_history().
|
inlinenodiscard |
Get Download Id For UM Futures Order History (USER_DATA).
GET /papi/v1/um/order/asyn.
Get download id for UM futures order history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_um_futures_order_history().
|
inlinenodiscard |
Get Download Id For UM Futures Trade History (USER_DATA).
GET /papi/v1/um/trade/asyn.
Get download id for UM futures trade history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_um_futures_trade_history().
|
inlinenodiscard |
Get Download Id For UM Futures Transaction History (USER_DATA).
GET /papi/v1/um/income/asyn.
Get download id for UM futures transaction history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_download_id_for_um_futures_transaction_history().
|
inlinenodiscard |
Get Margin Borrow/Loan Interest History (USER_DATA).
GET /papi/v1/margin/marginInterestHistory.
Get Margin Borrow/Loan Interest History
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_margin_borrow_loan_interest_history().
|
inlinenodiscard |
Get UM Account Detail (USER_DATA).
GET /papi/v1/um/account.
Get current UM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous get_um_account_detail().
|
inlinenodiscard |
Get UM Account Detail V2 (USER_DATA).
GET /papi/v2/um/account.
Get current UM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous get_um_account_detail_v2().
|
inlinenodiscard |
Get UM Futures Order Download Link by Id (USER_DATA).
GET /papi/v1/um/order/asyn/id.
Get UM futures order download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_futures_order_download_link_by_id().
|
inlinenodiscard |
Get UM Futures Trade Download Link by Id (USER_DATA).
GET /papi/v1/um/trade/asyn/id.
Get UM futures trade download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_futures_trade_download_link_by_id().
|
inlinenodiscard |
Get UM Futures Transaction Download Link by Id (USER_DATA).
GET /papi/v1/um/income/asyn/id.
Get UM futures Transaction download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_futures_transaction_download_link_by_id().
|
inlinenodiscard |
Get UM Income History (USER_DATA).
GET /papi/v1/um/income.
Get UM Income History.
Weight(IP): 30
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous get_um_income_history().
|
inlinenodiscard |
Get User Commission Rate for CM (USER_DATA).
GET /papi/v1/cm/commissionRate.
Get User Commission Rate for CM
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous get_user_commission_rate_for_cm().
|
inlinenodiscard |
Get User Commission Rate for UM (USER_DATA).
GET /papi/v1/um/commissionRate.
Get User Commission Rate for UM
Weight(IP): 20
Security Type: USER_DATA
|
inline |
Asynchronous get_user_commission_rate_for_um().
|
inlinenodiscard |
Margin Max Borrow (USER_DATA).
GET /papi/v1/margin/maxBorrowable.
Query margin max borrow
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous margin_max_borrow().
|
inlinenodiscard |
Portfolio Margin UM Trading Quantitative Rules Indicators (USER_DATA).
GET /papi/v1/um/apiTradingStatus.
Portfolio Margin UM Trading Quantitative Rules Indicators
Weight: - 1 for a single symbol
Security Type: USER_DATA
|
inline |
|
inlinenodiscard |
Query CM Position Information (USER_DATA).
GET /papi/v1/cm/positionRisk.
Get current CM position information.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_cm_position_information().
|
inlinenodiscard |
Query Margin Loan Record (USER_DATA).
GET /papi/v1/margin/marginLoan.
Query margin loan record
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_margin_loan_record().
|
inlinenodiscard |
Query Margin Max Withdraw (USER_DATA).
GET /papi/v1/margin/maxWithdraw.
Query Margin Max Withdraw
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous query_margin_max_withdraw().
|
inlinenodiscard |
Query Margin repay Record (USER_DATA).
GET /papi/v1/margin/repayLoan.
Query margin repay record.
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_margin_repay_record().
|
inlinenodiscard |
Query Portfolio Margin Negative Balance Interest History (USER_DATA).
GET /papi/v1/portfolio/interest-history.
Query interest history of negative balance for portfolio margin.
Weight(IP): 50
Security Type: USER_DATA
Notes:
|
inline |
|
inlinenodiscard |
Query UM Position Information (USER_DATA).
GET /papi/v1/um/positionRisk.
Get current UM position information.
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_um_position_information().
|
inlinenodiscard |
Query User Negative Balance Auto Exchange Record (USER_DATA).
GET /papi/v1/portfolio/negative-balance-exchange-record.
Query user negative balance auto exchange record
Weight(IP): 100
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_user_negative_balance_auto_exchange_record().
|
inlinenodiscard |
Query User Rate Limit (USER_DATA).
GET /papi/v1/rateLimit/order.
Query User Rate Limit
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous query_user_rate_limit().
|
inlinenodiscard |
Repay futures Negative Balance (USER_DATA).
POST /papi/v1/repay-futures-negative-balance.
Repay futures Negative Balance
Weight(IP): 750
Security Type: USER_DATA
|
inline |
Asynchronous repay_futures_negative_balance().
|
inlinenodiscard |
UM Futures Account Configuration (USER_DATA).
GET /papi/v1/um/accountConfig.
Query UM Futures account configuration
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous um_futures_account_configuration().
|
inlinenodiscard |
UM Futures Symbol Configuration (USER_DATA).
GET /papi/v1/um/symbolConfig.
Get current UM account symbol configuration.
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous um_futures_symbol_configuration().
|
inlinenodiscard |
UM Notional and Leverage Brackets (USER_DATA).
GET /papi/v1/um/leverageBracket.
Query UM notional and leverage brackets
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous um_notional_and_leverage_brackets().
|
inlinenodiscard |
Test Connectivity.
GET /papi/v1/ping.
Test connectivity to the Rest API.
Weight(IP): 1
|
inline |
Asynchronous test_connectivity().
|
inlinenodiscard |
Cancel All CM Open Conditional Orders (TRADE).
DELETE /papi/v1/cm/conditional/allOpenOrders.
Cancel All CM Open Conditional Orders
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous cancel_all_cm_open_conditional_orders().
|
inlinenodiscard |
Cancel All CM Open Orders (TRADE).
DELETE /papi/v1/cm/allOpenOrders.
Cancel all active LIMIT orders on specific symbol
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous cancel_all_cm_open_orders().
|
inlinenodiscard |
Cancel All UM Algo Open Orders (TRADE).
DELETE /papi/v1/um/algo/allOpenOrders.
Cancel All UM Algo Open Orders
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous cancel_all_um_algo_open_orders().
|
inlinenodiscard |
Cancel All UM Open Orders (TRADE).
DELETE /papi/v1/um/allOpenOrders.
Cancel all active LIMIT orders on specific symbol
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous cancel_all_um_open_orders().
|
inlinenodiscard |
Cancel CM Conditional Order (TRADE).
DELETE /papi/v1/cm/conditional/order.
Cancel CM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_cm_conditional_order().
|
inlinenodiscard |
New CM Conditional Order (TRADE).
POST /papi/v1/cm/conditional/order.
New CM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous new_cm_conditional_order().
|
inlinenodiscard |
Cancel CM Order (TRADE).
DELETE /papi/v1/cm/order.
Cancel an active LIMIT order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_cm_order().
|
inlinenodiscard |
Modify CM Order (TRADE).
PUT /papi/v1/cm/order.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous modify_cm_order().
|
inlinenodiscard |
New CM Order (TRADE).
POST /papi/v1/cm/order.
Place new CM order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous new_cm_order().
|
inlinenodiscard |
Query CM Order (USER_DATA).
GET /papi/v1/cm/order.
Check an CM order's status.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_cm_order().
|
inlinenodiscard |
Cancel Margin Account All Open Orders on a Symbol (TRADE).
DELETE /papi/v1/margin/allOpenOrders.
Cancel Margin Account All Open Orders on a Symbol
Weight(IP): 5
Security Type: TRADE
|
inline |
Asynchronous cancel_margin_account_all_open_orders_on_a_symbol().
|
inlinenodiscard |
Cancel Margin Account OCO Orders (TRADE).
DELETE /papi/v1/margin/orderList.
Cancel Margin Account OCO Orders
Weight(IP): 2
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_margin_account_oco_orders().
|
inlinenodiscard |
Query Margin Account's OCO (USER_DATA).
GET /papi/v1/margin/orderList.
Retrieves a specific OCO based on provided optional parameters
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous query_margin_accounts_oco().
|
inlinenodiscard |
Cancel Margin Account Order (TRADE).
DELETE /papi/v1/margin/order.
Cancel Margin Account Order
Weight(IP): 2
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_margin_account_order().
|
inlinenodiscard |
New Margin Order (TRADE).
POST /papi/v1/margin/order.
New Margin Order
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous new_margin_order().
|
inlinenodiscard |
Query Margin Account Order (USER_DATA).
GET /papi/v1/margin/order.
Query Margin Account Order
Weight(IP): 10
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_margin_account_order().
|
inlinenodiscard |
Cancel UM Algo Order (TRADE).
DELETE /papi/v1/um/algo/order.
Cancel an active UM algo order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_um_algo_order().
|
inlinenodiscard |
New UM Algo Order (TRADE).
POST /papi/v1/um/algo/order.
Place new UM conditional order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous new_um_algo_order().
|
inlinenodiscard |
Cancel UM Order (TRADE).
DELETE /papi/v1/um/order.
Cancel an active UM LIMIT order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous cancel_um_order().
|
inlinenodiscard |
Modify UM Order (TRADE).
PUT /papi/v1/um/order.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous modify_um_order().
|
inlinenodiscard |
New UM Order (TRADE).
POST /papi/v1/um/order.
Place new UM order
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous new_um_order().
|
inlinenodiscard |
Query UM Order (USER_DATA).
GET /papi/v1/um/order.
Check an UM order's status.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_um_order().
|
inlinenodiscard |
CM Account Trade List (USER_DATA).
GET /papi/v1/cm/userTrades.
Get trades for a specific account and CM symbol.
Weight: - 20 with symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous cm_account_trade_list().
|
inlinenodiscard |
CM Position ADL Quantile Estimation (USER_DATA).
GET /papi/v1/cm/adlQuantile.
Query CM Position ADL Quantile Estimation
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous cm_position_adl_quantile_estimation().
|
inlinenodiscard |
Futures TradFi Perps Contract (USER_DATA).
POST /papi/v1/um/stock/contract.
Sign TradFi-Perps agreement contract
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous futures_tradfi_perps_contract().
|
inlinenodiscard |
Get UM Futures BNB Burn Status (USER_DATA).
GET /papi/v1/um/feeBurn.
Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
Weight(IP): 30
Security Type: USER_DATA
|
inline |
Asynchronous get_um_futures_bnb_burn_status().
|
inlinenodiscard |
Toggle BNB Burn On UM Futures Trade (TRADE).
POST /papi/v1/um/feeBurn.
Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on EVERY symbol
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous toggle_bnb_burn_on_um_futures_trade().
|
inlinenodiscard |
Margin Account Borrow (MARGIN).
POST /papi/v1/marginLoan.
Apply for a margin loan.
Weight(IP): 100
Security Type: MARGIN
|
inline |
Asynchronous margin_account_borrow().
|
inlinenodiscard |
Margin Account New OCO (TRADE).
POST /papi/v1/margin/order/oco.
Send in a new OCO for a margin account
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous margin_account_new_oco().
|
inlinenodiscard |
Margin Account Repay (MARGIN).
POST /papi/v1/repayLoan.
Repay for a margin loan.
Weight(IP): 100
Security Type: MARGIN
|
inline |
Asynchronous margin_account_repay().
|
inlinenodiscard |
Margin Account Repay Debt (TRADE).
POST /papi/v1/margin/repay-debt.
Repay debt for a margin loan.
Weight(IP): 3000
Security Type: TRADE
Notes:
|
inline |
Asynchronous margin_account_repay_debt().
|
inlinenodiscard |
Margin Account Trade List (USER_DATA).
GET /papi/v1/margin/myTrades.
Margin Account Trade List
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous margin_account_trade_list().
|
inlinenodiscard |
Query All CM Conditional Orders (USER_DATA).
GET /papi/v1/cm/conditional/allOrders.
Query All CM Conditional Orders
Weight: - 1 for a single symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_cm_conditional_orders().
|
inlinenodiscard |
Query All CM Orders (USER_DATA).
GET /papi/v1/cm/allOrders.
Get all account CM orders; active, canceled, or filled.
Weight: - 20 with symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_cm_orders().
|
inlinenodiscard |
Query All Current CM Open Conditional Orders (USER_DATA).
GET /papi/v1/cm/conditional/openOrders.
Get all open conditional orders on a symbol. Careful when accessing this with no symbol.
Weight: - 1 for a single symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_current_cm_open_conditional_orders().
|
inlinenodiscard |
Query All Current CM Open Orders (USER_DATA).
GET /papi/v1/cm/openOrders.
Get all open orders on a symbol.
Weight: - 1 for a single symbol
Security Type: USER_DATA
|
inline |
Asynchronous query_all_current_cm_open_orders().
|
inlinenodiscard |
Query All Current UM Open Algo Orders (USER_DATA).
GET /papi/v1/um/algo/openAlgoOrders.
Get all UM open algo orders on a symbol. If the symbol is not sent, orders for all symbols will be returned.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_current_um_open_algo_orders().
|
inlinenodiscard |
Query All Current UM Open Orders (USER_DATA).
GET /papi/v1/um/openOrders.
Get all open orders on a symbol.
Weight: - 1 for a single symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_current_um_open_orders().
|
inlinenodiscard |
Query All Margin Account Orders (USER_DATA).
GET /papi/v1/margin/allOrders.
Query All Margin Account Orders
Weight(IP): 100
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_margin_account_orders().
|
inlinenodiscard |
Query All UM Orders (USER_DATA).
GET /papi/v1/um/allOrders.
Get all account UM orders; active, canceled, or filled.
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_all_um_orders().
|
inlinenodiscard |
Query CM Conditional Order History (USER_DATA).
GET /papi/v1/cm/conditional/orderHistory.
Query CM Conditional Order History
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_cm_conditional_order_history().
|
inlinenodiscard |
Query CM Modify Order History (TRADE).
GET /papi/v1/cm/orderAmendment.
Get order modification history
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous query_cm_modify_order_history().
|
inlinenodiscard |
Query Current CM Open Conditional Order (USER_DATA).
GET /papi/v1/cm/conditional/openOrder.
Query Current CM Open Conditional Order
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_current_cm_open_conditional_order().
|
inlinenodiscard |
Query Current CM Open Order (USER_DATA).
GET /papi/v1/cm/openOrder.
Query current CM open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_current_cm_open_order().
|
inlinenodiscard |
Query Current Margin Open Order (USER_DATA).
GET /papi/v1/margin/openOrders.
Query Current Margin Open Order
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_current_margin_open_order().
|
inlinenodiscard |
Query Current UM Open Algo Order (USER_DATA).
GET /papi/v1/um/algo/algoOrder.
Check an UM algo order's status. Orders will not be found if: status is CANCELED/EXPIRED with no fills and created 3+ days ago; or created 90+ days ago.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_current_um_open_algo_order().
|
inlinenodiscard |
Query Current UM Open Order (USER_DATA).
GET /papi/v1/um/openOrder.
Query current UM open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_current_um_open_order().
|
inlinenodiscard |
Query Margin Account's all OCO (USER_DATA).
GET /papi/v1/margin/allOrderList.
Query all OCO for a specific margin account based on provided optional parameters
Weight(IP): 100
Security Type: USER_DATA
|
inline |
Asynchronous query_margin_accounts_all_oco().
|
inlinenodiscard |
Query Margin Account's Open OCO (USER_DATA).
GET /papi/v1/margin/openOrderList.
Query Margin Account's Open OCO
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous query_margin_accounts_open_oco().
|
inlinenodiscard |
Query UM Algo Order History (USER_DATA).
GET /papi/v1/um/algo/allAlgoOrders.
Get all algo orders: ACTIVE, CANCELED, TRIGGERED or FINISHED.
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_um_algo_order_history().
|
inlinenodiscard |
Query UM Modify Order History (TRADE).
GET /papi/v1/um/orderAmendment.
Get order modification history
Weight(IP): 1
Security Type: TRADE
Notes:
|
inline |
Asynchronous query_um_modify_order_history().
|
inlinenodiscard |
Query User's CM Force Orders (USER_DATA).
GET /papi/v1/cm/forceOrders.
Query User's CM Force Orders
Weight: - 20 with symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_users_cm_force_orders().
|
inlinenodiscard |
Query User's Margin Force Orders (USER_DATA).
GET /papi/v1/margin/forceOrders.
Query user's margin force orders
Note: Portfolio Margin accounts liquidated through the Risk-Based Liquidation Adjustment flow will not have any order or trade records returned by this endpoint. Query the capital flow endpoint instead: Query Cross Isolated Margin Capital Flow.
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous query_users_margin_force_orders().
|
inlinenodiscard |
Query User's UM Force Orders (USER_DATA).
GET /papi/v1/um/forceOrders.
Query User's UM Force Orders
Weight: - 20 with symbol
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous query_users_um_force_orders().
|
inlinenodiscard |
UM Account Trade List (USER_DATA).
GET /papi/v1/um/userTrades.
Get trades for a specific account and UM symbol.
Weight(IP): 5
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous um_account_trade_list().
|
inlinenodiscard |
UM Position ADL Quantile Estimation (USER_DATA).
GET /papi/v1/um/adlQuantile.
Query UM Position ADL Quantile Estimation
Weight(IP): 5
Security Type: USER_DATA
|
inline |
Asynchronous um_position_adl_quantile_estimation().
|
inlinenodiscard |
Close User Data Stream (USER_STREAM).
DELETE /papi/v1/listenKey.
Close out a user data stream.
Weight(IP): 1
Security Type: USER_STREAM
|
inline |
Asynchronous close_user_data_stream().
|
inlinenodiscard |
Keepalive User Data Stream (USER_STREAM).
PUT /papi/v1/listenKey.
Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
|
inline |
Asynchronous keepalive_user_data_stream().
|
inlinenodiscard |
Start User Data Stream (USER_STREAM).
POST /papi/v1/listenKey.
Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
|
inline |
Asynchronous start_user_data_stream().