+ +

Public API Contract

+

mt5cli is the generic MT5 data and execution infrastructure layer for downstream +Python applications. The intended dependency direction is:

+
downstream app -> mt5cli -> pdmt5 -> MetaTrader 5
+
+

Downstream packages should import from the package root (from mt5cli import +...) and treat the symbols listed below as the stable SDK contract. CLI +commands mirror the same behavior but are not importable Python APIs.

+

Stable downstream SDK API

+

These names are exported from mt5cli and covered by the contract in +mt5cli.STABLE_SDK_EXPORTS (defined in mt5cli.contract). Prefer MT5Client over the legacy Mt5CliClient +alias for new code.

+

Session lifecycle and configuration

+