SII-WANGZJ/Polymarket_data ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool and dataset pipeline for Polymarket that can fetch trading activity from the blockchain and market metadata from the Gamma API, then clean and organize it into analysis ready parquet files.
I want it to be able to run in two modes, one for grabbing a historical range of blocks, and one that keeps syncing new data in the background. It should save progress so I can stop and restart without losing work. Please include a simple command line interface and a few easy scripts for fetching markets, fetching on chain data, and cleaning everything into usable outputs.
The final result should give me raw trade data, processed trades linked to markets, a cleaned quant style dataset with a unified YES view, and a user level dataset that splits maker and taker activity. Make it practical for research and analysis, with clear logging, efficient storage, and easy Python imports for downstream work. If you need current API details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit