Skip to Content
Dashboard
API ReferenceSmart walletsGet Smart Wallet Portfolio History GET

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.

GET
/api/v1/wallets/{walletAddress}/portfolio/history

Authorization

x-api-key
headerx-api-key<token>

Path Parameters

walletAddress*||

Wallet address whose portfolio history you want Accepted formats:

  • EVM
    • pattern: ^0x[a-fA-F0-9]{40}$
    • example: 0xa7a9dcfcb65ed67e05d9c7eb49d2d74ce1f5f4f1
  • 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
  • Stellar
    • pattern: ^G[A-Z2-7]{55}$
    • example: GCNHC2KY3QLJYXJCTY64TWDFHZWMOUYRD6AGMWUZOSK2VHK7D5MYUYZA

Query Parameters

timerange?string

Period ending now. 1a is one year, all starts the day before the wallet first moved.

Default"1m"
Value in"1d""7d""1m""3m""6m""1a""all"
currency?string

Currency of every value, converted at each day close rate

Default"USD"
Value in"USD""BRL"
chainId?number

Chain of token. Send both or neither.

token?string

Only 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.

Response Body

application/json
  1. response
status*string

INDEXING 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.

Value in"INDEXED""INDEXING"
granularity*string

DAY: a point per São Paulo day. HOUR: a point per hour, for 1d and for a history that started yesterday or today.

Value in"DAY""HOUR"
progress*|null

How far the indexer is while INDEXING, null once INDEXED.

timerange*string
Value in"1d""7d""1m""3m""6m""1a""all"
currency*string
Value in"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*|null

startValue + 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.