• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

freqtrade / freqtrade / 8472099270

28 Mar 2024 06:36PM UTC coverage: 94.633% (-0.09%) from 94.719%
8472099270

push

github

xmatthias
Fix small grammar error

19960 of 21092 relevant lines covered (94.63%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.24
/freqtrade/commands/trade_commands.py
1
import logging
1✔
2
import signal
1✔
3
from typing import Any, Dict
1✔
4

5

6
logger = logging.getLogger(__name__)
1✔
7

8

9
def start_trading(args: Dict[str, Any]) -> int:
1✔
10
    """
11
    Main entry point for trading mode
12
    """
13
    # Import here to avoid loading worker module when it's not used
14
    from freqtrade.worker import Worker
1✔
15

16
    def term_handler(signum, frame):
1✔
17
        # Raise KeyboardInterrupt - so we can handle it in the same way as Ctrl-C
18
        raise KeyboardInterrupt()
×
19

20
    # Create and run worker
21
    worker = None
1✔
22
    try:
1✔
23
        signal.signal(signal.SIGTERM, term_handler)
1✔
24
        worker = Worker(args)
1✔
25
        worker.run()
1✔
26
    finally:
27
        if worker:
1✔
28
            logger.info("worker found ... calling exit")
1✔
29
            worker.exit()
1✔
30
    return 0
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc