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

#include <market_maker_endpoints_api.hpp>

Public Member Functions

 MarketMakerEndpointsApi (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< AutoCancelAllOpenOrdersResponse > auto_cancel_all_open_orders (const AutoCancelAllOpenOrdersParams &params) const
 Auto-Cancel All Open Orders (Kill-Switch) Heartbeat (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< GetAutoCancelAllOpenOrdersResponse > get_auto_cancel_all_open_orders (const GetAutoCancelAllOpenOrdersParams &params={}) const
 Get Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE).
template<class CompletionToken>
auto async_get_auto_cancel_all_open_orders (const GetAutoCancelAllOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous get_auto_cancel_all_open_orders().
common::RestApiResponse< SetAutoCancelAllOpenOrdersResponse > set_auto_cancel_all_open_orders (const SetAutoCancelAllOpenOrdersParams &params) const
 Set Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE).
template<class CompletionToken>
auto async_set_auto_cancel_all_open_orders (const SetAutoCancelAllOpenOrdersParams &params, CompletionToken &&token) const
 Asynchronous set_auto_cancel_all_open_orders().
common::RestApiResponse< GetMarketMakerProtectionConfigResponse > get_market_maker_protection_config (const GetMarketMakerProtectionConfigParams &params) const
 Get Market Maker Protection Config (TRADE).
template<class CompletionToken>
auto async_get_market_maker_protection_config (const GetMarketMakerProtectionConfigParams &params, CompletionToken &&token) const
 Asynchronous get_market_maker_protection_config().
common::RestApiResponse< ResetMarketMakerProtectionConfigResponse > reset_market_maker_protection_config (const ResetMarketMakerProtectionConfigParams &params) const
 Reset Market Maker Protection Config (TRADE).
template<class CompletionToken>
auto async_reset_market_maker_protection_config (const ResetMarketMakerProtectionConfigParams &params, CompletionToken &&token) const
 Asynchronous reset_market_maker_protection_config().
common::RestApiResponse< SetMarketMakerProtectionConfigResponse > set_market_maker_protection_config (const SetMarketMakerProtectionConfigParams &params) const
 Set Market Maker Protection Config (TRADE).
template<class CompletionToken>
auto async_set_market_maker_protection_config (const SetMarketMakerProtectionConfigParams &params, CompletionToken &&token) const
 Asynchronous set_market_maker_protection_config().

Constructor & Destructor Documentation

◆ MarketMakerEndpointsApi()

binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::MarketMakerEndpointsApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ auto_cancel_all_open_orders()

common::RestApiResponse< AutoCancelAllOpenOrdersResponse > binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::auto_cancel_all_open_orders ( const AutoCancelAllOpenOrdersParams & params) const
nodiscard

Auto-Cancel All Open Orders (Kill-Switch) Heartbeat (TRADE).

POST /eapi/v1/countdownCancelAllHeartBeat.

This endpoint resets the time from which the countdown will begin to the time this messaged is received. It should be called repeatedly as heartbeats. Multiple heartbeats can be updated at once by specifying the underlying symbols as a list (ex. BTCUSDT,ETHUSDT) in the underlyings parameter.

Weight(IP): 10

Security Type: TRADE

Notes:

  • The response will only include underlying symbols where the heartbeat has been successfully updated.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#auto-cancel-all-open-orders

◆ async_auto_cancel_all_open_orders()

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

Asynchronous auto_cancel_all_open_orders().

Completes with void(std::exception_ptr, common::RestApiResponse<AutoCancelAllOpenOrdersResponse>).

◆ get_auto_cancel_all_open_orders()

common::RestApiResponse< GetAutoCancelAllOpenOrdersResponse > binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::get_auto_cancel_all_open_orders ( const GetAutoCancelAllOpenOrdersParams & params = {}) const
nodiscard

Get Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE).

GET /eapi/v1/countdownCancelAll.

This endpoint returns the auto-cancel parameters for each underlying symbol. Note only active auto-cancel parameters will be returned, if countdownTime is set to 0 (ie. countdownTime has been turned off), the underlying symbol and corresponding countdownTime parameter will not be returned in the response.

Weight(IP): 1

Security Type: TRADE

Notes:

  • countdownTime = 0 means the function is disabled.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#get-auto-cancel-all-open-orders

