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 e0a0fce commit 905b8f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import {
GET,
get,
parseDropNotificationParams,
parseOrdersScoringParams,
POST,
post,
RequestOptions,
Expand Down Expand Up @@ -678,9 +677,11 @@ export class ClobClient {
this.canL2Auth();

const endpoint = ARE_ORDERS_SCORING;
const payload = JSON.stringify(params?.orderIds);
const headerArgs = {
method: GET,
method: POST,
requestPath: endpoint,
body: payload,
};

const headers = await createL2Headers(
Expand All @@ -689,9 +690,9 @@ export class ClobClient {
headerArgs,
);

return this.get(`${this.host}${endpoint}`, {
return this.post(`${this.host}${endpoint}`, {
headers,
params: parseOrdersScoringParams(params),
data: payload,
});
}

Expand Down

0 comments on commit 905b8f3

Please sign in to comment.