Get OTC Off-ramp Quote
Changed onGet a fiat-to-crypto quote for the OTC off-ramp flow.
post/withdraw/open/otc/api/v1/quote
Request
- Base URLhttps://openplatform.gateapi.io
- Authnone declared. Required headers: X-GatePay-Certificate-ClientId, X-GatePay-Signature, X-GatePay-Timestamp, X-GatePay-Nonce
Headers
X-GatePay-Certificate-ClientIdstring required
Merchant application client ID used to identify the calling app.
X-GatePay-Signaturestring required
HMAC signature generated from the request according to GatePay signing rules.
X-GatePay-Timestampstring required
Millisecond timestamp; the difference from server time must not exceed 30 seconds.
X-GatePay-Noncestring required
Random nonce used together with the timestamp to prevent replay attacks.
X-GatePay-On-Behalf-Ofstring
Institutional sub-account UID. Only required when an institution submits a request on behalf of a sub-account; not required for direct merchant requests.
Request body
Example request
{
"cryptoCurrency": "USDT",
"fiatCurrency": "USD",
"fiatAmount": "1000",
"side": "FIAT",
"type": "BUY",
"bankAccountId": "2897434"
}Response
Success
Example response
{
"code": "0",
"status": "success",
"errorMessage": "",
"data": {
"quoteToken": "qt_01JXYZABCDEF",
"validPeriod": 60,
"cryptoAmount": "1088.42",
"fiatAmount": "1000",
"fiatRate": "0.918762",
"cryptoRate": "1.088420",
"tradeFee": "10.88",
"feeCurrency": "USD",
"feeDetail": [
{
"feeType": "BANK",
"amount": "2.00"
},
{
"feeType": "GATE_PAY",
"amount": "10.00"
},
{
"feeType": "SUBSIDY",
"amount": "1.12"
}
]
}
}Changes
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info