Skip to main content

Portfolio API

Endpoints for retrieving portfolio metrics, charts, and asset data.

Endpoints

Get Portfolio Line Graph

GET /getLineGraphValues

Retrieve historical portfolio value data for charting.

Query Parameters:

ParameterTypeRequiredDescription
walletAddressstringYesUser wallet address
chainIdnumberYesChain ID
timeframestringNoTime range (1D, 1W, 1M, 3M, 1Y, ALL)

Get Portfolio Metrics

GET /getPortfolioMetrics

Retrieve portfolio overview metrics including total value and changes.

Query Parameters:

ParameterTypeRequiredDescription
walletAddressstringYesUser wallet address
chainIdnumberYesChain ID

Get Asset Table Data

GET /getAssetTableData

Retrieve a breakdown of all assets in the portfolio.

Query Parameters:

ParameterTypeRequiredDescription
walletAddressstringYesUser wallet address
chainIdnumberYesChain ID

Response Fields:

FieldTypeDescription
tokenstringToken name
symbolstringToken symbol
balancestringToken balance
valueUSDnumberValue in USD
pricenumberCurrent price
priceChange24hnumber24h price change %

Get Total Invested Value

GET /getTotalInvestedValue

Retrieve the total invested value for portfolio tracking.

Query Parameters:

ParameterTypeRequiredDescription
walletAddressstringYesUser wallet address
chainIdnumberYesChain ID

Get Token Invested Value

GET /getTokenInvestedValue

Retrieve invested value breakdown by individual token.


Get Allocation Data

GET /getAllocationData

Retrieve portfolio allocation percentages by asset.

Query Parameters:

ParameterTypeRequiredDescription
walletAddressstringYesUser wallet address
chainIdnumberYesChain ID