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"]