getlasttrades: Retrieve the latest trades that have occured for a specific...

Description Usage Arguments Examples

Description

Retrieve the latest trades that have occured for a specific instrument.

Usage

1
2
3
getlasttrades(instrument, count = NULL, startTimestamp = NULL,
  endTimestamp = NULL, startId = NULL, endId = NULL, startSeq = NULL,
  endSeq = NULL, simplify = TRUE)

Arguments

instrument

string [optional], instrument name, example "BTC-28SEP18-3500-P" (or other items in rderibit::getinstruments()). Can as well be "all", "options", "futures", "BTC-THISWEEK", "BTC-NEXTWEEK"

count

– integer [optional], count of trades returned (limitation: max. count is 100000, default 100)

startTimestamp

timestamp of starting trade in milliseconds

endTimestamp

timestamp of ending trade in milliseconds

startId

– integer [optional], “since” tradeId, the server returns trades newer than that “since”.

endId

- integer [optional], the server returns trades with tradeId smaller than the provided number.

startSeq

relates to tradeSeq parameter

endSeq

relates to tradeSeq parameter

Examples

1
getlasttrades(instrument = "BTC-28SEP18-3500-P", startTimestamp = as.numeric(as.POSIXlt("2018-08-05 18:00:00 UTC"))*1000)

paltsev-p/rderibit documentation built on May 3, 2019, 7:08 p.m.