Description Usage Arguments Details Value Examples
Test if the stock can buy or not at business day
1 | if_can_buy(con, wind_code, buz_day, ...)
|
con |
a tiny connection |
wind_code |
vecter of future code list in wind_code format |
buz_day |
int or char, format like %Y%m%d, test for this day |
full |
logi, return only wind_code can buy or total with tibble |
delist_adj |
logi, True if delist stock canbuy |
if the amount equal to 0 or high price equal to low price, the stock regards can't buy that day.
a tibble with stock code and flag that 1 means purchasable and 0 not
1 2 3 4 | ## Not run:
if_can_buy(con, c('600000.SH','000001.SH'), 20110104)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.