This function retrieves account information from a brokerage or exchange.
getTradelog(
Symbols,
depth = 500,
src = "poloniex",
api.key = "",
adjust = FALSE,
return.class = "data.table",
index.class = "Date",
market = "shares",
board = "tqbr",
verbose = FALSE,
auto.assign = TRUE,
env = globalenv()
)
A data table or data frame with the retrieved trade logs, depending on the value of the return.class
argument.
Character vector specifying the trading pair, e.g. "BTC_ETH".
Numeric scalar, specifying the number of trades to retrieve (default = 500).
Character scalar, specifying the exchange to retrieve trade logs from. The supported exchanges are: "tinkoff", "alor", "poloniex", "kraken", "binance", "bttrex", "cex", "gate", "gatecoin", "gdax", "gemini", "hitbtc", "liqui", and "lykke".
Character scalar, specifying the API key (if required by the exchange).
Logical scalar, specifying whether to adjust timestamps for time zones (default = FALSE).
Character scalar, specifying the class of the returned object. The supported classes are: "data.table", "data.frame", and "xts" (default = "data.table").
Character scalar, specifying the class of the index column. The supported classes are: "Date" and "POSIXct" (default = "Date").
A character string specifying type of market. 'shares' or 'forts'
A character string specifying type of board
Logical scalar, specifying whether to print verbose output (default = FALSE).
Logical scalar, specifying whether to automatically assign the resulting object to the global environment (default = TRUE).
environment where data is stored
Vyacheslav Arbuzov
getTradelog('BTC_USDT', src = 'poloniex')
getTradelog('SBER', src = 'moex')
getTradelog('SiH5', src = 'moex',market='forts')
Run the code above in your browser using DataLab