Binance.Convert (binance v2.0.1)
Convert Endpoints
Summary
Functions
Query order quantity precision per asset (USER_DATA)
List All Convert Pairs (USER_DATA)
Order status (USER_DATA)
Get Convert Trade History (USER_DATA)
Accept Quote (TRADE)
Send quote request (USER_DATA)
Functions
get_convert_asset_info(opts \\ [])
Query order quantity precision per asset (USER_DATA)
- The max interval between startTime and endTime is 30 days.
Weight(UID): 100
Details:
- METHOD: get
- URL: /sapi/v1/convert/assetInfo
Mandatory params:
Optional params:
- timestamp - timestamp
- recvWindow - The value cannot be greater than 60000
get_convert_exchange_info(fromAsset, toAsset, opts \\ [])
@spec get_convert_exchange_info(any(), any(), recvWindow: any(), timestamp: any()) :: {:ok, any()} | {:error, any()}
List All Convert Pairs (USER_DATA)
- The max interval between startTime and endTime is 30 days.
Weight(UID): 100
Details:
- METHOD: get
- URL: /sapi/v1/convert/exchangeInfo
Mandatory params:
- fromAsset - User spends coin
- toAsset - User receives coin
Optional params:
- timestamp - timestamp
- recvWindow - The value cannot be greater than 60000
get_convert_order_status(orderId, opts \\ [])
@spec get_convert_order_status(any(), recvWindow: any(), timestamp: any()) :: {:ok, any()} | {:error, any()}
Order status (USER_DATA)
- The max interval between startTime and endTime is 30 days.
Weight(UID): 100
Details:
- METHOD: get
- URL: /sapi/v1/convert/orderStatus
Mandatory params:
- orderId -
Optional params:
- timestamp - timestamp
- recvWindow - The value cannot be greater than 60000
get_convert_trade_flow(startTime, endTime, opts \\ [])
@spec get_convert_trade_flow(any(), any(), recvWindow: any(), limit: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Get Convert Trade History (USER_DATA)
- The max interval between startTime and endTime is 30 days.
Weight(UID): 100
Details:
- METHOD: get
- URL: /sapi/v1/convert/tradeFlow
Mandatory params:
- startTime - UTC timestamp in ms
- endTime - UTC timestamp in ms
Optional params:
- timestamp - timestamp
- limit - default 100, max 1000
- recvWindow - The value cannot be greater than 60000
post_convert_accept_quote(quoteId, opts \\ [])
@spec post_convert_accept_quote(any(), recvWindow: any(), timestamp: any()) :: {:ok, any()} | {:error, any()}
Accept Quote (TRADE)
- The max interval between startTime and endTime is 30 days.
Weight(UID): 100
Details:
- METHOD: post
- URL: /sapi/v1/convert/acceptQuote
Mandatory params:
- quoteId -
Optional params:
- timestamp - timestamp
- recvWindow - The value cannot be greater than 60000
post_convert_get_quote(fromAsset, toAsset, fromAmount, opts \\ [])
@spec post_convert_get_quote(any(), any(), any(), recvWindow: any(), validTime: any(), toAmount: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Send quote request (USER_DATA)
- The max interval between startTime and endTime is 30 days.
Weight(UID): 100
Details:
- METHOD: post
- URL: /sapi/v1/convert/getQuote
Mandatory params:
- fromAsset -
- toAsset -
- fromAmount - When specified, it is the amount you will be debited after the conversion
Optional params:
- timestamp - timestamp
- toAmount - When specified, it is the amount you will be credited after the conversion
- validTime - 10s, 30s, 1m, 2m, default 10s
- recvWindow - The value cannot be greater than 60000