查询钱包账户下所有代币资产的估值,以美元为单位。
GET https://www.okx.com/api/waas/wallet/asset/total-token-value
Parameter | Type | Required | Description |
---|---|---|---|
accountId | String | Yes | 账户唯一标识 |
chains | Array | No | chainIndex列表,可以以链维度过滤查询代币的展示。列表元素上限是 20 个 |
Parameter | Type | Description |
---|---|---|
value | String | 代币资产估值 |
curl --location --request GET 'https://www.okx.com/api/v5/waas/wallet/asset/total-token-value?accountId=44486e05-3235-2f8e-5fe2-a8ab46217863&chains=1,2' \
--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'
{
"code": "0",
"msg": "success",
"data": [
{
"value": "123445.12"
}
]
}