MetaTrader 5 WebAPI implementation in Python
Project description
pymt5pure
MetaTrader 5 WebAPI implementation in Python.
Installation
pip install pymt5pure
Usage
Create a client:
from pymt5pure import MT5Client, MT5Api
client = MT5Client(host="111.111.111.111", port=443)
client.connect(username="33007", password="112233")
print("Connected!")
# Basic command call
response = client('SYMBOL_NEXT', INDEX=0)
print(response.params)
print(response.json)
# Using MT5's Official objects
mt5 = MT5Api(client)
result = mt5.symbol_total()
print(result)
result = mt5.symbol_next(0)
print(
result.CurrencyBase,
result.CurrencyProfit,
result.Description
)
Features
- Basic socket connection
- Authentication
- Connection KeepAlive
- AES Encryption
- [~] MT5API interfaces (incomplete)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pymt5pure-0.3.0.tar.gz
(24.4 kB
view hashes)
Built Distribution
pymt5pure-0.3.0-py3-none-any.whl
(27.0 kB
view hashes)
Close
Hashes for pymt5pure-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 673cb5d83ec3ff7f7793776e263a36a8fb9c0894467ee81783c80a134b7f655e |
|
MD5 | e1872098355f969218924cd96642ac8e |
|
BLAKE2b-256 | 75f8210c3fd34bb3ef4898748f14c4541f18c91c701c6355100e395462a554af |