Description Usage Arguments Value
View source: R/realtime_loop.R
Create a realtime data loader
| 1 2 3 4 5 6 7 8 | create_rt_loader(
  db = get_rt_db(),
  tbl_name = "rtdt",
  code_col = "Code",
  time_col = "Time",
  today = idate_now(),
  api = TushareApi()
)
 | 
| db | path to database | 
| tbl_name | table name that stores realtime data | 
| code_col | column name to code | 
| time_col | column name to time | 
| today | date of today | 
| api | a tsapi object | 
a data loader function, which returns incremental data.table of new data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.