# Example config for the long-running Polymarket BTC websocket recorder. # Public market data only. No API keys, private keys, wallets, or trading. # Discovery may be refreshed by running the existing public discovery script. discovery_path: /var/lib/orderbooks/discovery/polymarket_btc_markets_latest.json discovery_dir: /var/lib/orderbooks/discovery discovery_script_path: scripts/discover_polymarket_btc_markets.py discovery_execute: true discovery_refresh_interval_seconds: 600 discovery_max_pages: 3 discovery_page_limit: 100 # Runtime output. Raw websocket and REST checkpoint archives intentionally live # under raw_orderbooks so the existing uploader can offload them. raw_output_root: /var/lib/orderbooks/raw_orderbooks manifest_dir: /var/lib/orderbooks/manifests manifest_path: /var/lib/orderbooks/manifests/polymarket_ws_recorder_latest.json websocket_url: wss://ws-subscriptions-clob.polymarket.com/ws/market clob_books_url: https://clob.polymarket.com/books # 0 means all active BTC Up/Down markets. Use a positive value only for bounded # local smoke tests or emergency load reduction. market_limit: 0 market_end_safety_seconds: 420 rest_checkpoint_interval_seconds: 60 rest_batch_size: 50 top_n: 10 stale_feed_threshold_seconds: 30 request_timeout_seconds: 15 websocket_timeout_seconds: 10 reconnect_backoff_seconds: 3 max_reconnect_backoff_seconds: 60 manifest_write_interval_seconds: 300 # Continuous by default. Set via CLI or env ORDERBOOKS_WS_DURATION_SECONDS for smoke tests. duration_seconds: null