数字货币查询法币

介绍

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

接口说明

测试环境

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": "CHF", "country": "CH", "countryName": "Switzerland", "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/CHF.png", "buyEnable": 1, "sellEnable": 0, "minBuyFiatAmount": "23", "maxBuyFiatAmount": "1792", "minSellCryptoAmount": "17", "maxSellCryptoAmount": "4491" }, { "currency": "HRK", "country": "HR", "countryName": "Croatia", "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/HRK.png", "buyEnable": 1, "sellEnable": 0, "minBuyFiatAmount": "175", "maxBuyFiatAmount": "13959", "minSellCryptoAmount": "139", "maxSellCryptoAmount": "34969" }, { "currency": "USD", "country": "US", "countryName": "United States of America", "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat/USD.png", "buyEnable": 1, "sellEnable": 1, "minBuyFiatAmount": "25", "maxBuyFiatAmount": "2000", "minSellCryptoAmount": "20", "maxSellCryptoAmount": "5010" }, .... }

FAQ

得到以下返回值时

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


Did this page help you?