List All Convert Pairs
API used to list all convert pairs.
EndPoint
POST /binancepay/openapi/otc-portal/get-to-selector
Request Parameters
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
fromAsset | string | Y | Valid currency, must be in uppercase | Currency to query, for e.g, USDT |
Sample Request Parameter
{
"fromAsset": USDT
}
Response Parameters
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
status | string | Y | "SUCCESS" or "FAIL" | status of the API request |
code | string | Y | - | request result code, refer to |
data | ConvertPairResp | N | - | response body, refer to |
errorMessage | string | N | maximum length 256 |
Child Attribute
ConvertPairResp
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
toList | ConvertPairData | Y | Convert data, refer to | |
coin | string | Y | Currency from the request parameter |
ConvertPairData
Attributes | Type | Required | Limitation | Description |
---|---|---|---|---|
coin | string | Y | To asset | |
fromMin | decimal | Y | From asset minimum amount | |
fromMax | decimal | Y | From asset maximum amount | |
toMin | decimal | Y | To asset minimum amount | |
toMax | decimal | Y | To asset maximum amount | |
reverse | boolean | Y | Reverse convert available | |
base | boolean | Y | Is base |
Sample Response
{
"status": "SUCCESS",
"code": "000000",
"data": {
"coin": "USDT",
"toList": [
{
"coin": "BTC",
"fromMin": 2E+1,
"fromMax": 7E+5,
"toMin": 0.0008,
"toMax": 35.1,
"reverse": true,
"base": true
}
]
}
}
{
"status": "FAIL",
"code": "400003",
"errorMessage": "Timestamp for this request is outside of the recvWindow."
}