Docs Lookup
Adapted from ECC agents/docs-lookup.md for POLYPROPHET's dependency stack.
Key Documentation Sources
Polymarket
- •CLOB API:
https://docs.polymarket.com/ - •Gamma API:
https://gamma-api.polymarket.com/(market discovery) - •CTF Exchange: Polygon contract for resolution/redemption
Dependencies
- •
@polymarket/clob-client-- npm package for CLOB order management - •
ethersv5 -- wallet management, signing, contract interaction - •
express-- HTTP server framework - •
axios-- HTTP client for API calls - •
https-proxy-agent-- proxy support for geoblocked CLOB access - •
dotenv-- environment variable loading
Node.js
- •
crypto-- for signing operations - •
fs/path-- file system operations - •
child_process-- for verification scripts
Lookup Workflow
- •Identify the library/API from the user's question
- •Search official docs (web search or cached knowledge)
- •Return accurate, current code examples
- •Note any version-specific behavior (e.g., ethers v5 vs v6)
POLYPROPHET-Specific References
- •Strategy artifact format: see
debug/strategy_set_top8_current.jsonfor structure - •Runtime config: see
lib/config.jsfor all env var handling - •CLOB client usage: see
lib/clob-client.jsfor proxy-aware wrapper