py-order-utils
Python utilities used to generate and sign orders from Polymarket's Exchange
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-utilsuv
uv add py-order-utilspoetry
poetry add py-order-utilsInstalling 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
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
py-clob-client-v2Python client library for placing and managing…
permissive · top 15,000 on PyPI
py-builder-signing-sdkGenerates cryptographically signed HTTP headers…
permissive · top 15,000 on PyPI
py-clob-clientPython client library for trading on…
permissive · top 15,000 on PyPI
py-builder-relayer-clientA Python client library for submitting…
permissive · top 15,000 on PyPI
mastercard-oauth1-signerGenerates OAuth 1.0a-compliant signatures for…
permissive · top 15,000 on PyPI
polymarket-clientOfficial Python SDK for Polymarket that…
permissive · top 15,000 on PyPI
eth-accounteth-account signs Ethereum transactions and…
permissive · top 5,000 on PyPI
aws-request-signerSigns HTTP requests using AWS Signature V4,…
permissive · top 15,000 on PyPI
turnkey-api-key-stamperSigns Turnkey API requests with your API key…
permissive · top 15,000 on PyPI
signedjsonSigns and verifies JSON objects using ED25519…
unclear · top 15,000 on PyPI