-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
21 lines (15 loc) · 974 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from tsetmcExtractor import DataExtractor
import finpy_tse as fpy
if __name__=="__main__":
init_price_args = {'ignore_date':True,'adjust_price':True,'show_weekday':True,'double_date':True}
update_price_args = {'ignore_date':False,'adjust_price':True,'show_weekday':True,'double_date':True}
Get_Price_History = fpy.Get_Price_History
init_IR_args = {'ignore_date':True, 'show_weekday':True, 'double_date':True, 'alt':True}
update_IR_args = {'ignore_date':False, 'show_weekday':True, 'double_date':True, 'alt':True}
Get_IR_History = fpy.Get_RI_History
price_extractor = DataExtractor(collection_name='price', Extractor_Func=Get_Price_History, init_args=init_price_args, update_args=update_price_args)
ir_extractor = DataExtractor(collection_name='IR', Extractor_Func=Get_IR_History, init_args=init_IR_args, update_args=update_IR_args)
price_extractor.start()
ir_extractor.start()
price_extractor.join()
ir_extractor.join()