skillfed

py-order-utils

Python utilities used to generate and sign orders from Polymarket's Exchange

py-order-utils v0.3.2 1.2M downloads/30d#4,170 on PyPI58
Permissive license DORMANT released

What it is and what it does

py-order-utils is a Python library for constructing and signing orders on Polymarket's CLOB exchange. It wraps the order-building and EIP-712 signing logic needed to prepare orders for submission to Polymarket's API, handling the cryptographic details through dependencies on eth-account, eth-utils, and poly-eip712-structs.

The package is designed for developers integrating Polymarket trading into Python applications. It provides an OrderBuilder class to construct order objects and a Signer class to cryptographically sign them, then serializes the result to JSON for API transmission. The library requires Python >= 3.9.10 and depends on Ethereum signing primitives.

Use it for:

  • Build and sign limit orders programmatically for Polymarket prediction market trading.
  • Automate order submission workflows that require cryptographic signing before API calls.
  • Integrate Polymarket trading into a larger Python trading bot or portfolio management system.
  • Generate properly formatted order and signature JSON for direct CLOB API consumption.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates and cryptographically signs orders for Polymarket's CLOB (Central Limit Order Book) exchange, producing JSON-formatted order and signature data ready for API submission.

Yes, if you are actively building on Polymarket and need order signing. The library is permissively licensed, has low install friction, and carries no known vulnerabilities. However, dormant maintenance (last update 2024-07-29) means you should verify compatibility with the current Polymarket API and Ethereum tooling before committing to production use.

Install

py-order-utils on PyPI

pip

pip install py-order-utils

uv

uv add py-order-utils

poetry

poetry add py-order-utils

Installing py-order-utils

Before you install

Low install friction with a pure-Python wheel. Maintenance is dormant—last commit was 2024-07-29 and no releases since the first release on 2022-02-03—but the repository remains active and unarchived.

License in practice

MIT license (permissive) imposes no restrictions on use, modification, or redistribution in commercial or private projects.

Quickstart

pip install py-order-utils

from py_order_utils.builders import OrderBuilder
from py_order_utils.signer import Signer

signer = Signer("0x...")
builder = OrderBuilder("0x...", 80002, signer)
order = builder.build_signed_order(OrderData(...))
print(order.dict())

Requires Python >= 3.9.10 and a private key or account to instantiate the Signer.

Verify before relying

  • Whether the package remains compatible with current Polymarket API versions given dormant maintenance status.
  • Whether eth-account and eth-utils versions pinned by this package are compatible with modern Ethereum tooling.
  • Production readiness and support guarantees for active trading workflows.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.9.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — eth-utils, eth-account, poly-eip712-structs, pytest
Maintenance dormant — 746 days since the last release
Last repo commit
First released
Downloads 1,243,337/month — #4,170 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: py_order_utils-0.3.2-py3-none-any.whl

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

polymarket order signingclob order builderethereum order generationcrypto exchange order utilseip712 order signing
polymarketorder-signingeip712

More Cryptography packages