Skip to content

Commit

Permalink
Merge pull request #57 from Polymarket/feat/open-orders-expiration
Browse files Browse the repository at this point in the history
feat/ adding expiration to open orders endpoint
  • Loading branch information
poly-rodr authored Apr 4, 2023
2 parents 580798e + 465d651 commit b8d9843
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions examples/get_order.py
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="py_clob_client",
version="0.4.0",
version="0.5.0",
author="Polymarket Engineering",
author_email="[email protected]",
maintainer="Polymarket Engineering",
Expand Down

0 comments on commit b8d9843

Please sign in to comment.