@0xmonaco/core 1.0.62 → 1.0.64

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.
@@ -302,16 +302,18 @@ export declare class TradingAPIImpl extends BaseAPI implements TradingAPI {
302
302
  * working set.
303
303
  * When neither `page` nor `pageToken` is passed, the SDK drives cursor (pageToken)
304
304
  * pagination: it starts a cursor walk from the newest (or oldest, for
305
- * `orderBy: "ASC"`) row and the response's `nextPageToken` resumes it. Cursor
306
- * responses carry no exact totals (`total`/`page`/`totalPages` are 0).
305
+ * `orderBy: "ASC"`) row and the response's `nextPageToken` resumes it. Both modes
306
+ * populate `total`/`totalPages` (bounded by the server count ceiling — see
307
+ * `totalCapped`); only `page` is 0 in cursor mode.
307
308
  *
308
309
  * @param params - Query parameters for filtering orders
309
310
  * @param params.status - Filter by order status (e.g., "SUBMITTED", "FILLED"), or by
310
311
  * any of several statuses at once by passing an array (e.g., ["SUBMITTED", "PARTIALLY_FILLED"]) (optional)
311
312
  * @param params.tradingPairId - Filter by trading pair UUID (optional)
312
313
  * @param params.page - Deprecated: page number for legacy offset pagination (must be > 0).
313
- * Passing it selects legacy page-number mode, which only sees recent (hot) history and
314
- * populates `total`/`totalPages`. Use cursor pagination (`pageToken`) instead.
314
+ * Passing it selects legacy page-number mode, which only sees recent (hot) history. Both
315
+ * modes populate `total`/`totalPages` (bounded — see `totalCapped`); use cursor
316
+ * pagination (`pageToken`) instead for full history.
315
317
  * @param params.pageSize - Number of orders per page (defaults to 10, must be > 0; max 100
316
318
  * in page-number mode, up to 1000 when pageToken is present)
317
319
  * @param params.pageToken - Pagination cursor: pass `""` to start a cursor walk from
@@ -468,16 +468,18 @@ export class TradingAPIImpl extends BaseAPI {
468
468
  * working set.
469
469
  * When neither `page` nor `pageToken` is passed, the SDK drives cursor (pageToken)
470
470
  * pagination: it starts a cursor walk from the newest (or oldest, for
471
- * `orderBy: "ASC"`) row and the response's `nextPageToken` resumes it. Cursor
472
- * responses carry no exact totals (`total`/`page`/`totalPages` are 0).
471
+ * `orderBy: "ASC"`) row and the response's `nextPageToken` resumes it. Both modes
472
+ * populate `total`/`totalPages` (bounded by the server count ceiling — see
473
+ * `totalCapped`); only `page` is 0 in cursor mode.
473
474
  *
474
475
  * @param params - Query parameters for filtering orders
475
476
  * @param params.status - Filter by order status (e.g., "SUBMITTED", "FILLED"), or by
476
477
  * any of several statuses at once by passing an array (e.g., ["SUBMITTED", "PARTIALLY_FILLED"]) (optional)
477
478
  * @param params.tradingPairId - Filter by trading pair UUID (optional)
478
479
  * @param params.page - Deprecated: page number for legacy offset pagination (must be > 0).
479
- * Passing it selects legacy page-number mode, which only sees recent (hot) history and
480
- * populates `total`/`totalPages`. Use cursor pagination (`pageToken`) instead.
480
+ * Passing it selects legacy page-number mode, which only sees recent (hot) history. Both
481
+ * modes populate `total`/`totalPages` (bounded — see `totalCapped`); use cursor
482
+ * pagination (`pageToken`) instead for full history.
481
483
  * @param params.pageSize - Number of orders per page (defaults to 10, must be > 0; max 100
482
484
  * in page-number mode, up to 1000 when pageToken is present)
483
485
  * @param params.pageToken - Pagination cursor: pass `""` to start a cursor walk from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/core",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "viem": "^2.45.2"
20
20
  },
21
21
  "dependencies": {
22
- "@0xmonaco/contracts": "1.0.62",
23
- "@0xmonaco/types": "1.0.62",
22
+ "@0xmonaco/contracts": "1.0.64",
23
+ "@0xmonaco/types": "1.0.64",
24
24
  "@noble/curves": "^1.9.1",
25
25
  "@noble/hashes": "^2.4.0",
26
26
  "http-status-codes": "^2.3.0"