curl --request GET \
--url https://openplatform.gateapi.io/v1/pay/convert/pair \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": [
{
"pair": "BTC_USDT",
"sellCurrency": "BTC",
"sellCurrencyMax": "31",
"sellCurrencyMin": "0.0002",
"buyCurrency": "USDT",
"buyCurrencyMax": "1980000",
"buyCurrencyMin": "12"
},
{
"pair": "BNB_USDT",
"sellCurrency": "BNB",
"sellCurrencyMax": "410",
"sellCurrencyMin": "0.1",
"buyCurrency": "USDT",
"buyCurrencyMax": "100000",
"buyCurrencyMin": "10"
}
]
}Query available currency pairs.
curl --request GET \
--url https://openplatform.gateapi.io/v1/pay/convert/pair \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": [
{
"pair": "BTC_USDT",
"sellCurrency": "BTC",
"sellCurrencyMax": "31",
"sellCurrencyMin": "0.0002",
"buyCurrency": "USDT",
"buyCurrencyMax": "1980000",
"buyCurrencyMin": "12"
},
{
"pair": "BNB_USDT",
"sellCurrency": "BNB",
"sellCurrencyMax": "410",
"sellCurrencyMin": "0.1",
"buyCurrency": "USDT",
"buyCurrencyMax": "100000",
"buyCurrencyMin": "10"
}
]
}Merchant client ID assigned when registering the application
"mZ96D37oKk-HrWJc"
Request signature for verification
"8504fe097f7297f8952c76e628ce59dbc93d1df64c95f26c73140ef365d4aa1471826ada0534315461682ec35c131d7e133c51d2ab0822fe7366650a111887ba"
UTC timestamp in milliseconds
"1740019013818"
Random string, recommended length within 32 characters
"9722139164"
Trade direction ("buy" or "sell")
buy, sell "buy"
Currency
"GT"