Skip to content

Commit

Permalink
Merge pull request #111 from Polymarket/feat/multiple-books-endpoints
Browse files Browse the repository at this point in the history
Supporting POST on multiple books endpoints
  • Loading branch information
poly-rodr authored Apr 12, 2024
2 parents d8a4a7e + 27985a3 commit 3984cab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polymarket/clob-client",
"description": "Typescript client for Polymarket's CLOB",
"version": "4.5.0",
"version": "4.5.1",
"contributors": [
{
"name": "Jonathan Amenechi",
Expand Down
8 changes: 4 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class ClobClient {
}

public async getOrderBooks(params: BookParams[]): Promise<OrderBookSummary[]> {
return this.get(`${this.host}${GET_ORDER_BOOKS}`, {
return this.post(`${this.host}${GET_ORDER_BOOKS}`, {
data: params,
});
}
Expand Down Expand Up @@ -229,7 +229,7 @@ export class ClobClient {
}

public async getMidpoints(params: BookParams[]): Promise<any> {
return this.get(`${this.host}${GET_MIDPOINTS}`, {
return this.post(`${this.host}${GET_MIDPOINTS}`, {
data: params,
});
}
Expand All @@ -241,7 +241,7 @@ export class ClobClient {
}

public async getPrices(params: BookParams[]): Promise<any> {
return this.get(`${this.host}${GET_PRICES}`, {
return this.post(`${this.host}${GET_PRICES}`, {
data: params,
});
}
Expand All @@ -253,7 +253,7 @@ export class ClobClient {
}

public async getLastTradesPrices(params: BookParams[]): Promise<any> {
return this.get(`${this.host}${GET_LAST_TRADES_PRICES}`, {
return this.post(`${this.host}${GET_LAST_TRADES_PRICES}`, {
data: params,
});
}
Expand Down

0 comments on commit 3984cab

Please sign in to comment.