tn_map_trades {bitmexr} | R Documentation |
Trade data over an extended period (testnet)
Description
The map variant of tn_trades()
uses a repeat loop to continually
request trade data between two time points.
The function will stop when the start_date
is greater than end_date
.
Usage
tn_map_trades(
symbol = "XBTUSD",
start_date = "2019-01-01 12:00:00",
end_date = "2019-01-01 12:15:00",
filter = NULL,
use_auth = FALSE,
verbose = FALSE
)
Arguments
symbol |
a character string for the instrument symbol.
Use |
start_date |
character string.
Starting date for results in the format |
end_date |
character string.
Ending date for results in the format |
filter |
an optional character string for table filtering.
Send JSON key/value pairs, such as |
use_auth |
logical. Use |
verbose |
logical. If |
Examples
## Not run:
# Get all trade data between 2019-05-03 12:00:00 and 2019-05-03 12:15:00
tn_map_trades(
start_date = "2019-05-03 12:00:00",
end_date = "2019-05-03 12:15:00",
symbol = "XBTUSD"
)
## End(Not run)
[Package bitmexr version 0.3.3 Index]