create_rt_loader: Create a realtime data loader

Description Usage Arguments Value

View source: R/realtime_loop.R

Description

Create a realtime data loader

Usage

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()
)

Arguments

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

Value

a data loader function, which returns incremental data.table of new data


imlijunda/tswbench documentation built on June 12, 2021, 12:45 p.m.