cryptocompare_api: GET call to cryptocompare API

View source: R/cryptocompare_api.R

cryptocompare_apiR Documentation

GET call to cryptocompare API

Description

Execute a GET call to cryptocompare API.

Usage

cryptocompare_api(path = NULL, query = NULL, config = list())

Arguments

path

Character vector. API path, NULL or NA elements will be excluded.

query

Named list. Query parameters for the API call, NULL or NA elements will be excluded.

config

Configuration parameter config. See the function GET.

Examples

api_path = c("data", "exchange", "histoday")
api_query = list(tsym = "USD", e = "Binance",
                 toTs = as_unix("2023-01-01"),
                 limit = 2000, api_key = NULL)
cryptocompare_api(path = api_path, query = api_query)


beniamino98/cryptocompareR documentation built on June 19, 2024, 12:37 a.m.