sammchardy/python-binance ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python library for working with Binance that feels easy to use for both quick scripts and bigger trading bots.

I want one client that can handle the main Binance spot API stuff like market data, account info, orders, withdrawals, deposit addresses, and historical candles, plus support for futures, margin, testnet, and demo trading. It should also work with websockets for live price updates, order book depth, and trading actions, and it should reconnect cleanly if the connection drops.

Make it support both normal and async usage, and let me pass API keys, custom headers, proxies, and different Binance regions like US or JP. It should handle authentication, timestamps, error responses, and common helpers so I do not have to build all of that myself.

Please include a few simple examples and make sure the code is organized, tested, and easy to extend. If you need to check the current Binance docs online while wiring up endpoints, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab