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 = 80001
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.1.3.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for py_order_utils-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8b05bb9dcaade4e7aa86f62588e7d24a016e2f2022262c2bd872c4d65ba96ac |
|
MD5 | d86c48aef772c438496b578e2c601033 |
|
BLAKE2b-256 | 9125104cade9aa0cf8527bcbbf103616a56c9101d8690812094b731fe5856662 |