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

freqtrade / freqtrade / 9394559170

26 Apr 2024 06:36AM UTC coverage: 94.656% (-0.02%) from 94.674%
9394559170

push

github

xmatthias
Loader should be passed as kwarg for clarity

20280 of 21425 relevant lines covered (94.66%)

0.95 hits per line

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

92.86
/freqtrade/enums/exitchecktuple.py
1
from freqtrade.enums.exittype import ExitType
1✔
2

3

4
class ExitCheckTuple:
1✔
5
    """
6
    NamedTuple for Exit type + reason
7
    """
8
    exit_type: ExitType
1✔
9
    exit_reason: str = ''
1✔
10

11
    def __init__(self, exit_type: ExitType, exit_reason: str = ''):
1✔
12
        self.exit_type = exit_type
1✔
13
        self.exit_reason = exit_reason or exit_type.value
1✔
14

15
    @property
1✔
16
    def exit_flag(self):
1✔
17
        return self.exit_type != ExitType.NONE
1✔
18

19
    def __eq__(self, other):
1✔
20
        return self.exit_type == other.exit_type and self.exit_reason == other.exit_reason
1✔
21

22
    def __repr__(self):
1✔
23
        return f"ExitCheckTuple({self.exit_type}, {self.exit_reason})"
×
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