Skip to main content

sapphire-dashboard

Flask trading dashboard at sapphirealpha.xyz — PnL, positions, system status

Source facts

Repository
arigatoexpress/Sapphire
Last source activity
July 29, 2026 at 15:50
Detected SKILL.md language
English
Stars
1
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
76 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
sapphire-dashboard
description
Flask trading dashboard at sapphirealpha.xyz — PnL, positions, system status
type
service
runtime
python
deploy_target
rari1
dependencies
["sapphire-core"]
entry_point
app.py
test_command
pytest tests/
# services/dashboard Flask web dashboard at sapphirealpha.xyz. Displays live PnL, open positions, win rate, system health, and recent events from the event bus. ## Routes - `/` — Dashboard home (PnL summary, positions) - `/events` — Event stream (tag-filtered) - `/health` — Service health check - `/api/pnl` — PnL JSON (for Telegram bot queries) ## Security **CRITICAL: Auth is required.** Dashboard is currently unprotected. Use `app_with_auth.py` variant or set `ENABLE_AUTH=true` + `SESSION_SECRET`. Public access: `dashboard.sapphirealpha.xyz` via Cloudflare Tunnel → rari1:8080. ## Deploy (on-prem — already running on rari1:8080) ```bash # Restart with auth enabled: ssh rari@100.x.x.x sudo systemctl restart sapphire-dashboard ``` ## Event Integration Dashboard polls `recent_events(tags=["type:trading"], limit=100)` every 30s for live feed.
View on GitHub