Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::derivatives_trading_usds_futures::rest_api::RestApi Class Reference

DerivativesTradingUsdsFutures REST API client. More...

#include <rest_api.hpp>

Public Member Functions

 RestApi (common::RestApiConfig configuration)
 Throws common::ConfigError if the configuration is invalid.
const common::RestApiConfig & configuration () const noexcept
template<class T>
common::RestApiResponse< T > send_request (std::string endpoint, common::HttpMethod method, common::Params query={}, common::Params body={}) const
 Calls an endpoint the SDK does not wrap yet. T may be boost::json::value.
template<class T>
common::RestApiResponse< T > send_signed_request (std::string endpoint, common::HttpMethod method, common::Params query={}, common::Params body={}) const
 Like send_request, but signed (adds timestamp and signature).
template<class T, class CompletionToken>
auto async_send_request (std::string endpoint, common::HttpMethod method, common::Params query, common::Params body, CompletionToken &&token) const
template<class T, class CompletionToken>
auto async_send_signed_request (std::string endpoint, common::HttpMethod method, common::Params query, common::Params body, CompletionToken &&token) const
common::RestApiResponse< AccountInformationV2Response > account_information_v2 (const AccountInformationV2Params &params={}) const
 Account Information V2 (USER_DATA).
template<class CompletionToken>
auto async_account_information_v2 (const AccountInformationV2Params &params, CompletionToken &&token) const
 Asynchronous account_information_v2().
common::RestApiResponse< AccountInformationV3Response > account_information_v3 (const AccountInformationV3Params &params={}) const
 Account Information V3 (USER_DATA).
template<class CompletionToken>
auto async_account_information_v3 (const AccountInformationV3Params &params, CompletionToken &&token) const
 Asynchronous account_information_v3().
common::RestApiResponse< std::vector< FuturesAccountBalanceV2ResponseInner > > futures_account_balance_v2 (const FuturesAccountBalanceV2Params &params={}) const
 Futures Account Balance V2 (USER_DATA).
template<class CompletionToken>
auto async_futures_account_balance_v2 (const FuturesAccountBalanceV2Params &params, CompletionToken &&token) const
 Asynchronous futures_account_balance_v2().
common::RestApiResponse< std::vector< FuturesAccountBalanceV2ResponseInner > > futures_account_balance_v3 (const FuturesAccountBalanceV3Params &params={}) const
 Futures Account Balance V3 (USER_DATA).
template<class CompletionToken>
auto async_futures_account_balance_v3 (const FuturesAccountBalanceV3Params &params, CompletionToken &&token) const
 Asynchronous futures_account_balance_v3().
common::RestApiResponse< FuturesAccountConfigurationResponse > futures_account_configuration (const FuturesAccountConfigurationParams &params={}) const
 Futures Account Configuration (USER_DATA).
template<class CompletionToken>
auto async_futures_account_configuration (const FuturesAccountConfigurationParams &params, CompletionToken &&token) const
 Asynchronous futures_account_configuration().
common::RestApiResponse< FuturesTradingQuantitativeRulesIndicatorsResponse > futures_trading_quantitative_rules_indicators (const FuturesTradingQuantitativeRulesIndicatorsParams &params={}) const
 Futures Trading Quantitative Rules Indicators (USER_DATA).
template<class CompletionToken>
auto async_futures_trading_quantitative_rules_indicators (const FuturesTradingQuantitativeRulesIndicatorsParams &params, CompletionToken &&token) const
 Asynchronous futures_trading_quantitative_rules_indicators().
common::RestApiResponse< GetBnbBurnStatusResponse > get_bnb_burn_status (const GetBnbBurnStatusParams &params={}) const
 Get BNB Burn Status (USER_DATA).
template<class CompletionToken>
auto async_get_bnb_burn_status (const GetBnbBurnStatusParams &params, CompletionToken &&token) const
 Asynchronous get_bnb_burn_status().
common::RestApiResponse< ToggleBnbBurnOnFuturesTradeResponse > toggle_bnb_burn_on_futures_trade (const ToggleBnbBurnOnFuturesTradeParams &params) const
 Toggle BNB Burn On Futures Trade (TRADE).
template<class CompletionToken>
auto async_toggle_bnb_burn_on_futures_trade (const ToggleBnbBurnOnFuturesTradeParams &params, CompletionToken &&token) const
 Asynchronous toggle_bnb_burn_on_futures_trade().
common::RestApiResponse< GetCurrentMultiAssetsModeResponse > get_current_multi_assets_mode (const GetCurrentMultiAssetsModeParams &params={}) const
 Get Current Multi-Assets Mode (USER_DATA).
template<class CompletionToken>
auto async_get_current_multi_assets_mode (const GetCurrentMultiAssetsModeParams &params, CompletionToken &&token) const
 Asynchronous get_current_multi_assets_mode().
common::RestApiResponse< GetCurrentPositionModeResponse > get_current_position_mode (const GetCurrentPositionModeParams &params={}) const
 Get Current Position Mode (USER_DATA).
template<class CompletionToken>
auto async_get_current_position_mode (const GetCurrentPositionModeParams &params, CompletionToken &&token) const
 Asynchronous get_current_position_mode().
common::RestApiResponse< GetDownloadIdForFuturesOrderHistoryResponse > get_download_id_for_futures_order_history (const GetDownloadIdForFuturesOrderHistoryParams &params) const
 Get Download Id For Futures Order History (USER_DATA).
