open-index/open-npm huggingface dataset:
npm package: @lit-protocol/trade-manager
Description: Automated rule-based trading system for Polymarket with real-time WebSocket price updates.
Latest version: 0.3.5

# 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

```bash
npm install -g @openclaw/trade-manager
trade-manager start
```

**Web Dashboard**: Open http://localhost:19000 in your browser

## Dashboard Development

The dashboard is now a React + Vite app with Tailwind/shadcn-style components.

```bash
# API/server (port 19000)
npm run dev

# Dashboard dev server with API proxy (port 19001)
npm run dashboard:dev
```

Production dashboard assets are built into `public/` via:

```bash
npm run dashboard:build
```

## Documentation

- [WebSocket Integration](./WEBSOCKET.md) - Real-time price updates
- [Testing Guide](./TESTING.md) - Local testing and development
- [Changelog](./CHANGELOG.md) - Version history

## License

MIT