Description Usage Arguments Value See Also Examples
This method brings Market Data in Real Time.
1 2 3 4 5 6 7 8 9 | trading_md(
connection,
symbol,
entries = c("BI", "OF", "LA", "OP", "CL", "SE", "OI", "HI", "LO", "TV", "IV", "EV",
"NV", "TC"),
depth = 1L,
market_id = "ROFX",
tidy = TRUE
)
|
connection |
S4. Mandatory. Formal rRofexConnection class object |
symbol |
String. Mandatory. Use |
entries |
Vector of Strings. When nothing is set, then all entries are the default. It contains the information to be queried:
|
depth |
Integer. Depth of the book. Default is 1L. |
market_id |
String. Market to which you are going to connect. Default is ROFX.
|
tidy |
Logical. Data arranged on a tidy format. Default is TRUE. |
If correct, it will load a tibble data frame
Other market data functions:
trading_currencies()
,
trading_mdh()
1 2 3 4 5 6 7 8 9 10 | # If you want to query many products at once,
# I recommend you to use "purrr::map" family like this:
## Not run:
purrr::map_df(
list('MERV - XMEV - GGAL - 48hs','MERV - XMEV - BYMA - 48hs'),
~trading_md(connection = conn, symbol = .x, entries = c("LA","OP", "NV"), tidy = T)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.