行情 API

获取支持的链#

获取综合币价 API 支持的链信息。

请求路径#

GET https://web3.okx.com/api/v5/dex/balance/supported/chain

请求参数#

响应参数#

ParameterTypeDescription
nameString链名称
logoUrlString链标志 URL
shortNameString链简称
chainIndexString链唯一标识

请求示例#

shell
curl --location --request GET 'https://web3.okx.com/api/v5/dex/balance/supported/chain'
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'

响应示例#

200
{
    "code": "0",
    "data": [
        {
            "name": "Ethereum",
            "logoUrl": "http://www.eth.org/eth.png",
            "shortName": "ETH",
            "chainIndex": "1"
        }
    ],
    "msg": ""
}