Description Usage Arguments Value Examples
View source: R/get_price_future.R
Get future price for one day
1 | get_price_future(con, wind_code, beg_dt, end_dt, type, balance, ...)
|
con |
a tiny connection |
wind_code |
vecter of future code list in wind_code format |
beg_dt |
int or or char, format like %Y%m%d, test for this day |
end_dt |
int or or char, format like %Y%m%d, test for this day, default null |
type |
choose price type as close, vwap |
balance |
logi, if a balance panel or not |
if end_date is null a df with stock code and price else a df with stock code and price, trade_dt
1 2 3 4 5 | ## Not run:
con <- odbcConnect('tiny')
get_price_future(con, 'IF1603.CFE', 20110104, type = 'close')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.