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
Metadata
Release files for trade-panorama 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trade_panorama-0.1.0.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trade_panorama-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / trade_panorama-0.1.0.tar.gz
| Download URL | trade_panorama-0.1.0.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cca391f6418cbd0f9339eba1e21992a25a263c4d59682f9666d7d17b2bdb13d
|
|
BLAKE2b-256 checksum How to use checksums |
62196aa6fa602ed09771b6784d594611d53658480948145ed91368bf757a0310
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.9
|
Release files / trade_panorama-0.1.0-py3-none-any.whl
| Download URL | trade_panorama-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5d192fb1f8c09aa52770575ba75bc634746133671f9ee1ef9be48ad40bf2229
|
|
BLAKE2b-256 checksum How to use checksums |
d084d07e362f78c06026b8af274d30beb2a4710ad2a85faa9c37810f86e5479d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.9
|