trading_ws_md(
connection,
destination,
symbol,
entries = list("BI", "OF", "LA", "OP", "CL", "SE", "OI", "HI", "LO", "TV", "IV",
"EV", "NV", "TC"),
listen_to = NA,
market_id = "ROFX",
where_is_env = .GlobalEnv
)
S4. Mandatory Formal rRofexConnection class object
String. Name of the tibble where the data is going to be stored.
String. Mandatory. Use trading_instruments
to see which symbols are available.
List of Strings. It contains the information to be queried:
BI - Bid.
OF - Offer.
LA - Last Available Price.
OP - Open Price.
CL - Close Price.
SE - Settlement Price.
OI - Open Interest.
HI - Trading Session High Price
LO - Trading Session Low Price
TV - Trading Volume
IV - Index Value
EV - Trading Effective Volume
NV - Nominal Volume
TC - Trade Count
List. Column names from the tibble that you are going to listen to. This is not the same as entries names.
String. Market to which you are going to connect.
Environment. Only for advance users.
If correct, it will load a tibble.
Other websocket functions:
trading_ws_close()
,
trading_ws_orders()
# To create simultaneously many connections
if (FALSE) {
purrr::walk2(
.x = symbols,
.y = tickers,
.f = ~ trading_ws_md(connection = conn, destination = .y, symbol = .x)
)
}