A Python package that enhances the MetaTrader5 library by adding type annotations and IntelliSense support for better code readability, auto-complete, and improved developer experience.
Project description
MT5 WRAPPER
MT5 Wrapper is a Python package that wraps around the MetaTrader5 library, adding type annotations and improving the developer experience with better IntelliSense, autocomplete, and code readability.
Features
- Type Annotations: Provides clear type hints for all major mt5 functions and classes.
- Improved IntelliSense: Get accurate autocomplete suggestions in your favorite IDEs like VS Code or PyCharm.
- Enhanced Readability: Makes working with the MetaTrader library easier and more error-free.
Installation
pip install mt5-wrapper
Getting Started
Here's a quick example of using mt5_wrapper:
import mt5_wrapper as mt5
mt5.initialize()
# get mt5 account info
account_info = mt5.account_info()
# check if account info is not None to prevent type errors in code editor since account info is possibly None
if account_info:
print(account_info.name)
mt5.shutdown()
Requirements
- Python 3.13 or later
- MetaTrader5 terminal installed
- MetaTrader5 Python package (installed automatically as a dependency)
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request to improve the package.
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file mt5_wrapper-1.0.8.tar.gz.
File metadata
- Download URL: mt5_wrapper-1.0.8.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf89e514b6e1fd4a5b508b101ffa3d7f6e11264974744c995a37e87e8bb6b7f5
|
|
| MD5 |
1d24cb481485c356a580cc745e01b048
|
|
| BLAKE2b-256 |
b398431338f17551a2efaec7fa779169e6f78ffd54e3e3e6b5c84690696ddbd1
|
File details
Details for the file mt5_wrapper-1.0.8-py3-none-any.whl.
File metadata
- Download URL: mt5_wrapper-1.0.8-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aec61c9bb7fa90c137d7e18b47efac70d635d92345f0ab4ffe9c39fb7e599361
|
|
| MD5 |
cca6ca391f4dfe592cfefad58b3e62f8
|
|
| BLAKE2b-256 |
e91f11eda06edba8b7fc7d349f21e056e0d0aaa077421072bb219a644de90546
|