Buckets:

download
raw
744 Bytes
import logging
import signal
from typing import Any
logger = logging.getLogger(__name__)
def start_trading(args: dict[str, Any]) -> int:
"""
Main entry point for trading mode
"""
# Import here to avoid loading worker module when it's not used
from freqtrade.worker import Worker
def term_handler(signum, frame):
# Raise KeyboardInterrupt - so we can handle it in the same way as Ctrl-C
raise KeyboardInterrupt()
# Create and run worker
worker = None
try:
signal.signal(signal.SIGTERM, term_handler)
worker = Worker(args)
worker.run()
finally:
if worker:
logger.info("worker found ... calling exit")
worker.exit()
return 0

Xet Storage Details

Size:
744 Bytes
·
Xet hash:
75a30b027b65fc0c9a96d230729284cfce0113fe2601f45e6e0eed6e99ebc07f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.