amberdata_spot_pairs {cryptotrackr}R Documentation

amberdata_spot_pairs

Description

amberdata_spot_pairs

Usage

amberdata_spot_pairs(
  api_key,
  exchange = NULL,
  pair = NULL,
  include_dates = "false",
  time_format = "ms",
  timeout_seconds = 60
)

Arguments

api_key

your Amberdata API key

exchange

choose a specific exchange or multiple exchanges (comma-separated) rather than all exchanges

pair

choose a specific pair or multiple pairs (comma-separated) rather than all pairs

include_dates

include a start date and an end date along with your data. Default is "false"

time_format

the format to return your times in. Choose from: "milliseconds", "ms", "iso", "iso8601", "hr", and "human_readable". Default is "ms".

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns a list of spot pairs and exchanges supported on Amberdata with the option of including the dates each one was supported.

Examples

## Not run: 
api_key <- "..."
pairs <- amberdata_spot_pairs(api_key)
btc_usd <- amberdata_spot_pairs(api_key, pair = "btc_usd")
## End(Not run)

[Package cryptotrackr version 1.3.3 Index]