template<class CompletionToken>
auto async_get_download_id_for_futures_order_history (const GetDownloadIdForFuturesOrderHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_download_id_for_futures_order_history().
common::RestApiResponse< GetDownloadIdForFuturesTradeHistoryResponse > get_download_id_for_futures_trade_history (const GetDownloadIdForFuturesTradeHistoryParams &params) const
 Get Download Id For Futures Trade History (USER_DATA).
template<class CompletionToken>
auto async_get_download_id_for_futures_trade_history (const GetDownloadIdForFuturesTradeHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_download_id_for_futures_trade_history().
common::RestApiResponse< GetDownloadIdForFuturesTransactionHistoryResponse > get_download_id_for_futures_transaction_history (const GetDownloadIdForFuturesTransactionHistoryParams &params) const
 Get Download Id For Futures Transaction History (USER_DATA).
template<class CompletionToken>
auto async_get_download_id_for_futures_transaction_history (const GetDownloadIdForFuturesTransactionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_download_id_for_futures_transaction_history().
common::RestApiResponse< GetFuturesOrderHistoryDownloadLinkByIdResponse > get_futures_order_history_download_link_by_id (const GetFuturesOrderHistoryDownloadLinkByIdParams &params) const
 Get Futures Order History Download Link by Id (USER_DATA).
template<class CompletionToken>
auto async_get_futures_order_history_download_link_by_id (const GetFuturesOrderHistoryDownloadLinkByIdParams &params, CompletionToken &&token) const
 Asynchronous get_futures_order_history_download_link_by_id().
common::RestApiResponse< GetFuturesTradeDownloadLinkByIdResponse > get_futures_trade_download_link_by_id (const GetFuturesTradeDownloadLinkByIdParams &params) const
 Get Futures Trade Download Link by Id (USER_DATA).
template<class CompletionToken>
auto async_get_futures_trade_download_link_by_id (const GetFuturesTradeDownloadLinkByIdParams &params, CompletionToken &&token) const
 Asynchronous get_futures_trade_download_link_by_id().
common::RestApiResponse< GetFuturesTransactionHistoryDownloadLinkByIdResponse > get_futures_transaction_history_download_link_by_id (const GetFuturesTransactionHistoryDownloadLinkByIdParams &params) const
 Get Futures Transaction History Download Link by Id (USER_DATA).
template<class CompletionToken>
auto async_get_futures_transaction_history_download_link_by_id (const GetFuturesTransactionHistoryDownloadLinkByIdParams &params, CompletionToken &&token) const
 Asynchronous get_futures_transaction_history_download_link_by_id().
common::RestApiResponse< std::vector< GetIncomeHistoryResponseInner > > get_income_history (const GetIncomeHistoryParams &params={}) const
 Get Income History (USER_DATA).
template<class CompletionToken>
auto async_get_income_history (const GetIncomeHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_income_history().
common::RestApiResponse< NotionalAndLeverageBracketsResponse > notional_and_leverage_brackets (const NotionalAndLeverageBracketsParams &params={}) const
 Notional and Leverage Brackets (USER_DATA).
template<class CompletionToken>
auto async_notional_and_leverage_brackets (const NotionalAndLeverageBracketsParams &params, CompletionToken &&token) const
 Asynchronous notional_and_leverage_brackets().
common::RestApiResponse< std::vector< QueryUserRateLimitResponseInner > > query_user_rate_limit (const QueryUserRateLimitParams &params={}) const
 Query User Rate Limit (USER_DATA).
template<class CompletionToken>
auto async_query_user_rate_limit (const QueryUserRateLimitParams &params, CompletionToken &&token) const
 Asynchronous query_user_rate_limit().
common::RestApiResponse< std::vector< SymbolConfigurationResponseInner > > symbol_configuration (const SymbolConfigurationParams &params={}) const
 Symbol Configuration (USER_DATA).
template<class CompletionToken>
auto async_symbol_configuration (const SymbolConfigurationParams &params, CompletionToken &&token) const
 Asynchronous symbol_configuration().
common::RestApiResponse< UserCommissionRateResponse > user_commission_rate (const UserCommissionRateParams &params) const
 User Commission Rate (USER_DATA).
template<class CompletionToken>
auto async_user_commission_rate (const UserCommissionRateParams &params, CompletionToken &&token) const
 Asynchronous user_commission_rate().
common::RestApiResponse< AcceptTheOfferedQuoteResponse > accept_the_offered_quote (const AcceptTheOfferedQuoteParams &params) const
 Accept the offered quote (USER_DATA).
template<class CompletionToken>
auto async_accept_the_offered_quote (const AcceptTheOfferedQuoteParams &params, CompletionToken &&token) const
 Asynchronous accept_the_offered_quote().
common::RestApiResponse< std::vector< ListAllConvertPairsResponseInner > > list_all_convert_pairs (const ListAllConvertPairsParams &params={}) const
 List All Convert Pairs.
template<class CompletionToken>
auto async_list_all_convert_pairs (const ListAllConvertPairsParams &params, CompletionToken &&token) const
 Asynchronous list_all_convert_pairs().
common::RestApiResponse< OrderStatusResponse > order_status (const OrderStatusParams &params={}) const
 Order status (USER_DATA).
template<class CompletionToken>
auto async_order_status (const OrderStatusParams &params, CompletionToken &&token) const
 Asynchronous order_status().
common::RestApiResponse< SendQuoteRequestResponse > send_quote_request (const SendQuoteRequestParams &params) const
 Send Quote Request (USER_DATA).
template<class CompletionToken>
auto async_send_quote_request (const SendQuoteRequestParams &params, CompletionToken &&token) const
 Asynchronous send_quote_request().
common::RestApiResponse< AdlRiskResponse > adl_risk (const AdlRiskParams &params={}) const
 ADL Risk.
template<class CompletionToken>
auto async_adl_risk (const AdlRiskParams &params, CompletionToken &&token) const
 Asynchronous adl_risk().
common::RestApiResponse< AssetIndexResponse > asset_index (const AssetIndexParams &params={}) const
 Multi-Assets Mode Asset Index.
template<class CompletionToken>
auto async_asset_index (const AssetIndexParams &params, CompletionToken &&token) const
 Asynchronous asset_index().
common::RestApiResponse< std::vector< BasisResponseInner > > basis (const BasisParams &params) const
 Basis.
template<class CompletionToken>
auto async_basis (const BasisParams &params, CompletionToken &&token) const
 Asynchronous basis().
common::RestApiResponse< CheckServerTimeResponse > check_server_time () const
 Check Server Time.
template<class CompletionToken>
auto async_check_server_time (CompletionToken &&token) const
 Asynchronous check_server_time().
common::RestApiResponse< std::vector< CompositeIndexSymbolInformationResponseInner > > composite_index_symbol_information (const CompositeIndexSymbolInformationParams &params={}) const
 Composite Index Symbol Information.
template<class CompletionToken>
auto async_composite_index_symbol_information (const CompositeIndexSymbolInformationParams &params, CompletionToken &&token) const
 Asynchronous composite_index_symbol_information().
common::RestApiResponse< std::vector< CompressedAggregateTradesListResponseInner > > compressed_aggregate_trades_list (const CompressedAggregateTradesListParams &params) const
 Compressed/Aggregate Trades List.
template<class CompletionToken>
auto async_compressed_aggregate_trades_list (const CompressedAggregateTradesListParams &params, CompletionToken &&token) const
 Asynchronous compressed_aggregate_trades_list().
common::RestApiResponse< std::vector< std::vector< ContinuousContractKlineCandlestickDataItemInner > > > continuous_contract_kline_candlestick_data (const ContinuousContractKlineCandlestickDataParams &params) const
 Continuous Contract Kline/Candlestick Data.
template<class CompletionToken>
auto async_continuous_contract_kline_candlestick_data (const ContinuousContractKlineCandlestickDataParams &params, CompletionToken &&token) const
 Asynchronous continuous_contract_kline_candlestick_data().
common::RestApiResponse< ExchangeInformationResponse > exchange_information () const
 Exchange Information.
template<class CompletionToken>
auto async_exchange_information (CompletionToken &&token) const
 Asynchronous exchange_information().
common::RestApiResponse< std::vector< GetFundingRateHistoryResponseInner > > get_funding_rate_history (const GetFundingRateHistoryParams &params={}) const
 Get Funding Rate History.
template<class CompletionToken>
auto async_get_funding_rate_history (const GetFundingRateHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_funding_rate_history().
common::RestApiResponse< std::vector< GetFundingRateInfoResponseInner > > get_funding_rate_info () const
 Get Funding Rate Info.
template<class CompletionToken>
auto async_get_funding_rate_info (CompletionToken &&token) const
 Asynchronous get_funding_rate_info().
common::RestApiResponse< std::vector< std::vector< IndexPriceKlineCandlestickDataItemInner > > > index_price_kline_candlestick_data (const IndexPriceKlineCandlestickDataParams &params) const
 Index Price Kline/Candlestick Data.
template<class CompletionToken>
auto async_index_price_kline_candlestick_data (const IndexPriceKlineCandlestickDataParams &params, CompletionToken &&token) const
 Asynchronous index_price_kline_candlestick_data().
common::RestApiResponse< std::vector< std::vector< KlineCandlestickDataItemInner > > > kline_candlestick_data (const KlineCandlestickDataParams &params) const
 Kline/Candlestick Data.
template<class CompletionToken>
auto async_kline_candlestick_data (const KlineCandlestickDataParams &params, CompletionToken &&token) const
 Asynchronous kline_candlestick_data().
common::RestApiResponse< std::vector< LongShortRatioResponseInner > > long_short_ratio (const LongShortRatioParams &params) const
 Long/Short Ratio.
template<class CompletionToken>
auto async_long_short_ratio (const LongShortRatioParams &params, CompletionToken &&token) const
 Asynchronous long_short_ratio().
common::RestApiResponse< MarkPriceResponse > mark_price (const MarkPriceParams &params={}) const
 Mark Price.
template<class CompletionToken>
auto async_mark_price (const MarkPriceParams &params, CompletionToken &&token) const
 Asynchronous mark_price().
common::RestApiResponse< std::vector< std::vector< MarkPriceKlineCandlestickDataItemInner > > > mark_price_kline_candlestick_data (const MarkPriceKlineCandlestickDataParams &params) const
 Mark Price Kline/Candlestick Data.
template<class CompletionToken>
auto async_mark_price_kline_candlestick_data (const MarkPriceKlineCandlestickDataParams &params, CompletionToken &&token) const
 Asynchronous mark_price_kline_candlestick_data().
common::RestApiResponse< std::vector< OldTradesLookupResponseInner > > old_trades_lookup (const OldTradesLookupParams &params) const
 Old Trades Lookup (MARKET_DATA).
template<class CompletionToken>
auto async_old_trades_lookup (const OldTradesLookupParams &params, CompletionToken &&token) const
 Asynchronous old_trades_lookup().
common::RestApiResponse< OpenInterestResponse > open_interest (const OpenInterestParams &params) const
 Open Interest.
template<class CompletionToken>
auto async_open_interest (const OpenInterestParams &params, CompletionToken &&token) const
 Asynchronous open_interest().
common::RestApiResponse< std::vector< OpenInterestStatisticsResponseInner > > open_interest_statistics (const OpenInterestStatisticsParams &params) const
 Open Interest Statistics.
template<class CompletionToken>
auto async_open_interest_statistics (const OpenInterestStatisticsParams &params, CompletionToken &&token) const
 Asynchronous open_interest_statistics().
common::RestApiResponse< OrderBookResponse > order_book (const OrderBookParams &params) const
 Order Book.
template<class CompletionToken>
auto async_order_book (const OrderBookParams &params, CompletionToken &&token) const
 Asynchronous order_book().
common::RestApiResponse< std::vector< std::vector< PremiumIndexKlineDataItemInner > > > premium_index_kline_data (const PremiumIndexKlineDataParams &params) const
 Premium index Kline Data.
template<class CompletionToken>
auto async_premium_index_kline_data (const PremiumIndexKlineDataParams &params, CompletionToken &&token) const
 Asynchronous premium_index_kline_data().
common::RestApiResponse< std::vector< QuarterlyContractSettlementPriceResponseInner > > quarterly_contract_settlement_price (const QuarterlyContractSettlementPriceParams &params) const
 Quarterly Contract Settlement Price.
template<class CompletionToken>
auto async_quarterly_contract_settlement_price (const QuarterlyContractSettlementPriceParams &params, CompletionToken &&token) const
 Asynchronous quarterly_contract_settlement_price().
common::RestApiResponse< QueryIndexPriceConstituentsResponse > query_index_price_constituents (const QueryIndexPriceConstituentsParams &params) const
 Query Index Price Constituents.
template<class CompletionToken>
auto async_query_index_price_constituents (const QueryIndexPriceConstituentsParams &params, CompletionToken &&token) const
 Asynchronous query_index_price_constituents().
common::RestApiResponse< QueryInsuranceFundBalanceSnapshotResponse > query_insurance_fund_balance_snapshot (const QueryInsuranceFundBalanceSnapshotParams &params={}) const
 Query Insurance Fund Balance Snapshot.
template<class CompletionToken>
auto async_query_insurance_fund_balance_snapshot (const QueryInsuranceFundBalanceSnapshotParams &params, CompletionToken &&token) const
 Asynchronous query_insurance_fund_balance_snapshot().
common::RestApiResponse< std::vector< RecentTradesListResponseInner > > recent_trades_list (const RecentTradesListParams &params) const
 Recent Trades List.
template<class CompletionToken>
auto async_recent_trades_list (const RecentTradesListParams &params, CompletionToken &&token) const
 Asynchronous recent_trades_list().
common::RestApiResponse< RpiOrderBookResponse > rpi_order_book (const RpiOrderBookParams &params) const
 RPI Order Book.
template<class CompletionToken>
auto async_rpi_order_book (const RpiOrderBookParams &params, CompletionToken &&token) const
 Asynchronous rpi_order_book().
common::RestApiResponse< SymbolOrderBookTickerResponse > symbol_order_book_ticker (const SymbolOrderBookTickerParams &params={}) const
 Symbol Order Book Ticker.
template<class CompletionToken>
auto async_symbol_order_book_ticker (const SymbolOrderBookTickerParams &params, CompletionToken &&token) const
 Asynchronous symbol_order_book_ticker().
common::RestApiResponse< SymbolPriceTickerResponse > symbol_price_ticker (const SymbolPriceTickerParams &params={}) const
 Symbol Price Ticker.
template<class CompletionToken>
auto async_symbol_price_ticker (const SymbolPriceTickerParams &params, CompletionToken &&token) const
 Asynchronous symbol_price_ticker().
common::RestApiResponse< SymbolPriceTickerV2Response > symbol_price_ticker_v2 (const SymbolPriceTickerV2Params &params={}) const
 Symbol Price Ticker V2.
template<class CompletionToken>
auto async_symbol_price_ticker_v2 (const SymbolPriceTickerV2Params &params, CompletionToken &&token) const
 Asynchronous symbol_price_ticker_v2().
common::RestApiResponse< std::vector< TakerBuySellVolumeResponseInner > > taker_buy_sell_volume (const TakerBuySellVolumeParams &params) const
 Taker Buy/Sell Volume.
template<class CompletionToken>
auto async_taker_buy_sell_volume (const TakerBuySellVolumeParams &params, CompletionToken &&token) const
 Asynchronous taker_buy_sell_volume().
common::RestApiResponse< boost::json::value > test_connectivity () const
 Test Connectivity.
template<class CompletionToken>
auto async_test_connectivity (CompletionToken &&token) const
 Asynchronous test_connectivity().
common::RestApiResponse< Ticker24hrPriceChangeStatisticsResponse > ticker24hr_price_change_statistics (const Ticker24hrPriceChangeStatisticsParams &params={}) const
 24hr Ticker Price Change Statistics
template<class CompletionToken>
auto async_ticker24hr_price_change_statistics (const Ticker24hrPriceChangeStatisticsParams &params, CompletionToken &&token) const
 Asynchronous ticker24hr_price_change_statistics().
common::RestApiResponse< std::vector< TopTraderLongShortRatioAccountsResponseInner > > top_trader_long_short_ratio_accounts (const TopTraderLongShortRatioAccountsParams &params) const
 Top Trader Long/Short Account Ratio (MARKET_DATA).
template<class CompletionToken>
auto async_top_trader_long_short_ratio_accounts (const TopTraderLongShortRatioAccountsParams &params, CompletionToken &&token) const
 Asynchronous top_trader_long_short_ratio_accounts().
common::RestApiResponse< std::vector< TopTraderLongShortRatioPositionsResponseInner > > top_trader_long_short_ratio_positions (const TopTraderLongShortRatioPositionsParams &params) const
 Top Trader Long/Short Position Ratio (MARKET_DATA).
template<class CompletionToken>
auto async_top_trader_long_short_ratio_positions (const TopTraderLongShortRatioPositionsParams &params, CompletionToken &&token) const
 Asynchronous top_trader_long_short_ratio_positions().
common::RestApiResponse< TradingScheduleResponse > trading_schedule () const
 Trading Schedule.
template<class CompletionToken>
auto async_trading_schedule (CompletionToken &&token) const
 Asynchronous trading_schedule().
common::RestApiResponse< ClassicPortfolioMarginAccountInformationResponse > classic_portfolio_margin_account_information (const ClassicPortfolioMarginAccountInformationParams &params) const
 Classic Portfolio Margin Account Information (USER_DATA).
template<class CompletionToken>
auto async_classic_portfolio_margin_account_information (const ClassicPortfolioMarginAccountInformationParams &params, CompletionToken &&token) const
 Asynchronous classic_portfolio_margin_account_information().
common::RestApiResponse< std::vector< AccountTradeListResponseInner > > account_trade_list (const AccountTradeListParams &params) const
 Account Trade List (USER_DATA).
template<class CompletionToken>
auto async_account_trade_list (const AccountTradeListParams &params, CompletionToken &&token) const
 Asynchronous account_trade_list().
common::RestApiResponse< std::vector< AllOrdersResponseInner > > all_orders (const AllOrdersParams &params={}) const
 All Orders (USER_DATA).
template<class CompletionToken>
auto async_all_orders (const AllOrdersParams &params, CompletionToken &&token) const
 Asynchronous all_orders().
common::RestApiResponse< AutoCancelAllOpenOrdersResponse > auto_cancel_all_open_orders (const AutoCancelAllOpenOrdersParams &params) const
 Auto-Cancel All Open Orders (TRADE).
template<class CompletionToken>
auto async_auto_cancel_all_open_orders (const AutoCancelAllOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous auto_cancel_all_open_orders().
common::RestApiResponse< CancelAlgoOrderResponse > cancel_algo_order (const CancelAlgoOrderParams &params={}) const
 Cancel Algo Order (TRADE).
template<class CompletionToken>
auto async_cancel_algo_order (const CancelAlgoOrderParams &params, CompletionToken &&token) const
 Asynchronous cancel_algo_order().
common::RestApiResponse< NewAlgoOrderResponse > new_algo_order (const NewAlgoOrderParams &params) const
 New Algo Order (TRADE).
template<class CompletionToken>
auto async_new_algo_order (const NewAlgoOrderParams &params, CompletionToken &&token) const
 Asynchronous new_algo_order().
common::RestApiResponse< QueryAlgoOrderResponse > query_algo_order (const QueryAlgoOrderParams &params={}) const
 Query Algo Order (USER_DATA).
template<class CompletionToken>
auto async_query_algo_order (const QueryAlgoOrderParams &params, CompletionToken &&token) const
 Asynchronous query_algo_order().
common::RestApiResponse< CancelAllAlgoOpenOrdersResponse > cancel_all_algo_open_orders (const CancelAllAlgoOpenOrdersParams &params) const
 Cancel All Algo Open Orders (TRADE).
template<class CompletionToken>
auto async_cancel_all_algo_open_orders (const CancelAllAlgoOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous cancel_all_algo_open_orders().
common::RestApiResponse< CancelAllOpenOrdersResponse > cancel_all_open_orders (const CancelAllOpenOrdersParams &params) const
 Cancel All Open Orders (TRADE).
template<class CompletionToken>
auto async_cancel_all_open_orders (const CancelAllOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous cancel_all_open_orders().
common::RestApiResponse< std::vector< CancelMultipleOrdersResponseInner > > cancel_multiple_orders (const CancelMultipleOrdersParams &params) const
 Cancel Multiple Orders (TRADE).
template<class CompletionToken>
auto async_cancel_multiple_orders (const CancelMultipleOrdersParams &params, CompletionToken &&token) const
 Asynchronous cancel_multiple_orders().
common::RestApiResponse< std::vector< ModifyMultipleOrdersResponseInner > > modify_multiple_orders (const ModifyMultipleOrdersParams &params) const
 Modify Multiple Orders (TRADE).
template<class CompletionToken>
auto async_modify_multiple_orders (const ModifyMultipleOrdersParams &params, CompletionToken &&token) const
 Asynchronous modify_multiple_orders().
common::RestApiResponse< std::vector< PlaceMultipleOrdersResponseInner > > place_multiple_orders (const PlaceMultipleOrdersParams &params) const
 Place Multiple Orders (TRADE).
template<class CompletionToken>
auto async_place_multiple_orders (const PlaceMultipleOrdersParams &params, CompletionToken &&token) const
 Asynchronous place_multiple_orders().
common::RestApiResponse< CancelOrderResponse > cancel_order (const CancelOrderParams &params) const
 Cancel Order (TRADE).
template<class CompletionToken>
auto async_cancel_order (const CancelOrderParams &params, CompletionToken &&token) const
 Asynchronous cancel_order().
common::RestApiResponse< ModifyOrderResponse > modify_order (const ModifyOrderParams &params) const
 Modify Order (TRADE).
template<class CompletionToken>
auto async_modify_order (const ModifyOrderParams &params, CompletionToken &&token) const
 Asynchronous modify_order().
common::RestApiResponse< NewOrderResponse > new_order (const NewOrderParams &params) const
 New Order (TRADE).
template<class CompletionToken>
auto async_new_order (const NewOrderParams &params, CompletionToken &&token) const
 Asynchronous new_order().
common::RestApiResponse< QueryOrderResponse > query_order (const QueryOrderParams &params) const
 Query Order (USER_DATA).
template<class CompletionToken>
auto async_query_order (const QueryOrderParams &params, CompletionToken &&token) const
 Asynchronous query_order().
common::RestApiResponse< ChangeInitialLeverageResponse > change_initial_leverage (const ChangeInitialLeverageParams &params) const
 Change Initial Leverage (TRADE).
template<class CompletionToken>
auto async_change_initial_leverage (const ChangeInitialLeverageParams &params, CompletionToken &&token) const
 Asynchronous change_initial_leverage().
common::RestApiResponse< ChangeMarginTypeResponse > change_margin_type (const ChangeMarginTypeParams &params) const
 Change Margin Type (TRADE).
template<class CompletionToken>
auto async_change_margin_type (const ChangeMarginTypeParams &params, CompletionToken &&token) const
 Asynchronous change_margin_type().
common::RestApiResponse< ChangeMultiAssetsModeResponse > change_multi_assets_mode (const ChangeMultiAssetsModeParams &params) const
 Change Multi-Assets Mode (TRADE).
template<class CompletionToken>
auto async_change_multi_assets_mode (const ChangeMultiAssetsModeParams &params, CompletionToken &&token) const
 Asynchronous change_multi_assets_mode().
common::RestApiResponse< ChangePositionModeResponse > change_position_mode (const ChangePositionModeParams &params) const
 Change Position Mode (TRADE).
template<class CompletionToken>
auto async_change_position_mode (const ChangePositionModeParams &params, CompletionToken &&token) const
 Asynchronous change_position_mode().
common::RestApiResponse< std::vector< CurrentAllAlgoOpenOrdersResponseInner > > current_all_algo_open_orders (const CurrentAllAlgoOpenOrdersParams &params={}) const
 Current All Algo Open Orders (USER_DATA).
template<class CompletionToken>
auto async_current_all_algo_open_orders (const CurrentAllAlgoOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous current_all_algo_open_orders().
common::RestApiResponse< std::vector< CurrentAllOpenOrdersResponseInner > > current_all_open_orders (const CurrentAllOpenOrdersParams &params={}) const
 Current All Open Orders (USER_DATA).
template<class CompletionToken>
auto async_current_all_open_orders (const CurrentAllOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous current_all_open_orders().
common::RestApiResponse< FuturesTradfiPerpsContractResponse > futures_tradfi_perps_contract (const FuturesTradfiPerpsContractParams &params={}) const
 Futures TradFi Perps Contract (USER_DATA).
template<class CompletionToken>
auto async_futures_tradfi_perps_contract (const FuturesTradfiPerpsContractParams &params, CompletionToken &&token) const
 Asynchronous futures_tradfi_perps_contract().
common::RestApiResponse< std::vector< GetOrderModifyHistoryResponseInner > > get_order_modify_history (const GetOrderModifyHistoryParams &params) const
 Get Order Modify History (USER_DATA).
template<class CompletionToken>
auto async_get_order_modify_history (const GetOrderModifyHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_order_modify_history().
common::RestApiResponse< std::vector< GetPositionMarginChangeHistoryResponseInner > > get_position_margin_change_history (const GetPositionMarginChangeHistoryParams &params) const
 Get Position Margin Change History (TRADE).
template<class CompletionToken>
auto async_get_position_margin_change_history (const GetPositionMarginChangeHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_position_margin_change_history().
common::RestApiResponse< ModifyIsolatedPositionMarginResponse > modify_isolated_position_margin (const ModifyIsolatedPositionMarginParams &params) const
 Modify Isolated Position Margin (TRADE).
template<class CompletionToken>
auto async_modify_isolated_position_margin (const ModifyIsolatedPositionMarginParams &params, CompletionToken &&token) const
 Asynchronous modify_isolated_position_margin().
common::RestApiResponse< std::vector< PositionAdlQuantileEstimationResponseInner > > position_adl_quantile_estimation (const PositionAdlQuantileEstimationParams &params={}) const
 Position ADL Quantile Estimation (USER_DATA).
template<class CompletionToken>
auto async_position_adl_quantile_estimation (const PositionAdlQuantileEstimationParams &params, CompletionToken &&token) const
 Asynchronous position_adl_quantile_estimation().
common::RestApiResponse< std::vector< PositionInformationV2ResponseInner > > position_information_v2 (const PositionInformationV2Params &params={}) const
 Position Information V2 (USER_DATA).
template<class CompletionToken>
auto async_position_information_v2 (const PositionInformationV2Params &params, CompletionToken &&token) const
 Asynchronous position_information_v2().
common::RestApiResponse< std::vector< PositionInformationV3ResponseInner > > position_information_v3 (const PositionInformationV3Params &params={}) const
 Position Information V3 (USER_DATA).
template<class CompletionToken>
auto async_position_information_v3 (const PositionInformationV3Params &params, CompletionToken &&token) const
 Asynchronous position_information_v3().
common::RestApiResponse< std::vector< QueryAllAlgoOrdersResponseInner > > query_all_algo_orders (const QueryAllAlgoOrdersParams &params) const
 Query All Algo Orders (USER_DATA).
template<class CompletionToken>
auto async_query_all_algo_orders (const QueryAllAlgoOrdersParams &params, CompletionToken &&token) const
 Asynchronous query_all_algo_orders().
common::RestApiResponse< QueryCurrentOpenOrderResponse > query_current_open_order (const QueryCurrentOpenOrderParams &params) const
 Query Current Open Order (USER_DATA).
template<class CompletionToken>
auto async_query_current_open_order (const QueryCurrentOpenOrderParams &params, CompletionToken &&token) const
 Asynchronous query_current_open_order().
common::RestApiResponse< TestOrderResponse > test_order (const TestOrderParams &params) const
 Test Order (TRADE).
template<class CompletionToken>
auto async_test_order (const TestOrderParams &params, CompletionToken &&token) const
 Asynchronous test_order().
common::RestApiResponse< std::vector< UsersForceOrdersResponseInner > > users_force_orders (const UsersForceOrdersParams &params={}) const
 User's Force Orders (USER_DATA).
template<class CompletionToken>
auto async_users_force_orders (const UsersForceOrdersParams &params, CompletionToken &&token) const
 Asynchronous users_force_orders().
common::RestApiResponse< boost::json::value > close_user_data_stream () const
 Close User Data Stream (USER_STREAM).
template<class CompletionToken>
auto async_close_user_data_stream (CompletionToken &&token) const
 Asynchronous close_user_data_stream().
common::RestApiResponse< KeepaliveUserDataStreamResponse > keepalive_user_data_stream () const
 Keepalive User Data Stream (USER_STREAM).
template<class CompletionToken>
auto async_keepalive_user_data_stream (CompletionToken &&token) const
 Asynchronous keepalive_user_data_stream().
common::RestApiResponse< StartUserDataStreamResponse > start_user_data_stream () const
 Start User Data Stream (USER_STREAM).
template<class CompletionToken>
auto async_start_user_data_stream (CompletionToken &&token) const
 Asynchronous start_user_data_stream().

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 Usds Futures REST API).
static RestApi testnet (common::RestApiConfig config)
 A client for the testnet.
static RestApi demo (common::RestApiConfig config)
 A client for the demo environment.

Detailed Description

DerivativesTradingUsdsFutures 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.

Constructor & Destructor Documentation

◆ RestApi()

binance::derivatives_trading_usds_futures::rest_api::RestApi::RestApi ( common::RestApiConfig configuration)
explicit

Throws common::ConfigError if the configuration is invalid.

Member Function Documentation

◆ from_config()

RestApi binance::derivatives_trading_usds_futures::rest_api::RestApi::from_config ( common::RestApiConfig config)
staticnodiscard

A client for config.base_path, production when it is not set.

◆ production()

RestApi binance::derivatives_trading_usds_futures::rest_api::RestApi::production ( common::RestApiConfig config)
staticnodiscard

A client for production (Derivatives Trading Usds Futures REST API).

◆ testnet()

RestApi binance::derivatives_trading_usds_futures::rest_api::RestApi::testnet ( common::RestApiConfig config)
staticnodiscard

A client for the testnet.

◆ demo()

RestApi binance::derivatives_trading_usds_futures::rest_api::RestApi::demo ( common::RestApiConfig config)
staticnodiscard

A client for the demo environment.

◆ configuration()

const common::RestApiConfig & binance::derivatives_trading_usds_futures::rest_api::RestApi::configuration ( ) const
nodiscardnoexcept

◆ send_request()

template<class T>
common::RestApiResponse< T > binance::derivatives_trading_usds_futures::rest_api::RestApi::send_request ( std::string endpoint,
common::HttpMethod method,
common::Params query = {},
common::Params body = {} ) const
inlinenodiscard

Calls an endpoint the SDK does not wrap yet. T may be boost::json::value.

◆ send_signed_request()

template<class T>
common::RestApiResponse< T > binance::derivatives_trading_usds_futures::rest_api::RestApi::send_signed_request ( std::string endpoint,
common::HttpMethod method,
common::Params query = {},
common::Params body = {} ) const
inlinenodiscard

Like send_request, but signed (adds timestamp and signature).

◆ async_send_request()

template<class T, class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_send_request ( std::string endpoint,
common::HttpMethod method,
common::Params query,
common::Params body,
CompletionToken && token ) const
inline

◆ async_send_signed_request()

template<class T, class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_send_signed_request ( std::string endpoint,
common::HttpMethod method,
common::Params query,
common::Params body,
CompletionToken && token ) const
inline

◆ account_information_v2()

common::RestApiResponse< AccountInformationV2Response > binance::derivatives_trading_usds_futures::rest_api::RestApi::account_information_v2 ( const AccountInformationV2Params & params = {}) const
inlinenodiscard

Account Information V2 (USER_DATA).

GET /fapi/v2/account.

Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#account-information-v2

◆ async_account_information_v2()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_account_information_v2 ( const AccountInformationV2Params & params,
CompletionToken && token ) const
inline

Asynchronous account_information_v2().

◆ account_information_v3()

common::RestApiResponse< AccountInformationV3Response > binance::derivatives_trading_usds_futures::rest_api::RestApi::account_information_v3 ( const AccountInformationV3Params & params = {}) const
inlinenodiscard

Account Information V3 (USER_DATA).

GET /fapi/v3/account.

Get current account information. User in single-asset/ multi-assets mode will see different value, see comments in response section for detail.

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#account-information-v3

◆ async_account_information_v3()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_account_information_v3 ( const AccountInformationV3Params & params,
CompletionToken && token ) const
inline

Asynchronous account_information_v3().

◆ futures_account_balance_v2()

common::RestApiResponse< std::vector< FuturesAccountBalanceV2ResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::futures_account_balance_v2 ( const FuturesAccountBalanceV2Params & params = {}) const
inlinenodiscard

Futures Account Balance V2 (USER_DATA).

GET /fapi/v2/balance.

Query account balance information.

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#futures-account-balance-v2

◆ async_futures_account_balance_v2()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_futures_account_balance_v2 ( const FuturesAccountBalanceV2Params & params,
CompletionToken && token ) const
inline

◆ futures_account_balance_v3()

common::RestApiResponse< std::vector< FuturesAccountBalanceV2ResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::futures_account_balance_v3 ( const FuturesAccountBalanceV3Params & params = {}) const
inlinenodiscard

Futures Account Balance V3 (USER_DATA).

GET /fapi/v3/balance.

Query account balance information.

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#futures-account-balance-v3

◆ async_futures_account_balance_v3()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_futures_account_balance_v3 ( const FuturesAccountBalanceV3Params & params,
CompletionToken && token ) const
inline

◆ futures_account_configuration()

common::RestApiResponse< FuturesAccountConfigurationResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::futures_account_configuration ( const FuturesAccountConfigurationParams & params = {}) const
inlinenodiscard

Futures Account Configuration (USER_DATA).

GET /fapi/v1/accountConfig.

Query account configuration

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#futures-account-configuration

◆ async_futures_account_configuration()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_futures_account_configuration ( const FuturesAccountConfigurationParams & params,
CompletionToken && token ) const
inline

◆ futures_trading_quantitative_rules_indicators()

common::RestApiResponse< FuturesTradingQuantitativeRulesIndicatorsResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::futures_trading_quantitative_rules_indicators ( const FuturesTradingQuantitativeRulesIndicatorsParams & params = {}) const
inlinenodiscard

Futures Trading Quantitative Rules Indicators (USER_DATA).

GET /fapi/v1/apiTradingStatus.

Futures trading quantitative rules indicators, for more information on this, please refer to the Futures Trading Quantitative Rules

Weight: - 1 for a single symbol

  • 10 when the symbol parameter is omitted

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#futures-trading-quantitative-rules-indicators

◆ async_futures_trading_quantitative_rules_indicators()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_futures_trading_quantitative_rules_indicators ( const FuturesTradingQuantitativeRulesIndicatorsParams & params,
CompletionToken && token ) const
inline

◆ get_bnb_burn_status()

common::RestApiResponse< GetBnbBurnStatusResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_bnb_burn_status ( const GetBnbBurnStatusParams & params = {}) const
inlinenodiscard

Get BNB Burn Status (USER_DATA).

GET /fapi/v1/feeBurn.

Get user's BNB Fee Discount (Fee Discount On or Fee Discount Off )

Weight(IP): 30

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-bnb-burn-status

◆ async_get_bnb_burn_status()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_bnb_burn_status ( const GetBnbBurnStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bnb_burn_status().

◆ toggle_bnb_burn_on_futures_trade()

common::RestApiResponse< ToggleBnbBurnOnFuturesTradeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::toggle_bnb_burn_on_futures_trade ( const ToggleBnbBurnOnFuturesTradeParams & params) const
inlinenodiscard

Toggle BNB Burn On Futures Trade (TRADE).

POST /fapi/v1/feeBurn.

Change user's BNB Fee Discount (Fee Discount On or Fee Discount Off ) on EVERY symbol

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#toggle-bnb-burn-on-futures-trade

◆ async_toggle_bnb_burn_on_futures_trade()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_toggle_bnb_burn_on_futures_trade ( const ToggleBnbBurnOnFuturesTradeParams & params,
CompletionToken && token ) const
inline

◆ get_current_multi_assets_mode()

common::RestApiResponse< GetCurrentMultiAssetsModeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_current_multi_assets_mode ( const GetCurrentMultiAssetsModeParams & params = {}) const
inlinenodiscard

Get Current Multi-Assets Mode (USER_DATA).

GET /fapi/v1/multiAssetsMargin.

Get user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol

Weight(IP): 30

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-current-multi-assets-mode

◆ async_get_current_multi_assets_mode()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_current_multi_assets_mode ( const GetCurrentMultiAssetsModeParams & params,
CompletionToken && token ) const
inline

◆ get_current_position_mode()

common::RestApiResponse< GetCurrentPositionModeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_current_position_mode ( const GetCurrentPositionModeParams & params = {}) const
inlinenodiscard

Get Current Position Mode (USER_DATA).

GET /fapi/v1/positionSide/dual.

Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol

Weight(IP): 30

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-current-position-mode

◆ async_get_current_position_mode()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_current_position_mode ( const GetCurrentPositionModeParams & params,
CompletionToken && token ) const
inline

◆ get_download_id_for_futures_order_history()

common::RestApiResponse< GetDownloadIdForFuturesOrderHistoryResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_download_id_for_futures_order_history ( const GetDownloadIdForFuturesOrderHistoryParams & params) const
inlinenodiscard

Get Download Id For Futures Order History (USER_DATA).

GET /fapi/v1/order/asyn.

Get Download Id For Futures Order History

Weight(IP): 1000

Security Type: USER_DATA

Notes:

  • Request Limitation is 10 times per month, shared by front end download page and rest api
  • The time between startTime and endTime can not be longer than 1 year

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-download-id-for-futures-order-history

◆ async_get_download_id_for_futures_order_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_download_id_for_futures_order_history ( const GetDownloadIdForFuturesOrderHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_download_id_for_futures_trade_history()

common::RestApiResponse< GetDownloadIdForFuturesTradeHistoryResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_download_id_for_futures_trade_history ( const GetDownloadIdForFuturesTradeHistoryParams & params) const
inlinenodiscard

Get Download Id For Futures Trade History (USER_DATA).

GET /fapi/v1/trade/asyn.

Get download id for futures trade history

Weight(IP): 1000

Security Type: USER_DATA

Notes:

  • Request Limitation is 5 times per month, shared by front end download page and rest api
  • The time between startTime and endTime can not be longer than 1 year

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-download-id-for-futures-trade-history

◆ async_get_download_id_for_futures_trade_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_download_id_for_futures_trade_history ( const GetDownloadIdForFuturesTradeHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_download_id_for_futures_transaction_history()

common::RestApiResponse< GetDownloadIdForFuturesTransactionHistoryResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_download_id_for_futures_transaction_history ( const GetDownloadIdForFuturesTransactionHistoryParams & params) const
inlinenodiscard

Get Download Id For Futures Transaction History (USER_DATA).

GET /fapi/v1/income/asyn.

Get download id for futures transaction history

Weight(IP): 1000

Security Type: USER_DATA

Notes:

  • The request limit is 100 times per month, shared across the front end download page and rest api, as well as between USDⓈ-M and COIN-M contracts.
  • The time between startTime and endTime can not be longer than 1 year

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-download-id-for-futures-transaction-history

◆ async_get_download_id_for_futures_transaction_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_download_id_for_futures_transaction_history ( const GetDownloadIdForFuturesTransactionHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_futures_order_history_download_link_by_id()

common::RestApiResponse< GetFuturesOrderHistoryDownloadLinkByIdResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_futures_order_history_download_link_by_id ( const GetFuturesOrderHistoryDownloadLinkByIdParams & params) const
inlinenodiscard

Get Futures Order History Download Link by Id (USER_DATA).

GET /fapi/v1/order/asyn/id.

Get futures order history download link by Id

Weight(IP): 10

Security Type: USER_DATA

Notes:

  • Download link expiration: 7 days

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-futures-order-history-download-link-by-id

◆ async_get_futures_order_history_download_link_by_id()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_futures_order_history_download_link_by_id ( const GetFuturesOrderHistoryDownloadLinkByIdParams & params,
CompletionToken && token ) const
inline

◆ get_futures_trade_download_link_by_id()

common::RestApiResponse< GetFuturesTradeDownloadLinkByIdResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_futures_trade_download_link_by_id ( const GetFuturesTradeDownloadLinkByIdParams & params) const
inlinenodiscard

Get Futures Trade Download Link by Id (USER_DATA).

GET /fapi/v1/trade/asyn/id.

Get futures trade download link by Id

Weight(IP): 10

Security Type: USER_DATA

Notes:

  • Download link expiration: 7 days

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-futures-trade-download-link-by-id

◆ async_get_futures_trade_download_link_by_id()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_futures_trade_download_link_by_id ( const GetFuturesTradeDownloadLinkByIdParams & params,
CompletionToken && token ) const
inline

◆ get_futures_transaction_history_download_link_by_id()

common::RestApiResponse< GetFuturesTransactionHistoryDownloadLinkByIdResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_futures_transaction_history_download_link_by_id ( const GetFuturesTransactionHistoryDownloadLinkByIdParams & params) const
inlinenodiscard

Get Futures Transaction History Download Link by Id (USER_DATA).

GET /fapi/v1/income/asyn/id.

Get futures transaction history download link by Id

Weight(IP): 10

Security Type: USER_DATA

Notes:

  • Download link expiration: 7 days

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-futures-transaction-history-download-link-by-id

◆ async_get_futures_transaction_history_download_link_by_id()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_futures_transaction_history_download_link_by_id ( const GetFuturesTransactionHistoryDownloadLinkByIdParams & params,
CompletionToken && token ) const
inline

◆ get_income_history()

common::RestApiResponse< std::vector< GetIncomeHistoryResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_income_history ( const GetIncomeHistoryParams & params = {}) const
inlinenodiscard

Get Income History (USER_DATA).

GET /fapi/v1/income.

Query income history

Weight(IP): 30

Security Type: USER_DATA

Notes:

  • If incomeType is not sent, all kinds of flow will be returned
  • If startTime and endTime are not sent, the recent 7-day data will be returned.
  • trandId is unique in the same incomeType for a user.
  • Income history only contains data for the last three months.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#get-income-history

◆ async_get_income_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_income_history ( const GetIncomeHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_income_history().

◆ notional_and_leverage_brackets()

common::RestApiResponse< NotionalAndLeverageBracketsResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::notional_and_leverage_brackets ( const NotionalAndLeverageBracketsParams & params = {}) const
inlinenodiscard

Notional and Leverage Brackets (USER_DATA).

GET /fapi/v1/leverageBracket.

Query user notional and leverage bracket on speicfic symbol

Weight(IP): 1

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#notional-and-leverage-brackets

◆ async_notional_and_leverage_brackets()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_notional_and_leverage_brackets ( const NotionalAndLeverageBracketsParams & params,
CompletionToken && token ) const
inline

◆ query_user_rate_limit()

common::RestApiResponse< std::vector< QueryUserRateLimitResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_user_rate_limit ( const QueryUserRateLimitParams & params = {}) const
inlinenodiscard

Query User Rate Limit (USER_DATA).

GET /fapi/v1/rateLimit/order.

Query User Rate Limit

Weight(IP): 1

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#query-user-rate-limit

◆ async_query_user_rate_limit()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_user_rate_limit ( const QueryUserRateLimitParams & params,
CompletionToken && token ) const
inline

Asynchronous query_user_rate_limit().

◆ symbol_configuration()

common::RestApiResponse< std::vector< SymbolConfigurationResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::symbol_configuration ( const SymbolConfigurationParams & params = {}) const
inlinenodiscard

Symbol Configuration (USER_DATA).

GET /fapi/v1/symbolConfig.

Get current account symbol configuration.

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#symbol-configuration

◆ async_symbol_configuration()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_symbol_configuration ( const SymbolConfigurationParams & params,
CompletionToken && token ) const
inline

Asynchronous symbol_configuration().

◆ user_commission_rate()

common::RestApiResponse< UserCommissionRateResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::user_commission_rate ( const UserCommissionRateParams & params) const
inlinenodiscard

User Commission Rate (USER_DATA).

GET /fapi/v1/commissionRate.

Get User Commission Rate

Weight(IP): 20

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/account#user-commission-rate

◆ async_user_commission_rate()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_user_commission_rate ( const UserCommissionRateParams & params,
CompletionToken && token ) const
inline

Asynchronous user_commission_rate().

◆ accept_the_offered_quote()

common::RestApiResponse< AcceptTheOfferedQuoteResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::accept_the_offered_quote ( const AcceptTheOfferedQuoteParams & params) const
inlinenodiscard

Accept the offered quote (USER_DATA).

POST /fapi/v1/convert/acceptQuote.

Accept the offered quote by quote ID.

Weight(IP): 200

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/convert#accept-the-offered-quote

◆ async_accept_the_offered_quote()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_accept_the_offered_quote ( const AcceptTheOfferedQuoteParams & params,
CompletionToken && token ) const
inline

◆ list_all_convert_pairs()

common::RestApiResponse< std::vector< ListAllConvertPairsResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::list_all_convert_pairs ( const ListAllConvertPairsParams & params = {}) const
inlinenodiscard

List All Convert Pairs.

GET /fapi/v1/convert/exchangeInfo.

Query for all convertible token pairs and the tokens’ respective upper/lower limits

Weight(IP): 20

Notes:

  • User needs to supply either or both of the input parameter
  • If not defined for both fromAsset and toAsset, only partial token pairs will be returned
  • Asset BNFCR is only available to convert for MICA region users.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/convert#list-all-convert-pairs

◆ async_list_all_convert_pairs()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_list_all_convert_pairs ( const ListAllConvertPairsParams & params,
CompletionToken && token ) const
inline

Asynchronous list_all_convert_pairs().

◆ order_status()

common::RestApiResponse< OrderStatusResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::order_status ( const OrderStatusParams & params = {}) const
inlinenodiscard

Order status (USER_DATA).

GET /fapi/v1/convert/orderStatus.

Query order status by order ID.

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/convert#order-status

◆ async_order_status()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_order_status ( const OrderStatusParams & params,
CompletionToken && token ) const
inline

Asynchronous order_status().

◆ send_quote_request()

common::RestApiResponse< SendQuoteRequestResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::send_quote_request ( const SendQuoteRequestParams & params) const
inlinenodiscard

Send Quote Request (USER_DATA).

POST /fapi/v1/convert/getQuote.

Request a quote for the requested token pairs

Weight: 50(IP) 360/hour, 500/day

Security Type: USER_DATA

Notes:

  • Either fromAmount or toAmount should be sent
  • quoteId will be returned only if you have enough funds to convert

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/convert#send-quote-request

◆ async_send_quote_request()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_send_quote_request ( const SendQuoteRequestParams & params,
CompletionToken && token ) const
inline

Asynchronous send_quote_request().

◆ adl_risk()

common::RestApiResponse< AdlRiskResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::adl_risk ( const AdlRiskParams & params = {}) const
inlinenodiscard

ADL Risk.

GET /fapi/v1/symbolAdlRisk.

Query the symbol-level ADL risk rating.

The ADL risk rating measures the likelihood of ADL during liquidation, and the rating takes into account the insurance fund balance, position concentration on the symbol, order book depth, price volatility, average leverage, unrealized PnL, and margin utilization at the symbol level.

The rating can be high, medium and low, and is updated every 30 minutes.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#adl-risk

◆ async_adl_risk()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_adl_risk ( const AdlRiskParams & params,
CompletionToken && token ) const
inline

Asynchronous adl_risk().

◆ asset_index()

common::RestApiResponse< AssetIndexResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::asset_index ( const AssetIndexParams & params = {}) const
inlinenodiscard

Multi-Assets Mode Asset Index.

GET /fapi/v1/assetIndex.

Asset index price.

CM-UM Integration (Effective 2026-06-30): Renamed from Multi-Assets Mode Asset Index. The response now additionally pushes COIN-M settlement-asset price index entries (e.g., BTCUSD, ETHUSD, BNBUSD). The endpoint path /fapi/v1/assetIndex is unchanged.

Weight: 1 for a single symbol; 10 when the symbol parameter is omitted

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#asset-index

◆ async_asset_index()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_asset_index ( const AssetIndexParams & params,
CompletionToken && token ) const
inline

Asynchronous asset_index().

◆ basis()

common::RestApiResponse< std::vector< BasisResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::basis ( const BasisParams & params) const
inlinenodiscard

Basis.

GET /futures/data/basis.

Query future basis

Weight(IP): 0

Notes:

  • If startTime and endTime are not sent, the most recent data is returned.
  • Only the data of the latest 30 days is available.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#basis

◆ async_basis()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_basis ( const BasisParams & params,
CompletionToken && token ) const
inline

Asynchronous basis().

◆ check_server_time()

common::RestApiResponse< CheckServerTimeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::check_server_time ( ) const
inlinenodiscard

Check Server Time.

GET /fapi/v1/time.

Test connectivity to the Rest API and get the current server time.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#check-server-time

◆ async_check_server_time()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_check_server_time ( CompletionToken && token) const
inline

Asynchronous check_server_time().

◆ composite_index_symbol_information()

common::RestApiResponse< std::vector< CompositeIndexSymbolInformationResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::composite_index_symbol_information ( const CompositeIndexSymbolInformationParams & params = {}) const
inlinenodiscard

Composite Index Symbol Information.

GET /fapi/v1/indexInfo.

Query composite index symbol information

Weight(IP): 1

Notes:

  • Only for composite index symbols

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#composite-index-symbol-information

◆ async_composite_index_symbol_information()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_composite_index_symbol_information ( const CompositeIndexSymbolInformationParams & params,
CompletionToken && token ) const
inline

◆ compressed_aggregate_trades_list()

common::RestApiResponse< std::vector< CompressedAggregateTradesListResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::compressed_aggregate_trades_list ( const CompressedAggregateTradesListParams & params) const
inlinenodiscard

Compressed/Aggregate Trades List.

GET /fapi/v1/aggTrades.

Get compressed, aggregate market trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.

Retail Price Improvement(RPI) orders are aggregated and without special tags to be distinguished.

Weight(IP): 20

Notes:

  • only trade histories within the past 48 hours (counted from now) can be queried
  • If both startTime and endTime are sent, time between startTime and endTime must be less than 1 hour.
  • If fromId, startTime, and endTime are not sent, the most recent aggregate trades will be returned.
  • Only market trades will be aggregated and returned, which means the insurance fund trades and ADL trades won't be aggregated.
  • Sending both startTime/endTime and fromId might cause response timeout, please send either fromId or startTime/endTime

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#compressed-aggregate-trades-list

◆ async_compressed_aggregate_trades_list()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_compressed_aggregate_trades_list ( const CompressedAggregateTradesListParams & params,
CompletionToken && token ) const
inline

◆ continuous_contract_kline_candlestick_data()

common::RestApiResponse< std::vector< std::vector< ContinuousContractKlineCandlestickDataItemInner > > > binance::derivatives_trading_usds_futures::rest_api::RestApi::continuous_contract_kline_candlestick_data ( const ContinuousContractKlineCandlestickDataParams & params) const
inlinenodiscard

Continuous Contract Kline/Candlestick Data.

GET /fapi/v1/continuousKlines.

Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time.

Weight: based on parameter LIMIT

LIMIT weight
[1,100) 1
[100, 500) 2
[500, 1000] 5
> 1000 10

Notes:

  • If startTime and endTime are not sent, the most recent klines are returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#continuous-contract-kline-candlestick-data

◆ async_continuous_contract_kline_candlestick_data()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_continuous_contract_kline_candlestick_data ( const ContinuousContractKlineCandlestickDataParams & params,
CompletionToken && token ) const
inline

◆ exchange_information()

common::RestApiResponse< ExchangeInformationResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::exchange_information ( ) const
inlinenodiscard

Exchange Information.

GET /fapi/v1/exchangeInfo.

Current exchange trading rules and symbol information

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#exchange-information

◆ async_exchange_information()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_exchange_information ( CompletionToken && token) const
inline

Asynchronous exchange_information().

◆ get_funding_rate_history()

common::RestApiResponse< std::vector< GetFundingRateHistoryResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_funding_rate_history ( const GetFundingRateHistoryParams & params = {}) const
inlinenodiscard

Get Funding Rate History.

GET /fapi/v1/fundingRate.

Get Funding Rate History

Weight: When limit ≤ 200: share 500/5min/IP rate limit with GET /fapi/v1/fundingInfo

When limit > 200: 100/5min/IP rate limit

Notes:

  • If startTime and endTime are not sent, the most recent 200 records are returned.
  • If the number of data between startTime and endTime is larger than limit, return as startTime + limit.
  • In ascending order.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#get-funding-rate-history

◆ async_get_funding_rate_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_funding_rate_history ( const GetFundingRateHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_funding_rate_info()

common::RestApiResponse< std::vector< GetFundingRateInfoResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_funding_rate_info ( ) const
inlinenodiscard

Get Funding Rate Info.

GET /fapi/v1/fundingInfo.

Query funding rate info for symbols that had FundingRateCap/FundingRateFloor / fundingIntervalHours adjustment

Weight: 0

share 500/5min/IP rate limit with GET /fapi/v1/fundingRate

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#get-funding-rate-info

◆ async_get_funding_rate_info()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_funding_rate_info ( CompletionToken && token) const
inline

Asynchronous get_funding_rate_info().

◆ index_price_kline_candlestick_data()

common::RestApiResponse< std::vector< std::vector< IndexPriceKlineCandlestickDataItemInner > > > binance::derivatives_trading_usds_futures::rest_api::RestApi::index_price_kline_candlestick_data ( const IndexPriceKlineCandlestickDataParams & params) const
inlinenodiscard

Index Price Kline/Candlestick Data.

GET /fapi/v1/indexPriceKlines.

Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.

Weight: based on parameter LIMIT

LIMIT weight
[1,100) 1
[100, 500) 2
[500, 1000] 5
> 1000 10

Notes:

  • If startTime and endTime are not sent, the most recent klines are returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#index-price-kline-candlestick-data

◆ async_index_price_kline_candlestick_data()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_index_price_kline_candlestick_data ( const IndexPriceKlineCandlestickDataParams & params,
CompletionToken && token ) const
inline

◆ kline_candlestick_data()

common::RestApiResponse< std::vector< std::vector< KlineCandlestickDataItemInner > > > binance::derivatives_trading_usds_futures::rest_api::RestApi::kline_candlestick_data ( const KlineCandlestickDataParams & params) const
inlinenodiscard

Kline/Candlestick Data.

GET /fapi/v1/klines.

Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.

Weight: based on parameter LIMIT

LIMIT weight
[1,100) 1
[100, 500) 2
[500, 1000] 5
> 1000 10

Notes:

  • If startTime and endTime are not sent, the most recent klines are returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#kline-candlestick-data

◆ async_kline_candlestick_data()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_kline_candlestick_data ( const KlineCandlestickDataParams & params,
CompletionToken && token ) const
inline

Asynchronous kline_candlestick_data().

◆ long_short_ratio()

common::RestApiResponse< std::vector< LongShortRatioResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::long_short_ratio ( const LongShortRatioParams & params) const
inlinenodiscard

Long/Short Ratio.

GET /futures/data/globalLongShortAccountRatio.

Query symbol Long/Short Ratio

Weight(IP): 0

Notes:

  • If startTime and endTime are not sent, the most recent data is returned.
  • Only the data of the latest 30 days is available.
  • IP rate limit 1000 requests/5min

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#long-short-ratio

◆ async_long_short_ratio()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_long_short_ratio ( const LongShortRatioParams & params,
CompletionToken && token ) const
inline

Asynchronous long_short_ratio().

◆ mark_price()

common::RestApiResponse< MarkPriceResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::mark_price ( const MarkPriceParams & params = {}) const
inlinenodiscard

Mark Price.

GET /fapi/v1/premiumIndex.

Mark Price and Funding Rate

Weight: 1 with symbol, **10** without symbol

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#mark-price

◆ async_mark_price()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_mark_price ( const MarkPriceParams & params,
CompletionToken && token ) const
inline

Asynchronous mark_price().

◆ mark_price_kline_candlestick_data()

common::RestApiResponse< std::vector< std::vector< MarkPriceKlineCandlestickDataItemInner > > > binance::derivatives_trading_usds_futures::rest_api::RestApi::mark_price_kline_candlestick_data ( const MarkPriceKlineCandlestickDataParams & params) const
inlinenodiscard

Mark Price Kline/Candlestick Data.

GET /fapi/v1/markPriceKlines.

Kline/candlestick bars for the mark price of a symbol. Klines are uniquely identified by their open time.

Weight: based on parameter LIMIT

LIMIT weight
[1,100) 1
[100, 500) 2
[500, 1000] 5
> 1000 10

Notes:

  • If startTime and endTime are not sent, the most recent klines are returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#mark-price-kline-candlestick-data

◆ async_mark_price_kline_candlestick_data()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_mark_price_kline_candlestick_data ( const MarkPriceKlineCandlestickDataParams & params,
CompletionToken && token ) const
inline

◆ old_trades_lookup()

common::RestApiResponse< std::vector< OldTradesLookupResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::old_trades_lookup ( const OldTradesLookupParams & params) const
inlinenodiscard

Old Trades Lookup (MARKET_DATA).

GET /fapi/v1/historicalTrades.

Get older market historical trades.

Weight(IP): 200

Security Type: MARKET_DATA

Notes:

  • Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.
  • Only supports data from within the last one month

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#old-trades-lookup

◆ async_old_trades_lookup()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_old_trades_lookup ( const OldTradesLookupParams & params,
CompletionToken && token ) const
inline

Asynchronous old_trades_lookup().

◆ open_interest()

common::RestApiResponse< OpenInterestResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::open_interest ( const OpenInterestParams & params) const
inlinenodiscard

Open Interest.

GET /fapi/v1/openInterest.

Get present open interest of a specific symbol.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#open-interest

◆ async_open_interest()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_open_interest ( const OpenInterestParams & params,
CompletionToken && token ) const
inline

Asynchronous open_interest().

◆ open_interest_statistics()

common::RestApiResponse< std::vector< OpenInterestStatisticsResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::open_interest_statistics ( const OpenInterestStatisticsParams & params) const
inlinenodiscard

Open Interest Statistics.

GET /futures/data/openInterestHist.

Open Interest Statistics

Weight(IP): 0

Notes:

  • If startTime and endTime are not sent, the most recent data is returned.
  • Only the data of the latest 1 month is available.
  • IP rate limit 1000 requests/5min
  • A period with no trades has no record and is omitted from the response. Such gaps are expected and are not backfilled.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#open-interest-statistics

◆ async_open_interest_statistics()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_open_interest_statistics ( const OpenInterestStatisticsParams & params,
CompletionToken && token ) const
inline

◆ order_book()

common::RestApiResponse< OrderBookResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::order_book ( const OrderBookParams & params) const
inlinenodiscard

Order Book.

GET /fapi/v1/depth.

Query symbol orderbook

Retail Price Improvement(RPI) orders are not visible and excluded in the response message.

Weight: Adjusted based on the limit:

Limit Weight
5, 10, 20, 50 2
100 5
500 10
1000 20

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#order-book

◆ async_order_book()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_order_book ( const OrderBookParams & params,
CompletionToken && token ) const
inline

Asynchronous order_book().

◆ premium_index_kline_data()

common::RestApiResponse< std::vector< std::vector< PremiumIndexKlineDataItemInner > > > binance::derivatives_trading_usds_futures::rest_api::RestApi::premium_index_kline_data ( const PremiumIndexKlineDataParams & params) const
inlinenodiscard

Premium index Kline Data.

GET /fapi/v1/premiumIndexKlines.

Premium index kline bars of a symbol. Klines are uniquely identified by their open time.

Weight: based on parameter LIMIT

LIMIT weight
[1,100) 1
[100, 500) 2
[500, 1000] 5
> 1000 10

Notes:

  • If startTime and endTime are not sent, the most recent klines are returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#premium-index-kline-data

◆ async_premium_index_kline_data()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_premium_index_kline_data ( const PremiumIndexKlineDataParams & params,
CompletionToken && token ) const
inline

◆ quarterly_contract_settlement_price()

common::RestApiResponse< std::vector< QuarterlyContractSettlementPriceResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::quarterly_contract_settlement_price ( const QuarterlyContractSettlementPriceParams & params) const
inlinenodiscard

Quarterly Contract Settlement Price.

GET /futures/data/delivery-price.

Latest price for a symbol or symbols.

Weight(IP): 0

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#quarterly-contract-settlement-price

◆ async_quarterly_contract_settlement_price()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_quarterly_contract_settlement_price ( const QuarterlyContractSettlementPriceParams & params,
CompletionToken && token ) const
inline

◆ query_index_price_constituents()

common::RestApiResponse< QueryIndexPriceConstituentsResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_index_price_constituents ( const QueryIndexPriceConstituentsParams & params) const
inlinenodiscard

Query Index Price Constituents.

GET /fapi/v1/constituents.

Query index price constituents

Note: Prices from constituents of TradFi perps will be hiden and displayed as -1.

Weight(IP): 2

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#query-index-price-constituents

◆ async_query_index_price_constituents()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_index_price_constituents ( const QueryIndexPriceConstituentsParams & params,
CompletionToken && token ) const
inline

◆ query_insurance_fund_balance_snapshot()

common::RestApiResponse< QueryInsuranceFundBalanceSnapshotResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_insurance_fund_balance_snapshot ( const QueryInsuranceFundBalanceSnapshotParams & params = {}) const
inlinenodiscard

Query Insurance Fund Balance Snapshot.

GET /fapi/v1/insuranceBalance.

Query Insurance Fund Balance Snapshot

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#query-insurance-fund-balance-snapshot

◆ async_query_insurance_fund_balance_snapshot()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_insurance_fund_balance_snapshot ( const QueryInsuranceFundBalanceSnapshotParams & params,
CompletionToken && token ) const
inline

◆ recent_trades_list()

common::RestApiResponse< std::vector< RecentTradesListResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::recent_trades_list ( const RecentTradesListParams & params) const
inlinenodiscard

Recent Trades List.

GET /fapi/v1/trades.

Get recent market trades

Weight(IP): 5

Notes:

  • Market trades means trades filled in the order book. Only market trades will be returned, which means the insurance fund trades and ADL trades won't be returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#recent-trades-list

◆ async_recent_trades_list()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_recent_trades_list ( const RecentTradesListParams & params,
CompletionToken && token ) const
inline

Asynchronous recent_trades_list().

◆ rpi_order_book()

common::RestApiResponse< RpiOrderBookResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::rpi_order_book ( const RpiOrderBookParams & params) const
inlinenodiscard

RPI Order Book.

GET /fapi/v1/rpiDepth.

Query symbol orderbook with RPI orders

RPI(Retail Price Improvement) orders are included and aggreated in the response message. Crossed price levels are hidden and invisible.

Weight: Adjusted based on the limit:

Limit Weight
1000 20

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#rpi-order-book

◆ async_rpi_order_book()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_rpi_order_book ( const RpiOrderBookParams & params,
CompletionToken && token ) const
inline

Asynchronous rpi_order_book().

◆ symbol_order_book_ticker()

common::RestApiResponse< SymbolOrderBookTickerResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::symbol_order_book_ticker ( const SymbolOrderBookTickerParams & params = {}) const
inlinenodiscard

Symbol Order Book Ticker.

GET /fapi/v1/ticker/bookTicker.

Best price/qty on the order book for a symbol or symbols.

Retail Price Improvement(RPI) orders are not visible and excluded in the response message.

Weight: 2 for a single symbol; 5 when the symbol parameter is omitted

Notes:

  • If the symbol is not sent, bookTickers for all symbols will be returned in an array.
  • The field X-MBX-USED-WEIGHT-1M in response header is not accurate from this endpoint, please ignore.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#symbol-order-book-ticker

◆ async_symbol_order_book_ticker()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_symbol_order_book_ticker ( const SymbolOrderBookTickerParams & params,
CompletionToken && token ) const
inline

◆ symbol_price_ticker()

common::RestApiResponse< SymbolPriceTickerResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::symbol_price_ticker ( const SymbolPriceTickerParams & params = {}) const
inlinenodiscard

Symbol Price Ticker.

GET /fapi/v1/ticker/price.

Latest price for a symbol or symbols.

Weight: 1 for a single symbol; 2 when the symbol parameter is omitted

Notes:

  • If the symbol is not sent, prices for all symbols will be returned in an array.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#symbol-price-ticker

Deprecated: this endpoint may be removed in a future version.

◆ async_symbol_price_ticker()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_symbol_price_ticker ( const SymbolPriceTickerParams & params,
CompletionToken && token ) const
inline

Asynchronous symbol_price_ticker().

◆ symbol_price_ticker_v2()

common::RestApiResponse< SymbolPriceTickerV2Response > binance::derivatives_trading_usds_futures::rest_api::RestApi::symbol_price_ticker_v2 ( const SymbolPriceTickerV2Params & params = {}) const
inlinenodiscard

Symbol Price Ticker V2.

GET /fapi/v2/ticker/price.

Latest price for a symbol or symbols.

Weight: 1 for a single symbol; 2 when the symbol parameter is omitted

Notes:

  • If the symbol is not sent, prices for all symbols will be returned in an array.
  • The field X-MBX-USED-WEIGHT-1M in response header is not accurate from this endpoint, please ignore.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#symbol-price-ticker-v2

◆ async_symbol_price_ticker_v2()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_symbol_price_ticker_v2 ( const SymbolPriceTickerV2Params & params,
CompletionToken && token ) const
inline

Asynchronous symbol_price_ticker_v2().

◆ taker_buy_sell_volume()

common::RestApiResponse< std::vector< TakerBuySellVolumeResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::taker_buy_sell_volume ( const TakerBuySellVolumeParams & params) const
inlinenodiscard

Taker Buy/Sell Volume.

GET /futures/data/takerlongshortRatio.

Taker Buy/Sell Volume

Weight(IP): 0

Notes:

  • If startTime and endTime are not sent, the most recent data is returned.
  • Only the data of the latest 30 days is available.
  • IP rate limit 1000 requests/5min

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#taker-buy-sell-volume

◆ async_taker_buy_sell_volume()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_taker_buy_sell_volume ( const TakerBuySellVolumeParams & params,
CompletionToken && token ) const
inline

Asynchronous taker_buy_sell_volume().

◆ test_connectivity()

common::RestApiResponse< boost::json::value > binance::derivatives_trading_usds_futures::rest_api::RestApi::test_connectivity ( ) const
inlinenodiscard

Test Connectivity.

GET /fapi/v1/ping.

Test connectivity to the Rest API.

Weight(IP): 1

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#test-connectivity

◆ async_test_connectivity()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_test_connectivity ( CompletionToken && token) const
inline

Asynchronous test_connectivity().

◆ ticker24hr_price_change_statistics()

common::RestApiResponse< Ticker24hrPriceChangeStatisticsResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::ticker24hr_price_change_statistics ( const Ticker24hrPriceChangeStatisticsParams & params = {}) const
inlinenodiscard

24hr Ticker Price Change Statistics

GET /fapi/v1/ticker/24hr.

24 hour rolling window price change statistics. Careful when accessing this with no symbol.

Weight: 1 for a single symbol; 40 when the symbol parameter is omitted

Notes:

  • If the symbol is not sent, tickers for all symbols will be returned in an array.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#ticker24hr-price-change-statistics

◆ async_ticker24hr_price_change_statistics()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_ticker24hr_price_change_statistics ( const Ticker24hrPriceChangeStatisticsParams & params,
CompletionToken && token ) const
inline

◆ top_trader_long_short_ratio_accounts()

common::RestApiResponse< std::vector< TopTraderLongShortRatioAccountsResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::top_trader_long_short_ratio_accounts ( const TopTraderLongShortRatioAccountsParams & params) const
inlinenodiscard

Top Trader Long/Short Account Ratio (MARKET_DATA).

GET /futures/data/topLongShortAccountRatio.

The proportion of net long and net short accounts to total accounts of the top 20% users with the highest margin balance. Each account is counted once only.

Long Account % = Accounts of top traders with net long positions / Total accounts of top traders with open positions

Short Account % = Accounts of top traders with net short positions / Total accounts of top traders with open positions

Long/Short Ratio (Accounts) = Long Account % / Short Account %

Security Type: MARKET_DATA

Notes:

  • If startTime and endTime are not sent, the most recent data is returned.
  • Only the data of the latest 30 days is available.
  • IP rate limit 1000 requests/5min

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#top-trader-long-short-ratio-accounts

◆ async_top_trader_long_short_ratio_accounts()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_top_trader_long_short_ratio_accounts ( const TopTraderLongShortRatioAccountsParams & params,
CompletionToken && token ) const
inline

◆ top_trader_long_short_ratio_positions()

common::RestApiResponse< std::vector< TopTraderLongShortRatioPositionsResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::top_trader_long_short_ratio_positions ( const TopTraderLongShortRatioPositionsParams & params) const
inlinenodiscard

Top Trader Long/Short Position Ratio (MARKET_DATA).

GET /futures/data/topLongShortPositionRatio.

The proportion of net long and net short positions to total open positions of the top 20% users with the highest margin balance.

Long Position % = Long positions of top traders / Total open positions of top traders

Short Position % = Short positions of top traders / Total open positions of top traders

Long/Short Ratio (Positions) = Long Position % / Short Position %

Weight(IP): 0

Security Type: MARKET_DATA

Notes:

  • If startTime and endTime are not sent, the most recent data is returned.
  • Only the data of the latest 30 days is available.
  • IP rate limit 1000 requests/5min

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#top-trader-long-short-ratio-positions

◆ async_top_trader_long_short_ratio_positions()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_top_trader_long_short_ratio_positions ( const TopTraderLongShortRatioPositionsParams & params,
CompletionToken && token ) const
inline

◆ trading_schedule()

common::RestApiResponse< TradingScheduleResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::trading_schedule ( ) const
inlinenodiscard

Trading Schedule.

GET /fapi/v1/tradingSchedule.

Trading session schedules for the underlying assets of TradFi Perps are provided for a one-week period forward and one-week period backward starting from the day prior to the query time, covering the U.S. equity market, Korean equity market, Hong Kong equity market, China equity market, the commodity market, and the FX market.

Session types per market:

  • U.S. equity market: "PRE_MARKET", "REGULAR", "AFTER_MARKET", "OVERNIGHT", "NO_TRADING".
  • Commodity market: "REGULAR", "NO_TRADING".
  • Korean equity market: "REGULAR", "NO_TRADING".
  • Hong Kong equity market: "REGULAR", "NO_TRADING".
  • China equity market: "REGULAR", "NO_TRADING".
  • FX market: "REGULAR", "NO_TRADING".

Weight(IP): 5

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/market-data#trading-schedule

◆ async_trading_schedule()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_trading_schedule ( CompletionToken && token) const
inline

Asynchronous trading_schedule().

◆ classic_portfolio_margin_account_information()

common::RestApiResponse< ClassicPortfolioMarginAccountInformationResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::classic_portfolio_margin_account_information ( const ClassicPortfolioMarginAccountInformationParams & params) const
inlinenodiscard

Classic Portfolio Margin Account Information (USER_DATA).

GET /fapi/v1/pmAccountInfo.

Get Classic Portfolio Margin current account information.

Weight(IP): 5

Security Type: USER_DATA

Notes:

  • maxWithdrawAmount is for asset transfer out to the spot wallet.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/portfolio-margin-endpoints#classic-portfolio-margin-account-information

◆ async_classic_portfolio_margin_account_information()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_classic_portfolio_margin_account_information ( const ClassicPortfolioMarginAccountInformationParams & params,
CompletionToken && token ) const
inline

◆ account_trade_list()

common::RestApiResponse< std::vector< AccountTradeListResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::account_trade_list ( const AccountTradeListParams & params) const
inlinenodiscard

Account Trade List (USER_DATA).

GET /fapi/v1/userTrades.

Get trades for a specific account and symbol.

Weight(IP): 5

Security Type: USER_DATA

Notes:

  • If startTime and endTime are both not sent, then the last 7 days' data will be returned.
  • The time between startTime and endTime cannot be longer than 7 days.
  • The parameter fromId cannot be sent with startTime or endTime.
  • Only support querying trade in the past 3 months

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#account-trade-list

◆ async_account_trade_list()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_account_trade_list ( const AccountTradeListParams & params,
CompletionToken && token ) const
inline

Asynchronous account_trade_list().

◆ all_orders()

common::RestApiResponse< std::vector< AllOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::all_orders ( const AllOrdersParams & params = {}) const
inlinenodiscard

All Orders (USER_DATA).

GET /fapi/v1/allOrders.

Get all account orders; active, canceled, or filled.

  • These orders will not be found:
    • order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
    • order create time + 90 days < current time

Weight(IP): 5

Security Type: USER_DATA

Notes:

  • If orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.
  • The query time period must be less then 7 days( default as the recent 7 days).

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#all-orders

◆ async_all_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_all_orders ( const AllOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous all_orders().

◆ auto_cancel_all_open_orders()

common::RestApiResponse< AutoCancelAllOpenOrdersResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::auto_cancel_all_open_orders ( const AutoCancelAllOpenOrdersParams & params) const
inlinenodiscard

Auto-Cancel All Open Orders (TRADE).

POST /fapi/v1/countdownCancelAll.

Cancel all open orders of the specified symbol at the end of the specified countdown.

The endpoint should be called repeatedly as heartbeats so that the existing countdown time can be canceled and replaced by a new one.

Example usage:

Call this endpoint at 30s intervals with an countdownTime of 120000 (120s). If this endpoint is not called within 120 seconds, all your orders of the specified symbol will be automatically canceled. If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.

The system will check all countdowns approximately every 10 milliseconds, so please note that sufficient redundancy should be considered when using this function. We do not recommend setting the countdown time to be too precise or too small.

Weight(IP): 10

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#auto-cancel-all-open-orders

◆ async_auto_cancel_all_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_auto_cancel_all_open_orders ( const AutoCancelAllOpenOrdersParams & params,
CompletionToken && token ) const
inline

◆ cancel_algo_order()

common::RestApiResponse< CancelAlgoOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::cancel_algo_order ( const CancelAlgoOrderParams & params = {}) const
inlinenodiscard

Cancel Algo Order (TRADE).

DELETE /fapi/v1/algoOrder.

Cancel an active algo (conditional) order, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.

Weight(IP): 1

Security Type: TRADE

Notes:

  • Either algoId or clientAlgoId must be sent.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#cancel-algo-order

◆ async_cancel_algo_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_cancel_algo_order ( const CancelAlgoOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous cancel_algo_order().

◆ new_algo_order()

common::RestApiResponse< NewAlgoOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::new_algo_order ( const NewAlgoOrderParams & params) const
inlinenodiscard

New Algo Order (TRADE).

POST /fapi/v1/algoOrder.

Send in a new algo (conditional) order. Use this endpoint to place TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures. Supported order types under algoType=CONDITIONAL are STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, and TRAILING_STOP_MARKET.

Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 0 on IP rate limit(x-mbx-used-weight-1m)

Security Type: TRADE

Notes:

  • Algo order with type STOP, parameter timeInForce can be sent (default GTC).
  • Algo order with type TAKE_PROFIT, parameter timeInForce can be sent ( default GTC).
  • Condition orders will be triggered when:
    • If parameterpriceProtectis sent as true:
      • when price reaches the triggerPrice ,the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
      • "triggerProtect" of a symbol can be got from GET /fapi/v1/exchangeInfo
    • STOP, STOP_MARKET:
      • BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= triggerPrice
      • SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= triggerPrice
    • TAKE_PROFIT, TAKE_PROFIT_MARKET:
      • BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= triggerPrice
      • SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= triggerPrice
    • TRAILING_STOP_MARKET:
      • BUY: the lowest price after order placed <= activatePrice, and the latest price >= the lowest price * (1 + callbackRate)
      • SELL: the highest price after order placed >= activatePrice, and the latest price <= the highest price * (1 - callbackRate)
  • For TRAILING_STOP_MARKET, if you got such error code. > {"code": -2021, "msg": "Order would immediately trigger."} > means that the parameters you send do not meet the following requirements:
    • BUY: activatePrice should be smaller than latest price.
    • SELL: activatePrice should be larger than latest price.
  • STOP_MARKET, TAKE_PROFIT_MARKET with closePosition=true:
    • Follow the same rules for condition orders.
    • If triggered,**close all** current long position( if SELL) or current short position( if BUY).
    • Cannot be used with quantity paremeter
    • Cannot be used with reduceOnly parameter
    • In Hedge Mode,cannot be used with BUY orders in LONG position side. and cannot be used with SELL orders in SHORT position side
  • selfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#new-algo-order

◆ async_new_algo_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_new_algo_order ( const NewAlgoOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous new_algo_order().

◆ query_algo_order()

common::RestApiResponse< QueryAlgoOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_algo_order ( const QueryAlgoOrderParams & params = {}) const
inlinenodiscard

Query Algo Order (USER_DATA).

GET /fapi/v1/algoOrder.

Check the status of an algo (conditional) order, such as TP/SL (Take Profit / Stop Loss) or trailing stop orders on USD-M Futures.

  • These orders will not be found:
    • order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
    • order create time + 90 days < current time

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • Either algoId or clientAlgoId must be sent.
  • algoId is self-increment for each specific symbol

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#query-algo-order

◆ async_query_algo_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_algo_order ( const QueryAlgoOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous query_algo_order().

◆ cancel_all_algo_open_orders()

common::RestApiResponse< CancelAllAlgoOpenOrdersResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::cancel_all_algo_open_orders ( const CancelAllAlgoOpenOrdersParams & params) const
inlinenodiscard

Cancel All Algo Open Orders (TRADE).

DELETE /fapi/v1/algoOpenOrders.

Cancel all open algo (conditional) orders on a symbol, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#cancel-all-algo-open-orders

◆ async_cancel_all_algo_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_cancel_all_algo_open_orders ( const CancelAllAlgoOpenOrdersParams & params,
CompletionToken && token ) const
inline

◆ cancel_all_open_orders()

common::RestApiResponse< CancelAllOpenOrdersResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::cancel_all_open_orders ( const CancelAllOpenOrdersParams & params) const
inlinenodiscard

Cancel All Open Orders (TRADE).

DELETE /fapi/v1/allOpenOrders.

Cancel All Open Orders

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#cancel-all-open-orders

◆ async_cancel_all_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_cancel_all_open_orders ( const CancelAllOpenOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous cancel_all_open_orders().

◆ cancel_multiple_orders()

common::RestApiResponse< std::vector< CancelMultipleOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::cancel_multiple_orders ( const CancelMultipleOrdersParams & params) const
inlinenodiscard

Cancel Multiple Orders (TRADE).

DELETE /fapi/v1/batchOrders.

Cancel Multiple Orders

Weight(IP): 1

Security Type: TRADE

Notes:

  • Either orderIdList or origClientOrderIdList must be sent.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#cancel-multiple-orders

◆ async_cancel_multiple_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_cancel_multiple_orders ( const CancelMultipleOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous cancel_multiple_orders().

◆ modify_multiple_orders()

common::RestApiResponse< std::vector< ModifyMultipleOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::modify_multiple_orders ( const ModifyMultipleOrdersParams & params) const
inlinenodiscard

Modify Multiple Orders (TRADE).

PUT /fapi/v1/batchOrders.

Modify Multiple Orders (TRADE)

Weight: 5 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 5 on IP rate limit(x-mbx-used-weight-1m);

Security Type: TRADE

Notes:

  • Parameter rules are same with Modify Order
  • Batch modify orders are processed concurrently, and the order of matching is not guaranteed.
  • The order of returned contents for batch modify orders is the same as the order of the order list.
  • One order can only be modfied for less than 10000 times

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#modify-multiple-orders

◆ async_modify_multiple_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_modify_multiple_orders ( const ModifyMultipleOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous modify_multiple_orders().

◆ place_multiple_orders()

common::RestApiResponse< std::vector< PlaceMultipleOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::place_multiple_orders ( const PlaceMultipleOrdersParams & params) const
inlinenodiscard

Place Multiple Orders (TRADE).

POST /fapi/v1/batchOrders.

Place Multiple Orders

Weight: 5 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 5 on IP rate limit(x-mbx-used-weight-1m);

Security Type: TRADE

Notes:

  • Paremeter rules are same with New Order
  • Batch orders are processed concurrently, and the order of matching is not guaranteed.
  • The order of returned contents for batch orders is the same as the order of the order list.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#place-multiple-orders

◆ async_place_multiple_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_place_multiple_orders ( const PlaceMultipleOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous place_multiple_orders().

◆ cancel_order()

common::RestApiResponse< CancelOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::cancel_order ( const CancelOrderParams & params) const
inlinenodiscard

Cancel Order (TRADE).

DELETE /fapi/v1/order.

Cancel an active order.

Weight(IP): 1

Security Type: TRADE

Notes:

  • Either orderId or origClientOrderId must be sent.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#cancel-order

◆ async_cancel_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_cancel_order ( const CancelOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous cancel_order().

◆ modify_order()

common::RestApiResponse< ModifyOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::modify_order ( const ModifyOrderParams & params) const
inlinenodiscard

Modify Order (TRADE).

PUT /fapi/v1/order.

Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue

Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 0 on IP rate limit(x-mbx-used-weight-1m)

Security Type: TRADE

Notes:

  • Either orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.
  • Both quantity and price must be sent, which is different from dapi modify order endpoint.
  • When the new quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.
  • However the order will be cancelled by the amendment in the following situations:
    • when the order is in partially filled status and the new quantity <= executedQty
    • When the order is GTX and the new price will cause it to be executed immediately
  • One order can only be modfied for less than 10000 times
  • reduceOnly behavior:
    • false or omitted: behave as today — min_notional is enforced on the modified order.
    • true and the original order's reduceOnly attribute is also true (consistent): the min_notional check is skipped on the modified order, matching placement semantics.
    • true but the original order's reduceOnly attribute is false (inconsistent): the modify request is rejected with error code -5047, "The original order is not a reduce-only order".
    • reduceOnly is used purely for validation — passing true does not change the original order's reduceOnly attribute; that flag remains whatever it was set to at placement time.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#modify-order

◆ async_modify_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_modify_order ( const ModifyOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous modify_order().

◆ new_order()

common::RestApiResponse< NewOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::new_order ( const NewOrderParams & params) const
inlinenodiscard

New Order (TRADE).

POST /fapi/v1/order.

Send in a new order.

Weight: 1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 0 on IP rate limit(x-mbx-used-weight-1m)

Security Type: TRADE

Notes: Additional mandatory parameters based on type:

Type Additional mandatory parameters
LIMIT timeInForce, quantity, price
MARKET quantity
  • If newOrderRespType is sent as RESULT:
    • MARKET order: the final FILLED result of the order will be returned directly.
    • LIMIT order with special timeInForce: the final status result of the order (FILLED or EXPIRED) will be returned directly.
  • selfTradePreventionMode is only effective when timeInForce is set to IOC, GTC, or GTD.
  • In extreme market conditions, timeInForce GTD order auto-cancel time might be delayed compared to goodTillDate.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#new-order

◆ async_new_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_new_order ( const NewOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous new_order().

◆ query_order()

common::RestApiResponse< QueryOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_order ( const QueryOrderParams & params) const
inlinenodiscard

Query Order (USER_DATA).

GET /fapi/v1/order.

Check an order's status.

  • These orders will not be found:
    • order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
    • order create time + 90 days < current time

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • Either orderId or origClientOrderId must be sent.
  • orderId is self-increment for each specific symbol

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#query-order

◆ async_query_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_order ( const QueryOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous query_order().

◆ change_initial_leverage()

common::RestApiResponse< ChangeInitialLeverageResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::change_initial_leverage ( const ChangeInitialLeverageParams & params) const
inlinenodiscard

Change Initial Leverage (TRADE).

POST /fapi/v1/leverage.

Change user's initial leverage of specific symbol market.

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#change-initial-leverage

◆ async_change_initial_leverage()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_change_initial_leverage ( const ChangeInitialLeverageParams & params,
CompletionToken && token ) const
inline

◆ change_margin_type()

common::RestApiResponse< ChangeMarginTypeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::change_margin_type ( const ChangeMarginTypeParams & params) const
inlinenodiscard

Change Margin Type (TRADE).

POST /fapi/v1/marginType.

Change symbol level margin type

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#change-margin-type

◆ async_change_margin_type()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_change_margin_type ( const ChangeMarginTypeParams & params,
CompletionToken && token ) const
inline

Asynchronous change_margin_type().

◆ change_multi_assets_mode()

common::RestApiResponse< ChangeMultiAssetsModeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::change_multi_assets_mode ( const ChangeMultiAssetsModeParams & params) const
inlinenodiscard

Change Multi-Assets Mode (TRADE).

POST /fapi/v1/multiAssetsMargin.

Change user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#change-multi-assets-mode

◆ async_change_multi_assets_mode()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_change_multi_assets_mode ( const ChangeMultiAssetsModeParams & params,
CompletionToken && token ) const
inline

◆ change_position_mode()

common::RestApiResponse< ChangePositionModeResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::change_position_mode ( const ChangePositionModeParams & params) const
inlinenodiscard

Change Position Mode (TRADE).

POST /fapi/v1/positionSide/dual.

Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol.

After CM migration, UM and CM share the same dualSidePosition setting. Calling this endpoint flips both UM and CM at once. If either side has any open order or open position, the change is rejected:

  • -4067 (open orders exist)
  • -4068 (open position exists)

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#change-position-mode

◆ async_change_position_mode()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_change_position_mode ( const ChangePositionModeParams & params,
CompletionToken && token ) const
inline

Asynchronous change_position_mode().

◆ current_all_algo_open_orders()

common::RestApiResponse< std::vector< CurrentAllAlgoOpenOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::current_all_algo_open_orders ( const CurrentAllAlgoOpenOrdersParams & params = {}) const
inlinenodiscard

Current All Algo Open Orders (USER_DATA).

GET /fapi/v1/openAlgoOrders.

Get all open algo (conditional) orders on a symbol, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.

Weight: 1 for a single symbol; 40 when the symbol parameter is omitted

Careful when accessing this with no symbol.

Security Type: USER_DATA

Notes:

  • If the symbol is not sent, orders for all symbols will be returned in an array.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#current-all-algo-open-orders

◆ async_current_all_algo_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_current_all_algo_open_orders ( const CurrentAllAlgoOpenOrdersParams & params,
CompletionToken && token ) const
inline

◆ current_all_open_orders()

common::RestApiResponse< std::vector< CurrentAllOpenOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::current_all_open_orders ( const CurrentAllOpenOrdersParams & params = {}) const
inlinenodiscard

Current All Open Orders (USER_DATA).

GET /fapi/v1/openOrders.

Get all open orders on a symbol.

Weight: 1 for a single symbol; 40 when the symbol parameter is omitted

Careful when accessing this with no symbol.

Security Type: USER_DATA

Notes:

  • If the symbol is not sent, orders for all symbols will be returned in an array.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#current-all-open-orders

◆ async_current_all_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_current_all_open_orders ( const CurrentAllOpenOrdersParams & params,
CompletionToken && token ) const
inline

◆ futures_tradfi_perps_contract()

common::RestApiResponse< FuturesTradfiPerpsContractResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::futures_tradfi_perps_contract ( const FuturesTradfiPerpsContractParams & params = {}) const
inlinenodiscard

Futures TradFi Perps Contract (USER_DATA).

POST /fapi/v1/stock/contract.

Sign TradFi-Perps agreement contract

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#futures-tradfi-perps-contract

◆ async_futures_tradfi_perps_contract()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_futures_tradfi_perps_contract ( const FuturesTradfiPerpsContractParams & params,
CompletionToken && token ) const
inline

◆ get_order_modify_history()

common::RestApiResponse< std::vector< GetOrderModifyHistoryResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_order_modify_history ( const GetOrderModifyHistoryParams & params) const
inlinenodiscard

Get Order Modify History (USER_DATA).

GET /fapi/v1/orderAmendment.

Get order modification history

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • Either orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.
  • Order modify history longer than 3 month is not avaliable

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#get-order-modify-history

◆ async_get_order_modify_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_order_modify_history ( const GetOrderModifyHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_position_margin_change_history()

common::RestApiResponse< std::vector< GetPositionMarginChangeHistoryResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::get_position_margin_change_history ( const GetPositionMarginChangeHistoryParams & params) const
inlinenodiscard

Get Position Margin Change History (TRADE).

GET /fapi/v1/positionMargin/history.

Get Position Margin Change History

Weight(IP): 1

Security Type: TRADE

Notes:

  • Support querying future histories that are not older than 30 days
  • The time between startTime and endTimecan't be more than 30 days

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#get-position-margin-change-history

◆ async_get_position_margin_change_history()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_get_position_margin_change_history ( const GetPositionMarginChangeHistoryParams & params,
CompletionToken && token ) const
inline

◆ modify_isolated_position_margin()

common::RestApiResponse< ModifyIsolatedPositionMarginResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::modify_isolated_position_margin ( const ModifyIsolatedPositionMarginParams & params) const
inlinenodiscard

Modify Isolated Position Margin (TRADE).

POST /fapi/v1/positionMargin.

Modify Isolated Position Margin

Weight(IP): 1

Security Type: TRADE

Notes:

  • Only for isolated symbol

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#modify-isolated-position-margin

◆ async_modify_isolated_position_margin()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_modify_isolated_position_margin ( const ModifyIsolatedPositionMarginParams & params,
CompletionToken && token ) const
inline

◆ position_adl_quantile_estimation()

common::RestApiResponse< std::vector< PositionAdlQuantileEstimationResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::position_adl_quantile_estimation ( const PositionAdlQuantileEstimationParams & params = {}) const
inlinenodiscard

Position ADL Quantile Estimation (USER_DATA).

GET /fapi/v1/adlQuantile.

Position ADL Quantile Estimation

  • Values update every 30s.
  • Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high.
  • For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides.
  • If the positions of the symbol are crossed margined in Hedge Mode:
    • "HEDGE" as a sign will be returned instead of "BOTH";
    • A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.

Weight(IP): 5

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#position-adl-quantile-estimation

◆ async_position_adl_quantile_estimation()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_position_adl_quantile_estimation ( const PositionAdlQuantileEstimationParams & params,
CompletionToken && token ) const
inline

◆ position_information_v2()

common::RestApiResponse< std::vector< PositionInformationV2ResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::position_information_v2 ( const PositionInformationV2Params & params = {}) const
inlinenodiscard

Position Information V2 (USER_DATA).

GET /fapi/v2/positionRisk.

Get current position information.

Weight(IP): 5

Security Type: USER_DATA

Notes:

  • Please use with user data stream ACCOUNT_UPDATE to meet your timeliness and accuracy needs.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#position-information-v2

◆ async_position_information_v2()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_position_information_v2 ( const PositionInformationV2Params & params,
CompletionToken && token ) const
inline

◆ position_information_v3()

common::RestApiResponse< std::vector< PositionInformationV3ResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::position_information_v3 ( const PositionInformationV3Params & params = {}) const
inlinenodiscard

Position Information V3 (USER_DATA).

GET /fapi/v3/positionRisk.

Get current position information(only symbol that has position or open orders will be returned).

Weight(IP): 5

Security Type: USER_DATA

Notes:

  • Please use with user data stream ACCOUNT_UPDATE to meet your timeliness and accuracy needs.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#position-information-v3

◆ async_position_information_v3()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_position_information_v3 ( const PositionInformationV3Params & params,
CompletionToken && token ) const
inline

◆ query_all_algo_orders()

common::RestApiResponse< std::vector< QueryAllAlgoOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_all_algo_orders ( const QueryAllAlgoOrdersParams & params) const
inlinenodiscard

Query All Algo Orders (USER_DATA).

GET /fapi/v1/allAlgoOrders.

Get all algo (conditional) orders — active, CANCELED, TRIGGERED, or FINISHED — including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.

  • These orders will not be found:
    • order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
    • order create time + 90 days < current time

Weight(IP): 5

Security Type: USER_DATA

Notes:

  • If algoId is set, it will get orders >= that algoId. Otherwise most recent orders are returned.
  • The query time period must be less then 7 days( default as the recent 7 days).

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#query-all-algo-orders

◆ async_query_all_algo_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_all_algo_orders ( const QueryAllAlgoOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous query_all_algo_orders().

◆ query_current_open_order()

common::RestApiResponse< QueryCurrentOpenOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::query_current_open_order ( const QueryCurrentOpenOrderParams & params) const
inlinenodiscard

Query Current Open Order (USER_DATA).

GET /fapi/v1/openOrder.

Query open order

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • EitherorderId or origClientOrderId must be sent
  • If the queried order has been filled or cancelled, the error message "Order does not exist" will be returned.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#query-current-open-order

◆ async_query_current_open_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_query_current_open_order ( const QueryCurrentOpenOrderParams & params,
CompletionToken && token ) const
inline

◆ test_order()

common::RestApiResponse< TestOrderResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::test_order ( const TestOrderParams & params) const
inlinenodiscard

Test Order (TRADE).

POST /fapi/v1/order/test.

Testing order request, this order will not be submitted to matching engine

Security Type: TRADE

Notes: Additional mandatory parameters based on type:

Type Additional mandatory parameters
LIMIT timeInForce, quantity, price
MARKET quantity
STOP/TAKE_PROFIT quantity, price, stopPrice
STOP_MARKET/TAKE_PROFIT_MARKET stopPrice
TRAILING_STOP_MARKET callbackRate
  • Order with type STOP, parameter timeInForce can be sent ( default GTC).
  • Order with type TAKE_PROFIT, parameter timeInForce can be sent (default GTC).
  • Condition orders will be triggered when:
    • If parameterpriceProtectis sent as true:
      • when price reaches the stopPrice ,the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbol
      • "triggerProtect" of a symbol can be got from GET /fapi/v1/exchangeInfo
    • STOP, STOP_MARKET:
      • BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= stopPrice
      • SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= stopPrice
    • TAKE_PROFIT, TAKE_PROFIT_MARKET:
      • BUY: latest price ("MARK_PRICE" or "CONTRACT_PRICE") <= stopPrice
      • SELL: latest price ("MARK_PRICE" or "CONTRACT_PRICE") >= stopPrice
    • TRAILING_STOP_MARKET:
      • BUY: the lowest price after order placed <= activationPrice, and the latest price >= the lowest price * (1 + callbackRate)
      • SELL: the highest price after order placed >= activationPrice, and the latest price <= the highest price * (1 - callbackRate)
  • For TRAILING_STOP_MARKET, if you got such error code. > {"code": -2021, "msg": "Order would immediately trigger."} > means that the parameters you send do not meet the following requirements:
    • BUY: activationPrice should be smaller than latest price.
    • SELL: activationPrice should be larger than latest price.
  • If newOrderRespType is sent as RESULT :
    • MARKET order: the final FILLED result of the order will be return directly.
    • LIMIT order with special timeInForce: the final status result of the order(FILLED or EXPIRED) will be returned directly.
  • STOP_MARKET, TAKE_PROFIT_MARKET with closePosition=true:
    • Follow the same rules for condition orders.
    • If triggered,**close all** current long position( if SELL) or current short position( if BUY).
    • Cannot be used with quantity paremeter
    • Cannot be used with reduceOnly parameter
    • In Hedge Mode,cannot be used with BUY orders in LONG position side. and cannot be used with SELL orders in SHORT position side
  • selfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.
  • In extreme market conditions, timeInForce GTD order auto cancel time might be delayed comparing to goodTillDate

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#test-order

◆ async_test_order()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_test_order ( const TestOrderParams & params,
CompletionToken && token ) const
inline

Asynchronous test_order().

◆ users_force_orders()

common::RestApiResponse< std::vector< UsersForceOrdersResponseInner > > binance::derivatives_trading_usds_futures::rest_api::RestApi::users_force_orders ( const UsersForceOrdersParams & params = {}) const
inlinenodiscard

User's Force Orders (USER_DATA).

GET /fapi/v1/forceOrders.

Query user's Force Orders

Weight: 20 with symbol, 50 without symbol

Security Type: USER_DATA

Notes:

  • If "autoCloseType" is not sent, orders with both of the types will be returned
  • If "startTime" is not sent, data within 7 days before "endTime" can be queried

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/trade#users-force-orders

◆ async_users_force_orders()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_users_force_orders ( const UsersForceOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous users_force_orders().

◆ close_user_data_stream()

common::RestApiResponse< boost::json::value > binance::derivatives_trading_usds_futures::rest_api::RestApi::close_user_data_stream ( ) const
inlinenodiscard

Close User Data Stream (USER_STREAM).

DELETE /fapi/v1/listenKey.

Close out a user data stream.

Weight(IP): 1

Security Type: USER_STREAM

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/user-data-streams#close-user-data-stream

◆ async_close_user_data_stream()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_close_user_data_stream ( CompletionToken && token) const
inline

Asynchronous close_user_data_stream().

◆ keepalive_user_data_stream()

common::RestApiResponse< KeepaliveUserDataStreamResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::keepalive_user_data_stream ( ) const
inlinenodiscard

Keepalive User Data Stream (USER_STREAM).

PUT /fapi/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

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/user-data-streams#keepalive-user-data-stream

◆ async_keepalive_user_data_stream()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_keepalive_user_data_stream ( CompletionToken && token) const
inline

◆ start_user_data_stream()

common::RestApiResponse< StartUserDataStreamResponse > binance::derivatives_trading_usds_futures::rest_api::RestApi::start_user_data_stream ( ) const
inlinenodiscard

Start User Data Stream (USER_STREAM).

POST /fapi/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

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-usd-s-m-futures/api/rest-api/user-data-streams#start-user-data-stream

◆ async_start_user_data_stream()

template<class CompletionToken>
auto binance::derivatives_trading_usds_futures::rest_api::RestApi::async_start_user_data_stream ( CompletionToken && token) const
inline

Asynchronous start_user_data_stream().