Skip to main content

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)

Metadata

Release files for pymt5pure 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymt5pure 0.3.1
File Size Uploaded
pymt5pure-0.3.1.tar.gz 24.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymt5pure 0.3.1
File Interpreter ABI Platform
pymt5pure-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.3 kB

Release files / pymt5pure-0.3.1.tar.gz

Download URL pymt5pure-0.3.1.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b0ca2e08b33e86dc3a217b9078a87d963ff68ebd1d2c4289c83f3423beeb595d
BLAKE2b-256 checksum
How to use checksums
88ece601e853a20ab68c7b6b2cdc71ad345f126bd61cef9febbc5d4284f40f96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pymt5pure-0.3.1-py3-none-any.whl

Download URL pymt5pure-0.3.1-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d939b0edb20855e95a06a59f9e0efd376fbbc624740cab68a29ea5c11dd50447
BLAKE2b-256 checksum
How to use checksums
a6a9746bf67a96d73afb12209afa789ea6b756e461140fd1d50e3f19d652a40b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page