獲取幣種信息
GET
/az/spot/public/currencies
請求參數
| 參數 | 類型 | 是否必須 | 默認值 | 描述 | 取值範圍 |
|---|---|---|---|---|---|
| builder-code | string | false | 請求頭。builder code,eg: azx | ||
| client-lang | string | false | en | 請求頭。客戶端語言,eg: en/cn | |
| version | string | false | 內容版本號(query)。當請求版本號與響應內容版本一致時,不返回清單,減少IO |
Response
{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"time": 1661856036925, //時間戳(毫秒)
"version": "2e14d2cd5czcb2c2af2c1db65078d075", //內容版本
"currencies": [
{
"id": 2, //幣種id
"currency": "btc", //幣種名稱
"displayName": "BTC", //幣種展示名稱
"displayNames": { //i18n展示名,鍵=語言碼,en恆在
"en": "BTC",
"cn": "BTC"
},
"type": "FT", //幣種類型: FT | NFT
"nominalValue": "1", //面值
"fullName": "Bitcoin", //幣種全稱
"logo": "https://a.static-global.com/1/currency/btc.png",
"cmcLink": "https://coinmarketcap.com/currencies/bitcoin/",
"weight": 99999,
"isBlack": false, //當前builder是否屏蔽該幣種
"maxPrecision": 10,
"depositStatus": 0, //充值狀態(0關閉 1開放)
"withdrawStatus": 0, //提現狀態(0關閉 1開放)
"isDisplay": 1, //是否顯示(0否 1是)
"convertEnabled": 1, //小額資產兌換開關[0=關;1=開]
"transferEnabled": 1, //劃轉開關[0=關;1=開]
"isChainExist": 1,
"plates": [],
"isListing": 1,
"withdrawCloseReason": "CURRENCY_CLOSE_REASON_5",
"chainRelation": [
{
"chainId": 715,
"web3ChainId": 42161, //web3 chain id
"contract": "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c"
},
{
"chainId": 5,
"web3ChainId": 1,
"contract": "0x9BE89D2a4cd102D8Fecc6BF9dA793be995C22541"
}
]
}
]
}
}