ChipaDocs /
Documentation /
AthenaAI /
Reference
API Reference
๐ฆ AthenaAI is an AI-powered ensemble machine-learning trading bot for PocketOption, built on BinaryOptionsToolsV2 โ Get it on GitLab
๐ฌ Need help? Join the Chipa Discord ยท โก Go no-code with ChipaEditor
This section documents every module in the AthenaAI codebase: full signatures, parameters, return values, side effects, and internals developers need when extending the bot. Every fact here is drawn from the source in the repository โ file paths are given on each page.
For conceptual explanations of the algorithms, see the concepts section ; for how to run the bot, see the quickstart .
Entry points
Module Page What it does
main (main.py)main.md Live-trading entry point: loads .env, builds BotConfig, runs the bot
train (train.py)see CLI reference and trainer.md Standalone training CLI
src.configconfig.md BotConfig dataclass โ every tuneable knob
src.botbot.md AITradingBot โ orchestrates the three async loops
src.core โ models and market analysis
Module Page What it does
src.core.modelsmodels.md EnsemblePredictor โ 5-model voting ensemble with online learning
src.core.feature_enginefeature-engine.md FeatureEngine โ 40 core + 17 experimental features from candles
src.core.regimeregime.md RegimeDetector โ trending/ranging/volatile classification
src.core.expiryexpiry.md ExpirySelector โ scores and learns the best trade expiry
src.trading โ execution, risk, and adaptation
Module Page What it does
src.trading.strategystrategy.md AdaptiveStrategy โ blocks losing regimes/hours, adjusts confidence
src.trading.money_managermoney-manager.md MoneyManager โ Kelly stake sizing and daily loss limit
src.trading.journaljournal.md TradeJournal โ SQLite persistence (schema documented)
src.trading.performanceperformance.md PerformanceTracker โ in-memory W/L/P&L/drawdown stats
src.trading.feature_labfeature-lab.md FeatureLab โ masks anti-predictive experimental features
src.training โ standalone trainer
Module Page What it does
src.training.trainertrainer.md Trainer / TrainerConfig โ full offline training pipeline
src.training.datasetdataset.md CSV loading and parallel sample generation
src.training.devicedevice.md CUDA / MPS / CPU device detection
src.training.torch_modeltorch-model.md TorchMLPClassifier โ picklable GPU MLP
src.utils โ shared primitives
Module Page What it does
src.utils.candlecandle.md Candle and TradeRecord dataclasses
src.utils.enumsenums.md Direction and Regime enums
src.utils.loggerlogger.md Shared log instance and format
Import graph at a glance
main.py โโโถ src.bot โโโถ src.core.* src.trading.* src.utils.*
train.py โโถ src.training โโถ src.core.models / feature_engine, src.utils.*
Both entry points produce/consume the same brain file (a pickle of EnsemblePredictor state) โ see models.md and the persistence guide .
Level Up Your AthenaAI Setup
๐ฆ Get AthenaAI on GitLab โ โ clone the source, open issues, and contribute improvements.
๐ฌ Join the Chipa Discord โ โ get real-time support, share your results, and swap strategy ideas with other AthenaAI users.
โก Try ChipaEditor โ โ build, backtest, and deploy trading strategies without writing a line of code, with our AI-powered strategy editor.