binance_get_convert_quote
Get a reserved conversion quote with ratio and expiry before accepting it. Locks the exchange rate for up to 2 minutes so you can approve the trade.
Instructions
Request a convert quote: a reserved ratio, valid for 10 s to 2 minutes.
Calls POST /sapi/v1/convert/getQuote (SIGNED, UID weight 200). This moves no
funds — it is on the client's POST-read allowlist, so it works with the trading
kill-switch off — but it is not free either: a quote is a short-lived reservation, so
do not poll it in a loop.
Nothing is converted until the quote is accepted with binance_accept_convert_quote
before validTimestamp. After that instant the quoteId is void and a new quote is
needed.
When to Use:
To price a conversion (what you would receive, and at what ratio) before deciding.
As the first half of every conversion: quote → human approves → accept.
When NOT to Use:
For an indicative market price —
binance_get_ticker_priceis free and does not reserve anything.To convert at a price that is not currently available — place a convert limit order with
binance_place_convert_limit_orderinstead.
Returns:
The quoteId, the ratio and inverseRatio, both amounts, and the expiry instant
(validTimestamp) rendered as UTC, plus the instruction to accept it before it
expires.
Examples: params = {"from_asset": "BTC", "to_asset": "USDT", "from_amount": "0.01"} params = {"from_asset": "USDT", "to_asset": "BTC", "to_amount": "0.5", "valid_time": "1m"}
Error Handling:
-1111 means the amount carries more decimals than the asset's fraction (see
binance_get_convert_asset_info); a rejection about limits means the amount is
outside the pair's min/max (see binance_get_convert_pairs); -2015 means the key
lacks permission or the IP is not allowlisted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |