@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.cjs +2 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
-
|
|
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}${
|
|
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() {
|