powered by
Makes a request to the server, and returns a data.table object with information about all live orders related with your account if successful.
getOrders( token = "", live = FALSE, only_live_orders = TRUE, raw_orders = FALSE, from = Sys.Date() - 5, to = Sys.Date(), time_transform = TRUE )
token from Tinkoff account
live trading - TRUE or sandbox (paper) trading - FALSE (default)
select only live order or use history? (default TRUE)
get raw orders from server or use transformation? (default FALSE)
depth of trading history (from)
depth of trading history (to)
trasform time from string to POSIXct
returns an data.table object containing the requested data with orders of current account.
As described by the official Tinkoff Investments documentation
getTrades cancelOrder
getTrades
cancelOrder
# NOT RUN { live = FALSE token = 'your_sandbox_token_from_tcs_account' getOrders(token,live) # }
Run the code above in your browser using DataLab