23 lines
715 B
Python
23 lines
715 B
Python
from WhalesWatcher import WhalesWatcher
|
|
from ChartView import ChartView
|
|
import threading
|
|
|
|
def start_whales_watcher():
|
|
whales_watcher = WhalesWatcher()
|
|
whales_watcher.run()
|
|
|
|
if __name__ == "__main__":
|
|
# Start WhalesWatcher in a separate thread
|
|
# watcher_thread = threading.Thread(target=start_whales_watcher)
|
|
# watcher_thread.daemon = True
|
|
# Start the watcher thread
|
|
# watcher_thread.start()
|
|
|
|
# Define exchanges for the chart
|
|
exchange_ids = ['binance', 'kraken', 'coinbase'] # Add more exchanges as needed
|
|
|
|
# Start the chart viewer
|
|
chart_view = ChartView(exchange_ids)
|
|
|
|
# Run the GUI (this will block until the window is closed)
|
|
chart_view.start_gui() |