Skip to main content

sapphire-dashboard

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

ソース情報

リポジトリ
arigatoexpress/Sapphire
ソースの最終更新活動
2026年7月29日 15:50
検出された SKILL.md の言語
英語
スター
1
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
76 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
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.
GitHubで見る