curl --request POST \
--url https://openplatform.gateapi.io/withdraw/open/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-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"
}
}获取用于 OTC 出金流程的法币与数字货币报价。
curl --request POST \
--url https://openplatform.gateapi.io/withdraw/open/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-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 表示入金,使用 type=SELL 表示出金。用于标识调用应用的商户应用 ClientId。
按 GatePay 签名规则生成的 HMAC 签名。
用于防重放和验签的 Unix 时间戳。
与时间戳配合使用的随机串,用于防止重放攻击。
银行账户名称,用于模糊查询。
账号或 IBAN,用于模糊查询。
SWIFT,用于模糊查询。
银行名称,用于模糊查询。
询价中使用的数字货币币种代码。入金支持:USDT、USDC;出金支持:USDT、USDC。
询价中使用的法币币种代码。当前支持:USD。
询价方向。CRYPTO 表示按数字货币数量询价,FIAT 表示按法币数量询价。
OTC 业务类型。BUY 表示入金,SELL 表示出金。
按数字货币数量询价时使用的数字货币金额。
按法币数量询价时使用的法币金额。
业务支持时可传的优惠码。