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

#include <sol_staking_api.hpp>

Public Member Functions

 SolStakingApi (std::shared_ptr< common::RestClient > client)
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().

Constructor & Destructor Documentation

◆ SolStakingApi()

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

Member Function Documentation

◆ claim_boost_rewards()

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

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::SolStakingApi::async_claim_boost_rewards ( const ClaimBoostRewardsParams & params,
CompletionToken && token ) const
inline

Asynchronous claim_boost_rewards().

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

◆ get_bnsol_rate_history()

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

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::SolStakingApi::async_get_bnsol_rate_history ( const GetBnsolRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bnsol_rate_history().

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

◆ get_bnsol_rewards_history()

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

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::SolStakingApi::async_get_bnsol_rewards_history ( const GetBnsolRewardsHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bnsol_rewards_history().

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

◆ get_boost_rewards_history()

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

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::SolStakingApi::async_get_boost_rewards_history ( const GetBoostRewardsHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_boost_rewards_history().

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

◆ get_sol_redemption_history()

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

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::SolStakingApi::async_get_sol_redemption_history ( const GetSolRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_sol_redemption_history().

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

◆ get_sol_staking_history()

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

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::SolStakingApi::async_get_sol_staking_history ( const GetSolStakingHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_sol_staking_history().

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

◆ get_sol_staking_quota_details()

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

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::SolStakingApi::async_get_sol_staking_quota_details ( const GetSolStakingQuotaDetailsParams & params,
CompletionToken && token ) const
inline

Asynchronous get_sol_staking_quota_details().

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

◆ get_unclaimed_rewards()

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

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::SolStakingApi::async_get_unclaimed_rewards ( const GetUnclaimedRewardsParams & params,
CompletionToken && token ) const
inline

Asynchronous get_unclaimed_rewards().

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

◆ redeem_sol()

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

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::SolStakingApi::async_redeem_sol ( const RedeemSolParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_sol().

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

◆ sol_staking_account()

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

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::SolStakingApi::async_sol_staking_account ( const SolStakingAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous sol_staking_account().

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

◆ subscribe_sol_staking()

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

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::SolStakingApi::async_subscribe_sol_staking ( const SubscribeSolStakingParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_sol_staking().

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