بنقرة واحدة
sapphire-core
Shared library — risk kernel, circuit breaker, position sizing, trade models, logging
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Shared library — risk kernel, circuit breaker, position sizing, trade models, logging
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Infrastructure-as-code — GCP Terraform, Pi deployment configs, Docker
Trading engine — signals, risk, execution, self-improvement loop
PM hub — project board, task scoring, event stream, Telegram integration
Send a test trading signal through the Sapphire pipeline
Agent dispatch — OpenClaw, NemoClaw, orchestrator, runtime policy
Aster DEX trading bot — Solana perpetuals, CEX-style API, Shield HFT strategy
| 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/ |
Foundation library imported by all Sapphire services. Provides risk management, position sizing, circuit breakers, trade models, health checks, and structured logging.
src/sapphire_core/risk_kernel.py — Risk calculations and portfolio limitssrc/sapphire_core/circuit_breaker.py — Automatic trading halt on anomaliessrc/sapphire_core/position_sizing.py — Kelly criterion and fractional sizingsrc/sapphire_core/health.py — Health check endpointssrc/sapphire_core/telegram_bot.py — Base Telegram bot clientsrc/sapphire_core/gateway.py — OpenClaw gateway clientAll modules export public functions. No CLI or HTTP endpoints — this is a library.