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

SimpleEarn 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< GetBfusdAccountResponse > get_bfusd_account (const GetBfusdAccountParams &params={}) const
 Get BFUSD Account (USER_DATA).
template<class CompletionToken>
auto async_get_bfusd_account (const GetBfusdAccountParams &params, CompletionToken &&token) const
 Asynchronous get_bfusd_account().
common::RestApiResponse< GetBfusdQuotaDetailsResponse > get_bfusd_quota_details (const GetBfusdQuotaDetailsParams &params={}) const
 Get BFUSD Quota Details (USER_DATA).
template<class CompletionToken>
auto async_get_bfusd_quota_details (const GetBfusdQuotaDetailsParams &params, CompletionToken &&token) const
 Asynchronous get_bfusd_quota_details().
common::RestApiResponse< GetBfusdRateHistoryResponse > get_bfusd_rate_history (const GetBfusdRateHistoryParams &params={}) const
 Get BFUSD Rate History (USER_DATA).
template<class CompletionToken>
auto async_get_bfusd_rate_history (const GetBfusdRateHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_bfusd_rate_history().
common::RestApiResponse< GetBfusdRedemptionHistoryResponse > get_bfusd_redemption_history (const GetBfusdRedemptionHistoryParams &params={}) const
 Get BFUSD Redemption History (USER_DATA).
template<class CompletionToken>
auto async_get_bfusd_redemption_history (const GetBfusdRedemptionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_bfusd_redemption_history().
common::RestApiResponse< GetBfusdRewardsHistoryResponse > get_bfusd_rewards_history (const GetBfusdRewardsHistoryParams &params={}) const
 Get BFUSD Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_bfusd_rewards_history (const GetBfusdRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_bfusd_rewards_history().
common::RestApiResponse< GetBfusdSubscriptionHistoryResponse > get_bfusd_subscription_history (const GetBfusdSubscriptionHistoryParams &params={}) const
 Get BFUSD subscription history (USER_DATA).
template<class CompletionToken>
auto async_get_bfusd_subscription_history (const GetBfusdSubscriptionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_bfusd_subscription_history().
common::RestApiResponse< RedeemBfusdResponse > redeem_bfusd (const RedeemBfusdParams &params) const
 Redeem BFUSD (TRADE).
template<class CompletionToken>
auto async_redeem_bfusd (const RedeemBfusdParams &params, CompletionToken &&token) const
 Asynchronous redeem_bfusd().
common::RestApiResponse< SubscribeBfusdResponse > subscribe_bfusd (const SubscribeBfusdParams &params) const
 Subscribe BFUSD (TRADE).
template<class CompletionToken>
auto async_subscribe_bfusd (const SubscribeBfusdParams &params, CompletionToken &&token) const
 Asynchronous subscribe_bfusd().
common::RestApiResponse< GetCollateralRecordResponse > get_collateral_record (const GetCollateralRecordParams &params={}) const
 Get Collateral Record (USER_DATA).
template<class CompletionToken>
auto async_get_collateral_record (const GetCollateralRecordParams &params, CompletionToken &&token) const
 Asynchronous get_collateral_record().
common::RestApiResponse< GetFlexiblePersonalLeftQuotaResponse > get_flexible_personal_left_quota (const GetFlexiblePersonalLeftQuotaParams &params) const
 Get Flexible Personal Left Quota (USER_DATA).
template<class CompletionToken>
auto async_get_flexible_personal_left_quota (const GetFlexiblePersonalLeftQuotaParams &params, CompletionToken &&token) const
 Asynchronous get_flexible_personal_left_quota().
common::RestApiResponse< GetFlexibleProductPositionResponse > get_flexible_product_position (const GetFlexibleProductPositionParams &params={}) const
 Get Flexible Product Position (USER_DATA).
template<class CompletionToken>
auto async_get_flexible_product_position (const GetFlexibleProductPositionParams &params, CompletionToken &&token) const
 Asynchronous get_flexible_product_position().
common::RestApiResponse< GetFlexibleRedemptionRecordResponse > get_flexible_redemption_record (const GetFlexibleRedemptionRecordParams &params={}) const
 Get Flexible Redemption Record (USER_DATA).
template<class CompletionToken>
auto async_get_flexible_redemption_record (const GetFlexibleRedemptionRecordParams &params, CompletionToken &&token) const
 Asynchronous get_flexible_redemption_record().
common::RestApiResponse< GetFlexibleRewardsHistoryResponse > get_flexible_rewards_history (const GetFlexibleRewardsHistoryParams &params={}) const
 Get Flexible Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_flexible_rewards_history (const GetFlexibleRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_flexible_rewards_history().
common::RestApiResponse< GetFlexibleSubscriptionPreviewResponse > get_flexible_subscription_preview (const GetFlexibleSubscriptionPreviewParams &params) const
 Get Flexible Subscription Preview (USER_DATA).
template<class CompletionToken>
auto async_get_flexible_subscription_preview (const GetFlexibleSubscriptionPreviewParams &params, CompletionToken &&token) const
 Asynchronous get_flexible_subscription_preview().
common::RestApiResponse< GetFlexibleSubscriptionRecordResponse > get_flexible_subscription_record (const GetFlexibleSubscriptionRecordParams &params={}) const
 Get Flexible Subscription Record (USER_DATA).
template<class CompletionToken>
auto async_get_flexible_subscription_record (const GetFlexibleSubscriptionRecordParams &params, CompletionToken &&token) const
 Asynchronous get_flexible_subscription_record().
common::RestApiResponse< GetLockedPersonalLeftQuotaResponse > get_locked_personal_left_quota (const GetLockedPersonalLeftQuotaParams &params) const
 Get Locked Personal Left Quota (USER_DATA).
template<class CompletionToken>
auto async_get_locked_personal_left_quota (const GetLockedPersonalLeftQuotaParams &params, CompletionToken &&token) const
 Asynchronous get_locked_personal_left_quota().
common::RestApiResponse< GetLockedProductPositionResponse > get_locked_product_position (const GetLockedProductPositionParams &params={}) const
 Get Locked Product Position (USER_DATA).
template<class CompletionToken>
auto async_get_locked_product_position (const GetLockedProductPositionParams &params, CompletionToken &&token) const
 Asynchronous get_locked_product_position().
common::RestApiResponse< GetLockedRedemptionRecordResponse > get_locked_redemption_record (const GetLockedRedemptionRecordParams &params={}) const
 Get Locked Redemption Record (USER_DATA).
template<class CompletionToken>
auto async_get_locked_redemption_record (const GetLockedRedemptionRecordParams &params, CompletionToken &&token) const
 Asynchronous get_locked_redemption_record().
common::RestApiResponse< GetLockedRewardsHistoryResponse > get_locked_rewards_history (const GetLockedRewardsHistoryParams &params={}) const
 Get Locked Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_locked_rewards_history (const GetLockedRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_locked_rewards_history().
common::RestApiResponse< std::vector< GetLockedSubscriptionPreviewResponseInner > > get_locked_subscription_preview (const GetLockedSubscriptionPreviewParams &params) const
 Get Locked Subscription Preview (USER_DATA).
template<class CompletionToken>
auto async_get_locked_subscription_preview (const GetLockedSubscriptionPreviewParams &params, CompletionToken &&token) const
 Asynchronous get_locked_subscription_preview().
common::RestApiResponse< GetLockedSubscriptionRecordResponse > get_locked_subscription_record (const GetLockedSubscriptionRecordParams &params={}) const
 Get Locked Subscription Record (USER_DATA).
template<class CompletionToken>
auto async_get_locked_subscription_record (const GetLockedSubscriptionRecordParams &params, CompletionToken &&token) const
 Asynchronous get_locked_subscription_record().
common::RestApiResponse< GetRateHistoryResponse > get_rate_history (const GetRateHistoryParams &params) const
 Get Rate History (USER_DATA).
template<class CompletionToken>
auto async_get_rate_history (const GetRateHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_rate_history().
common::RestApiResponse< GetSimpleEarnFlexibleProductListResponse > get_simple_earn_flexible_product_list (const GetSimpleEarnFlexibleProductListParams &params={}) const
 Get Simple Earn Flexible Product List (USER_DATA).
template<class CompletionToken>
auto async_get_simple_earn_flexible_product_list (const GetSimpleEarnFlexibleProductListParams &params, CompletionToken &&token) const
 Asynchronous get_simple_earn_flexible_product_list().
common::RestApiResponse< GetSimpleEarnLockedProductListResponse > get_simple_earn_locked_product_list (const GetSimpleEarnLockedProductListParams &params={}) const
 Get Simple Earn Locked Product List (USER_DATA).
template<class CompletionToken>
auto async_get_simple_earn_locked_product_list (const GetSimpleEarnLockedProductListParams &params, CompletionToken &&token) const
 Asynchronous get_simple_earn_locked_product_list().
common::RestApiResponse< RedeemFlexibleProductResponse > redeem_flexible_product (const RedeemFlexibleProductParams &params) const
 Redeem Flexible Product (TRADE).
template<class CompletionToken>
auto async_redeem_flexible_product (const RedeemFlexibleProductParams &params, CompletionToken &&token) const
 Asynchronous redeem_flexible_product().
common::RestApiResponse< RedeemLockedProductResponse > redeem_locked_product (const RedeemLockedProductParams &params) const
 Redeem Locked Product (TRADE).
template<class CompletionToken>
auto async_redeem_locked_product (const RedeemLockedProductParams &params, CompletionToken &&token) const
 Asynchronous redeem_locked_product().
common::RestApiResponse< SetFlexibleAutoSubscribeResponse > set_flexible_auto_subscribe (const SetFlexibleAutoSubscribeParams &params) const
 Set Flexible Auto Subscribe (USER_DATA).
template<class CompletionToken>
auto async_set_flexible_auto_subscribe (const SetFlexibleAutoSubscribeParams &params, CompletionToken &&token) const
 Asynchronous set_flexible_auto_subscribe().
common::RestApiResponse< SetLockedAutoSubscribeResponse > set_locked_auto_subscribe (const SetLockedAutoSubscribeParams &params) const
 Set Locked Auto Subscribe (USER_DATA).
template<class CompletionToken>
auto async_set_locked_auto_subscribe (const SetLockedAutoSubscribeParams &params, CompletionToken &&token) const
 Asynchronous set_locked_auto_subscribe().
common::RestApiResponse< SetLockedProductRedeemOptionResponse > set_locked_product_redeem_option (const SetLockedProductRedeemOptionParams &params) const
 Set Locked Product Redeem Option (USER_DATA).
template<class CompletionToken>
auto async_set_locked_product_redeem_option (const SetLockedProductRedeemOptionParams &params, CompletionToken &&token) const
 Asynchronous set_locked_product_redeem_option().
common::RestApiResponse< SimpleAccountResponse > simple_account (const SimpleAccountParams &params={}) const
 Simple Account (USER_DATA).
template<class CompletionToken>
auto async_simple_account (const SimpleAccountParams &params, CompletionToken &&token) const
 Asynchronous simple_account().
common::RestApiResponse< SubscribeFlexibleProductResponse > subscribe_flexible_product (const SubscribeFlexibleProductParams &params) const
 Subscribe Flexible Product (TRADE).
template<class CompletionToken>
auto async_subscribe_flexible_product (const SubscribeFlexibleProductParams &params, CompletionToken &&token) const
 Asynchronous subscribe_flexible_product().
common::RestApiResponse< SubscribeLockedProductResponse > subscribe_locked_product (const SubscribeLockedProductParams &params) const
 Subscribe Locked Product (TRADE).
template<class CompletionToken>
auto async_subscribe_locked_product (const SubscribeLockedProductParams &params, CompletionToken &&token) const
 Asynchronous subscribe_locked_product().
common::RestApiResponse< GetRwusdAccountResponse > get_rwusd_account (const GetRwusdAccountParams &params={}) const
 Get RWUSD Account (USER_DATA).
template<class CompletionToken>
auto async_get_rwusd_account (const GetRwusdAccountParams &params, CompletionToken &&token) const
 Asynchronous get_rwusd_account().
common::RestApiResponse< GetRwusdQuotaDetailsResponse > get_rwusd_quota_details (const GetRwusdQuotaDetailsParams &params={}) const
 Get RWUSD Quota Details (USER_DATA).
template<class CompletionToken>
auto async_get_rwusd_quota_details (const GetRwusdQuotaDetailsParams &params, CompletionToken &&token) const
 Asynchronous get_rwusd_quota_details().
common::RestApiResponse< GetRwusdRateHistoryResponse > get_rwusd_rate_history (const GetRwusdRateHistoryParams &params={}) const
 Get RWUSD Rate History (USER_DATA).
template<class CompletionToken>
auto async_get_rwusd_rate_history (const GetRwusdRateHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_rwusd_rate_history().
common::RestApiResponse< GetRwusdRedemptionHistoryResponse > get_rwusd_redemption_history (const GetRwusdRedemptionHistoryParams &params={}) const
 Get RWUSD Redemption History (USER_DATA).
template<class CompletionToken>
auto async_get_rwusd_redemption_history (const GetRwusdRedemptionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_rwusd_redemption_history().
common::RestApiResponse< GetRwusdRewardsHistoryResponse > get_rwusd_rewards_history (const GetRwusdRewardsHistoryParams &params={}) const
 Get RWUSD Rewards History (USER_DATA).
template<class CompletionToken>
auto async_get_rwusd_rewards_history (const GetRwusdRewardsHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_rwusd_rewards_history().
common::RestApiResponse< GetRwusdSubscriptionHistoryResponse > get_rwusd_subscription_history (const GetRwusdSubscriptionHistoryParams &params={}) const
 Get RWUSD subscription history (USER_DATA).
template<class CompletionToken>
auto async_get_rwusd_subscription_history (const GetRwusdSubscriptionHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_rwusd_subscription_history().
common::RestApiResponse< RedeemRwusdResponse > redeem_rwusd (const RedeemRwusdParams &params) const
 Redeem RWUSD (TRADE).
template<class CompletionToken>
auto async_redeem_rwusd (const RedeemRwusdParams &params, CompletionToken &&token) const
 Asynchronous redeem_rwusd().
common::RestApiResponse< SubscribeRwusdResponse > subscribe_rwusd (const SubscribeRwusdParams &params) const
 Subscribe RWUSD (TRADE).
template<class CompletionToken>
auto async_subscribe_rwusd (const SubscribeRwusdParams &params, CompletionToken &&token) const
 Asynchronous subscribe_rwusd().
common::RestApiResponse< GetYieldArenaActivitiesResponse > get_yield_arena_activities (const GetYieldArenaActivitiesParams &params={}) const
 Get Yield Arena Activities (USER_DATA).
template<class CompletionToken>
auto async_get_yield_arena_activities (const GetYieldArenaActivitiesParams &params, CompletionToken &&token) const
 Asynchronous get_yield_arena_activities().

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

Detailed Description

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

Throws common::ConfigError if the configuration is invalid.

Member Function Documentation

◆ from_config()

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

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

◆ production()

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

A client for production (Simple Earn REST API).

◆ configuration()

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

◆ send_request()

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

◆ get_bfusd_account()

common::RestApiResponse< GetBfusdAccountResponse > binance::simple_earn::rest_api::RestApi::get_bfusd_account ( const GetBfusdAccountParams & params = {}) const
inlinenodiscard

Get BFUSD Account (USER_DATA).

GET /sapi/v1/bfusd/account.

Get BFUSD account information.

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/bfusd#get-bfusd-account

◆ async_get_bfusd_account()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_bfusd_account ( const GetBfusdAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_account().

◆ get_bfusd_quota_details()

common::RestApiResponse< GetBfusdQuotaDetailsResponse > binance::simple_earn::rest_api::RestApi::get_bfusd_quota_details ( const GetBfusdQuotaDetailsParams & params = {}) const
inlinenodiscard

Get BFUSD Quota Details (USER_DATA).

GET /sapi/v1/bfusd/quota.

Get BFUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.

Weight(IP): 150

Security Type: USER_DATA

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

◆ async_get_bfusd_quota_details()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_bfusd_quota_details ( const GetBfusdQuotaDetailsParams & params,
CompletionToken && token ) const
inline

◆ get_bfusd_rate_history()

common::RestApiResponse< GetBfusdRateHistoryResponse > binance::simple_earn::rest_api::RestApi::get_bfusd_rate_history ( const GetBfusdRateHistoryParams & params = {}) const
inlinenodiscard

Get BFUSD Rate History (USER_DATA).

GET /sapi/v1/bfusd/history/rateHistory.

Get BFUSD rate history sorted by descending order.

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/bfusd#get-bfusd-rate-history

◆ async_get_bfusd_rate_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_bfusd_rate_history ( const GetBfusdRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_rate_history().

◆ get_bfusd_redemption_history()

common::RestApiResponse< GetBfusdRedemptionHistoryResponse > binance::simple_earn::rest_api::RestApi::get_bfusd_redemption_history ( const GetBfusdRedemptionHistoryParams & params = {}) const
inlinenodiscard

Get BFUSD Redemption History (USER_DATA).

GET /sapi/v1/bfusd/history/redemptionHistory.

Get BFUSD redemption history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

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

◆ async_get_bfusd_redemption_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_bfusd_redemption_history ( const GetBfusdRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_bfusd_rewards_history()

common::RestApiResponse< GetBfusdRewardsHistoryResponse > binance::simple_earn::rest_api::RestApi::get_bfusd_rewards_history ( const GetBfusdRewardsHistoryParams & params = {}) const
inlinenodiscard

Get BFUSD Rewards History (USER_DATA).

GET /sapi/v1/bfusd/history/rewardsHistory.

Get BFUSD rewards history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/bfusd#get-bfusd-rewards-history

◆ async_get_bfusd_rewards_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_bfusd_rewards_history ( const GetBfusdRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_bfusd_subscription_history()

common::RestApiResponse< GetBfusdSubscriptionHistoryResponse > binance::simple_earn::rest_api::RestApi::get_bfusd_subscription_history ( const GetBfusdSubscriptionHistoryParams & params = {}) const
inlinenodiscard

Get BFUSD subscription history (USER_DATA).

GET /sapi/v1/bfusd/history/subscriptionHistory.

Get BFUSD subscription history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time advanced by one month, and data between startTime and endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/bfusd#get-bfusd-subscription-history

◆ async_get_bfusd_subscription_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_bfusd_subscription_history ( const GetBfusdSubscriptionHistoryParams & params,
CompletionToken && token ) const
inline

◆ redeem_bfusd()

common::RestApiResponse< RedeemBfusdResponse > binance::simple_earn::rest_api::RestApi::redeem_bfusd ( const RedeemBfusdParams & params) const
inlinenodiscard

Redeem BFUSD (TRADE).

POST /sapi/v1/bfusd/redeem.

Redeem BFUSD to USDT

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
  • This API only supports BFUSD redemption to the Spot Account. Redemptions to the Funding Account or any other account type are not supported.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/bfusd#redeem-bfusd

◆ async_redeem_bfusd()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_redeem_bfusd ( const RedeemBfusdParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_bfusd().

◆ subscribe_bfusd()

common::RestApiResponse< SubscribeBfusdResponse > binance::simple_earn::rest_api::RestApi::subscribe_bfusd ( const SubscribeBfusdParams & params) const
inlinenodiscard

Subscribe BFUSD (TRADE).

POST /sapi/v1/bfusd/subscribe.

Subscribe BFUSD

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
  • This API only supports BFUSD subscription using assets held in the Spot Account. Subscriptions initiated from the Funding Account or any other account type are not supported.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/bfusd#subscribe-bfusd

◆ async_subscribe_bfusd()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_subscribe_bfusd ( const SubscribeBfusdParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_bfusd().

◆ get_collateral_record()

common::RestApiResponse< GetCollateralRecordResponse > binance::simple_earn::rest_api::RestApi::get_collateral_record ( const GetCollateralRecordParams & params = {}) const
inlinenodiscard

Get Collateral Record (USER_DATA).

GET /sapi/v1/simple-earn/flexible/history/collateralRecord.

Get Collateral Record

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-collateral-record

◆ async_get_collateral_record()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_collateral_record ( const GetCollateralRecordParams & params,
CompletionToken && token ) const
inline

Asynchronous get_collateral_record().

◆ get_flexible_personal_left_quota()

common::RestApiResponse< GetFlexiblePersonalLeftQuotaResponse > binance::simple_earn::rest_api::RestApi::get_flexible_personal_left_quota ( const GetFlexiblePersonalLeftQuotaParams & params) const
inlinenodiscard

Get Flexible Personal Left Quota (USER_DATA).

GET /sapi/v1/simple-earn/flexible/personalLeftQuota.

Get Flexible Personal Left Quota

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-flexible-personal-left-quota

◆ async_get_flexible_personal_left_quota()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_flexible_personal_left_quota ( const GetFlexiblePersonalLeftQuotaParams & params,
CompletionToken && token ) const
inline

◆ get_flexible_product_position()

common::RestApiResponse< GetFlexibleProductPositionResponse > binance::simple_earn::rest_api::RestApi::get_flexible_product_position ( const GetFlexibleProductPositionParams & params = {}) const
inlinenodiscard

Get Flexible Product Position (USER_DATA).

GET /sapi/v1/simple-earn/flexible/position.

Get Flexible Product Position

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-flexible-product-position

◆ async_get_flexible_product_position()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_flexible_product_position ( const GetFlexibleProductPositionParams & params,
CompletionToken && token ) const
inline

◆ get_flexible_redemption_record()

common::RestApiResponse< GetFlexibleRedemptionRecordResponse > binance::simple_earn::rest_api::RestApi::get_flexible_redemption_record ( const GetFlexibleRedemptionRecordParams & params = {}) const
inlinenodiscard

Get Flexible Redemption Record (USER_DATA).

GET /sapi/v1/simple-earn/flexible/history/redemptionRecord.

Get Flexible Redemption Record

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-flexible-redemption-record

◆ async_get_flexible_redemption_record()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_flexible_redemption_record ( const GetFlexibleRedemptionRecordParams & params,
CompletionToken && token ) const
inline

◆ get_flexible_rewards_history()

common::RestApiResponse< GetFlexibleRewardsHistoryResponse > binance::simple_earn::rest_api::RestApi::get_flexible_rewards_history ( const GetFlexibleRewardsHistoryParams & params = {}) const
inlinenodiscard

Get Flexible Rewards History (USER_DATA).

GET /sapi/v1/simple-earn/flexible/history/rewardsRecord.

Get Flexible Rewards History

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-flexible-rewards-history

◆ async_get_flexible_rewards_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_flexible_rewards_history ( const GetFlexibleRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_flexible_subscription_preview()

common::RestApiResponse< GetFlexibleSubscriptionPreviewResponse > binance::simple_earn::rest_api::RestApi::get_flexible_subscription_preview ( const GetFlexibleSubscriptionPreviewParams & params) const
inlinenodiscard

Get Flexible Subscription Preview (USER_DATA).

GET /sapi/v1/simple-earn/flexible/subscriptionPreview.

Get Flexible Subscription Preview

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-flexible-subscription-preview

◆ async_get_flexible_subscription_preview()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_flexible_subscription_preview ( const GetFlexibleSubscriptionPreviewParams & params,
CompletionToken && token ) const
inline

◆ get_flexible_subscription_record()

common::RestApiResponse< GetFlexibleSubscriptionRecordResponse > binance::simple_earn::rest_api::RestApi::get_flexible_subscription_record ( const GetFlexibleSubscriptionRecordParams & params = {}) const
inlinenodiscard

Get Flexible Subscription Record (USER_DATA).

GET /sapi/v1/simple-earn/flexible/history/subscriptionRecord.

Get Flexible Subscription Record

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-flexible-subscription-record

◆ async_get_flexible_subscription_record()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_flexible_subscription_record ( const GetFlexibleSubscriptionRecordParams & params,
CompletionToken && token ) const
inline

◆ get_locked_personal_left_quota()

common::RestApiResponse< GetLockedPersonalLeftQuotaResponse > binance::simple_earn::rest_api::RestApi::get_locked_personal_left_quota ( const GetLockedPersonalLeftQuotaParams & params) const
inlinenodiscard

Get Locked Personal Left Quota (USER_DATA).

GET /sapi/v1/simple-earn/locked/personalLeftQuota.

Get Locked Personal Left Quota

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-locked-personal-left-quota

◆ async_get_locked_personal_left_quota()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_locked_personal_left_quota ( const GetLockedPersonalLeftQuotaParams & params,
CompletionToken && token ) const
inline

◆ get_locked_product_position()

common::RestApiResponse< GetLockedProductPositionResponse > binance::simple_earn::rest_api::RestApi::get_locked_product_position ( const GetLockedProductPositionParams & params = {}) const
inlinenodiscard

Get Locked Product Position (USER_DATA).

GET /sapi/v1/simple-earn/locked/position.

Get Locked Product Position

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-locked-product-position

◆ async_get_locked_product_position()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_locked_product_position ( const GetLockedProductPositionParams & params,
CompletionToken && token ) const
inline

◆ get_locked_redemption_record()

common::RestApiResponse< GetLockedRedemptionRecordResponse > binance::simple_earn::rest_api::RestApi::get_locked_redemption_record ( const GetLockedRedemptionRecordParams & params = {}) const
inlinenodiscard

Get Locked Redemption Record (USER_DATA).

GET /sapi/v1/simple-earn/locked/history/redemptionRecord.

Get Locked Redemption Record

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-locked-redemption-record

◆ async_get_locked_redemption_record()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_locked_redemption_record ( const GetLockedRedemptionRecordParams & params,
CompletionToken && token ) const
inline

◆ get_locked_rewards_history()

common::RestApiResponse< GetLockedRewardsHistoryResponse > binance::simple_earn::rest_api::RestApi::get_locked_rewards_history ( const GetLockedRewardsHistoryParams & params = {}) const
inlinenodiscard

Get Locked Rewards History (USER_DATA).

GET /sapi/v1/simple-earn/locked/history/rewardsRecord.

Get Locked Rewards History

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-locked-rewards-history

◆ async_get_locked_rewards_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_locked_rewards_history ( const GetLockedRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_locked_subscription_preview()

common::RestApiResponse< std::vector< GetLockedSubscriptionPreviewResponseInner > > binance::simple_earn::rest_api::RestApi::get_locked_subscription_preview ( const GetLockedSubscriptionPreviewParams & params) const
inlinenodiscard

Get Locked Subscription Preview (USER_DATA).

GET /sapi/v1/simple-earn/locked/subscriptionPreview.

Get Locked Subscription Preview

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-locked-subscription-preview

◆ async_get_locked_subscription_preview()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_locked_subscription_preview ( const GetLockedSubscriptionPreviewParams & params,
CompletionToken && token ) const
inline

◆ get_locked_subscription_record()

common::RestApiResponse< GetLockedSubscriptionRecordResponse > binance::simple_earn::rest_api::RestApi::get_locked_subscription_record ( const GetLockedSubscriptionRecordParams & params = {}) const
inlinenodiscard

Get Locked Subscription Record (USER_DATA).

GET /sapi/v1/simple-earn/locked/history/subscriptionRecord.

Get Locked Subscription Record

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 30 days.
  • 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-simple-earn/api/rest-api/flexible-locked#get-locked-subscription-record

◆ async_get_locked_subscription_record()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_locked_subscription_record ( const GetLockedSubscriptionRecordParams & params,
CompletionToken && token ) const
inline

◆ get_rate_history()

common::RestApiResponse< GetRateHistoryResponse > binance::simple_earn::rest_api::RestApi::get_rate_history ( const GetRateHistoryParams & params) const
inlinenodiscard

Get Rate History (USER_DATA).

GET /sapi/v1/simple-earn/flexible/history/rateHistory.

Get Rate History

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 1 year.
  • 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-simple-earn/api/rest-api/flexible-locked#get-rate-history

◆ async_get_rate_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rate_history ( const GetRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rate_history().

◆ get_simple_earn_flexible_product_list()

common::RestApiResponse< GetSimpleEarnFlexibleProductListResponse > binance::simple_earn::rest_api::RestApi::get_simple_earn_flexible_product_list ( const GetSimpleEarnFlexibleProductListParams & params = {}) const
inlinenodiscard

Get Simple Earn Flexible Product List (USER_DATA).

GET /sapi/v1/simple-earn/flexible/list.

Get available Simple Earn flexible product list

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-simple-earn-flexible-product-list

◆ async_get_simple_earn_flexible_product_list()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_simple_earn_flexible_product_list ( const GetSimpleEarnFlexibleProductListParams & params,
CompletionToken && token ) const
inline

◆ get_simple_earn_locked_product_list()

common::RestApiResponse< GetSimpleEarnLockedProductListResponse > binance::simple_earn::rest_api::RestApi::get_simple_earn_locked_product_list ( const GetSimpleEarnLockedProductListParams & params = {}) const
inlinenodiscard

Get Simple Earn Locked Product List (USER_DATA).

GET /sapi/v1/simple-earn/locked/list.

Get Simple Earn Locked Product List

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • Get available Simple Earn locked product list

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#get-simple-earn-locked-product-list

◆ async_get_simple_earn_locked_product_list()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_simple_earn_locked_product_list ( const GetSimpleEarnLockedProductListParams & params,
CompletionToken && token ) const
inline

◆ redeem_flexible_product()

common::RestApiResponse< RedeemFlexibleProductResponse > binance::simple_earn::rest_api::RestApi::redeem_flexible_product ( const RedeemFlexibleProductParams & params) const
inlinenodiscard

Redeem Flexible Product (TRADE).

POST /sapi/v1/simple-earn/flexible/redeem.

Redeem Flexible Product

Weight(IP): 1

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-simple-earn/api/rest-api/flexible-locked#redeem-flexible-product

◆ async_redeem_flexible_product()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_redeem_flexible_product ( const RedeemFlexibleProductParams & params,
CompletionToken && token ) const
inline

◆ redeem_locked_product()

common::RestApiResponse< RedeemLockedProductResponse > binance::simple_earn::rest_api::RestApi::redeem_locked_product ( const RedeemLockedProductParams & params) const
inlinenodiscard

Redeem Locked Product (TRADE).

POST /sapi/v1/simple-earn/locked/redeem.

Redeem Locked Product

Weight(IP): 1

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-simple-earn/api/rest-api/flexible-locked#redeem-locked-product

◆ async_redeem_locked_product()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_redeem_locked_product ( const RedeemLockedProductParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_locked_product().

◆ set_flexible_auto_subscribe()

common::RestApiResponse< SetFlexibleAutoSubscribeResponse > binance::simple_earn::rest_api::RestApi::set_flexible_auto_subscribe ( const SetFlexibleAutoSubscribeParams & params) const
inlinenodiscard

Set Flexible Auto Subscribe (USER_DATA).

POST /sapi/v1/simple-earn/flexible/setAutoSubscribe.

Set Flexible Auto Subscribe

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#set-flexible-auto-subscribe

◆ async_set_flexible_auto_subscribe()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_set_flexible_auto_subscribe ( const SetFlexibleAutoSubscribeParams & params,
CompletionToken && token ) const
inline

◆ set_locked_auto_subscribe()

common::RestApiResponse< SetLockedAutoSubscribeResponse > binance::simple_earn::rest_api::RestApi::set_locked_auto_subscribe ( const SetLockedAutoSubscribeParams & params) const
inlinenodiscard

Set Locked Auto Subscribe (USER_DATA).

POST /sapi/v1/simple-earn/locked/setAutoSubscribe.

Set locked auto subscribe

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#set-locked-auto-subscribe

◆ async_set_locked_auto_subscribe()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_set_locked_auto_subscribe ( const SetLockedAutoSubscribeParams & params,
CompletionToken && token ) const
inline

◆ set_locked_product_redeem_option()

common::RestApiResponse< SetLockedProductRedeemOptionResponse > binance::simple_earn::rest_api::RestApi::set_locked_product_redeem_option ( const SetLockedProductRedeemOptionParams & params) const
inlinenodiscard

Set Locked Product Redeem Option (USER_DATA).

POST /sapi/v1/simple-earn/locked/setRedeemOption.

Set redeem option for Locked product

Weight(IP): 50

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#set-locked-product-redeem-option

◆ async_set_locked_product_redeem_option()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_set_locked_product_redeem_option ( const SetLockedProductRedeemOptionParams & params,
CompletionToken && token ) const
inline

◆ simple_account()

common::RestApiResponse< SimpleAccountResponse > binance::simple_earn::rest_api::RestApi::simple_account ( const SimpleAccountParams & params = {}) const
inlinenodiscard

Simple Account (USER_DATA).

GET /sapi/v1/simple-earn/account.

Simple Account query

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/flexible-locked#simple-account

◆ async_simple_account()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_simple_account ( const SimpleAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous simple_account().

◆ subscribe_flexible_product()

common::RestApiResponse< SubscribeFlexibleProductResponse > binance::simple_earn::rest_api::RestApi::subscribe_flexible_product ( const SubscribeFlexibleProductParams & params) const
inlinenodiscard

Subscribe Flexible Product (TRADE).

POST /sapi/v1/simple-earn/flexible/subscribe.

Subscribe Flexible Product

Weight(IP): 1

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-simple-earn/api/rest-api/flexible-locked#subscribe-flexible-product

◆ async_subscribe_flexible_product()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_subscribe_flexible_product ( const SubscribeFlexibleProductParams & params,
CompletionToken && token ) const
inline

◆ subscribe_locked_product()

common::RestApiResponse< SubscribeLockedProductResponse > binance::simple_earn::rest_api::RestApi::subscribe_locked_product ( const SubscribeLockedProductParams & params) const
inlinenodiscard

Subscribe Locked Product (TRADE).

POST /sapi/v1/simple-earn/locked/subscribe.

Subscribe Locked Product

Weight(IP): 1

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-simple-earn/api/rest-api/flexible-locked#subscribe-locked-product

◆ async_subscribe_locked_product()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_subscribe_locked_product ( const SubscribeLockedProductParams & params,
CompletionToken && token ) const
inline

◆ get_rwusd_account()

common::RestApiResponse< GetRwusdAccountResponse > binance::simple_earn::rest_api::RestApi::get_rwusd_account ( const GetRwusdAccountParams & params = {}) const
inlinenodiscard

Get RWUSD Account (USER_DATA).

GET /sapi/v1/rwusd/account.

Get RWUSD account information.

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/rwusd#get-rwusd-account

◆ async_get_rwusd_account()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rwusd_account ( const GetRwusdAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_account().

◆ get_rwusd_quota_details()

common::RestApiResponse< GetRwusdQuotaDetailsResponse > binance::simple_earn::rest_api::RestApi::get_rwusd_quota_details ( const GetRwusdQuotaDetailsParams & params = {}) const
inlinenodiscard

Get RWUSD Quota Details (USER_DATA).

GET /sapi/v1/rwusd/quota.

Get RWUSD quota details including subscription quota, fast redemption quota, and standard redemption quota.

Weight(IP): 150

Security Type: USER_DATA

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

◆ async_get_rwusd_quota_details()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rwusd_quota_details ( const GetRwusdQuotaDetailsParams & params,
CompletionToken && token ) const
inline

◆ get_rwusd_rate_history()

common::RestApiResponse< GetRwusdRateHistoryResponse > binance::simple_earn::rest_api::RestApi::get_rwusd_rate_history ( const GetRwusdRateHistoryParams & params = {}) const
inlinenodiscard

Get RWUSD Rate History (USER_DATA).

GET /sapi/v1/rwusd/history/rateHistory.

Get RWUSD rate history sorted by descending order.

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/rwusd#get-rwusd-rate-history

◆ async_get_rwusd_rate_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rwusd_rate_history ( const GetRwusdRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_rate_history().

◆ get_rwusd_redemption_history()

common::RestApiResponse< GetRwusdRedemptionHistoryResponse > binance::simple_earn::rest_api::RestApi::get_rwusd_redemption_history ( const GetRwusdRedemptionHistoryParams & params = {}) const
inlinenodiscard

Get RWUSD Redemption History (USER_DATA).

GET /sapi/v1/rwusd/history/redemptionHistory.

Get RWUSD redemption history.

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

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

◆ async_get_rwusd_redemption_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rwusd_redemption_history ( const GetRwusdRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_rwusd_rewards_history()

common::RestApiResponse< GetRwusdRewardsHistoryResponse > binance::simple_earn::rest_api::RestApi::get_rwusd_rewards_history ( const GetRwusdRewardsHistoryParams & params = {}) const
inlinenodiscard

Get RWUSD Rewards History (USER_DATA).

GET /sapi/v1/rwusd/history/rewardsHistory.

Get RWUSD rewards history.

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/rwusd#get-rwusd-rewards-history

◆ async_get_rwusd_rewards_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rwusd_rewards_history ( const GetRwusdRewardsHistoryParams & params,
CompletionToken && token ) const
inline

◆ get_rwusd_subscription_history()

common::RestApiResponse< GetRwusdSubscriptionHistoryResponse > binance::simple_earn::rest_api::RestApi::get_rwusd_subscription_history ( const GetRwusdSubscriptionHistoryParams & params = {}) const
inlinenodiscard

Get RWUSD subscription history (USER_DATA).

GET /sapi/v1/rwusd/history/subscriptionHistory.

Get RWUSD subscription history

Weight(IP): 150

Security Type: USER_DATA

Notes:

  • The time between startTime and endTime cannot be longer than 6 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, endTime will default to current time, and results from startTime onward will be returned.
  • If endTime is sent but startTime is not sent, startTime defaults to the current time advanced by one month, and data between startTime and endTime will be returned.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/rwusd#get-rwusd-subscription-history

◆ async_get_rwusd_subscription_history()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_rwusd_subscription_history ( const GetRwusdSubscriptionHistoryParams & params,
CompletionToken && token ) const
inline

◆ redeem_rwusd()

common::RestApiResponse< RedeemRwusdResponse > binance::simple_earn::rest_api::RestApi::redeem_rwusd ( const RedeemRwusdParams & params) const
inlinenodiscard

Redeem RWUSD (TRADE).

POST /sapi/v1/rwusd/redeem.

Redeem RWUSD to USDC

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
  • This API only supports RWUSD redemption to the Spot Account. Redemptions to the Funding Account or any other account type are not supported.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/rwusd#redeem-rwusd

◆ async_redeem_rwusd()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_redeem_rwusd ( const RedeemRwusdParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_rwusd().

◆ subscribe_rwusd()

common::RestApiResponse< SubscribeRwusdResponse > binance::simple_earn::rest_api::RestApi::subscribe_rwusd ( const SubscribeRwusdParams & params) const
inlinenodiscard

Subscribe RWUSD (TRADE).

POST /sapi/v1/rwusd/subscribe.

Subscribe RWUSD

Weight(IP): 150

Security Type: TRADE

Notes:

  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.
  • This API only supports RWUSD subscription using assets held in the Spot Account. Subscriptions initiated from the Funding Account or any other account type are not supported.

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/rwusd#subscribe-rwusd

◆ async_subscribe_rwusd()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_subscribe_rwusd ( const SubscribeRwusdParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_rwusd().

◆ get_yield_arena_activities()

common::RestApiResponse< GetYieldArenaActivitiesResponse > binance::simple_earn::rest_api::RestApi::get_yield_arena_activities ( const GetYieldArenaActivitiesParams & params = {}) const
inlinenodiscard

Get Yield Arena Activities (USER_DATA).

GET /sapi/v1/earn/arena/activities.

Get the list of Earn Yield Arena giveaway activities currently available to the user.

Weight(IP): 150

Security Type: USER_DATA

See https://developers.binance.com/en/docs/catalog/investment-and-services-simple-earn/api/rest-api/yield-arena#get-yield-arena-activities

◆ async_get_yield_arena_activities()

template<class CompletionToken>
auto binance::simple_earn::rest_api::RestApi::async_get_yield_arena_activities ( const GetYieldArenaActivitiesParams & params,
CompletionToken && token ) const
inline