Skip to content

Repository files navigation

Polymarket CLOB Python order-utils

PyPI

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

Install

pip install py-order-utils

Usage

frompy_order_utils.buildersimportOrderBuilderfrompy_order_utils.signerimportSignerfrompprintimportpprintdefmain():
exchange_address="0x...."chain_id=80002signer=Signer("0x....")
builder=OrderBuilder(exchange_address, chain_id, signer)
# Create and sign the orderorder=builder.build_signed_order(
OrderData(
...
)
)
# Generate the Order and Signature json to be sent to the CLOB APIpprint(json.dumps(order.dict()))

About

Python utilities to generate and sign orders for Polymarket's CLOB

Resources

Code of conduct

Contributing

Stars

58 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages