forked from Polymarket/py-clob-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_prices.py
33 lines (28 loc) · 975 Bytes
/
get_prices.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import BookParams
def main():
host = "http://localhost:8080"
client = ClobClient(host)
resp = client.get_prices(
params=[
BookParams(
token_id="71321045679252212594626385532706912750332728571942532289631379312455583992563",
side="BUY",
),
BookParams(
token_id="71321045679252212594626385532706912750332728571942532289631379312455583992563",
side="SELL",
),
BookParams(
token_id="52114319501245915516055106046884209969926127482827954674443846427813813222426",
side="BUY",
),
BookParams(
token_id="52114319501245915516055106046884209969926127482827954674443846427813813222426",
side="SELL",
),
]
)
print(resp)
print("Done!")
main()