src.utils.enums

🦉 AthenaAI is an AI-powered ensemble machine-learning trading bot for PocketOption, built on BinaryOptionsToolsV2Get it on GitLab
💬 Need help? Join the Chipa Discord · ⚡ Go no-code with ChipaEditor

Source: src/utils/enums.py. Two small enum.Enum classes used throughout the bot. String values (not names) are what gets logged and persisted to the SQLite journal.

class Direction(Enum)

MemberValue
Direction.CALL"call"
Direction.PUT"put"

Produced by EnsemblePredictor.predict() (models.md) and consumed by AITradingBot._trade_loop() to choose client.buy() vs client.sell(). TradeRecord.direction and the journal’s trades.direction column store the string value ("call" / "put"), not the enum.

class Regime(Enum)

MemberValue
Regime.TRENDING_UP"trending_up"
Regime.TRENDING_DOWN"trending_down"
Regime.RANGING"ranging"
Regime.VOLATILE"volatile"

Produced by RegimeDetector.detect() (regime.md); consumed by ExpirySelector.select() (expiry.md), the skip_volatile_regime gate in src/bot.py, and AdaptiveStrategy (strategy.md) which tracks stats keyed on the string value.

Usage

from src.utils.enums import Direction, Regime

d = Direction.CALL
print(d.value)          # "call"
r = Regime("ranging")   # lookup by value

See also

💬 Unsure how this interacts with the rest of the configuration? Ask in the Chipa Discord — or prototype strategies no-code with ChipaEditor.