diff --git a/examples/get_order.py b/examples/get_order.py new file mode 100644 index 0000000..332f7d9 --- /dev/null +++ b/examples/get_order.py @@ -0,0 +1,27 @@ +import os + +from py_clob_client.client import ClobClient +from py_clob_client.clob_types import ApiCreds, FilterParams +from dotenv import load_dotenv +from py_clob_client.constants import MUMBAI + +load_dotenv() + + +def main(): + host = "http://localhost:8080" + key = os.getenv("PK") + creds = ApiCreds( + api_key=os.getenv("CLOB_API_KEY"), + api_secret=os.getenv("CLOB_SECRET"), + api_passphrase=os.getenv("CLOB_PASS_PHRASE"), + ) + chain_id = MUMBAI + client = ClobClient(host, key=key, chain_id=chain_id, creds=creds) + + resp = client.get_order("0xf5667d8509bdc78ac43676fe2c980da1365c471ee92153820c89c488fc15d539") + print(resp) + print("Done!") + + +main() diff --git a/setup.py b/setup.py index 3fed833..3c1a75c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="py_clob_client", - version="0.4.0", + version="0.5.0", author="Polymarket Engineering", author_email="engineering@polymarket.com", maintainer="Polymarket Engineering",