Business
Products
Pricing
Enterprise
AI
Docs
Try for free
Sign in
Go to...
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
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
Use with AI
Get tokens metrics
GET
https://api.1inch.com/portfolio/portfolio/v5.0/tokens/metrics
Supported on:
Arbitrum
Avalanche
Base
BNB Chain
ZKsync
Ethereum
Gnosis
Optimism
Polygon
Linea
Solana
Sonic
Unichain
Parameters
addresses
*
array
query
Wallet addresses
chain_id
any
query
Blockchain chain identifier
timerange
string
(Enum)
query
Time range for metrics calculation
use_cache
boolean
query
Get response from cache
Request Body
This request doesn’t have any request body.
JavaScript
Copy
Try it
1
Returns
200
422
ResponseEnvelope_list_HistoryMetrics__
object
result
*
array
items
HistoryMetrics
object
Historical performance metrics for a position over a time range.
index
*
any
Position or aggregate identifier
anyOf[0]
string
anyOf[1]
AggregatePositionIndex
object
Aggregate position identifier used for rolled-up metrics across positions.
address
any
anyOf[0]
AddressType
any
anyOf[0]
string
anyOf[1]
string
anyOf[1]
null
chain
any
anyOf[0]
Chain
any
(Enum)
Supported blockchain networks.
[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
Absolute profit in USD over the time range
anyOf[0]
number
anyOf[1]
null
roi
any
Return on investment as a decimal (e.g. 0.1 = 10%)
anyOf[0]
number
anyOf[1]
null
weighted_apr
any
Weighted annual percentage rate
anyOf[0]
number
anyOf[1]
null
holding_time_days
any
Number of days the position has been held
anyOf[0]
integer
anyOf[1]
null
rewards_tokens
any
Reward tokens earned over the time range
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
rewards_usd
any
Total rewards value in USD
anyOf[0]
number
anyOf[1]
null
rewards_roi
any
Return on investment from rewards only
anyOf[0]
number
anyOf[1]
null
rwa_price_usd
any
RWA token price in USD
anyOf[0]
number
anyOf[1]
null
claimed_fees
any
Claimed LP fees in token amounts
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
unclaimed_fees
any
Unclaimed LP fees in token amounts
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
impermanent_loss
any
Impermanent loss in token amounts
anyOf[0]
array
items
object
additionalProperties
any
anyOf[1]
null
claimed_fees_usd
any
Claimed LP fees in USD
anyOf[0]
number
anyOf[1]
null
unclaimed_fees_usd
any
Unclaimed LP fees in USD
anyOf[0]
number
anyOf[1]
null
impermanent_loss_usd
any
Impermanent loss in USD
anyOf[0]
number
anyOf[1]
null
inflow_usd
any
Total inflow value in USD over the time range
anyOf[0]
number
anyOf[1]
null
outflow_usd
any
Total outflow value in USD over the time range
anyOf[0]
number
anyOf[1]
null
value_usd_start
any
Position value in USD at the start of the time range
anyOf[0]
number
anyOf[1]
null
value_usd_end
any
Position value in USD at the end of the time range
anyOf[0]
number
anyOf[1]
null
inflow_amount
any
Total inflow in token amount
anyOf[0]
number
anyOf[1]
null
outflow_amount
any
Total outflow in token amount
anyOf[0]
number
anyOf[1]
null
amount_start
any
Token amount at the start of the time range
anyOf[0]
number
anyOf[1]
null
amount_end
any
Token amount at the end of the time range
anyOf[0]
number
anyOf[1]
null
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
Get tokens snapshot
Did you find what you need?
Yes
No