if (FALSE) {
# Return 1000 most recent trades for symbol "XBTUSD".
tn_trades(symbol = "XBTUSD")
# Use filter for very specific values: Return trade data executed at 12:15.
tn_trades(
symbol = "XBTUSD",
filter = "{'timestamp.minute':'12:15'}"
)
# Also possible to combine more than one filter.
tn_trades(
symbol = "XBTUSD",
filter = "{'timestamp.minute':'12:15', 'size':10000}"
)
}
Run the code above in your browser using DataLab