数字货币查询法币

介绍

此接口用于查询数字货币和所在网络支持的法币

接口说明

测试环境

https://openapi-test.alchemypay.org/open/api/v3/merchant/fiat/info

生产环境

https://openapi.alchemypay.org/open/api/v3/merchant/fiat/info

❗️该接口只能在服务端被调用

请求方式

  • POST
  • Content-Type: application/json

Header参数:

参数名必选类型说明
appidYstring应用的唯一标识
timestampYstring当前 UTC 13位时间戳, 5分钟内有效
signYstring将appId,timeStamp,和请求的参数按字母排序进行签名,签名方式可参考这里

Body参数:

参数名必选类型说明
cryptoYstring数字货币币种
networkYstring网络

示例

请求Header参数:

请求Body参数

{
    "network": "BSC",
    "crypto": "ETH"
}

返回参数:

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": [
        {
            "currency": "EUR",
            "country": "AD",
            "countryName": "Andorra",
            "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/EUR.png",
            "buyEnable": 1,
            "sellEnable": 0,
            "minBuyFiatAmount": "1500.000000",
            "maxBuyFiatAmount": "200000.000000",
            "minSellCryptoAmount": "80",
            "maxSellCryptoAmount": "12000"
        },
        {
            "currency": "ARS",
            "country": "AR",
            "countryName": "Argentina",
            "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/ARS.png",
            "buyEnable": 1,
            "sellEnable": 0,
            "minBuyFiatAmount": "1500.000000",
            "maxBuyFiatAmount": "200000.000000",
            "minSellCryptoAmount": "80",
            "maxSellCryptoAmount": "12000"
        },
        {
            "currency": "AUD",
            "country": "AU",
            "countryName": "Australia",
            "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/AUD.png",
            "buyEnable": 1,
            "sellEnable": 0,
            "minBuyFiatAmount": "1500.000000",
            "maxBuyFiatAmount": "200000.000000",
            "minSellCryptoAmount": "80",
            "maxSellCryptoAmount": "12000"
        },
        {
            "currency": "AUD",
            "country": "AU",
            "countryName": "Australia",
            "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/AUD.png",
            "buyEnable": 1,
            "sellEnable": 0,
            "minBuyFiatAmount": "1500.000000",
            "maxBuyFiatAmount": "200000.000000",
            "minSellCryptoAmount": "80",
            "maxSellCryptoAmount": "12000"
        },
        {
            "currency": "EUR",
            "country": "AT",
            "countryName": "Austria",
            "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/EUR.png",
            "buyEnable": 1,
            "sellEnable": 0,
            "minBuyFiatAmount": "1500.000000",
            "maxBuyFiatAmount": "200000.000000",
            "minSellCryptoAmount": "80",
            "maxSellCryptoAmount": "12000"
        },
      .......
      }

FAQ

得到以下返回值时

原因是时间戳过期,请重新生成时间戳或者检查您的代码运行系统时间。