Get current portfolio value breakdown
Get current portfolio value breakdown: by address, by category, by protocol group, by chain
Supported on: Ethereum Base Solana BNB Chain Avalanche Cronos ZKsync Gnosis HyperEVM Arc Monad Optimism Polygon Linea Sonic Unichain Robinhood Arbitrum
Parameters
addresses
* array queryWallet addresses
chain_id
any queryBlockchain chain identifier
use_cache
boolean queryGet response from cache
Request Body
This request doesn’t have any request body.
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const axios = require('axios');
async function httpCall() {
const url =
'https://api.1inch.com/portfolio/portfolio/v5.0/general/current_value';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {},
paramsSerializer: {
indexes: null,
},
};
try {
const response = await axios.get(url, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
result
*CurrentValueResponse object Response model for current portfolio value
total
* number Total USD value of all assets
by_address
* array Value breakdown by address
items
AddressValue object Value breakdown by address
value_usd
* number USD value of assets in this address
address
* string Address
by_category
* array Value breakdown by category
items
CategoryValue object Value breakdown by category (tokens, native, protocols)
value_usd
* number USD value of assets in this category
category_id
* string Category identifier (tokens, native, protocols)
category_name
* string Human-readable category name
by_protocol_group
* array Value breakdown by protocol group
items
ProtocolGroupValue object Value breakdown by protocol group
value_usd
* number USD value of assets in this protocol group
protocol_group_id
* string Protocol group identifier
protocol_group_name
* string Human-readable protocol group name
by_chain
* array Value breakdown by blockchain
items
ChainValue object Value breakdown by blockchain
value_usd
* number USD value of assets on this chain
chain_id
* integer Chain identifier
chain_name
* string Human-readable chain name
meta
any anyOf[0]
ResponseMeta object Response metadata including cache and performance information.
cached_at
any anyOf[0]
integer anyOf[1]
null system
any anyOf[0]
ProcessingInfo object Server-side processing time breakdown by subsystem.
click_time
number node_time
number microservices_time
number redis_time
number total_time
number anyOf[1]
null anyOf[1]
null JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"result": {
"total": 0,
"by_address": [
{
"value_usd": 0,
"address": "string"
}
],
"by_category": [
{
"value_usd": 0,
"category_id": "string",
"category_name": "string"
}
],
"by_protocol_group": [
{
"value_usd": 0,
"protocol_group_id": "string",
"protocol_group_name": "string"
}
],
"by_chain": [
{
"value_usd": 0,
"chain_id": 0,
"chain_name": "string"
}
]
},
"meta": null
}