Sandbox
Place Buy Any Token Order
Code
This endpoint allows you to place test orders in the sandbox environment for buying any token, including tokens that may not be listed on Binance spot markets.
Request Body
| Field | Type | Mandatory | Remarks |
|---|---|---|---|
| externalOrderId | string | Yes | The unique order id from the partner side. Supports only letters and numbers. |
| fiatCurrency | string | Yes | Fiat currency code (e.g., EUR, USD) |
| requestedAmount | string | Yes | Requested amount. Must be greater than 0 and less than 9999999999999999 |
| amountType | int | Yes | Specify whether the requested amount is in fiat:1 or crypto:2 |
Response Body
| Field | Type | Remarks |
|---|---|---|
| success | boolean | Indicates if the request succeeded |
| code | string | Response code |
| message | string | Response message |
Example 1: Buy any token with fiat amount
Request Parameters:
Code
Response:
Code
Example 2: Buy any token with crypto amount
Request Parameters:
Code
Response:
Code
Was this page helpful?
Last modified on