Metadata-Version: 2.4
Name: alpha-dna-bridge
Version: 0.1.0
Summary: MT5 → Alpha DNA live sync bridge (read-only)
Author: Alpha DNA
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial :: Investment
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.31.0
Requires-Dist: MetaTrader5>=5.0.45; platform_system == "Windows"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Alpha DNA Bridge

One-command MT5 → Alpha DNA sync bridge for prop and live traders.

## Install

```bash
pip install alpha-dna-bridge
```

## Run

```bash
alpha-dna-bridge --token adna_br_XXXXXXXX --url https://tradepilot-8.preview.emergentagent.com
```

Or set env vars and run without flags:

```bash
export ALPHA_DNA_TOKEN=adna_br_XXXXXXXX
export ALPHA_DNA_URL=https://tradepilot-8.preview.emergentagent.com
alpha-dna-bridge
```

## What it does

- Connects to your open MT5 terminal on the same machine (read-only)
- Every 60 seconds, checks for new closed deals in the last 24 hours
- Posts them to Alpha DNA with your unique bridge token
- Alpha DNA auto-dedupes by ticket and updates rule compliance / P&L in real time

## Requirements

- Python 3.9+
- MetaTrader 5 terminal running & logged in on the same machine (Windows only)
- Your bridge token from Alpha DNA → Broker Bridge → Deploy instructions

## Security

- Read-only: the bridge cannot place orders, only pull filled deals
- Token is scoped to one account. Revoke anytime from the Alpha DNA UI.

Full docs: <https://tradepilot-8.preview.emergentagent.com/docs/bridge>
