PO_ASSET
🦉 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
The trading pair (symbol) the bot operates on. One bot instance trades exactly one asset.
| Type | string |
| Default | EURUSD |
| Required | No |
| Maps to | BotConfig.asset |
| Read in | main.py (build_config()) |
What it does
build_config() reads PO_ASSET with default "EURUSD" and stores it in BotConfig.asset. The value is used as-is (no validation or normalization) in src/bot.py:
- Warmup history —
AITradingBot.start()callsclient.get_candles(cfg.asset, cfg.timeframe, warmup_offset)to load historical candles before the main loop. - Live candle stream —
_candle_stream()subscribes withsubscribe_symbol_time_aligned(cfg.asset, timedelta(seconds=cfg.timeframe))(orsubscribe_symbolas a fallback). - Trade placement —
_trade_loop()callsclient.buy(cfg.asset, stake, expiry)orclient.sell(cfg.asset, stake, expiry). - Trade records — the asset name is stored in each
TradeRecordand persisted to the SQLite journal.
The name must match a symbol PocketOption’s API accepts (e.g. EURUSD, or OTC variants such as EURUSD_otc). An invalid symbol is not caught at config time — it fails when fetching candles or subscribing.
One hard-coded gate is tuned for EURUSD-scale prices: _trade_loop() skips candles whose high-low range is below 0.00005 (“~0.5 pips for EURUSD”). If you trade an instrument with a very different price scale (e.g. crypto or indices), this doji filter may fire far too often or never.
Valid values
Any symbol string recognized by PocketOption. No list is validated locally.
Examples
export PO_ASSET='EURUSD_otc'$env:PO_ASSET = 'EURUSD_otc'# .env
PO_ASSET=EURUSDInteractions
PO_TIMEFRAMEsets the candle period used with this asset.PO_DATASETshould contain historical candles of the same asset and timeframe — the bot does not check this; a mismatched dataset silently trains the models on the wrong instrument.- Real environment variables override
.envvalues (see index).
See also
💬 Unsure how this interacts with the rest of the configuration? Ask in the Chipa Discord — or prototype strategies no-code with ChipaEditor.