|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
#include <market_data_api.hpp>
|
explicit |
|
nodiscard |
Create a dual-token gift card (fixed value, discount feature) (TRADE).
POST /sapi/v1/giftcard/buyCode.
Weight(IP): 1
Security Type: TRADE
|
inline |
Asynchronous create_a_dual_token_gift_card().
Completes with void(std::exception_ptr, common::RestApiResponse<CreateADualTokenGiftCardResponse>).
|
nodiscard |
Create a single-token gift card (USER_DATA).
POST /sapi/v1/giftcard/createCode.
This API is for creating a Binance Gift Card.
To get started with, please make sure:
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous create_a_single_token_gift_card().
Completes with void(std::exception_ptr, common::RestApiResponse<CreateASingleTokenGiftCardResponse>).
|
nodiscard |
Fetch RSA Public Key (USER_DATA).
GET /sapi/v1/giftcard/cryptography/rsa-public-key.
This API is for fetching the RSA Public Key. This RSA Public key will be used to encrypt the card code.
Please note that the RSA Public key fetched is valid only for the current day.
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous fetch_rsa_public_key().
Completes with void(std::exception_ptr, common::RestApiResponse<FetchRsaPublicKeyResponse>).
|
nodiscard |
Fetch Token Limit (USER_DATA).
GET /sapi/v1/giftcard/buyCode/token-limit.
This API is to help you verify which tokens are available for you to create Stablecoin-Denominated gift cards as mentioned in section 2 and its’ limitation.
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous fetch_token_limit().
Completes with void(std::exception_ptr, common::RestApiResponse<FetchTokenLimitResponse>).
|
nodiscard |
Redeem a Binance Gift Card (USER_DATA).
POST /sapi/v1/giftcard/redeemCode.
This API is for redeeming a Binance Gift Card. Once redeemed, the coins will be deposited in your Spot wallet.
Weight(IP): 1
Security Type: USER_DATA
Notes:
|
inline |
Asynchronous redeem_a_binance_gift_card().
Completes with void(std::exception_ptr, common::RestApiResponse<RedeemABinanceGiftCardResponse>).
|
nodiscard |
Verify Binance Gift Card by Gift Card Number (USER_DATA).
GET /sapi/v1/giftcard/verify.
This API is for verifying whether the Binance Gift Card is valid or not by entering Gift Card Number.
Please note that if you enter the wrong Gift Card Number 5 times within an hour, you will no longer be able to verify any Gift Card Number for that hour.
Weight(IP): 1
Security Type: USER_DATA
|
inline |
Asynchronous verify_binance_gift_card_by_gift_card_number().
Completes with void(std::exception_ptr, common::RestApiResponse<VerifyBinanceGiftCardByGiftCardNumberResponse>).