added more exchanges
All checks were successful
Deployment / deploy-docker (push) Successful in 40s

This commit is contained in:
Melchior Reimers
2026-01-27 09:59:43 +01:00
parent 9beebe091c
commit 44e7004fc9
7 changed files with 929 additions and 16 deletions

View File

@@ -5,6 +5,9 @@ import os
import requests
from src.exchanges.eix import EIXExchange
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.database.questdb_client import DatabaseClient
logging.basicConfig(
@@ -45,6 +48,13 @@ def run_task(historical=False):
eix = EIXExchange()
ls = LSExchange()
# Neue Deutsche Börse Exchanges
xetra = XetraExchange()
frankfurt = FrankfurtExchange()
quotrix = QuotrixExchange()
gettex = GettexExchange()
stuttgart = StuttgartExchange()
# 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
@@ -53,7 +63,13 @@ def run_task(historical=False):
# We will modify the loop below to handle args dynamically
exchanges_to_process = [
(eix, {'limit': None if historical else 5}), # Default limit 5 for safety if no historical
(ls, {'include_yesterday': historical})
(ls, {'include_yesterday': historical}),
# Neue Exchanges
(xetra, {'include_yesterday': historical}),
(frankfurt, {'include_yesterday': historical}),
(quotrix, {'include_yesterday': historical}),
(gettex, {'include_yesterday': historical}),
(stuttgart, {'include_yesterday': historical}),
]
db = DatabaseClient(host="questdb", user=DB_USER, password=DB_PASSWORD)