@lit-protocol/trade-manager
v0.3.5
Published
Automated rule-based trading system for Polymarket with real-time WebSocket price updates.
Readme
Trade Manager
Automated rule-based trading system for Polymarket with real-time WebSocket price updates.
Features
- 🚀 Real-time price updates via WebSocket (sub-second latency)
- 📊 Web dashboard for monitoring rules and events
- 🔄 Rule types: Stop Loss, Take Profit, Trailing Stop
- 🔌 Auto-reconnection with exponential backoff
- 📝 Event logging for audit trail
- 🛡️ Circuit breaker pattern for error handling
- 💾 SQLite database with auto-migrations
Quick Start
npm install -g @openclaw/trade-manager
trade-manager startWeb Dashboard: Open http://localhost:19000 in your browser
Dashboard Development
The dashboard is now a React + Vite app with Tailwind/shadcn-style components.
# API/server (port 19000)
npm run dev
# Dashboard dev server with API proxy (port 19001)
npm run dashboard:devProduction dashboard assets are built into public/ via:
npm run dashboard:buildDocumentation
- WebSocket Integration - Real-time price updates
- Testing Guide - Local testing and development
- Changelog - Version history
License
MIT
