$ show sterlingcrispin/nothing-ever-happens
This is an automated trading bot for Polymarket prediction markets that buys NO outcomes in standalone yes/no markets below a price threshold. The application features a modular architecture with separate components for strategy execution, exchange interaction, risk management, state persistence, and web-based monitoring. It continuously scans for eligible markets, places orders when conditions are met, manages positions, and implements recovery mechanisms for handling failed orders. The system can operate in paper trading mode or live trading mode with appropriate configuration.
The LLM identified 3 files worth highlighting for reuse:
Implements tick-based price comparison logic to detect nearby open orders and prevent duplicate submissions. Uses tick size and tolerance parameters rather than absolute price differences, demonstrating understanding of exchange mechanics. The function is self-contained with minimal dependencies and could be easily extracted to other trading systems.
Provides comprehensive normalization of order statuses from various exchange representations to canonical forms. Handles numerous status aliases and edge cases in a self-contained module with no external dependencies. This pattern is universally useful in trading systems that need to interpret order status from multiple sources.
Implements a thread-safe pattern for sharing application state between components using versioning and copy-on-write techniques. Allows lock-free reads while maintaining thread safety during updates. The generic approach makes this pattern reusable across different applications that need to share state between threads or processes.