@polymarket/clob-client-v2 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -191,6 +191,7 @@ interface OrderBookSummary {
191
191
  tick_size: string;
192
192
  neg_risk: boolean;
193
193
  hash: string;
194
+ last_trade_price: string;
194
195
  }
195
196
  interface OrderSummary {
196
197
  price: string;
package/dist/index.d.ts CHANGED
@@ -191,6 +191,7 @@ interface OrderBookSummary {
191
191
  tick_size: string;
192
192
  neg_risk: boolean;
193
193
  hash: string;
194
+ last_trade_price: string;
194
195
  }
195
196
  interface OrderSummary {
196
197
  price: string;
package/dist/index.js CHANGED
@@ -1712,24 +1712,11 @@ var ClobClient = class {
1712
1712
  if (!params.builder_code || params.builder_code === bytes32Zero) {
1713
1713
  throw new Error("builderCode is required and cannot be zero");
1714
1714
  }
1715
- this.canL2Auth();
1716
- const endpoint = GET_BUILDER_TRADES;
1717
- const headerArgs = {
1718
- method: GET,
1719
- requestPath: endpoint
1720
- };
1721
- const headers = await createL2Headers(
1722
- this.signer,
1723
- this.creds,
1724
- headerArgs,
1725
- this.useServerTime ? await this.getServerTime() : void 0
1726
- );
1727
- next_cursor = next_cursor || INITIAL_CURSOR;
1728
- const _params = { ...params, next_cursor };
1715
+ const _params = { ...params, next_cursor: next_cursor || INITIAL_CURSOR };
1729
1716
  const {
1730
1717
  data,
1731
1718
  ...rest
1732
- } = await this.get(`${this.host}${endpoint}`, { headers, params: _params });
1719
+ } = await this.get(`${this.host}${GET_BUILDER_TRADES}`, { params: _params });
1733
1720
  return { trades: Array.isArray(data) ? [...data] : [], ...rest };
1734
1721
  }
1735
1722
  async getNotifications() {