We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4704d commit 7a8a46eCopy full SHA for 7a8a46e
octobot_trading/modes/abstract_trading_mode.py
@@ -683,3 +683,7 @@ def get_trading_mode_consumers(self):
683
for consumer in self.consumers
684
if isinstance(consumer, abstract_mode_consumer.AbstractTradingModeConsumer)
685
]
686
+
687
+ def is_first_trading_mode_on_this_matrix(self) -> bool:
688
+ all_trading_modes = modes_util.get_trading_modes_of_this_type_on_this_matrix(self)
689
+ return bool(all_trading_modes and all_trading_modes[0] is self)
0 commit comments