amberdata_spot_exchanges {cryptotrackr}R Documentation

amberdata_spot_exchanges

Description

amberdata_spot_exchanges

Usage

amberdata_spot_exchanges(
  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 exchanges and pairs supported on Amberdata with the option of including the dates each one was supported.

Examples

## Not run: 
api_key <- "..."
exchanges <- amberdata_spot_exchanges(api_key)
gdax <- amberdata_spot_exchanges(api_key
                                 , "gdax"
                                 , "1inch_btc,ada_usd"
                                 , "true"
                                 , "hr")
## End(Not run)

[Package cryptotrackr version 1.3.3 Index]