python-mt5
Installation
SKILL.md
Python MetaTrader 5
Quick Start
Cài đặt:
pip install MetaTrader5
Luồng cơ bản:
initialize()để kết nối terminal- Thực hiện thao tác (lấy dữ liệu, giao dịch)
shutdown()khi kết thúc
Kiểm tra lỗi: Gọi last_error() sau mỗi thao tác thất bại (trả về tuple (code, message)).