Convert Endpoints

List All Convert Pairs

list_all_convert_pairs(self, **kwargs)

List All Convert Pairs

Query for all convertible token pairs and the tokens’ respective upper/lower limits

Weight(IP): 3000

GET /sapi/v1/convert/exchangeInfo

https://developers.binance.com/docs/convert/market-data/List-all-convert-pairs

Keyword Arguments:
  • fromAsset (str, optional) – User spends coin

  • toAsset (str, optional) – User receives coin

Query order quantity precision per asset (USER_DATA)

query_order_quantity_precision_per_asset(self, **kwargs)

Query order quantity precision per asset (USER_DATA)

Query for supported asset precision information

Weight(IP): 100

GET /sapi/v1/convert/assetInfo

https://developers.binance.com/docs/convert/market-data/Query-order-quantity-precision-per-asset

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Send quote request (USER_DATA)

send_quote_request(self, fromAsset: str, toAsset: str, **kwargs)

Send quote request (USER_DATA)

Request a quote for the requested token pairs

Weight(UID): 200

POST /sapi/v1/convert/getQuote

https://developers.binance.com/docs/convert/trade/Send-quote-request

Parameters:
  • fromAsset (str)

  • toAsset (str)

Keyword Arguments:
  • fromAmount (float, optional) – When specified, it is the amount you will be debited after the conversion

  • toAmount (float, optional) – When specified, it is the amount you will be debited after the conversion

  • validTime (str, optional) – 10s, 30s, 1m, 2m, default 10s

  • walletType (str, optional) – SPOT or FUNDING. Default is SPOT

  • recvWindow (int, optional) – The value cannot be greater than 60000

Accept Quote (TRADE)

accept_quote(self, quoteId: str, **kwargs)

Accept Quote (TRADE)

Accept the offered quote by quote ID.

Weight(UID): 500

POST /sapi/v1/convert/acceptQuote

https://developers.binance.com/docs/convert/trade/Accept-Quote

Parameters:

quoteId (str)

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Order Status (USER_DATA)

order_status(self, **kwargs)

Order status (USER_DATA)

Query order status by order ID.

Weight(UID): 100

GET /sapi/v1/convert/orderStatus

https://developers.binance.com/docs/convert/trade/Order-Status

Keyword Arguments:
  • orderId (str, optional)

  • quoteId (str, optional)

  • recvWindow (int, optional) – The value cannot be greater than 60000

Place limit order (USER_DATA)

place_limit_order(self, baseAsset: str, quoteAsset: str, limitPrice: float, side: str, expiredType: str, **kwargs)

Place limit order (USER_DATA)

POST /sapi/v1/convert/limit/placeOrder

https://developers.binance.com/docs/convert/trade/Place-Order

Parameters:
  • baseAsset (str) – base asset (use the response fromIsBase from GET /sapi/v1/convert/exchangeInfo api to check which one is baseAsset)

  • quoteAsset (str) – quote asset

  • limitPrice (float) – Symbol limit price (from baseAsset to quoteAsset)

  • side (str) – BUY or SELL

  • expiredType (str) – 1_D, 3_D, 7_D, 30_D (D means day)

Keyword Arguments:
  • baseAmount (float, optional) – Base asset amount. (One of baseAmount or quoteAmount is required)

  • quotrAmount (float, optional) – Quote asset amount. (One of baseAmount or quoteAmount is required)

  • walletType (str, optional) – SPOT or FUNDING or SPOT_FUNDING. It is to use which type of assets. Default is SPOT.

  • recvWindow (int, optional) – The value cannot be greater than 60000

Cancel limit order (USER_DATA)

cancel_limit_order(self, orderId: str, **kwargs)

Cancel limit order (USER_DATA)

POST /sapi/v1/convert/limit/cancelOrder

https://developers.binance.com/docs/convert/trade/Cancel-Order

Parameters:

orderId (str) – The orderId from placeOrder api

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Query limit open orders (USER_DATA)

query_limit_open_order(self, **kwargs)

Query limit open orders (USER_DATA)

GET /sapi/v1/convert/limit/queryOpenOrders

https://developers.binance.com/docs/convert/trade/Query-Order

Keyword Arguments:

recvWindow (int, optional) – The value cannot be greater than 60000

Get Convert Trade History (USER_DATA)

get_convert_trade_history(self, startTime: int, endTime: int, **kwargs)

Get Convert Trade History (USER_DATA)

  • The max interval between startTime and endTime is 30 days.

Weight(UID): 3000

GET /sapi/v1/convert/tradeFlow

https://developers.binance.com/docs/convert/trade/Get-Convert-Trade-History

Parameters:
  • startTime (int)

  • endTime (int)

Keyword Arguments:
  • limit (int, optional) – default 100, max 1000

  • recvWindow (int, optional) – The value cannot be greater than 60000