Search
⌘K
Portfolio API
API version: v5.0
Introduction
Quickstart guide
Migration
Migration from v4 to v5.0
Methods
Check if portfolio service is available GET
Check if historical data is available GET
Get supported chains GET
Get supported protocols GET
Get current portfolio value breakdown GET
General profit and loss GET
General value chart GET
Overview report GET
Transaction history GET
History transaction types GET
Get protocols snapshot GET
Get protocols metrics GET
Get additional info for chosen token for given timerange, e.g. average buy price, inflow/outflow, pnl etc GET
Get chart for chosen token value and price with in/out transfers info for given timerange GET
Get paginated transactions info for chosen token GET
Get tokens snapshot GET
Get tokens metrics GET
Docs·APIs·Portfolio API·Methods·v5.0·Get tokens metrics

Get tokens metrics

Get tokens metrics

GEThttps://api.1inch.com/portfolio/portfolio/v5.0/tokens/metrics
Supported on:
ArbitrumAvalancheBaseBNB ChainZKsyncEthereumGnosisOptimismPolygonLineaSolanaSonicUnichain

Parameters

addresses
* array query
chain_id
any query
timerange
string (Enum)query
use_cache
boolean query

Request Body

This request doesn’t have any request body.

1

Returns

200
422
ResponseEnvelope_list_HistoryMetrics__ object
result
* array
items
HistoryMetrics object
index
* any
anyOf[0]
string
anyOf[1]
AggregatePositionIndex object
address
any
anyOf[0]
AddressType any
anyOf[0]
string
anyOf[1]
string
anyOf[1]
null
chain
any
anyOf[0]
Chain any (Enum)
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
anyOf[1]
null
contract_address
any
anyOf[0]
AddressType any
anyOf[0]
string
anyOf[1]
string
anyOf[1]
null
token_id
integer
protocol_sub_group_id
any
anyOf[0]
string
anyOf[1]
null
profit_abs_usd
any
anyOf[0]
number
anyOf[1]
null
roi
any
anyOf[0]
number
anyOf[1]
null
weighted_apr
any
anyOf[0]
number
anyOf[1]
null
holding_time_days
any
anyOf[0]
integer
anyOf[1]
null
rewards_tokens
any
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
rewards_usd
any
anyOf[0]
number
anyOf[1]
null
rewards_roi
any
anyOf[0]
number
anyOf[1]
null
rwa_price_usd
any
anyOf[0]
number
anyOf[1]
null
claimed_fees
any
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
unclaimed_fees
any
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
impermanent_loss
any
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
claimed_fees_usd
any
anyOf[0]
number
anyOf[1]
null
unclaimed_fees_usd
any
anyOf[0]
number
anyOf[1]
null
impermanent_loss_usd
any
anyOf[0]
number
anyOf[1]
null
inflow_usd
any
anyOf[0]
number
anyOf[1]
null
outflow_usd
any
anyOf[0]
number
anyOf[1]
null
value_usd_start
any
anyOf[0]
number
anyOf[1]
null
value_usd_end
any
anyOf[0]
number
anyOf[1]
null
inflow_amount
any
anyOf[0]
number
anyOf[1]
null
outflow_amount
any
anyOf[0]
number
anyOf[1]
null
amount_start
any
anyOf[0]
number
anyOf[1]
null
amount_end
any
anyOf[0]
number
anyOf[1]
null
meta
any
anyOf[0]
ResponseMeta object
cached_at
any
anyOf[0]
integer
anyOf[1]
null
system
any
anyOf[0]
ProcessingInfo object
click_time
number
node_time
number
microservices_time
number
redis_time
number
total_time
number
anyOf[1]
null
anyOf[1]
null
JSON
1

Did you find what you need?