File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
investing_algorithm_framework/core/context Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- from investing_algorithm_framework .core .context .bot_context import BotContext
1+ from investing_algorithm_framework .core .context .context import Context
Original file line number Diff line number Diff line change 66from investing_algorithm_framework .core .states import BotState
77
88
9- class BotContext (metaclass = Singleton ):
9+ class Context (metaclass = Singleton ):
1010 """
11- The BotContext defines the current state of the running bot . It also maintains a reference to an instance of a
12- BotState subclass, which represents the current state of the BotContext .
11+ The Context defines the current state of the running algorithms . It also maintains a reference to an instance of a
12+ state subclass, which represents the current state of the context instance .
1313 """
1414
15- # A reference to the current state of the Bot Context .
15+ # A reference to the current state of the context .
1616 _state : BotState = None
1717
1818 # Settings reference
@@ -36,7 +36,7 @@ def _check_state(self, raise_exception: bool = False) -> bool:
3636
3737 if raise_exception :
3838 raise OperationalException (
39- "Bot context doesn't have a state. Make sure that you set the state of bot either "
39+ "Context doesn't have a state. Make sure that you set the state either "
4040 "by initializing it or making sure that you transition to a new valid state."
4141 )
4242 else :
You can’t perform that action at this time.
0 commit comments