curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/currency/exchange/rate/query \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"sourceCurrency": "EUR",
"targetCurrency": "USDT"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"sourceCurrency": "EUR",
"targetCurrency": "USDT",
"rate": "0.021",
"updateTime": 12324324324323
}
}This API provides real-time exchange rates between fiat currencies and cryptocurrencies. It supports multiple trading pairs and is available exclusively to Gate Pay merchants.
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/currency/exchange/rate/query \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"sourceCurrency": "EUR",
"targetCurrency": "USDT"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"sourceCurrency": "EUR",
"targetCurrency": "USDT",
"rate": "0.021",
"updateTime": 12324324324323
}
}Documentation Index
Fetch the complete documentation index at: https://docs.gate.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /payment/open/institution/v1/pay/currency/exchange/rate/query endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
The clientId assigned when the merchant registers an application in the Gate merchant console.
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
Request signature. GatePay uses this signature to verify whether the request is valid.
UTC timestamp in milliseconds when the request is generated. GatePay will not process requests where the difference from the receive time exceeds 10 seconds.
"1672905655498"
Random string. Must comply with HTTP header rules; recommended length is within 32 characters, composed of digits and letters.
"9578"
Required delegated-subject header. Provide the initiating account ID for this request. For institution merchant APIs, this is typically the target sub-account ID; for institution charge and transfer APIs, it can be either an institution account ID or a sub-account ID.