-
Notifications
You must be signed in to change notification settings - Fork 0
/
stockpool.py
38 lines (31 loc) · 914 Bytes
/
stockpool.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from tradingview_ta import TA_Handler, Exchange, Interval
tesla = TA_Handler(
symbol = 'TSLA',
screener = 'america',
exchange = 'NASDAQ',
interval = Interval.INTERVAL_1_DAY
)
apple = TA_Handler(
symbol = 'AAPL',
screener = 'america',
exchange = 'NASDAQ',
interval = Interval.INTERVAL_1_DAY
)
amazon = TA_Handler(
symbol = 'AMZN',
screener = 'america',
exchange = 'NASDAQ',
interval = Interval.INTERVAL_1_DAY
)
microsoft = TA_Handler(
symbol = 'MSFT',
screener = 'america',
exchange = 'NASDAQ',
interval = Interval.INTERVAL_1_DAY
)
stockpool_tech = {
'TSLA':{'amount' : 0, 'handler' : tesla, 'data' : 'dataframe'},
'AMZN':{'amount' : 0, 'handler' : amazon, 'data' : 'dataframe'},
'MSFT':{'amount' : 0, 'handler' : microsoft, 'data': 'dataframe'},
'AAPL':{'amount' : 0, 'handler' : apple, 'data' : 'dataframe'}
}