Built with MT5 gateway API, DevCartelGateway64 accepts connection from MT5 platform and connects to a remote PyMT5 application. It accepts various data types from PyMT5. For complete protocol and documentation, visit PyMT5 GitHub.
- Download a gateway package from our releases
- Unzip the package and put the whole folder in MT5 platform's gateway directory e.g.
D:\MetaTrader 5 Platform\History\Gateway
- On MT5 Administrator, add a gateway by choosing DevCartelGateway64
- Trading server should be an IP address and port of a PyMT5 server application
- Click OK and the gateway will establish connection to your PyMT5 application
TCP socket.
Message is composed of Header+Body+<LF>
where each field in Body
is demilited using ASCII SOH (\x01
) and must be prefixed by the Header
. Each message is ended with ASCII LF (\x0A
), for example:
ver=3<SOH>type=3<SOH>tag1=value1<SOH>tag2=value2<SOH>...<SOH>tagN=valueN<LF>
In this documentation, light vertical bar character (❘
) represents the delimiter ASCII SOH.
Tag |
Comments |
---|---|
Header | ver=3❘type=1 |
Body | |
login |
|
password |
|
res |
0 - ok2 - error |
Tag |
Comments |
---|---|
Header | ver=3❘type=2 |
Body | None |
Tag |
Comments |
---|---|
Header | ver=3❘type=4 |
Body | |
symbol |
|
bank |
|
bid |
|
ask |
|
last |
|
volume |
|
datetime |
POSIX timestamp e.g. 1523278796000 |
Tag |
Comments |
---|---|
Header | ver=3❘type=6 |
Body | None |
- Report an issue here
1.1.0
- 26 April 2018
- Supports external deal DatetimeMsc
1.0.0
- 13 April 2018
- Supports login, logout, order, confirm, deal
- Supports external deal submission to MT5