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