md_future query future market prices data. Only Chinese future market has been considered currently.
md_future
md_future(symbol = NULL, source = "sina", freq = "daily", date_range = "3y", from = NULL, to = Sys.Date(), print_step = 1L)
symbols of future market data. It is available via function md_future_symbol or its website. Default is NULL.
md_future_symbol
the data source is sina finance (https://finance.sina.com.cn/futuremarket/).
the frequency of NBS indicators, including '5m','15m','30m','60m','daily'. Default is 'daily'.
date range. Available value includes '1m'-'11m', 'ytd', 'max' and '1y'-'ny'. Default is '3y'.
the start date. Default is NULL. If it is NULL, then calculate using date_range and end date.
the end date. Default is the current date.
a non-negative integer, which will print symbol name by each print_step iteration. Default is 1L.
# NOT RUN { dt1 = md_future(symbol = c('J0', 'RB0', 'M0', 'CF0', 'IH0', 'IF0', 'IC0')) # interactivly choose symbols dt2 = md_future() # } # NOT RUN { # }
Run the code above in your browser using DataLab