trade-panorama
Unified PnL dashboard across multiple trading bots.
Different bots store trades in different JSON formats. trade-panorama scans your directory tree, auto-detects known bot data files, normalizes everything into a unified model, and shows a single summary table.
Install
pip install trade-panorama
Usage
# Scan current directory
trade-panorama
# Scan a specific directory
trade-panorama -d /path/to/trading/bots
# JSON output (for piping to other tools)
trade-panorama --json
# Filter by bot name
trade-panorama -b crypto -b stock
Example Output
=== Trade Panorama ===
Bot Trades WR PnL% Open Capital
-----------------------------------------------------------------
Crypto (MEXC) 3 67% +8.50% 0
Stock Bot 5 60% +3.20% 2 $5200 (+$200)
Integrated Bot 2 50% -1.00% 1 $950 (-$50)
HF Bot 100 48% -12.30% 0
-----------------------------------------------------------------
TOTAL 110 51% -1.60% 3
Supported Bots
| Bot | Data File | Detected Fields |
|---|---|---|
| Crypto (MEXC) | pnl.json |
BUY/SELL pairs → round-trip PnL |
| Stock Bot | stock_paper_trades.json |
closed/open positions, capital |
| Integrated Bot | paper_trades.json |
closed/open positions, capital |
| HF Bot | hf_evolution_state.json |
Population variants, all trades |
Adding a New Bot Parser
- Create
src/trade_panorama/parsers/your_bot.py - Implement a function that takes a
dict(parsed JSON) and returns aBotSummary - Register it in
parsers/__init__.pywith the filename as key
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trade_panorama-0.1.0.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trade_panorama-0.1.0.tar.gz.
File metadata
- Download URL: trade_panorama-0.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cca391f6418cbd0f9339eba1e21992a25a263c4d59682f9666d7d17b2bdb13d
|
|
| MD5 |
10abbd3b9d6ae50ac1ac4997426623cd
|
|
| BLAKE2b-256 |
62196aa6fa602ed09771b6784d594611d53658480948145ed91368bf757a0310
|
File details
Details for the file trade_panorama-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trade_panorama-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5d192fb1f8c09aa52770575ba75bc634746133671f9ee1ef9be48ad40bf2229
|
|
| MD5 |
cb4641a1234598f468fb148a52801cac
|
|
| BLAKE2b-256 |
d084d07e362f78c06026b8af274d30beb2a4710ad2a85faa9c37810f86e5479d
|