@pear-protocol/core-sdk 2.15.0 → 2.17.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.
- package/dist/core/index.d.ts +941 -168
- package/dist/core/index.js +9 -0
- package/dist/vaults/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/core/index.js
CHANGED
|
@@ -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",
|
|
@@ -858,6 +861,12 @@ class Core {
|
|
|
858
861
|
* own client, but a failure means the copy service is down rather than core.
|
|
859
862
|
*/
|
|
860
863
|
copy = {
|
|
864
|
+
/**
|
|
865
|
+
* Read the copy service's consumer and outbox health.
|
|
866
|
+
*
|
|
867
|
+
* @deprecated The gateway no longer serves `/copy/health` to public callers, so this call fails with a 404.
|
|
868
|
+
* Copy health is read on the private network instead. This method will be removed in a later release.
|
|
869
|
+
*/
|
|
861
870
|
health: /* @__PURE__ */ __name(async (headers) => {
|
|
862
871
|
return await this.client.fetch(`/copy/health`, {
|
|
863
872
|
method: "GET",
|
package/dist/vaults/index.d.ts
CHANGED
|
@@ -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?: "
|
|
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.
|
|
3
|
+
"version": "2.17.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.
|
|
30
|
-
"@pear-protocol/utils": "^1.
|
|
29
|
+
"@pear-protocol/types": "^2.25.0",
|
|
30
|
+
"@pear-protocol/utils": "^1.6.1",
|
|
31
31
|
"qs": "^6.14.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|