Files
microdao-daarion/.gitignore
Apple 09dee24342 feat: MD pipeline — market-data-service hardening + SenpAI NATS consumer
Producer (market-data-service):
- Backpressure: smart drop policy (heartbeats→quotes→trades preserved)
- Heartbeat monitor: synthetic HeartbeatEvent on provider silence
- Graceful shutdown: WS→bus→storage→DB engine cleanup sequence
- Bybit V5 public WS provider (backup for Binance, no API key needed)
- FailoverManager: health-based provider switching with recovery
- NATS output adapter: md.events.{type}.{symbol} for SenpAI
- /bus-stats endpoint for backpressure monitoring
- Dockerfile + docker-compose.node1.yml integration
- 36 tests (parsing + bus + failover), requirements.lock

Consumer (senpai-md-consumer):
- NATSConsumer: subscribe md.events.>, queue group senpai-md, backpressure
- State store: LatestState + RollingWindow (deque, 60s)
- Feature engine: 11 features (mid, spread, VWAP, return, vol, latency)
- Rule-based signals: long/short on return+volume+spread conditions
- Publisher: rate-limited features + signals + alerts to NATS
- HTTP API: /health, /metrics, /state/latest, /features/latest, /stats
- 10 Prometheus metrics
- Dockerfile + docker-compose.senpai.yml
- 41 tests (parsing + state + features + rate-limit), requirements.lock

CI: ruff + pytest + smoke import for both services
Tests: 77 total passed, lint clean
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 11:46:15 -08:00

78 lines
676 B
Plaintext

# Environment
.env
.env.*
!.env.example
# Docker volumes data
data/
qdrant-data*/
neo4j-data*/
# Logs
logs/*.log
*.log
# Secrets
.jwt_secret
*.pem
*.key
# Backups
*.backup.*
*.tgz
# Python
__pycache__/
*.pyc
*.pyo
# Node
node_modules/
# Virtual environments
venv/
.venv/
ENV/
env/
# IDE
.vscode/
.idea/
*.swp
*.swo
.DS_Store
# Temporary files
tmp/
temp_upload/
*.tmp
*.temp
.cache/
# NATS data
nats-data/
# Large model files
*.gguf
*.bin
*.safetensors
*.pt
*.pth
*.onnx
# OS specific
Thumbs.db
# Cursor credentials (local only)
.cursor/noda1-credentials.local.mdc
._*
**/._*
logs/
# Market data service artifacts
*.db
*.db-journal
*.db-shm
*.db-wal
events.jsonl