From b8ab7c748075ca78e5a6b45eb9d574aee8ec2826 Mon Sep 17 00:00:00 2001 From: gavindiaz Date: Wed, 8 Jul 2026 06:40:15 +0000 Subject: [PATCH] Add package __init__.py --- mt5bridge_ccxt/__init__.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mt5bridge_ccxt/__init__.py diff --git a/mt5bridge_ccxt/__init__.py b/mt5bridge_ccxt/__init__.py new file mode 100644 index 0000000..47420a8 --- /dev/null +++ b/mt5bridge_ccxt/__init__.py @@ -0,0 +1,22 @@ +"""mt5bridge-ccxt: CCXT-compatible wrapper for MT5Bridge HTTP API. + +Use MetaTrader 5 with any CCXT-aware framework (Freqtrade, Jesse, +Hummingbot, backtrader, etc.) by wrapping the MT5Bridge HTTP service +as a CCXT Exchange class. + +Quick start: + >>> import mt5bridge_ccxt + >>> exchange = mt5bridge_ccxt.mt5bridge({ + ... "apiKey": "your-mt5bridge-api-key", + ... "host": "http://localhost:8080", + ... "symbols": {"XAU/USD": "XAUUSDc"}, + ... }) + >>> ticker = exchange.fetch_ticker("XAU/USD") + >>> bars = exchange.fetch_ohlcv("XAU/USD", "1h", limit=100) + >>> order = exchange.create_order("XAU/USD", "market", "buy", 0.01) +""" + +from mt5bridge_ccxt.mt5bridge import mt5bridge + +__version__ = "0.1.0" +__all__ = ["mt5bridge"]