curl --request POST \
--url https://openplatform.gateapi.io/withdraw/open/institution/otc/api/v1/quote \
--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 '
{
"cryptoCurrency": "USDT",
"fiatCurrency": "USD",
"side": "FIAT",
"type": "BUY"
}
'{
"code": "0",
"status": "success",
"errorMessage": "",
"data": {
"quoteToken": "qt_01JXYZABCDEF",
"validPeriod": 60,
"cryptoAmount": "1088.42",
"fiatAmount": "1000",
"fiatRate": "0.918762",
"cryptoRate": "1.088420"
}
}Get a fiat-to-crypto quote for the OTC on-ramp flow.
curl --request POST \
--url https://openplatform.gateapi.io/withdraw/open/institution/otc/api/v1/quote \
--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 '
{
"cryptoCurrency": "USDT",
"fiatCurrency": "USD",
"side": "FIAT",
"type": "BUY"
}
'{
"code": "0",
"status": "success",
"errorMessage": "",
"data": {
"quoteToken": "qt_01JXYZABCDEF",
"validPeriod": 60,
"cryptoAmount": "1088.42",
"fiatAmount": "1000",
"fiatRate": "0.918762",
"cryptoRate": "1.088420"
}
}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.
type=BUY for on-ramp and type=SELL for off-ramp.Merchant application client ID used to identify the calling app.
HMAC signature generated from the request according to GatePay signing rules.
Unix timestamp used for replay protection and signature verification.
Random nonce used together with the timestamp to prevent replay attacks.
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.
Bank account name for fuzzy matching.
Account number or IBAN for fuzzy matching.
SWIFT code for fuzzy matching.
Bank name for fuzzy matching.
Cryptocurrency code used in the quote request. On-ramp supports: USDT, USDC. Off-ramp supports: USDT, USDC.
Fiat currency code used in the quote request. Currently supported: USD.
Quote direction. Use CRYPTO to quote by crypto amount or FIAT to quote by fiat amount.
OTC business type. Use BUY for on-ramp and SELL for off-ramp.
Cryptocurrency amount used when quoting by crypto amount.
Fiat amount used when quoting by fiat amount.
Optional promotion code if supported by the OTC business flow.