Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clob package version #73

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions poly_market_maker/clob_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import sys
import time
from py_clob_client.client import ClobClient, ApiCreds, OrderArgs, FilterParams
from py_clob_client.client import ClobClient, ApiCreds, OrderArgs, OpenOrderParams
from py_clob_client.exceptions import PolyApiException

from poly_market_maker.utils import randomize_default_price
Expand Down Expand Up @@ -83,7 +83,7 @@ def get_orders(self, condition_id: str):
self.logger.debug("Fetching open keeper orders from the API...")
start_time = time.time()
try:
resp = self.client.get_orders(FilterParams(market=condition_id))
resp = self.client.get_orders(OpenOrderParams(market=condition_id))
clob_requests_latency.labels(method="get_orders", status="ok").observe(
(time.time() - start_time)
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ parsimonious==0.8.1
pluggy==1.0.0
protobuf==3.19.4
py==1.11.0
py-clob-client>=0.13.3
py-clob-client>=0.17.0
py-order-utils>=0.0.21
pycryptodome==3.14.1
pyparsing==3.0.7
Expand Down
11 changes: 11 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Testing

## Setup
To be able to run tests, make sure you have run `install.sh` at least once.

## Starting a Test Run
You can start a test run with the following commands from the root folder of this repo
```
source .venv/bin/activate
python3 -m unittest
```