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

#include <eth_staking_api.hpp>

Public Member Functions

 EthStakingApi (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< EthStakingAccountResponse > eth_staking_account (const EthStakingAccountParams &params={}) const
 ETH Staking account (USER_DATA).
template<class CompletionToken>
auto async_eth_staking_account (const EthStakingAccountParams &params, CompletionToken &&token) const
 Asynchronous eth_staking_account().
common::RestApiResponse< GetCurrentEthStakingQuotaResponse > get_current_eth_staking_quota (const GetCurrentEthStakingQuotaParams &params={}) const
 Get current ETH staking quota (USER_DATA).
template<class CompletionToken>
auto async_get_current_eth_staking_quota (const GetCurrentEthStakingQuotaParams &params, CompletionToken &&token) const
 Asynchronous get_current_eth_staking_quota().
common::RestApiResponse< GetEthRedemptionHistoryResponse > get_eth_redemption_history (const GetEthRedemptionHistoryParams &params={}) const
 Get ETH redemption history (USER_DATA).
template<class CompletionToken>
auto async_get_eth_redemption_history (const GetEthRedemptionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_eth_redemption_history().
common::RestApiResponse< GetEthStakingHistoryResponse > get_eth_staking_history (const GetEthStakingHistoryParams &params={}) const
 Get ETH staking history (USER_DATA).
template<class CompletionToken>
auto async_get_eth_staking_history (const GetEthStakingHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_eth_staking_history().
common::RestApiResponse< GetWbethRateHistoryResponse > get_wbeth_rate_history (const GetWbethRateHistoryParams &params={}) const
 Get WBETH Rate History (USER_DATA).
template<class CompletionToken>
auto async_get_wbeth_rate_history (const GetWbethRateHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_wbeth_rate_history().
common::RestApiResponse< GetWbethRewardsHistoryResponse > get_wbeth_rewards_history (const GetWbethRewardsHistoryParams &params={}) const
 Get WBETH rewards history (USER_DATA).
template<class CompletionToken>
auto async_get_wbeth_rewards_history (const GetWbethRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_wbeth_rewards_history().
common::RestApiResponse< GetWbethUnwrapHistoryResponse > get_wbeth_unwrap_history (const GetWbethUnwrapHistoryParams &params={}) const
 Get WBETH unwrap history (USER_DATA).
template<class CompletionToken>
auto async_get_wbeth_unwrap_history (const GetWbethUnwrapHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_wbeth_unwrap_history().
common::RestApiResponse< GetWbethWrapHistoryResponse > get_wbeth_wrap_history (const GetWbethWrapHistoryParams &params={}) const
 Get WBETH wrap history (USER_DATA).
template<class CompletionToken>
auto async_get_wbeth_wrap_history (const GetWbethWrapHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_wbeth_wrap_history().
common::RestApiResponse< RedeemEthResponse > redeem_eth (const RedeemEthParams &params) const
 Redeem ETH (TRADE).
template<class CompletionToken>
auto async_redeem_eth (const RedeemEthParams &params, CompletionToken &&token) const
 Asynchronous redeem_eth().
common::RestApiResponse< SubscribeEthStakingResponse > subscribe_eth_staking (const SubscribeEthStakingParams &params) const
 Subscribe ETH Staking (TRADE).
template<class CompletionToken>
auto async_subscribe_eth_staking (const SubscribeEthStakingParams &params, CompletionToken &&token) const
 Asynchronous subscribe_eth_staking().
common::RestApiResponse< WrapBethResponse > wrap_beth (const WrapBethParams &params) const
 Wrap BETH (TRADE).
template<class CompletionToken>
auto async_wrap_beth (const WrapBethParams &params, CompletionToken &&token) const
 Asynchronous wrap_beth().

Constructor & Destructor Documentation

◆ EthStakingApi()

binance::staking::rest_api::EthStakingApi::EthStakingApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ eth_staking_account()

common::RestApiResponse< EthStakingAccountResponse > binance::staking::rest_api::EthStakingApi::eth_staking_account ( const EthStakingAccountParams & params = {}) const
nodiscard

ETH Staking account (USER_DATA).

GET /sapi/v2/eth-staking/account.

ETH Staking account

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#eth-staking-account

◆ async_eth_staking_account()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_eth_staking_account ( const EthStakingAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous eth_staking_account().

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

◆ get_current_eth_staking_quota()

common::RestApiResponse< GetCurrentEthStakingQuotaResponse > binance::staking::rest_api::EthStakingApi::get_current_eth_staking_quota ( const GetCurrentEthStakingQuotaParams & params = {}) const
nodiscard

Get current ETH staking quota (USER_DATA).

GET /sapi/v1/eth-staking/eth/quota.

Get current ETH staking quota

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-current-eth-staking-quota

◆ async_get_current_eth_staking_quota()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_current_eth_staking_quota ( const GetCurrentEthStakingQuotaParams & params,
CompletionToken && token ) const
inline

Asynchronous get_current_eth_staking_quota().

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

◆ get_eth_redemption_history()

common::RestApiResponse< GetEthRedemptionHistoryResponse > binance::staking::rest_api::EthStakingApi::get_eth_redemption_history ( const GetEthRedemptionHistoryParams & params = {}) const
nodiscard

Get ETH redemption history (USER_DATA).

GET /sapi/v1/eth-staking/eth/history/redemptionHistory.

Get ETH redemption history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-eth-redemption-history

◆ async_get_eth_redemption_history()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_eth_redemption_history ( const GetEthRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_eth_redemption_history().

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

◆ get_eth_staking_history()

common::RestApiResponse< GetEthStakingHistoryResponse > binance::staking::rest_api::EthStakingApi::get_eth_staking_history ( const GetEthStakingHistoryParams & params = {}) const
nodiscard

Get ETH staking history (USER_DATA).

GET /sapi/v1/eth-staking/eth/history/stakingHistory.

Get ETH staking history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-eth-staking-history

◆ async_get_eth_staking_history()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_eth_staking_history ( const GetEthStakingHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_eth_staking_history().

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

◆ get_wbeth_rate_history()

common::RestApiResponse< GetWbethRateHistoryResponse > binance::staking::rest_api::EthStakingApi::get_wbeth_rate_history ( const GetWbethRateHistoryParams & params = {}) const
nodiscard

Get WBETH Rate History (USER_DATA).

GET /sapi/v1/eth-staking/eth/history/rateHistory.

Get WBETH Rate History

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-wbeth-rate-history

◆ async_get_wbeth_rate_history()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_wbeth_rate_history ( const GetWbethRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_wbeth_rate_history().

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

◆ get_wbeth_rewards_history()

common::RestApiResponse< GetWbethRewardsHistoryResponse > binance::staking::rest_api::EthStakingApi::get_wbeth_rewards_history ( const GetWbethRewardsHistoryParams & params = {}) const
nodiscard

Get WBETH rewards history (USER_DATA).

GET /sapi/v1/eth-staking/eth/history/wbethRewardsHistory.

Get WBETH rewards history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-wbeth-rewards-history

◆ async_get_wbeth_rewards_history()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_wbeth_rewards_history ( const GetWbethRewardsHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_wbeth_rewards_history().

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

◆ get_wbeth_unwrap_history()

common::RestApiResponse< GetWbethUnwrapHistoryResponse > binance::staking::rest_api::EthStakingApi::get_wbeth_unwrap_history ( const GetWbethUnwrapHistoryParams & params = {}) const
nodiscard

Get WBETH unwrap history (USER_DATA).

GET /sapi/v1/eth-staking/wbeth/history/unwrapHistory.

Get WBETH unwrap history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-wbeth-unwrap-history

◆ async_get_wbeth_unwrap_history()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_wbeth_unwrap_history ( const GetWbethUnwrapHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_wbeth_unwrap_history().

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

◆ get_wbeth_wrap_history()

common::RestApiResponse< GetWbethWrapHistoryResponse > binance::staking::rest_api::EthStakingApi::get_wbeth_wrap_history ( const GetWbethWrapHistoryParams & params = {}) const
nodiscard

Get WBETH wrap history (USER_DATA).

GET /sapi/v1/eth-staking/wbeth/history/wrapHistory.

Get WBETH wrap history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 3 months.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
  • If startTime is sent but endTime is not sent, the next 30 days' data beginning from startTime will be returned.
  • If endTime is sent but startTime is not sent, the 30 days' data before endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#get-wbeth-wrap-history

◆ async_get_wbeth_wrap_history()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_get_wbeth_wrap_history ( const GetWbethWrapHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_wbeth_wrap_history().

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

◆ redeem_eth()

common::RestApiResponse< RedeemEthResponse > binance::staking::rest_api::EthStakingApi::redeem_eth ( const RedeemEthParams & params) const
nodiscard

Redeem ETH (TRADE).

POST /sapi/v1/eth-staking/eth/redeem.

Redeem WBETH or BETH and get ETH

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#redeem-eth

◆ async_redeem_eth()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_redeem_eth ( const RedeemEthParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_eth().

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

◆ subscribe_eth_staking()

common::RestApiResponse< SubscribeEthStakingResponse > binance::staking::rest_api::EthStakingApi::subscribe_eth_staking ( const SubscribeEthStakingParams & params) const
nodiscard

Subscribe ETH Staking (TRADE).

POST /sapi/v2/eth-staking/eth/stake.

Subscribe ETH Staking

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#subscribe-eth-staking

◆ async_subscribe_eth_staking()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_subscribe_eth_staking ( const SubscribeEthStakingParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_eth_staking().

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

◆ wrap_beth()

common::RestApiResponse< WrapBethResponse > binance::staking::rest_api::EthStakingApi::wrap_beth ( const WrapBethParams & params) const
nodiscard

Wrap BETH (TRADE).

POST /sapi/v1/eth-staking/wbeth/wrap.

Wrap BETH

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/eth-staking#wrap-beth

◆ async_wrap_beth()

template<class CompletionToken>
auto binance::staking::rest_api::EthStakingApi::async_wrap_beth ( const WrapBethParams & params,
CompletionToken && token ) const
inline

Asynchronous wrap_beth().

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