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
py_order_utils-0.3.2.tar.gz
(10.4 kB
view details)
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-0.3.2.tar.gz.
File metadata
- Download URL: py_order_utils-0.3.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c0ecb939f4ce0313cd8a4ca32f2ba9a72449a6fc9ee17b9ce1937f594662988
|
|
| MD5 |
fec466886ab55e214aeffae94a295d83
|
|
| BLAKE2b-256 |
5bb89125d3960748f4f2d41f0e10ae42c29e60f6d3a37b8a758df7375346bf01
|
File details
Details for the file py_order_utils-0.3.2-py3-none-any.whl.
File metadata
- Download URL: py_order_utils-0.3.2-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ab780e61ed532ddda852a6a12d470be7bbdaae01213ced3ebc6c887cedb1d3e
|
|
| MD5 |
ccdaae5a2c7995e91818ca735e4e7115
|
|
| BLAKE2b-256 |
2968b0a971b064b3236fce7307bd5c180409cccd9b207ec459274bdb4e401ec0
|