Skip to content

PyMT4 SDK Documentation

ℹ️ Account ID / Session ID: When connecting via Connect / ConnectEx, MetaRPC automatically generates a terminal session GUID and returns it in terminalInstanceGuid. There is no need to call GetId or supply an id header prior to connecting. Subsequent calls (such as subscriptions or order requests) use this session ID automatically.

Complete Python SDK for MetaTrader 4 trading automation via gRPC