@pear-protocol/core-sdk 2.15.0 → 2.16.0

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.
@@ -205,12 +205,14 @@ class Core {
205
205
  }, "get")
206
206
  };
207
207
  fills = {
208
+ /** Read one position's assigned quantities and fees at the original receipt price. */
208
209
  details: /* @__PURE__ */ __name(async (positionId, headers) => {
209
210
  return await this.client.fetch(`/fills/${positionId}`, {
210
211
  method: "GET",
211
212
  headers
212
213
  });
213
214
  }, "details"),
215
+ /** Page raw receipts with all position assignments, leaving query defaults to the server. */
214
216
  list: /* @__PURE__ */ __name(async (query, headers) => {
215
217
  return await this.client.fetch(`/fills`, {
216
218
  method: "GET",
@@ -218,6 +220,7 @@ class Core {
218
220
  query
219
221
  });
220
222
  }, "list"),
223
+ /** Read account-owned provisional receipts awaiting fee collection. */
221
224
  provisionals: /* @__PURE__ */ __name(async (headers) => {
222
225
  return await this.client.fetch(`/fills/provisionals-lite`, {
223
226
  method: "GET",
@@ -393,8 +393,8 @@ declare class Vaults {
393
393
  positions: {
394
394
  status: "CLOSED";
395
395
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
396
- netPnl: `-${string}` | `+${string}`;
397
396
  positionId: string;
397
+ netPnl: `-${string}` | `+${string}`;
398
398
  closedAt: string;
399
399
  grossPnl: `-${string}` | `+${string}`;
400
400
  openedAt: string;
@@ -408,7 +408,7 @@ declare class Vaults {
408
408
  entryVwap?: string | undefined;
409
409
  exitVwap?: string | undefined;
410
410
  }[];
411
- closedReason?: "NETTED" | "USER" | "LIQUIDATED" | undefined;
411
+ closedReason?: "USER" | "LIQUIDATED" | "NETTED" | undefined;
412
412
  }[];
413
413
  nextCursor?: string | undefined;
414
414
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pear-protocol/core-sdk",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "Pear Protocol Core SDK",
5
5
  "private": false,
6
6
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  "typecheck": "bunx --package bun@1.4.3 bun --check --threads=2"
27
27
  },
28
28
  "dependencies": {
29
- "@pear-protocol/types": "^2.22.0",
30
- "@pear-protocol/utils": "^1.5.0",
29
+ "@pear-protocol/types": "^2.24.0",
30
+ "@pear-protocol/utils": "^1.6.0",
31
31
  "qs": "^6.14.0"
32
32
  },
33
33
  "devDependencies": {