powered by
Makes a request to the server, and returns an data.table object with information about orderbook for selected instrument if successful.
getOrderBook( token = "", live = FALSE, figi = "", depth = NULL, verbose = FALSE )
token from Tinkoff account
live trading - TRUE or sandbox (paper) trading - FALSE (default)
internal tinkoff code for instrument
depth of orderbook, number of bids and asks (1 <= depth <= 20)
display status of retrieval (default FALSE)
returns an data.table object containing the information about current OrderBook.
As described by the official Tinkoff Investments documentation
getHistoricalData
# NOT RUN { live = FALSE token = 'your_sandbox_token_from_tcs_account' getOrderBook(token,live,figi = 'BBG005HLTYH9',depth = 5) # }
Run the code above in your browser using DataLab