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.1.tar.gz
(24.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pymt5pure-0.3.1-py3-none-any.whl
(27.0 kB
view details)
File details
Details for the file pymt5pure-0.3.1.tar.gz.
File metadata
- Download URL: pymt5pure-0.3.1.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0ca2e08b33e86dc3a217b9078a87d963ff68ebd1d2c4289c83f3423beeb595d
|
|
| MD5 |
c3d3dbd0540b1739e030d7115e5a6031
|
|
| BLAKE2b-256 |
88ece601e853a20ab68c7b6b2cdc71ad345f126bd61cef9febbc5d4284f40f96
|
File details
Details for the file pymt5pure-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pymt5pure-0.3.1-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d939b0edb20855e95a06a59f9e0efd376fbbc624740cab68a29ea5c11dd50447
|
|
| MD5 |
308991bdca68fcdf9333dc8365c24e2e
|
|
| BLAKE2b-256 |
a6a9746bf67a96d73afb12209afa789ea6b756e461140fd1d50e3f19d652a40b
|