Query the asset valuations of all or specified chains under the specified wallet.
POST https://www.okx.com/api/v5/waas/asset/get-valuation-bychain
Parameter | Type | Required | Description |
---|---|---|---|
walletId | String | Yes | Wallet unique identifier |
chainIds | Array<String> | No | Chain unique identifier list |
limit | String | No | How many items to query per page. The default value is 50 |
cursor | String | No | Query cursor. Default is the first page |
Response Parameters | Parameter | Type | Description | | --- | --- | --- | | cursor | String | Query cursor | | valuations | Object | Valuation object |
valuations
Parameter | Type | Description |
---|---|---|
valuationSum | String | Current page valuation sum |
networkValuations | Array | Valuation information |
>chainId | String | Chain unique identifier |
>name | String | Chain name |
>valuation | String | Valuation (USDT) |
curl --location --request POST 'https://www.okx.com/api/v5/waas/asset/get-valuation-bychain' \
--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' \
--data-raw '{
"walletId": "13886e05-1265-4b79-8ac3-b7ab46211002",
"limit": 1,
"cursor":1
}'
{
"code": 0,
"msg": "success",
"data": [{
"cursor": "66",
"valuations": {
"valuationSum": "34.038267787175508764",
"networkValuations": [{
"chainId": "66",
"name": "okt",
"valuation": "34.038267787175508764"
}]
}
}]
}