@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.cjs
CHANGED
|
@@ -1768,24 +1768,11 @@ var ClobClient = class {
|
|
|
1768
1768
|
if (!params.builder_code || params.builder_code === bytes32Zero) {
|
|
1769
1769
|
throw new Error("builderCode is required and cannot be zero");
|
|
1770
1770
|
}
|
|
1771
|
-
|
|
1772
|
-
const endpoint = GET_BUILDER_TRADES;
|
|
1773
|
-
const headerArgs = {
|
|
1774
|
-
method: GET,
|
|
1775
|
-
requestPath: endpoint
|
|
1776
|
-
};
|
|
1777
|
-
const headers = await createL2Headers(
|
|
1778
|
-
this.signer,
|
|
1779
|
-
this.creds,
|
|
1780
|
-
headerArgs,
|
|
1781
|
-
this.useServerTime ? await this.getServerTime() : void 0
|
|
1782
|
-
);
|
|
1783
|
-
next_cursor = next_cursor || INITIAL_CURSOR;
|
|
1784
|
-
const _params = { ...params, next_cursor };
|
|
1771
|
+
const _params = { ...params, next_cursor: next_cursor || INITIAL_CURSOR };
|
|
1785
1772
|
const {
|
|
1786
1773
|
data,
|
|
1787
1774
|
...rest
|
|
1788
|
-
} = await this.get(`${this.host}${
|
|
1775
|
+
} = await this.get(`${this.host}${GET_BUILDER_TRADES}`, { params: _params });
|
|
1789
1776
|
return { trades: Array.isArray(data) ? [...data] : [], ...rest };
|
|
1790
1777
|
}
|
|
1791
1778
|
async getNotifications() {
|