getOrderbook | R Documentation |
This function retrieves order book information
getOrderbook(
Symbols,
depth = 10,
src = "poloniex",
adjust = FALSE,
verbose = FALSE,
auto.assign = TRUE,
market = "shares",
board = "tqbr",
api.key = "",
env = globalenv()
)
Symbols |
A character vector specifying the symbol to retrieve order book data for. |
depth |
An integer value specifying the number of levels of the order book to retrieve. Defaults to 10. |
src |
A character string specifying the exchange to retrieve data from. Possible values are kraken,poloniex,tinkoff,alor, binance. |
adjust |
A logical value indicating whether to adjust timestamps to match the system timezone. Defaults to FALSE. |
verbose |
A logical value indicating whether to print detailed messages during the function's execution. Defaults to FALSE. |
auto.assign |
A logical value indicating whether to automatically assign the resulting object to the current environment. Defaults to TRUE. |
market |
A character string specifying type of market |
board |
A character string specifying type of board |
api.key |
A character string specifying the API key to use when retrieving data from Alor or Tinkoff. Defaults to "". |
env |
environment where the data will be assigned |
A data.table object containing the order book data for the specified symbol.
Not for the faint of heart. All profits and losses related are yours and yours alone. If you don't like it, write it yourself.
Vyacheslav Arbuzov
getOrderbook('USDTGBP', src = 'kraken')
getOrderbook('BTC_USDT', src = 'poloniex')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.