Fix: Analytics Worker berechnet jetzt alle Tabellen pro Tag
Some checks failed
Deployment / deploy-docker (push) Has been cancelled
Some checks failed
Deployment / deploy-docker (push) Has been cancelled
This commit is contained in:
25
daemon.py
25
daemon.py
@@ -9,6 +9,10 @@ from src.exchanges.ls import LSExchange
|
||||
from src.exchanges.deutsche_boerse import XetraExchange, FrankfurtExchange, QuotrixExchange
|
||||
from src.exchanges.gettex import GettexExchange
|
||||
from src.exchanges.stuttgart import StuttgartExchange
|
||||
from src.exchanges.boersenag import (
|
||||
DUSAExchange, DUSBExchange, DUSCExchange, DUSDExchange,
|
||||
HAMAExchange, HAMBExchange, HANAExchange, HANBExchange
|
||||
)
|
||||
from src.database.questdb_client import DatabaseClient
|
||||
|
||||
logging.basicConfig(
|
||||
@@ -136,6 +140,16 @@ def run_task(historical=False):
|
||||
gettex = GettexExchange()
|
||||
stuttgart = StuttgartExchange()
|
||||
|
||||
# Börsenag Exchanges (Düsseldorf, Hamburg, Hannover)
|
||||
dusa = DUSAExchange()
|
||||
dusb = DUSBExchange()
|
||||
dusc = DUSCExchange()
|
||||
dusd = DUSDExchange()
|
||||
hama = HAMAExchange()
|
||||
hamb = HAMBExchange()
|
||||
hana = HANAExchange()
|
||||
hanb = HANBExchange()
|
||||
|
||||
# Pass last_ts to fetcher to allow smart filtering
|
||||
# daemon.py runs daily, so we want to fetch everything since DB state
|
||||
# BUT we need to be careful: eix.py's fetch_latest_trades needs 'since_date' argument
|
||||
@@ -145,12 +159,21 @@ def run_task(historical=False):
|
||||
exchanges_to_process = [
|
||||
(eix, {'limit': None if historical else 5}), # Default limit 5 for safety if no historical
|
||||
(ls, {'include_yesterday': historical}),
|
||||
# Neue Exchanges
|
||||
# Deutsche Börse Exchanges
|
||||
(xetra, {'include_yesterday': historical}),
|
||||
(frankfurt, {'include_yesterday': historical}),
|
||||
(quotrix, {'include_yesterday': historical}),
|
||||
(gettex, {'include_yesterday': historical}),
|
||||
(stuttgart, {'include_yesterday': historical}),
|
||||
# Börsenag Exchanges (Düsseldorf, Hamburg, Hannover)
|
||||
(dusa, {'include_yesterday': historical}),
|
||||
(dusb, {'include_yesterday': historical}),
|
||||
(dusc, {'include_yesterday': historical}),
|
||||
(dusd, {'include_yesterday': historical}),
|
||||
(hama, {'include_yesterday': historical}),
|
||||
(hamb, {'include_yesterday': historical}),
|
||||
(hana, {'include_yesterday': historical}),
|
||||
(hanb, {'include_yesterday': historical}),
|
||||
]
|
||||
|
||||
db = DatabaseClient(host="questdb", user=DB_USER, password=DB_PASSWORD)
|
||||
|
||||
Reference in New Issue
Block a user