Metadata-Version: 2.4
Name: trademux
Version: 0.1.3
Summary: Unified forex trading API and Python SDK for MetaTrader 4,MT5 and OANDA.
Author-email: SkyBlue Fintech Solutions LLP <vignesh.k@skybluefin.tech>
License: Proprietary
Project-URL: Homepage, https://trademux.io
Project-URL: Docs, https://docs.trademux.io
Keywords: trademux,trading-api,sdk,mt4,mt5,metatrader,oanda,forex,crypto,mql5,mql4,skyblue,fintech
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: pandas

# TradeMux

Python SDK for TradeMux, a unified trading API for MetaTrader (MT4/MT5) and OANDA.

Docs: https://docs.trademux.io

## Install

```bash
pip install trademux
```

## Quickstart (MetaTrader)

```python
from trademux import MTClient

client = MTClient(api_key="sb_tmux_...")
print(client.get_server_status())
# {"status": "ok"}

order = client.buy_market("EURUSD", 0.01, sl=1.0900, tp=1.1100, comment="tmx demo")
print(order)

print(client.get_account_info())
print(client.get_balance())
print(client.get_equity())
```

Make sure the MT4/MT5 EA is running and connected to the same API key.

## Quickstart (OANDA)

```python
from trademux import OandaClient

client = OandaClient(
    api_key="sb_tmux_...",
    oanda_api_key="oanda_pat_...",
)

print(client.get_server_status())
# {"status": "ok"}

order = client.buy_market("EURUSD", 0.01, sl=1.0900, tp=1.1100, comment="tmx demo")
print(order)

print(client.get_account_info())
print(client.get_balance())
print(client.get_equity())
```
