sapphire-core
Shared library — risk kernel, circuit breaker, position sizing, trade models, logging
소스 정보
- 저장소
- arigatoexpress/Sapphire
- 최근 소스 활동
- 2026년 7월 29일 15:50
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
파일 탐색기
56 개 파일SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- sapphire-core
- description
- Shared library — risk kernel, circuit breaker, position sizing, trade models, logging
- type
- library
- runtime
- python
- deploy_target
- none
- dependencies
- []
- entry_point
- src/sapphire_core/__init__.py
- test_command
- pytest tests/unit/
# Sapphire Core
## Purpose
Foundation library imported by all Sapphire services. Provides risk management, position sizing, circuit breakers, trade models, health checks, and structured logging.
## Key Files
- `src/sapphire_core/risk_kernel.py` — Risk calculations and portfolio limits
- `src/sapphire_core/circuit_breaker.py` — Automatic trading halt on anomalies
- `src/sapphire_core/position_sizing.py` — Kelly criterion and fractional sizing
- `src/sapphire_core/health.py` — Health check endpoints
- `src/sapphire_core/telegram_bot.py` — Base Telegram bot client
- `src/sapphire_core/gateway.py` — OpenClaw gateway client
## API Surface
All modules export public functions. No CLI or HTTP endpoints — this is a library.
GitHub에서 보기