Configuration Reference
The service is configured via a YAML file (default: config.yaml in the
working directory).
Sample config.yaml
market:
slug: "will-trump-win-in-2024" # any Polymarket event slug
direction: "yes" # "yes"/"long" or "no"/"short"
watcher:
price_support:
enabled: true
threshold_pct: 5.0 # depth window as % of best bid
alert_drop_pct: 20.0 # trigger when support drops by this %
service:
log_level: "INFO" # DEBUG | INFO | WARNING | ERROR
reconnect_delay_sec: 5.0 # seconds to wait before reconnecting
actions:
log:
enabled: true # placeholder — extend with SMS / Discord / etc.
Configuration Sections
market
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Polymarket event URL slug |
|
string |
|
|
watcher.price_support
Key |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Enable the price-support watcher |
|
float |
|
Bids within this % of the best bid are counted as “support” |
|
float |
|
Fire an alert when cumulative support drops by at least this % |
service
Key |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Python logging level |
|
float |
|
Seconds to wait after a WebSocket error before reconnecting |
actions
Key |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Log alert payloads to stdout via |