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

#include <on_chain_yields_api.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ OnChainYieldsApi()

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

Member Function Documentation

◆ get_on_chain_yields_locked_personal_left_quota()

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

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::OnChainYieldsApi::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::OnChainYieldsApi::get_on_chain_yields_locked_product_list ( const GetOnChainYieldsLockedProductListParams & params = {}) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::get_on_chain_yields_locked_product_position ( const GetOnChainYieldsLockedProductPositionParams & params = {}) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::get_on_chain_yields_locked_redemption_record ( const GetOnChainYieldsLockedRedemptionRecordParams & params = {}) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::get_on_chain_yields_locked_rewards_history ( const GetOnChainYieldsLockedRewardsHistoryParams & params = {}) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::get_on_chain_yields_locked_subscription_preview ( const GetOnChainYieldsLockedSubscriptionPreviewParams & params) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::get_on_chain_yields_locked_subscription_record ( const GetOnChainYieldsLockedSubscriptionRecordParams & params = {}) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::on_chain_yields_account ( const OnChainYieldsAccountParams & params = {}) const
nodiscard

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::OnChainYieldsApi::async_on_chain_yields_account ( const OnChainYieldsAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous on_chain_yields_account().

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

◆ redeem_on_chain_yields_locked_product()

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

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::OnChainYieldsApi::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::OnChainYieldsApi::set_on_chain_yields_locked_auto_subscribe ( const SetOnChainYieldsLockedAutoSubscribeParams & params) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::set_on_chain_yields_locked_product_redeem_option ( const SetOnChainYieldsLockedProductRedeemOptionParams & params) const
nodiscard

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::OnChainYieldsApi::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::OnChainYieldsApi::subscribe_on_chain_yields_locked_product ( const SubscribeOnChainYieldsLockedProductParams & params) const
nodiscard

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::OnChainYieldsApi::async_subscribe_on_chain_yields_locked_product ( const SubscribeOnChainYieldsLockedProductParams & params,
CompletionToken && token ) const
inline