getHistoricalPortfolioForWalletAddress

GET https://api.covalenthq.com/v1/:chainName/address/:walletAddress/portfolio_v2/?quote-currency=&days=

Returns: PortfolioResponse

{
  "address" : "{{STRING}}",
  "updated_at" : "{{DATETIME}}",
  "next_update_at" : "{{DATETIME}}",
  "quote_currency" : "{{STRING}}",
  "chain_id" : "{{INTEGER}}",
  "chain_name" : "{{STRING}}",
  "items" : [ {
    "contract_address" : "{{STRING}}",
    "contract_decimals" : "{{INTEGER}}",
    "contract_name" : "{{STRING}}",
    "contract_ticker_symbol" : "{{STRING}}",
    "logo_url" : "{{STRING}}",
    "holdings" : [ {
      "quote_rate" : "{{DOUBLE}}",
      "timestamp" : "{{DATETIME}}",
      "close" : {
        "balance" : "{{STRING}}",
        "quote" : "{{DOUBLE}}",
        "pretty_quote" : "{{STRING}}"
      },
      "high" : "{{OhlcItem}}",
      "low" : "{{OhlcItem}}",
      "open" : "{{OhlcItem}}"
    } ]
  } ]
}

Request Params

KeyDatatypeRequiredDescription
quote-currencynull
daysnull

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring