Python utilities used to generate and sign orders from Polymarket's Exchange
Project description
Polymarket CLOB Python order-utils
Python utilities used to generate and sign orders from Polymarket's Exchange
Install
pip install py-order-utils
Usage
from py_order_utils.builders import OrderBuilder
from py_order_utils.signer import Signer
from pprint import pprint
def main():
exchange_address = "0x...."
chain_id = 80002
signer = Signer("0x....")
builder = OrderBuilder(exchange_address, chain_id, signer)
# Create and sign the order
order = builder.build_signed_order(
OrderData(
...
)
)
# Generate the Order and Signature json to be sent to the CLOB API
pprint(json.dumps(order.dict()))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_order_utils_felix-0.3.2.tar.gz.
File metadata
- Download URL: py_order_utils_felix-0.3.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
319579f74ac0350148dd6f89b7999f306f6d7f567b3995eb30f63e0af6ef9a6d
|
|
| MD5 |
3bf5670f61d91bbd58adbd2d0ade6eea
|
|
| BLAKE2b-256 |
a4f49a83051fb0c0efbdb5f3f15b03bd57805e22b893c13cf8a3289347eee719
|
File details
Details for the file py_order_utils_felix-0.3.2-py3-none-any.whl.
File metadata
- Download URL: py_order_utils_felix-0.3.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4345e1c82c45dc8e19e2335e221514476c93191c7482c9b9240bdfd0a839003e
|
|
| MD5 |
d9bc90383b1a606997777625c45acdb6
|
|
| BLAKE2b-256 |
906a7582cba119f35a87f7c0e8bc60351fa60a8376eb24e02df9ccac9695ce56
|