| md_future {pedquant} | R Documentation | 
query future market data
Description
md_future query future market data from sina finance, https://finance.sina.com.cn/futuremarket/.
Usage
md_future(symbol, type = "history", date_range = "max", from = NULL,
  to = Sys.Date(), freq = "daily", print_step = 1L, ...)
Arguments
symbol | 
 future symbols It is available via function   | 
type | 
 the data type, including history, real and info. Default is history.  | 
date_range | 
 date range. Available value includes '1m'-'11m', 'ytd', 'max' and '1y'-'ny'. Default is max.  | 
from | 
 the start date. Default is NULL. If it is NULL, then calculate using date_range and end date.  | 
to | 
 the end date. Default is the current date.  | 
freq | 
 data frequency, default is daily.  | 
print_step | 
 a non-negative integer, which will print symbol name by each print_step iteration. Default is 1L.  | 
... | 
 Additional parameters.  | 
Examples
## Not run: 
# history data
df_hist = md_future(symbol = c('IF0', 'A0', 'CU0', 'CF0', 'XAU'))
# real data
df_real = md_future(symbol = c('IF0', 'A0', 'CU0', 'CF0', 'XAU'), 
                    type = 'real')
## End(Not run)
[Package pedquant version 0.2.4 Index]