get_all_exchange_balance: Get Balances for all Exchange Wallets for a given crypto

View source: R/get_all_exchange_balance.R

get_all_exchange_balanceR Documentation

Get Balances for all Exchange Wallets for a given crypto

Description

This function calls the stacked API call. It returns a tibble with the amount in all available exchange wallets

Usage

get_all_exchange_balance(
  asset = "BTC",
  since = NULL,
  until = NULL,
  frequency = "24h",
  currency = "USD",
  api_key = Sys.getenv("GN_API_KEY"),
  as_date = TRUE
)

Arguments

asset

This is the asset to get information on. The list of available assets is on the GN API site

since, until

A POSIX compatible date-time object. It's converted to a unix date number

frequency

A resolution for the data. See API documentation but it defaults to 24h

currency

Return values in native tokens or in USD (the default)

api_key

The API key to use. By default it will check the API_KEY environmental variable

as_date

A logical to return a date-time object or a date object for daily observations

Value

Returns a tibble with columns for the datetime, and each exchange

Examples

## Not run: 
#Need a valid API key to run
x <- get_all_exchange_balances()

## End(Not run)

James-Crypto-Research/GlassnodeR documentation built on Feb. 24, 2025, 3:21 p.m.