Supports MT5 and forex trading.
Signed-off-by: TIANHE <TIANHE@GMAIL.COM>
This commit is contained in:
@@ -29,7 +29,10 @@ jobs:
|
|||||||
working-directory: ./backend_api_python
|
working-directory: ./backend_api_python
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
# Install dependencies, excluding Windows-only packages (MetaTrader5)
|
||||||
|
# MetaTrader5 is Windows-only and not available on Linux, so we filter it out
|
||||||
|
grep -v "MetaTrader5" requirements.txt > /tmp/requirements_ci.txt
|
||||||
|
pip install -r /tmp/requirements_ci.txt
|
||||||
# Install dependencies to verify they are installable and enable import checks.
|
# Install dependencies to verify they are installable and enable import checks.
|
||||||
|
|
||||||
- name: Python syntax check
|
- name: Python syntax check
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# Windows-specific optional dependencies
|
||||||
|
# Install these on Windows systems that need MT5 trading support:
|
||||||
|
# pip install -r requirements-windows.txt
|
||||||
|
|
||||||
|
# MetaTrader 5 trading (Windows only, for forex trading via MT5 terminal)
|
||||||
|
MetaTrader5>=5.0.45
|
||||||
@@ -14,4 +14,6 @@ python-dotenv>=1.0.1
|
|||||||
# Interactive Brokers trading (optional, for US/HK stock trading via TWS/IB Gateway)
|
# Interactive Brokers trading (optional, for US/HK stock trading via TWS/IB Gateway)
|
||||||
ib_insync>=0.9.86
|
ib_insync>=0.9.86
|
||||||
# MetaTrader 5 trading (optional, for forex trading via MT5 terminal, Windows only)
|
# MetaTrader 5 trading (optional, for forex trading via MT5 terminal, Windows only)
|
||||||
MetaTrader5>=5.0.45
|
# Note: MetaTrader5 is Windows-only and not available on Linux/macOS
|
||||||
|
# Install separately on Windows: pip install MetaTrader5>=5.0.45
|
||||||
|
# MetaTrader5>=5.0.45
|
||||||
Reference in New Issue
Block a user