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

#include <rwusd_api.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ RwusdApi()

binance::simple_earn::rest_api::RwusdApi::RwusdApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ get_rwusd_account()

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

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::RwusdApi::async_get_rwusd_account ( const GetRwusdAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_account().

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

◆ get_rwusd_quota_details()

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

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::RwusdApi::async_get_rwusd_quota_details ( const GetRwusdQuotaDetailsParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_quota_details().

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

◆ get_rwusd_rate_history()

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

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::RwusdApi::async_get_rwusd_rate_history ( const GetRwusdRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_rate_history().

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

◆ get_rwusd_redemption_history()

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

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::RwusdApi::async_get_rwusd_redemption_history ( const GetRwusdRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_redemption_history().

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

◆ get_rwusd_rewards_history()

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

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::RwusdApi::async_get_rwusd_rewards_history ( const GetRwusdRewardsHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_rewards_history().

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

◆ get_rwusd_subscription_history()

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

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::RwusdApi::async_get_rwusd_subscription_history ( const GetRwusdSubscriptionHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_rwusd_subscription_history().

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

◆ redeem_rwusd()

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

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::RwusdApi::async_redeem_rwusd ( const RedeemRwusdParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_rwusd().

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

◆ subscribe_rwusd()

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

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::RwusdApi::async_subscribe_rwusd ( const SubscribeRwusdParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_rwusd().

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