Learn R Programming

cryptotrackr (version 1.3.3)

covalent_portfolio: covalent_portfolio

Description

covalent_portfolio

Usage

covalent_portfolio(
  api_key,
  chain_id,
  address,
  csv = FALSE,
  timeout_seconds = 60
)

Value

returns either a list or a dataframe with portfolio history

Arguments

api_key

your Covalent API key

chain_id

the string id of the chain for which you wish to check portfolio history.

address

the address you for which wish to get portfolio history.

csv

'TRUE' will return csv data parsed as a dataframe while 'FALSE' will return json data. The default value is 'FALSE'.

timeout_seconds

seconds until the query times out. Default is 60.

Examples

Run this code
if (FALSE) {
api_key <- "..."
portfolio <- covalent_portfolio(api_key, "1", "trevorfrench.eth", csv = FALSE)}

Run the code above in your browser using DataLab