powered by
Get trades for a given broker from a specified date to the current date.
getTrades( src = "", api.key = "", clientId = "", figi = "", from = Sys.Date() - 5, to = Sys.Date(), symbol_info = FALSE, time_transform = TRUE, verbose = FALSE )
A data frame containing the trade data.
Character string indicating the broker to use. Currently, only "tinkoff" and "alor" are supported.
Character string containing the API key for the broker's API.
Character string containing the client ID for the broker.
Character string containing the Financial Instrument Global Identifier for the broker.
Date specifying the start date for the trade data. Defaults to 5 days ago.
Date specifying the end date for the trade data. Defaults to the current date.
Logical indicating whether to include symbol information in the returned data. Defaults to FALSE.
Logical indicating whether to transform the timestamps to the local timezone. Defaults to TRUE.
Logical indicating whether to print verbose output. Defaults to FALSE.
Vyacheslav Arbuzov
getTrades(src = "tinkoff", api.key = "tks token", clientId = "clientID", figi = "figi",verbose=TRUE)
Run the code above in your browser using DataLab