跳转到主要内容
GET
/
v1
/
pay
/
convert
/
currency
查询可用闪兑币种
curl --request GET \
  --url https://openplatform.gateapi.io/v1/pay/convert/currency \
  --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": {
    "currency": [
      "USDT",
      "GT",
      "HOOK",
      "ETH",
      "DOT",
      "BTC",
      "DAL",
      "LTC",
      "COS",
      "POL",
      "SOL",
      "DOGE",
      "ALGO",
      "STPT",
      "BCH",
      "SHIB"
    ]
  }
}

请求头

X-GatePay-Certificate-ClientId
string
必填

商户客户端ID,在 GatePay 平台申请获得

示例:

"mZ96D37oKk-HrWJc"

X-GatePay-Signature
string
必填

请求签名,GatePay 通过此签名来确定此请求是否合法

示例:

"8504fe097f7297f8952c76e628ce59dbc93d1df64c95f26c73140ef365d4aa1471826ada0534315461682ec35c131d7e133c51d2ab0822fe7366650a111887ba"

X-GatePay-Timestamp
string
必填

请求生成时的 UTC 时间戳(毫秒)

示例:

"1740019013818"

X-GatePay-Nonce
string
必填

随机字符串,建议长度在 32 个字符以内

示例:

"9722139164"

查询参数

side
enum<string>

交易方向,值为 "buy" 或 "sell"

可用选项:
buy,
sell
示例:

"sell"

响应

200 - application/json

查询成功

status
string

SUCCESS 或 FAIL

code
string

错误码

errorMessage
string

错误信息

data
object