PO_ASSET

🦉 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

The trading pair (symbol) the bot operates on. One bot instance trades exactly one asset.

Typestring
DefaultEURUSD
RequiredNo
Maps toBotConfig.asset
Read inmain.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:

  1. Warmup historyAITradingBot.start() calls client.get_candles(cfg.asset, cfg.timeframe, warmup_offset) to load historical candles before the main loop.
  2. Live candle stream_candle_stream() subscribes with subscribe_symbol_time_aligned(cfg.asset, timedelta(seconds=cfg.timeframe)) (or subscribe_symbol as a fallback).
  3. Trade placement_trade_loop() calls client.buy(cfg.asset, stake, expiry) or client.sell(cfg.asset, stake, expiry).
  4. Trade records — the asset name is stored in each TradeRecord and 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=EURUSD

Interactions

  • PO_TIMEFRAME sets the candle period used with this asset.
  • PO_DATASET should 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 .env values (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.