Skip to content

Commit

Permalink
orders scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
poly-rodr committed May 14, 2024
1 parent ee016f2 commit 1c5eaaa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions py_clob_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
drop_notifications_query_params,
add_balance_allowance_params_to_url,
add_order_scoring_params_to_url,
add_orders_scoring_params_to_url,
)

from .constants import L0, L1, L1_AUTH_UNAVAILABLE, L2, L2_AUTH_UNAVAILABLE, END_CURSOR
Expand Down Expand Up @@ -568,12 +567,14 @@ def are_orders_scoring(self, params: OrdersScoringParams):
Requires Level 2 authentication
"""
self.assert_level_2_auth()
request_args = RequestArgs(method="GET", request_path=ARE_ORDERS_SCORING)
body = params.orderIds
request_args = RequestArgs(
method="POST", request_path=ARE_ORDERS_SCORING, body=body
)
headers = create_level_2_headers(self.signer, self.creds, request_args)
url = add_orders_scoring_params_to_url(
"{}{}".format(self.host, ARE_ORDERS_SCORING), params
return post(
"{}{}".format(self.host, ARE_ORDERS_SCORING), headers=headers, data=body
)
return get(url, headers=headers)

def get_sampling_markets(self, next_cursor="MA=="):
"""
Expand Down

0 comments on commit 1c5eaaa

Please sign in to comment.