Skip to content

feat(telegram): normalize OTC symbols and add live bridge smoke - #136

Draft
LimiNode wants to merge 3 commits into
mainfrom
chore/pin-tg-client-stdio-merge
Draft

feat(telegram): normalize OTC symbols and add live bridge smoke#136
LimiNode wants to merge 3 commits into
mainfrom
chore/pin-tg-client-stdio-merge

Conversation

@LimiNode

@LimiNode LimiNode commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What changed

  • canonicalize Telegram OTC symbols to the project form BASE_OTC;
  • recognize common spellings such as EURUSD_OTC, EURUSD-OTC, EURUSDOTC, EURUSD OTC, and EUR/USD OTC;
  • preserve explicit OTC market classification for signals and outcomes;
  • recognize separated OTC outcome forms, including EURUSD OTC WIN and OTC EURUSD LOSS;
  • deduplicate semantically identical overlapping outcome matches and fail closed on conflicting overlaps;
  • keep all valid outcome spans as signal-blocking spans, so ambiguous WIN/LOSS markers cannot become executable signals;
  • round-trip parser recognition settings through bridge config JSON;
  • add deterministic live bridge smoke support backed by tg-client-stdio;
  • add parser, bridge-config, and live-batch regression coverage.

Validation

  • telegram_signal_parser_test: 18/18 passed;
  • telegram_signal_bridge_test: 3/3 passed;
  • telegram_signal_bridge_smoke: passed;
  • live authorized bridge smoke reached SERVER_STARTED through the configured proxy and session;
  • live batch regression confirmed 8 signals and 2 outcomes remain separate;
  • ambiguous outcome regression confirms EURUSD BUY 5m with both WIN and LOSS markers produces no signal or outcome;
  • git diff --check: passed.

The live smoke executable intentionally stops after the first executable signal; the full multiline batch is covered by the parser regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant