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에서 보기