Calls the Bitfinex API to retrieve cryptocurrency public trade records.

trades(SYMBOL = "tBTCUSD", start, end, limit)

Arguments

SYMBOL

Character vector containing ticker symbols for cryptocurrencies. 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 10000)

Value

A tibble. See details for column names.

Details

tibble descriptions:

  • SYMBOL: The symbol/ticker of the requested data

  • ID: ID of the trade

  • MTS: millisecond timestamp

  • AMOUNT: How much was bought (positive) or sold (negative).

  • PRICE: Price at which the trade was executed (trading tickers only)

  • RATE: Rate at which funding transaction occurred (funding tickers only)

  • PERIOD: Amount of time the funding transaction was for (funding tickers only)

Examples

if (FALSE) { # Get 1000 Bitcoin trades info trades(SYMBOL = "tBTCUSD", limit = 1000) # Get USD trades info trades(SYMBOL = "USD") }