23 lines
755 B
Python
23 lines
755 B
Python
"""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"]
|