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

#include <soft_staking_api.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ SoftStakingApi()

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

Member Function Documentation

◆ get_soft_staking_product_list()

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

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::SoftStakingApi::async_get_soft_staking_product_list ( const GetSoftStakingProductListParams & params,
CompletionToken && token ) const
inline

Asynchronous get_soft_staking_product_list().

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

◆ get_soft_staking_rewards_history()

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

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::SoftStakingApi::async_get_soft_staking_rewards_history ( const GetSoftStakingRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ set_soft_staking()

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

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::SoftStakingApi::async_set_soft_staking ( const SetSoftStakingParams & params,
CompletionToken && token ) const
inline

Asynchronous set_soft_staking().

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