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

Staking 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< 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().
common::RestApiResponse< GetOnChainYieldsLockedPersonalLeftQuotaResponse > get_on_chain_yields_locked_personal_left_quota (const GetOnChainYieldsLockedPersonalLeftQuotaParams &params) const
 Get On-chain Yields Locked Personal Left Quota (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_personal_left_quota (const GetOnChainYieldsLockedPersonalLeftQuotaParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_personal_left_quota().
common::RestApiResponse< GetOnChainYieldsLockedProductListResponse > get_on_chain_yields_locked_product_list (const GetOnChainYieldsLockedProductListParams &params={}) const
 Get On-chain Yields Locked Product List (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_product_list (const GetOnChainYieldsLockedProductListParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_product_list().
common::RestApiResponse< GetOnChainYieldsLockedProductPositionResponse > get_on_chain_yields_locked_product_position (const GetOnChainYieldsLockedProductPositionParams &params={}) const
 Get On-chain Yields Locked Product Position (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_product_position (const GetOnChainYieldsLockedProductPositionParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_product_position().
common::RestApiResponse< GetOnChainYieldsLockedRedemptionRecordResponse > get_on_chain_yields_locked_redemption_record (const GetOnChainYieldsLockedRedemptionRecordParams &params={}) const
 Get On-chain Yields Locked Redemption Record (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_redemption_record (const GetOnChainYieldsLockedRedemptionRecordParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_redemption_record().
common::RestApiResponse< GetOnChainYieldsLockedRewardsHistoryResponse > get_on_chain_yields_locked_rewards_history (const GetOnChainYieldsLockedRewardsHistoryParams &params={}) const
 Get On-chain Yields Locked Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_rewards_history (const GetOnChainYieldsLockedRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_rewards_history().
common::RestApiResponse< GetOnChainYieldsLockedSubscriptionPreviewResponse > get_on_chain_yields_locked_subscription_preview (const GetOnChainYieldsLockedSubscriptionPreviewParams &params) const
 Get On-chain Yields Locked Subscription Preview (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_subscription_preview (const GetOnChainYieldsLockedSubscriptionPreviewParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_subscription_preview().
common::RestApiResponse< GetOnChainYieldsLockedSubscriptionRecordResponse > get_on_chain_yields_locked_subscription_record (const GetOnChainYieldsLockedSubscriptionRecordParams &params={}) const
 Get On-chain Yields Locked Subscription Record (USER_DATA).
template<class CompletionToken>
auto async_get_on_chain_yields_locked_subscription_record (const GetOnChainYieldsLockedSubscriptionRecordParams &params, CompletionToken &&token) const
 Asynchronous get_on_chain_yields_locked_subscription_record().
common::RestApiResponse< OnChainYieldsAccountResponse > on_chain_yields_account (const OnChainYieldsAccountParams &params={}) const
 On-chain Yields Account (USER_DATA).
template<class CompletionToken>
auto async_on_chain_yields_account (const OnChainYieldsAccountParams &params, CompletionToken &&token) const
 Asynchronous on_chain_yields_account().
common::RestApiResponse< RedeemOnChainYieldsLockedProductResponse > redeem_on_chain_yields_locked_product (const RedeemOnChainYieldsLockedProductParams &params) const
 Redeem On-chain Yields Locked Product (TRADE).
template<class CompletionToken>
auto async_redeem_on_chain_yields_locked_product (const RedeemOnChainYieldsLockedProductParams &params, CompletionToken &&token) const
 Asynchronous redeem_on_chain_yields_locked_product().
common::RestApiResponse< SetOnChainYieldsLockedAutoSubscribeResponse > set_on_chain_yields_locked_auto_subscribe (const SetOnChainYieldsLockedAutoSubscribeParams &params) const
 Set On-chain Yields Locked Auto Subscribe (USER_DATA).
template<class CompletionToken>
auto async_set_on_chain_yields_locked_auto_subscribe (const SetOnChainYieldsLockedAutoSubscribeParams &params, CompletionToken &&token) const
 Asynchronous set_on_chain_yields_locked_auto_subscribe().
common::RestApiResponse< SetOnChainYieldsLockedProductRedeemOptionResponse > set_on_chain_yields_locked_product_redeem_option (const SetOnChainYieldsLockedProductRedeemOptionParams &params) const
 Set On-chain Yields Locked Product Redeem Option (USER_DATA).
template<class CompletionToken>
auto async_set_on_chain_yields_locked_product_redeem_option (const SetOnChainYieldsLockedProductRedeemOptionParams &params, CompletionToken &&token) const
 Asynchronous set_on_chain_yields_locked_product_redeem_option().
common::RestApiResponse< SubscribeOnChainYieldsLockedProductResponse > subscribe_on_chain_yields_locked_product (const SubscribeOnChainYieldsLockedProductParams &params) const
 Subscribe On-chain Yields Locked Product (TRADE).
template<class CompletionToken>
auto async_subscribe_on_chain_yields_locked_product (const SubscribeOnChainYieldsLockedProductParams &params, CompletionToken &&token) const
 Asynchronous subscribe_on_chain_yields_locked_product().
common::RestApiResponse< GetSoftStakingProductListResponse > get_soft_staking_product_list (const GetSoftStakingProductListParams &params={}) const
 Get Soft Staking Product List (USER_DATA).
template<class CompletionToken>
auto async_get_soft_staking_product_list (const GetSoftStakingProductListParams &params, CompletionToken &&token) const
 Asynchronous get_soft_staking_product_list().
common::RestApiResponse< GetSoftStakingRewardsHistoryResponse > get_soft_staking_rewards_history (const GetSoftStakingRewardsHistoryParams &params={}) const
 Get Soft Staking Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_soft_staking_rewards_history (const GetSoftStakingRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_soft_staking_rewards_history().
common::RestApiResponse< SetSoftStakingResponse > set_soft_staking (const SetSoftStakingParams &params) const
 Set Soft Staking (USER_DATA).
template<class CompletionToken>
auto async_set_soft_staking (const SetSoftStakingParams &params, CompletionToken &&token) const
 Asynchronous set_soft_staking().
common::RestApiResponse< ClaimBoostRewardsResponse > claim_boost_rewards (const ClaimBoostRewardsParams &params={}) const
 Claim Boost Rewards (TRADE).
template<class CompletionToken>
auto async_claim_boost_rewards (const ClaimBoostRewardsParams &params, CompletionToken &&token) const
 Asynchronous claim_boost_rewards().
common::RestApiResponse< GetBnsolRateHistoryResponse > get_bnsol_rate_history (const GetBnsolRateHistoryParams &params={}) const
 Get BNSOL Rate History (USER_DATA).
template<class CompletionToken>
auto async_get_bnsol_rate_history (const GetBnsolRateHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_bnsol_rate_history().
common::RestApiResponse< GetBnsolRewardsHistoryResponse > get_bnsol_rewards_history (const GetBnsolRewardsHistoryParams &params={}) const
 Get BNSOL rewards history (USER_DATA).
template<class CompletionToken>
auto async_get_bnsol_rewards_history (const GetBnsolRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_bnsol_rewards_history().
common::RestApiResponse< GetBoostRewardsHistoryResponse > get_boost_rewards_history (const GetBoostRewardsHistoryParams &params) const
 Get Boost Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_boost_rewards_history (const GetBoostRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_boost_rewards_history().
common::RestApiResponse< GetSolRedemptionHistoryResponse > get_sol_redemption_history (const GetSolRedemptionHistoryParams &params={}) const
 Get SOL redemption history (USER_DATA).
template<class CompletionToken>
auto async_get_sol_redemption_history (const GetSolRedemptionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_sol_redemption_history().
common::RestApiResponse< GetSolStakingHistoryResponse > get_sol_staking_history (const GetSolStakingHistoryParams &params={}) const
 Get SOL staking history (USER_DATA).
template<class CompletionToken>
auto async_get_sol_staking_history (const GetSolStakingHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_sol_staking_history().
common::RestApiResponse< GetSolStakingQuotaDetailsResponse > get_sol_staking_quota_details (const GetSolStakingQuotaDetailsParams &params={}) const
 Get SOL staking quota details (USER_DATA).
template<class CompletionToken>
auto async_get_sol_staking_quota_details (const GetSolStakingQuotaDetailsParams &params, CompletionToken &&token) const
 Asynchronous get_sol_staking_quota_details().
common::RestApiResponse< std::vector< GetUnclaimedRewardsResponseInner > > get_unclaimed_rewards (const GetUnclaimedRewardsParams &params={}) const
 Get Unclaimed Rewards (USER_DATA).
template<class CompletionToken>
auto async_get_unclaimed_rewards (const GetUnclaimedRewardsParams &params, CompletionToken &&token) const
 Asynchronous get_unclaimed_rewards().
common::RestApiResponse< RedeemSolResponse > redeem_sol (const RedeemSolParams &params) const
 Redeem SOL (TRADE).
template<class CompletionToken>
auto async_redeem_sol (const RedeemSolParams &params, CompletionToken &&token) const
 Asynchronous redeem_sol().
common::RestApiResponse< SolStakingAccountResponse > sol_staking_account (const SolStakingAccountParams &params={}) const
 SOL Staking account (USER_DATA).
template<class CompletionToken>
auto async_sol_staking_account (const SolStakingAccountParams &params, CompletionToken &&token) const
 Asynchronous sol_staking_account().
common::RestApiResponse< SubscribeSolStakingResponse > subscribe_sol_staking (const SubscribeSolStakingParams &params) const
 Subscribe SOL Staking (TRADE).
template<class CompletionToken>
auto async_subscribe_sol_staking (const SubscribeSolStakingParams &params, CompletionToken &&token) const
 Asynchronous subscribe_sol_staking().

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 (Staking REST API).

Detailed Description

Staking 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::staking::rest_api::RestApi::RestApi ( common::RestApiConfig configuration)
explicit

Throws common::ConfigError if the configuration is invalid.

Member Function Documentation

◆ from_config()

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

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

◆ production()

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

A client for production (Staking REST API).

◆ configuration()

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

◆ send_request()

template<class T>
common::RestApiResponse< T > binance::staking::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::staking::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::staking::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::staking::rest_api::RestApi::async_send_signed_request ( std::string endpoint,
common::HttpMethod method,
common::Params query,
common::Params body,
CompletionToken && token ) const
inline

◆ eth_staking_account()

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

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::RestApi::async_eth_staking_account ( const EthStakingAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous eth_staking_account().

◆ get_current_eth_staking_quota()

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

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::RestApi::async_get_current_eth_staking_quota ( const GetCurrentEthStakingQuotaParams & params,
CompletionToken && token ) const
inline

◆ get_eth_redemption_history()

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

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::RestApi::async_get_eth_redemption_history ( const GetEthRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_eth_staking_history()

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

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::RestApi::async_get_eth_staking_history ( const GetEthStakingHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_wbeth_rate_history()

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

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::RestApi::async_get_wbeth_rate_history ( const GetWbethRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_wbeth_rate_history().

◆ get_wbeth_rewards_history()

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

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::RestApi::async_get_wbeth_rewards_history ( const GetWbethRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_wbeth_unwrap_history()

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

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::RestApi::async_get_wbeth_unwrap_history ( const GetWbethUnwrapHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_wbeth_wrap_history()

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

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::RestApi::async_get_wbeth_wrap_history ( const GetWbethWrapHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_wbeth_wrap_history().

◆ redeem_eth()

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

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::RestApi::async_redeem_eth ( const RedeemEthParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_eth().

◆ subscribe_eth_staking()

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

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::RestApi::async_subscribe_eth_staking ( const SubscribeEthStakingParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_eth_staking().

◆ wrap_beth()

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

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::RestApi::async_wrap_beth ( const WrapBethParams & params,
CompletionToken && token ) const
inline

Asynchronous wrap_beth().

◆ get_on_chain_yields_locked_personal_left_quota()

common::RestApiResponse< GetOnChainYieldsLockedPersonalLeftQuotaResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_personal_left_quota ( const GetOnChainYieldsLockedPersonalLeftQuotaParams & params) const
inlinenodiscard

Get On-chain Yields Locked Personal Left Quota (USER_DATA).

GET /sapi/v1/onchain-yields/locked/personalLeftQuota.

Get On-chain Yields Locked Personal Left Quota

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/on-chain-yields#get-on-chain-yields-locked-personal-left-quota

◆ async_get_on_chain_yields_locked_personal_left_quota()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_personal_left_quota ( const GetOnChainYieldsLockedPersonalLeftQuotaParams & params,
CompletionToken && token ) const
inline

◆ get_on_chain_yields_locked_product_list()

common::RestApiResponse< GetOnChainYieldsLockedProductListResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_product_list ( const GetOnChainYieldsLockedProductListParams & params = {}) const
inlinenodiscard

Get On-chain Yields Locked Product List (USER_DATA).

GET /sapi/v1/onchain-yields/locked/list.

Get available On-chain Yields Locked product list

Weight(IP): 50

Security Type: USER_DATA

Notes:

  • Get available On-chain Yields Locked product list

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/on-chain-yields#get-on-chain-yields-locked-product-list

◆ async_get_on_chain_yields_locked_product_list()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_product_list ( const GetOnChainYieldsLockedProductListParams & params,
CompletionToken && token ) const
inline

◆ get_on_chain_yields_locked_product_position()

common::RestApiResponse< GetOnChainYieldsLockedProductPositionResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_product_position ( const GetOnChainYieldsLockedProductPositionParams & params = {}) const
inlinenodiscard

Get On-chain Yields Locked Product Position (USER_DATA).

GET /sapi/v1/onchain-yields/locked/position.

Get On-chain Yields Locked Product Position

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/on-chain-yields#get-on-chain-yields-locked-product-position

◆ async_get_on_chain_yields_locked_product_position()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_product_position ( const GetOnChainYieldsLockedProductPositionParams & params,
CompletionToken && token ) const
inline

◆ get_on_chain_yields_locked_redemption_record()

common::RestApiResponse< GetOnChainYieldsLockedRedemptionRecordResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_redemption_record ( const GetOnChainYieldsLockedRedemptionRecordParams & params = {}) const
inlinenodiscard

Get On-chain Yields Locked Redemption Record (USER_DATA).

GET /sapi/v1/onchain-yields/locked/history/redemptionRecord.

Get On-chain Yields Locked Redemption Record

Weight(IP): 50

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/on-chain-yields#get-on-chain-yields-locked-redemption-record

◆ async_get_on_chain_yields_locked_redemption_record()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_redemption_record ( const GetOnChainYieldsLockedRedemptionRecordParams & params,
CompletionToken && token ) const
inline

◆ get_on_chain_yields_locked_rewards_history()

common::RestApiResponse< GetOnChainYieldsLockedRewardsHistoryResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_rewards_history ( const GetOnChainYieldsLockedRewardsHistoryParams & params = {}) const
inlinenodiscard

Get On-chain Yields Locked Rewards History (USER_DATA).

GET /sapi/v1/onchain-yields/locked/history/rewardsRecord.

Get On-chain Yields Locked Rewards History

Weight(IP): 50

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/on-chain-yields#get-on-chain-yields-locked-rewards-history

◆ async_get_on_chain_yields_locked_rewards_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_rewards_history ( const GetOnChainYieldsLockedRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_on_chain_yields_locked_subscription_preview()

common::RestApiResponse< GetOnChainYieldsLockedSubscriptionPreviewResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_subscription_preview ( const GetOnChainYieldsLockedSubscriptionPreviewParams & params) const
inlinenodiscard

Get On-chain Yields Locked Subscription Preview (USER_DATA).

GET /sapi/v1/onchain-yields/locked/subscriptionPreview.

Get On-chain Yields Locked Subscription Preview

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/on-chain-yields#get-on-chain-yields-locked-subscription-preview

◆ async_get_on_chain_yields_locked_subscription_preview()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_subscription_preview ( const GetOnChainYieldsLockedSubscriptionPreviewParams & params,
CompletionToken && token ) const
inline

◆ get_on_chain_yields_locked_subscription_record()

common::RestApiResponse< GetOnChainYieldsLockedSubscriptionRecordResponse > binance::staking::rest_api::RestApi::get_on_chain_yields_locked_subscription_record ( const GetOnChainYieldsLockedSubscriptionRecordParams & params = {}) const
inlinenodiscard

Get On-chain Yields Locked Subscription Record (USER_DATA).

GET /sapi/v1/onchain-yields/locked/history/subscriptionRecord.

Get On-chain Yields Locked Subscription Record

Weight(IP): 50

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/on-chain-yields#get-on-chain-yields-locked-subscription-record

◆ async_get_on_chain_yields_locked_subscription_record()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_on_chain_yields_locked_subscription_record ( const GetOnChainYieldsLockedSubscriptionRecordParams & params,
CompletionToken && token ) const
inline

◆ on_chain_yields_account()

common::RestApiResponse< OnChainYieldsAccountResponse > binance::staking::rest_api::RestApi::on_chain_yields_account ( const OnChainYieldsAccountParams & params = {}) const
inlinenodiscard

On-chain Yields Account (USER_DATA).

GET /sapi/v1/onchain-yields/account.

On-chain Yields Account query

Weight(IP): 50

Security Type: USER_DATA

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

◆ async_on_chain_yields_account()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_on_chain_yields_account ( const OnChainYieldsAccountParams & params,
CompletionToken && token ) const
inline

◆ redeem_on_chain_yields_locked_product()

common::RestApiResponse< RedeemOnChainYieldsLockedProductResponse > binance::staking::rest_api::RestApi::redeem_on_chain_yields_locked_product ( const RedeemOnChainYieldsLockedProductParams & params) const
inlinenodiscard

Redeem On-chain Yields Locked Product (TRADE).

POST /sapi/v1/onchain-yields/locked/redeem.

Redeem On-chain Yields Locked Product

Weight(IP): 200

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/on-chain-yields#redeem-on-chain-yields-locked-product

◆ async_redeem_on_chain_yields_locked_product()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_redeem_on_chain_yields_locked_product ( const RedeemOnChainYieldsLockedProductParams & params,
CompletionToken && token ) const
inline

◆ set_on_chain_yields_locked_auto_subscribe()

common::RestApiResponse< SetOnChainYieldsLockedAutoSubscribeResponse > binance::staking::rest_api::RestApi::set_on_chain_yields_locked_auto_subscribe ( const SetOnChainYieldsLockedAutoSubscribeParams & params) const
inlinenodiscard

Set On-chain Yields Locked Auto Subscribe (USER_DATA).

POST /sapi/v1/onchain-yields/locked/setAutoSubscribe.

Set On-chain Yield locked auto subscribe

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/on-chain-yields#set-on-chain-yields-locked-auto-subscribe

◆ async_set_on_chain_yields_locked_auto_subscribe()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_set_on_chain_yields_locked_auto_subscribe ( const SetOnChainYieldsLockedAutoSubscribeParams & params,
CompletionToken && token ) const
inline

◆ set_on_chain_yields_locked_product_redeem_option()

common::RestApiResponse< SetOnChainYieldsLockedProductRedeemOptionResponse > binance::staking::rest_api::RestApi::set_on_chain_yields_locked_product_redeem_option ( const SetOnChainYieldsLockedProductRedeemOptionParams & params) const
inlinenodiscard

Set On-chain Yields Locked Product Redeem Option (USER_DATA).

POST /sapi/v1/onchain-yields/locked/setRedeemOption.

Set On-chain Yields redeem option for Locked product

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-staking/api/rest-api/on-chain-yields#set-on-chain-yields-locked-product-redeem-option

◆ async_set_on_chain_yields_locked_product_redeem_option()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_set_on_chain_yields_locked_product_redeem_option ( const SetOnChainYieldsLockedProductRedeemOptionParams & params,
CompletionToken && token ) const
inline

◆ subscribe_on_chain_yields_locked_product()

common::RestApiResponse< SubscribeOnChainYieldsLockedProductResponse > binance::staking::rest_api::RestApi::subscribe_on_chain_yields_locked_product ( const SubscribeOnChainYieldsLockedProductParams & params) const
inlinenodiscard

Subscribe On-chain Yields Locked Product (TRADE).

POST /sapi/v1/onchain-yields/locked/subscribe.

Subscribe On-chain Yields Locked Product

Weight(IP): 200

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/on-chain-yields#subscribe-on-chain-yields-locked-product

◆ async_subscribe_on_chain_yields_locked_product()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_subscribe_on_chain_yields_locked_product ( const SubscribeOnChainYieldsLockedProductParams & params,
CompletionToken && token ) const
inline

◆ get_soft_staking_product_list()

common::RestApiResponse< GetSoftStakingProductListResponse > binance::staking::rest_api::RestApi::get_soft_staking_product_list ( const GetSoftStakingProductListParams & params = {}) const
inlinenodiscard

Get Soft Staking Product List (USER_DATA).

GET /sapi/v1/soft-staking/list.

Get the available Soft Staking product list.

Weight(IP): 50

Security Type: USER_DATA

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

◆ async_get_soft_staking_product_list()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_soft_staking_product_list ( const GetSoftStakingProductListParams & params,
CompletionToken && token ) const
inline

◆ get_soft_staking_rewards_history()

common::RestApiResponse< GetSoftStakingRewardsHistoryResponse > binance::staking::rest_api::RestApi::get_soft_staking_rewards_history ( const GetSoftStakingRewardsHistoryParams & params = {}) const
inlinenodiscard

Get Soft Staking Rewards History (USER_DATA).

GET /sapi/v1/soft-staking/history/rewardsRecord.

Get Soft Staking Rewards History

Weight(IP): 50

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/soft-staking#get-soft-staking-rewards-history

◆ async_get_soft_staking_rewards_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_soft_staking_rewards_history ( const GetSoftStakingRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ set_soft_staking()

common::RestApiResponse< SetSoftStakingResponse > binance::staking::rest_api::RestApi::set_soft_staking ( const SetSoftStakingParams & params) const
inlinenodiscard

Set Soft Staking (USER_DATA).

GET /sapi/v1/soft-staking/set.

Enable or disable Soft Staking.

Weight(IP): 50

Security Type: USER_DATA

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

◆ async_set_soft_staking()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_set_soft_staking ( const SetSoftStakingParams & params,
CompletionToken && token ) const
inline

Asynchronous set_soft_staking().

◆ claim_boost_rewards()

common::RestApiResponse< ClaimBoostRewardsResponse > binance::staking::rest_api::RestApi::claim_boost_rewards ( const ClaimBoostRewardsParams & params = {}) const
inlinenodiscard

Claim Boost Rewards (TRADE).

POST /sapi/v1/sol-staking/sol/claim.

Claim Boost APR Airdrop Rewards

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/sol-staking#claim-boost-rewards

◆ async_claim_boost_rewards()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_claim_boost_rewards ( const ClaimBoostRewardsParams & params,
CompletionToken && token ) const
inline

Asynchronous claim_boost_rewards().

◆ get_bnsol_rate_history()

common::RestApiResponse< GetBnsolRateHistoryResponse > binance::staking::rest_api::RestApi::get_bnsol_rate_history ( const GetBnsolRateHistoryParams & params = {}) const
inlinenodiscard

Get BNSOL Rate History (USER_DATA).

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

Get BNSOL 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/sol-staking#get-bnsol-rate-history

◆ async_get_bnsol_rate_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_bnsol_rate_history ( const GetBnsolRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bnsol_rate_history().

◆ get_bnsol_rewards_history()

common::RestApiResponse< GetBnsolRewardsHistoryResponse > binance::staking::rest_api::RestApi::get_bnsol_rewards_history ( const GetBnsolRewardsHistoryParams & params = {}) const
inlinenodiscard

Get BNSOL rewards history (USER_DATA).

GET /sapi/v1/sol-staking/sol/history/bnsolRewardsHistory.

Get BNSOL 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/sol-staking#get-bnsol-rewards-history

◆ async_get_bnsol_rewards_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_bnsol_rewards_history ( const GetBnsolRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_boost_rewards_history()

common::RestApiResponse< GetBoostRewardsHistoryResponse > binance::staking::rest_api::RestApi::get_boost_rewards_history ( const GetBoostRewardsHistoryParams & params) const
inlinenodiscard

Get Boost Rewards History (USER_DATA).

GET /sapi/v1/sol-staking/sol/history/boostRewardsHistory.

Get Boost 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/sol-staking#get-boost-rewards-history

◆ async_get_boost_rewards_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_boost_rewards_history ( const GetBoostRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_sol_redemption_history()

common::RestApiResponse< GetSolRedemptionHistoryResponse > binance::staking::rest_api::RestApi::get_sol_redemption_history ( const GetSolRedemptionHistoryParams & params = {}) const
inlinenodiscard

Get SOL redemption history (USER_DATA).

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

Get SOL 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/sol-staking#get-sol-redemption-history

◆ async_get_sol_redemption_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_sol_redemption_history ( const GetSolRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_sol_staking_history()

common::RestApiResponse< GetSolStakingHistoryResponse > binance::staking::rest_api::RestApi::get_sol_staking_history ( const GetSolStakingHistoryParams & params = {}) const
inlinenodiscard

Get SOL staking history (USER_DATA).

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

Get SOL 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/sol-staking#get-sol-staking-history

◆ async_get_sol_staking_history()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_sol_staking_history ( const GetSolStakingHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_sol_staking_quota_details()

common::RestApiResponse< GetSolStakingQuotaDetailsResponse > binance::staking::rest_api::RestApi::get_sol_staking_quota_details ( const GetSolStakingQuotaDetailsParams & params = {}) const
inlinenodiscard

Get SOL staking quota details (USER_DATA).

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

Get SOL staking quota

Weight(IP): 150

Security Type: USER_DATA

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

◆ async_get_sol_staking_quota_details()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_sol_staking_quota_details ( const GetSolStakingQuotaDetailsParams & params,
CompletionToken && token ) const
inline

◆ get_unclaimed_rewards()

common::RestApiResponse< std::vector< GetUnclaimedRewardsResponseInner > > binance::staking::rest_api::RestApi::get_unclaimed_rewards ( const GetUnclaimedRewardsParams & params = {}) const
inlinenodiscard

Get Unclaimed Rewards (USER_DATA).

GET /sapi/v1/sol-staking/sol/history/unclaimedRewards.

Get Unclaimed rewards

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/sol-staking#get-unclaimed-rewards

◆ async_get_unclaimed_rewards()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_get_unclaimed_rewards ( const GetUnclaimedRewardsParams & params,
CompletionToken && token ) const
inline

Asynchronous get_unclaimed_rewards().

◆ redeem_sol()

common::RestApiResponse< RedeemSolResponse > binance::staking::rest_api::RestApi::redeem_sol ( const RedeemSolParams & params) const
inlinenodiscard

Redeem SOL (TRADE).

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

Redeem BNSOL get SOL

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/sol-staking#redeem-sol

◆ async_redeem_sol()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_redeem_sol ( const RedeemSolParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_sol().

◆ sol_staking_account()

common::RestApiResponse< SolStakingAccountResponse > binance::staking::rest_api::RestApi::sol_staking_account ( const SolStakingAccountParams & params = {}) const
inlinenodiscard

SOL Staking account (USER_DATA).

GET /sapi/v1/sol-staking/account.

SOL Staking account

Weight(IP): 150

Security Type: USER_DATA

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

◆ async_sol_staking_account()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_sol_staking_account ( const SolStakingAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous sol_staking_account().

◆ subscribe_sol_staking()

common::RestApiResponse< SubscribeSolStakingResponse > binance::staking::rest_api::RestApi::subscribe_sol_staking ( const SubscribeSolStakingParams & params) const
inlinenodiscard

Subscribe SOL Staking (TRADE).

POST /sapi/v1/sol-staking/sol/stake.

Subscribe SOL 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/sol-staking#subscribe-sol-staking

◆ async_subscribe_sol_staking()

template<class CompletionToken>
auto binance::staking::rest_api::RestApi::async_subscribe_sol_staking ( const SubscribeSolStakingParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_sol_staking().