update db
This commit is contained in:
parent
c6ed6745ac
commit
5221bc5e96
@ -213,13 +213,13 @@ class StockDatabase:
|
|||||||
for stock in stocks:
|
for stock in stocks:
|
||||||
exchange_short_name = stock.get('exchangeShortName', '')
|
exchange_short_name = stock.get('exchangeShortName', '')
|
||||||
ticker_type = stock.get('type', '')
|
ticker_type = stock.get('type', '')
|
||||||
if exchange_short_name in ['XETRA','NYSE', 'NASDAQ','AMEX', 'PNK','EURONEXT'] and ticker_type in ['stock']:
|
if exchange_short_name in ['NYSE', 'NASDAQ','AMEX', 'PNK'] and ticker_type in ['stock']:
|
||||||
symbol = stock.get('symbol', '')
|
symbol = stock.get('symbol', '')
|
||||||
if exchange_short_name == 'PNK' and symbol not in ['ODYS','FSRNQ','TSSI','DRSHF','NTDOY','OTGLF','TCEHY', 'KRKNF','BYDDY','XIACY','NSRGY','TLPFY','TLPFF']:
|
#if exchange_short_name == 'PNK' and symbol not in ['RNMBF','ODYS','FSRNQ','TSSI','DRSHF','NTDOY','OTGLF','TCEHY', 'KRKNF','BYDDY','XIACY','NSRGY','TLPFY','TLPFF']:
|
||||||
pass
|
# pass
|
||||||
elif exchange_short_name == 'EURONEXT' and symbol not in ['ALEUP.PA','ALNEV.PA','ALGAU.PA','ALDRV.PA','ALHYG.PA','ALVMG.PA','TEP.PA']:
|
#elif exchange_short_name == 'EURONEXT' and symbol not in ['ALEUP.PA','ALNEV.PA','ALGAU.PA','ALDRV.PA','ALHYG.PA','ALVMG.PA','TEP.PA']:
|
||||||
pass
|
# pass
|
||||||
else:
|
#else:
|
||||||
name = stock.get('name', '')
|
name = stock.get('name', '')
|
||||||
exchange = stock.get('exchange', '')
|
exchange = stock.get('exchange', '')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user