Description Usage Arguments Examples
Retrieve the latest trades that have occured for a specific instrument.
1 2 3 |
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 |
1 | getlasttrades(instrument = "BTC-28SEP18-3500-P", startTimestamp = as.numeric(as.POSIXlt("2018-08-05 18:00:00 UTC"))*1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.