Sandbox
Place Convert Feature Order
Code
This endpoint allows you to place test convert orders in the sandbox environment to simulate cryptocurrency conversion scenarios.
Request Body
| Field | Type | Mandatory | Remarks |
|---|---|---|---|
| externalOrderId | string | Yes | The unique order id from the partner side. Supports only letters and numbers. |
| fromCryptoCurrency | string | Yes | The source cryptocurrency to convert from (e.g., BNB, ETH) |
| toCryptoCurrency | string | Yes | The target cryptocurrency to convert to (e.g., USDT, BTC) |
| toCryptoAmount | string | Yes | The amount of target cryptocurrency. Must be greater than 0 and less than 9999999999999999 |
Response Body
| Field | Type | Remarks |
|---|---|---|
| success | boolean | Indicates if the request succeeded |
| code | string | Response code |
| message | string | Response message |
Example 1: Convert BNB to USDT
Request Parameters:
Code
Response:
Code
Example 2: Convert ETH to BTC
Request Parameters:
Code
Response:
Code
Was this page helpful?
Last modified on