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

#include <bfusd_api.hpp>

Public Member Functions

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

Constructor & Destructor Documentation

◆ BfusdApi()

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

Member Function Documentation

◆ get_bfusd_account()

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

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::BfusdApi::async_get_bfusd_account ( const GetBfusdAccountParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_account().

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

◆ get_bfusd_quota_details()

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

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::BfusdApi::async_get_bfusd_quota_details ( const GetBfusdQuotaDetailsParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_quota_details().

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

◆ get_bfusd_rate_history()

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

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::BfusdApi::async_get_bfusd_rate_history ( const GetBfusdRateHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_rate_history().

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

◆ get_bfusd_redemption_history()

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

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::BfusdApi::async_get_bfusd_redemption_history ( const GetBfusdRedemptionHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_redemption_history().

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

◆ get_bfusd_rewards_history()

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

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::BfusdApi::async_get_bfusd_rewards_history ( const GetBfusdRewardsHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_rewards_history().

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

◆ get_bfusd_subscription_history()

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

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::BfusdApi::async_get_bfusd_subscription_history ( const GetBfusdSubscriptionHistoryParams & params,
CompletionToken && token ) const
inline

Asynchronous get_bfusd_subscription_history().

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

◆ redeem_bfusd()

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

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::BfusdApi::async_redeem_bfusd ( const RedeemBfusdParams & params,
CompletionToken && token ) const
inline

Asynchronous redeem_bfusd().

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

◆ subscribe_bfusd()

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

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::BfusdApi::async_subscribe_bfusd ( const SubscribeBfusdParams & params,
CompletionToken && token ) const
inline

Asynchronous subscribe_bfusd().

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