Fetches active BTC 5-minute Up/Down contracts from Polymarket and retrieves the order book (top 5 levels) for each outcome.
pip install -r requirements.txtpython main.pyOnly contract names (faster, no order books):
python main.py --names-onlyPaper-trade simulation (no real order placement):
python main.py --paper-tradeReal trading (posts live limit orders, time-in-force: FOK):
python main.py --real-tradeRequired env vars for real trading:
PRIVATE_KEYPOLY_FUNDER- optional:
POLY_SIGNATURE_TYPE(default2) - optional:
POLY_CHAIN_ID(default137)
Edit config.py to change assets, keywords, order book depth, etc.