ticker_history: Retrieve Cryptocurrency Historical Data

Description Usage Arguments Details Value Examples

View source: R/bitfinex-public.R

Description

Calls the Bitfinex API to retrieve historical cryptocurrency records.

Usage

1
ticker_history(SYMBOLS = c("ALL"), start, end, limit)

Arguments

SYMBOLS

Character vector containing ticker symbols for cryptocurrencies, or ALL for all possible tickers. Must be prepended with a t or f to specify trading or funding cryptocurrencies, respectively.

start

Millisecond start time

end

Millisecond end time

limit

Number of records (Max 250)

Details

tibble descriptions:

Value

A tibble. See details for column names.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
    # Get Bitcoin and Litecoin info
    tickers(SYMBOLS = c("tBTCUSD", "tLTCUSD"))
    # Returns $trading tibble with 2 rows
    # and $funding tibble with 0 rows

    # Get USD info
    tickers(SYMBOLS = "USD")
    # Return $trading tibble with 0 rows
    # and $funding tibble with 1 row

## End(Not run)

program--/cryptocurr documentation built on Jan. 26, 2021, 1:36 a.m.