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

#include <transfer_api.hpp>

Public Member Functions

 TransferApi (std::shared_ptr< common::RestClient > client)
common::RestApiResponse< GetCrossMarginTransferHistoryResponse > get_cross_margin_transfer_history (const GetCrossMarginTransferHistoryParams &params={}) const
 Get Cross Margin Transfer History (USER_DATA).
template<class CompletionToken>
auto async_get_cross_margin_transfer_history (const GetCrossMarginTransferHistoryParams &params, CompletionToken &&token) const
 Asynchronous get_cross_margin_transfer_history().
common::RestApiResponse< QueryMaxTransferOutAmountResponse > query_max_transfer_out_amount (const QueryMaxTransferOutAmountParams &params) const
 Query Max Transfer-Out Amount (USER_DATA).
template<class CompletionToken>
auto async_query_max_transfer_out_amount (const QueryMaxTransferOutAmountParams &params, CompletionToken &&token) const
 Asynchronous query_max_transfer_out_amount().

Constructor & Destructor Documentation

◆ TransferApi()

binance::margin_trading::rest_api::TransferApi::TransferApi ( std::shared_ptr< common::RestClient > client)
explicit

Member Function Documentation

◆ get_cross_margin_transfer_history()

common::RestApiResponse< GetCrossMarginTransferHistoryResponse > binance::margin_trading::rest_api::TransferApi::get_cross_margin_transfer_history ( const GetCrossMarginTransferHistoryParams & params = {}) const
nodiscard

Get Cross Margin Transfer History (USER_DATA).

GET /sapi/v1/margin/transfer.

Get Cross Margin Transfer History

Weight(IP): 1

Security Type: USER_DATA

Notes:

  • Response in descending order
  • The max interval between startTime and endTime is 30 days.
  • Returns data for last 7 days by default

See https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/transfer#get-cross-margin-transfer-history

◆ async_get_cross_margin_transfer_history()

template<class CompletionToken>
auto binance::margin_trading::rest_api::TransferApi::async_get_cross_margin_transfer_history ( const GetCrossMarginTransferHistoryParams & params,
CompletionToken && token ) const
inline

◆ query_max_transfer_out_amount()

common::RestApiResponse< QueryMaxTransferOutAmountResponse > binance::margin_trading::rest_api::TransferApi::query_max_transfer_out_amount ( const QueryMaxTransferOutAmountParams & params) const
nodiscard

Query Max Transfer-Out Amount (USER_DATA).

GET /sapi/v1/margin/maxTransferable.

Query Max Transfer-Out Amount

Weight(IP): 50

Security Type: USER_DATA

Notes:

  • If isolatedSymbol is not sent, crossed margin data will be sent.

See https://developers.binance.com/en/docs/catalog/core-trading-margin-trading/api/rest-api/transfer#query-max-transfer-out-amount

◆ async_query_max_transfer_out_amount()

template<class CompletionToken>
auto binance::margin_trading::rest_api::TransferApi::async_query_max_transfer_out_amount ( const QueryMaxTransferOutAmountParams & params,
CompletionToken && token ) const
inline

Asynchronous query_max_transfer_out_amount().

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