Skip to content

[codex] Add MetaTrader file bridge#85

Merged
NewYaroslav merged 1 commit into
mainfrom
codex/metatrader-file-bridge
Jul 18, 2026
Merged

[codex] Add MetaTrader file bridge#85
NewYaroslav merged 1 commit into
mainfrom
codex/metatrader-file-bridge

Conversation

@NewYaroslav

@NewYaroslav NewYaroslav commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the first real MetaTrader Common Files bridge implementation on top of the NDJSON file transport foundation.

What changed

  • add MetaTraderFileBridge as the runtime bridge class exposed through bridges/metatrader_file.hpp
  • poll commands.ndjson with bounded sequence windows and persist commands.checkpoint.json
  • handle protocol.hello, account.balance.get, signal.submit, and trade.open
  • publish JSON-RPC responses plus balance.updated and trade.updated notifications to events.ndjson
  • keep state snapshots in state.json
  • add polling batch limits to MetaTraderFileBridgeConfig
  • move bridge-specific account/report/signal JSON helpers into detail/MetaTraderFileBridgeUtils.hpp
  • add metatrader_file_bridge_smoke example with --self-test and wire it into Ubuntu/Windows smoke CI
  • cover signal intake, account query, trade update events, and umbrella include exposure

Validation

  • cmake --build build-codex-pr68-mingw --target metatrader_file_bridge_test bridge_umbrella_include_test metatrader_file_config_include_test metatrader_paths_test -j2
  • build-codex-pr68-mingw\\metatrader_file_bridge_test.exe --gtest_brief=1
  • build-codex-pr68-mingw\\bridge_umbrella_include_test.exe --gtest_brief=1
  • build-codex-pr68-mingw\\metatrader_file_config_include_test.exe --gtest_brief=1
  • build-codex-pr68-mingw\\metatrader_paths_test.exe --gtest_brief=1
  • cmake -S . -B build-codex-examples-mingw -DOPTIONX_BUILD_DEPS=ON -DOPTIONX_BUILD_EXAMPLES=ON -DOPTIONX_BUILD_TESTS=OFF -DOPTIONX_LIGHTWEIGHT_BRIDGE_SMOKE_TESTS=ON
  • cmake --build build-codex-examples-mingw --target metatrader_file_bridge_smoke -j2
  • build-codex-examples-mingw\\metatrader_file_bridge_smoke.exe --self-test
  • git diff --check

@NewYaroslav
NewYaroslav force-pushed the codex/metatrader-file-bridge branch 12 times, most recently from 28f7ca2 to e95417e Compare July 18, 2026 01:33
@NewYaroslav
NewYaroslav force-pushed the codex/metatrader-file-bridge branch from e95417e to d43979b Compare July 18, 2026 01:39
@NewYaroslav
NewYaroslav marked this pull request as ready for review July 18, 2026 01:54
@NewYaroslav
NewYaroslav merged commit ad00540 into main Jul 18, 2026
2 checks passed
@NewYaroslav
NewYaroslav deleted the codex/metatrader-file-bridge branch July 18, 2026 01:54
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