Polymarket/py-sdk ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python SDK for Polymarket that feels easy to use for both quick scripts and bigger apps.

I want one clean client for working with public market data, authenticated account actions, trading, builder attribution, and wallet related tasks. It should support both sync and async usage, and make it simple to fetch a market by URL, then do things like merge positions in batches and wait for the result. Please include good examples, basic tests, and a small docs setup so it’s easy to understand how to use.

Keep the public API straightforward and consistent, and make sure the package can be installed normally with pip or uv. If you need to check current Polymarket docs or API details while building it, feel free to look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab