Skip to content

Commit

Permalink
Merge pull request #34 from Polymarket/feature/add-remove-side-to-las…
Browse files Browse the repository at this point in the history
…t-trade

Side is part of the response
  • Loading branch information
poly-rodr authored May 31, 2022
2 parents ca91ce7 + d8188b2 commit 727cf09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/getLastTradePrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function main() {
const clobClient = new ClobClient(host, wallet);

console.log(`Price: `);
const resp = await clobClient.getLastTradePrice("16678291189211314787145083999015737376658799626183230671758641503291735614088", "buy");
const resp = await clobClient.getLastTradePrice("16678291189211314787145083999015737376658799626183230671758641503291735614088");
console.log(resp);
}

Expand Down
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": "1.0.27",
"version": "1.0.28",
"contributors": [
{
"name": "Jonathan Amenechi",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export class ClobClient {
return get(`${this.host}${PRICE}?market=${tokenID}&side=${side}`);
}

public async getLastTradePrice(tokenID: string, side: string): Promise<any> {
return get(`${this.host}${GET_LAST_TRADE_PRICE}?market=${tokenID}&side=${side}`);
public async getLastTradePrice(tokenID: string): Promise<any> {
return get(`${this.host}${GET_LAST_TRADE_PRICE}?market=${tokenID}`);
}

// L1 Authed
Expand Down

0 comments on commit 727cf09

Please sign in to comment.