A modular CLI bot for interacting with Polymarket's WebSocket API using @dome-api/sdk.
- DomeAPI Integration: Uses the official SDK for reliable access to Polymarket data.
- Event System: Decoupled event emitter for handling market updates.
- Action Architecture: Pluggable action system (e.g., logging, trading).
- CLI: Built with
commanderfor easy command management.
-
Install Dependencies:
bun install
-
Configuration: Create a
.envfile in the root directory:DOME_API_KEY=your_dome_api_key_here
Start the bot to listen for market events:
bun start listenOr run directly:
bun src/index.ts listensrc/core: Core logic (DomeBotClient, Events).src/cmd: CLI command definitions.src/actions: Action handlers.