◆ async_get_auto_cancel_all_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::async_get_auto_cancel_all_open_orders ( const GetAutoCancelAllOpenOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous get_auto_cancel_all_open_orders().

Completes with void(std::exception_ptr, common::RestApiResponse<GetAutoCancelAllOpenOrdersResponse>).

◆ set_auto_cancel_all_open_orders()

common::RestApiResponse< SetAutoCancelAllOpenOrdersResponse > binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::set_auto_cancel_all_open_orders ( const SetAutoCancelAllOpenOrdersParams & params) const
nodiscard

Set Auto-Cancel All Open Orders (Kill-Switch) Config (TRADE).

POST /eapi/v1/countdownCancelAll.

This endpoint sets the parameters of the auto-cancel feature which cancels all open orders (both market maker protection and non market maker protection order types) of the underlying symbol at the end of the specified countdown time period if no heartbeat message is sent. After the countdown time period, all open orders will be cancelled. The auto-cancel feature can be turned off by setting countdownTime to 0.

Weight(IP): 1

Security Type: TRADE

Notes:

  • This rest endpoint sets up the parameters to cancel your open orders in case of an outage or disconnection.
  • Example usage: > Call this endpoint with a countdownTime value of 10000 (10 seconds) to turn on the auto-cancel feature. If the corresponding countdownCancelAllHeartBeat endpoint is not called within 10 seconds with the specified underlying symbol, all open 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 100 milliseconds, 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.

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#set-auto-cancel-all-open-orders

◆ async_set_auto_cancel_all_open_orders()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::async_set_auto_cancel_all_open_orders ( const SetAutoCancelAllOpenOrdersParams & params,
CompletionToken && token ) const
inline

Asynchronous set_auto_cancel_all_open_orders().

Completes with void(std::exception_ptr, common::RestApiResponse<SetAutoCancelAllOpenOrdersResponse>).

◆ get_market_maker_protection_config()

common::RestApiResponse< GetMarketMakerProtectionConfigResponse > binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::get_market_maker_protection_config ( const GetMarketMakerProtectionConfigParams & params) const
nodiscard

Get Market Maker Protection Config (TRADE).

GET /eapi/v1/mmp.

Get config for MMP.

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#get-market-maker-protection-config

◆ async_get_market_maker_protection_config()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::async_get_market_maker_protection_config ( const GetMarketMakerProtectionConfigParams & params,
CompletionToken && token ) const
inline

◆ reset_market_maker_protection_config()

common::RestApiResponse< ResetMarketMakerProtectionConfigResponse > binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::reset_market_maker_protection_config ( const ResetMarketMakerProtectionConfigParams & params) const
nodiscard

Reset Market Maker Protection Config (TRADE).

POST /eapi/v1/mmpReset.

Reset MMP, start MMP order again.

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#reset-market-maker-protection-config

◆ async_reset_market_maker_protection_config()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::async_reset_market_maker_protection_config ( const ResetMarketMakerProtectionConfigParams & params,
CompletionToken && token ) const
inline

◆ set_market_maker_protection_config()

common::RestApiResponse< SetMarketMakerProtectionConfigResponse > binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::set_market_maker_protection_config ( const SetMarketMakerProtectionConfigParams & params) const
nodiscard

Set Market Maker Protection Config (TRADE).

POST /eapi/v1/mmpSet.

Set config for MMP. Market Maker Protection(MMP) is a set of protection mechanism for option market maker, this mechanism is able to prevent mass trading in short period time. Once market maker's account branches the threshold, the Market Maker Protection will be triggered. When Market Maker Protection triggers, all the current MMP orders will be canceled, new MMP orders will be rejected. Market maker can use this time to reevaluate market and modify order price.

Weight(IP): 1

Security Type: TRADE

See https://developers.binance.com/en/docs/catalog/core-trading-derivatives-trading-options/api/rest-api/market-maker-endpoints#set-market-maker-protection-config

◆ async_set_market_maker_protection_config()

template<class CompletionToken>
auto binance::derivatives_trading_options::rest_api::MarketMakerEndpointsApi::async_set_market_maker_protection_config ( const SetMarketMakerProtectionConfigParams & params,
CompletionToken && token ) const
inline