Get Smart Wallet Portfolio History
The wallet's value at each day's close over a period, the last point now, and the account that explains it: started with + deposits − withdrawals + result = ended with. Built from every on-chain movement of the wallet, so it covers pools, lending and every supported chain. Days close at 00:00 America/Sao_Paulo; `1d`, and a history that started yesterday or today, go by the hour. A smart wallet the indexer never read is registered on the first call and returns INDEXING with its progress. Pass `chainId` and `token` for a single token's history.
x-api-keyx-api-key<token>walletAddress*||Wallet address whose portfolio history you want Accepted formats:
- EVM
- pattern:
^0x[a-fA-F0-9]{40}$ - example:
0xa7a9dcfcb65ed67e05d9c7eb49d2d74ce1f5f4f1
- pattern:
- Bitcoin
- pattern:
^(?:[13][a-km-zA-HJ-NP-Z1-9]{25,35}|bc1q[02-9ac-hj-np-z]{38}|bc1q[02-9ac-hj-np-z]{58}|bc1p[02-9ac-hj-np-z]{10,70})$ - example:
bc1qgv5fuheq50ghnju8lafqvps7h96ztfjtcvmsnd
- pattern:
- Stellar
- pattern:
^G[A-Z2-7]{55}$ - example:
GCNHC2KY3QLJYXJCTY64TWDFHZWMOUYRD6AGMWUZOSK2VHK7D5MYUYZA
- pattern:
timerange?stringPeriod ending now. 1a is one year, all starts the day before the wallet first moved.
"1m""1d""7d""1m""3m""6m""1a""all"currency?stringCurrency of every value, converted at each day close rate
"USD""USD""BRL"chainId?numberChain of token. Send both or neither.
token?stringOnly this token (0xeeee…eeee for the native coin): its own history, where every movement of it is a deposit or a withdrawal and the result is what it earned by itself, e.g. a yield token interest.
application/json- response
status*stringINDEXING while the wallet history is being read for the first time (a wallet asked for the first time starts then), with the points read so far.
"INDEXED""INDEXING"granularity*stringDAY: a point per São Paulo day. HOUR: a point per hour, for 1d and for a history that started yesterday or today.
"DAY""HOUR"progress*|nullHow far the indexer is while INDEXING, null once INDEXED.
timerange*string"1d""7d""1m""3m""6m""1a""all"currency*string"USD""BRL"firstActivityDate*|First day the wallet (or the token) moved. A timerange that starts before it is cut to the day before it.
summary*|nullstartValue + deposits − withdrawals + result = endValue. Null when the first or the last point has no value.
points*array<>One point per day or hour, oldest first, the last one now. The first one is the start of the period: its deposits and withdrawals are not part of the summary. A wallet that never moved has two points at 0: the period start and now.