@pear-protocol/core-sdk 0.0.15 → 0.0.16
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 +63 -63
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare class Core {
|
|
|
10
10
|
accounts: {
|
|
11
11
|
id: string;
|
|
12
12
|
alias: string;
|
|
13
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
13
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
14
14
|
exchangeIdentifier: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
@@ -25,7 +25,7 @@ declare class Core {
|
|
|
25
25
|
account: {
|
|
26
26
|
id: string;
|
|
27
27
|
alias: string;
|
|
28
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
28
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
29
29
|
exchangeIdentifier: string;
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
@@ -40,7 +40,7 @@ declare class Core {
|
|
|
40
40
|
account: {
|
|
41
41
|
id: string;
|
|
42
42
|
alias: string;
|
|
43
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
43
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
44
44
|
exchangeIdentifier: string;
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
@@ -91,7 +91,7 @@ declare class Core {
|
|
|
91
91
|
nextCursor: string | undefined;
|
|
92
92
|
executions: ({
|
|
93
93
|
id: string;
|
|
94
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
94
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
95
95
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
96
96
|
createdAt: string;
|
|
97
97
|
updatedAt: string;
|
|
@@ -113,7 +113,7 @@ declare class Core {
|
|
|
113
113
|
error?: string | undefined;
|
|
114
114
|
orders?: {
|
|
115
115
|
id: string;
|
|
116
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
116
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
117
117
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
118
118
|
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
@@ -130,7 +130,7 @@ declare class Core {
|
|
|
130
130
|
}[] | undefined;
|
|
131
131
|
} | {
|
|
132
132
|
id: string;
|
|
133
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
133
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
134
134
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
135
135
|
createdAt: string;
|
|
136
136
|
updatedAt: string;
|
|
@@ -156,7 +156,7 @@ declare class Core {
|
|
|
156
156
|
error?: string | undefined;
|
|
157
157
|
orders?: {
|
|
158
158
|
id: string;
|
|
159
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
159
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
160
160
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
161
161
|
createdAt: string;
|
|
162
162
|
updatedAt: string;
|
|
@@ -173,7 +173,7 @@ declare class Core {
|
|
|
173
173
|
}[] | undefined;
|
|
174
174
|
} | {
|
|
175
175
|
id: string;
|
|
176
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
176
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
177
177
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
178
178
|
createdAt: string;
|
|
179
179
|
updatedAt: string;
|
|
@@ -186,7 +186,7 @@ declare class Core {
|
|
|
186
186
|
error?: string | undefined;
|
|
187
187
|
orders?: {
|
|
188
188
|
id: string;
|
|
189
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
189
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
190
190
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
191
191
|
createdAt: string;
|
|
192
192
|
updatedAt: string;
|
|
@@ -211,7 +211,7 @@ declare class Core {
|
|
|
211
211
|
tradeAccountId: string;
|
|
212
212
|
symbol: string;
|
|
213
213
|
positionId: string;
|
|
214
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
214
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
215
215
|
side: "BUY" | "SELL";
|
|
216
216
|
reduceOnly: boolean;
|
|
217
217
|
quantity: string;
|
|
@@ -230,7 +230,7 @@ declare class Core {
|
|
|
230
230
|
tradeAccountId: string;
|
|
231
231
|
symbol: string;
|
|
232
232
|
positionId: string;
|
|
233
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
233
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
234
234
|
side: "BUY" | "SELL";
|
|
235
235
|
reduceOnly: boolean;
|
|
236
236
|
quantity: string;
|
|
@@ -256,7 +256,7 @@ declare class Core {
|
|
|
256
256
|
id: string;
|
|
257
257
|
base: string;
|
|
258
258
|
quote: string;
|
|
259
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
259
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
260
260
|
type: "spot" | "perp" | "hip3";
|
|
261
261
|
leverage: number;
|
|
262
262
|
precision: {
|
|
@@ -283,7 +283,7 @@ declare class Core {
|
|
|
283
283
|
positions: {
|
|
284
284
|
id: string;
|
|
285
285
|
tradeAccountId: string;
|
|
286
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
286
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
287
287
|
status: "OPEN" | "CLOSED";
|
|
288
288
|
exposure: Record<string, string>;
|
|
289
289
|
initialExposureUSD: Record<string, string>;
|
|
@@ -306,7 +306,7 @@ declare class Core {
|
|
|
306
306
|
nextCursor: string | undefined;
|
|
307
307
|
schedules: ({
|
|
308
308
|
id: string;
|
|
309
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
309
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
310
310
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
311
311
|
positionKey: string;
|
|
312
312
|
executionType: "MARKET";
|
|
@@ -333,7 +333,7 @@ declare class Core {
|
|
|
333
333
|
tradeAccountId: string;
|
|
334
334
|
symbol: string;
|
|
335
335
|
positionId: string;
|
|
336
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
336
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
337
337
|
side: "BUY" | "SELL";
|
|
338
338
|
reduceOnly: boolean;
|
|
339
339
|
quantity: string;
|
|
@@ -345,7 +345,7 @@ declare class Core {
|
|
|
345
345
|
}[] | undefined;
|
|
346
346
|
} | {
|
|
347
347
|
id: string;
|
|
348
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
348
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
349
349
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
350
350
|
positionKey: string;
|
|
351
351
|
executionType: "MARKET";
|
|
@@ -370,7 +370,7 @@ declare class Core {
|
|
|
370
370
|
tradeAccountId: string;
|
|
371
371
|
symbol: string;
|
|
372
372
|
positionId: string;
|
|
373
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
373
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
374
374
|
side: "BUY" | "SELL";
|
|
375
375
|
reduceOnly: boolean;
|
|
376
376
|
quantity: string;
|
|
@@ -385,7 +385,7 @@ declare class Core {
|
|
|
385
385
|
create: (body: HttpTypes.CreateSchedule, headers?: ClientHeaders) => Promise<{
|
|
386
386
|
schedule: {
|
|
387
387
|
id: string;
|
|
388
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
388
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
389
389
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
390
390
|
positionKey: string;
|
|
391
391
|
executionType: "MARKET";
|
|
@@ -412,7 +412,7 @@ declare class Core {
|
|
|
412
412
|
tradeAccountId: string;
|
|
413
413
|
symbol: string;
|
|
414
414
|
positionId: string;
|
|
415
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
415
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
416
416
|
side: "BUY" | "SELL";
|
|
417
417
|
reduceOnly: boolean;
|
|
418
418
|
quantity: string;
|
|
@@ -424,7 +424,7 @@ declare class Core {
|
|
|
424
424
|
}[] | undefined;
|
|
425
425
|
} | {
|
|
426
426
|
id: string;
|
|
427
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
427
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
428
428
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
429
429
|
positionKey: string;
|
|
430
430
|
executionType: "MARKET";
|
|
@@ -449,7 +449,7 @@ declare class Core {
|
|
|
449
449
|
tradeAccountId: string;
|
|
450
450
|
symbol: string;
|
|
451
451
|
positionId: string;
|
|
452
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
452
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
453
453
|
side: "BUY" | "SELL";
|
|
454
454
|
reduceOnly: boolean;
|
|
455
455
|
quantity: string;
|
|
@@ -472,7 +472,7 @@ declare class Core {
|
|
|
472
472
|
open: (body: HttpTypes.CreateTradeOpen, headers?: ClientHeaders) => Promise<{
|
|
473
473
|
execution: {
|
|
474
474
|
id: string;
|
|
475
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
475
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
476
476
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
477
477
|
createdAt: string;
|
|
478
478
|
updatedAt: string;
|
|
@@ -494,7 +494,7 @@ declare class Core {
|
|
|
494
494
|
error?: string | undefined;
|
|
495
495
|
orders?: {
|
|
496
496
|
id: string;
|
|
497
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
497
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
498
498
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
499
499
|
createdAt: string;
|
|
500
500
|
updatedAt: string;
|
|
@@ -511,7 +511,7 @@ declare class Core {
|
|
|
511
511
|
}[] | undefined;
|
|
512
512
|
} | {
|
|
513
513
|
id: string;
|
|
514
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
514
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
515
515
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
516
516
|
createdAt: string;
|
|
517
517
|
updatedAt: string;
|
|
@@ -537,7 +537,7 @@ declare class Core {
|
|
|
537
537
|
error?: string | undefined;
|
|
538
538
|
orders?: {
|
|
539
539
|
id: string;
|
|
540
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
540
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
541
541
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
542
542
|
createdAt: string;
|
|
543
543
|
updatedAt: string;
|
|
@@ -554,7 +554,7 @@ declare class Core {
|
|
|
554
554
|
}[] | undefined;
|
|
555
555
|
} | {
|
|
556
556
|
id: string;
|
|
557
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
557
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
558
558
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
559
559
|
createdAt: string;
|
|
560
560
|
updatedAt: string;
|
|
@@ -567,7 +567,7 @@ declare class Core {
|
|
|
567
567
|
error?: string | undefined;
|
|
568
568
|
orders?: {
|
|
569
569
|
id: string;
|
|
570
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
570
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
571
571
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
572
572
|
createdAt: string;
|
|
573
573
|
updatedAt: string;
|
|
@@ -587,7 +587,7 @@ declare class Core {
|
|
|
587
587
|
adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
|
|
588
588
|
execution: {
|
|
589
589
|
id: string;
|
|
590
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
590
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
591
591
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
592
592
|
createdAt: string;
|
|
593
593
|
updatedAt: string;
|
|
@@ -609,7 +609,7 @@ declare class Core {
|
|
|
609
609
|
error?: string | undefined;
|
|
610
610
|
orders?: {
|
|
611
611
|
id: string;
|
|
612
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
612
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
613
613
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
614
614
|
createdAt: string;
|
|
615
615
|
updatedAt: string;
|
|
@@ -626,7 +626,7 @@ declare class Core {
|
|
|
626
626
|
}[] | undefined;
|
|
627
627
|
} | {
|
|
628
628
|
id: string;
|
|
629
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
629
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
630
630
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
631
631
|
createdAt: string;
|
|
632
632
|
updatedAt: string;
|
|
@@ -652,7 +652,7 @@ declare class Core {
|
|
|
652
652
|
error?: string | undefined;
|
|
653
653
|
orders?: {
|
|
654
654
|
id: string;
|
|
655
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
655
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
656
656
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
657
657
|
createdAt: string;
|
|
658
658
|
updatedAt: string;
|
|
@@ -669,7 +669,7 @@ declare class Core {
|
|
|
669
669
|
}[] | undefined;
|
|
670
670
|
} | {
|
|
671
671
|
id: string;
|
|
672
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
672
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
673
673
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
674
674
|
createdAt: string;
|
|
675
675
|
updatedAt: string;
|
|
@@ -682,7 +682,7 @@ declare class Core {
|
|
|
682
682
|
error?: string | undefined;
|
|
683
683
|
orders?: {
|
|
684
684
|
id: string;
|
|
685
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
685
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
686
686
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
687
687
|
createdAt: string;
|
|
688
688
|
updatedAt: string;
|
|
@@ -702,7 +702,7 @@ declare class Core {
|
|
|
702
702
|
close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
|
|
703
703
|
execution: {
|
|
704
704
|
id: string;
|
|
705
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
705
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
706
706
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
707
707
|
createdAt: string;
|
|
708
708
|
updatedAt: string;
|
|
@@ -724,7 +724,7 @@ declare class Core {
|
|
|
724
724
|
error?: string | undefined;
|
|
725
725
|
orders?: {
|
|
726
726
|
id: string;
|
|
727
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
727
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
728
728
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
729
729
|
createdAt: string;
|
|
730
730
|
updatedAt: string;
|
|
@@ -741,7 +741,7 @@ declare class Core {
|
|
|
741
741
|
}[] | undefined;
|
|
742
742
|
} | {
|
|
743
743
|
id: string;
|
|
744
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
744
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
745
745
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
746
746
|
createdAt: string;
|
|
747
747
|
updatedAt: string;
|
|
@@ -767,7 +767,7 @@ declare class Core {
|
|
|
767
767
|
error?: string | undefined;
|
|
768
768
|
orders?: {
|
|
769
769
|
id: string;
|
|
770
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
770
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
771
771
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
772
772
|
createdAt: string;
|
|
773
773
|
updatedAt: string;
|
|
@@ -784,7 +784,7 @@ declare class Core {
|
|
|
784
784
|
}[] | undefined;
|
|
785
785
|
} | {
|
|
786
786
|
id: string;
|
|
787
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
787
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
788
788
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
789
789
|
createdAt: string;
|
|
790
790
|
updatedAt: string;
|
|
@@ -797,7 +797,7 @@ declare class Core {
|
|
|
797
797
|
error?: string | undefined;
|
|
798
798
|
orders?: {
|
|
799
799
|
id: string;
|
|
800
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
800
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
801
801
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
802
802
|
createdAt: string;
|
|
803
803
|
updatedAt: string;
|
|
@@ -817,7 +817,7 @@ declare class Core {
|
|
|
817
817
|
closeAll: (body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders) => Promise<{
|
|
818
818
|
executions: ({
|
|
819
819
|
id: string;
|
|
820
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
820
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
821
821
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
822
822
|
createdAt: string;
|
|
823
823
|
updatedAt: string;
|
|
@@ -839,7 +839,7 @@ declare class Core {
|
|
|
839
839
|
error?: string | undefined;
|
|
840
840
|
orders?: {
|
|
841
841
|
id: string;
|
|
842
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
842
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
843
843
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
844
844
|
createdAt: string;
|
|
845
845
|
updatedAt: string;
|
|
@@ -856,7 +856,7 @@ declare class Core {
|
|
|
856
856
|
}[] | undefined;
|
|
857
857
|
} | {
|
|
858
858
|
id: string;
|
|
859
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
859
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
860
860
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
861
861
|
createdAt: string;
|
|
862
862
|
updatedAt: string;
|
|
@@ -882,7 +882,7 @@ declare class Core {
|
|
|
882
882
|
error?: string | undefined;
|
|
883
883
|
orders?: {
|
|
884
884
|
id: string;
|
|
885
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
885
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
886
886
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
887
887
|
createdAt: string;
|
|
888
888
|
updatedAt: string;
|
|
@@ -899,7 +899,7 @@ declare class Core {
|
|
|
899
899
|
}[] | undefined;
|
|
900
900
|
} | {
|
|
901
901
|
id: string;
|
|
902
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
902
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
903
903
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
904
904
|
createdAt: string;
|
|
905
905
|
updatedAt: string;
|
|
@@ -912,7 +912,7 @@ declare class Core {
|
|
|
912
912
|
error?: string | undefined;
|
|
913
913
|
orders?: {
|
|
914
914
|
id: string;
|
|
915
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
915
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
916
916
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
917
917
|
createdAt: string;
|
|
918
918
|
updatedAt: string;
|
|
@@ -938,7 +938,7 @@ declare class Core {
|
|
|
938
938
|
triggers: ({
|
|
939
939
|
id: string;
|
|
940
940
|
tradeAccountId: string;
|
|
941
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
941
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
942
942
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
943
943
|
createdAt: string;
|
|
944
944
|
updatedAt: string;
|
|
@@ -1007,7 +1007,7 @@ declare class Core {
|
|
|
1007
1007
|
tradeAccountId: string;
|
|
1008
1008
|
symbol: string;
|
|
1009
1009
|
positionId: string;
|
|
1010
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1010
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1011
1011
|
side: "BUY" | "SELL";
|
|
1012
1012
|
reduceOnly: boolean;
|
|
1013
1013
|
quantity: string;
|
|
@@ -1021,7 +1021,7 @@ declare class Core {
|
|
|
1021
1021
|
} | {
|
|
1022
1022
|
id: string;
|
|
1023
1023
|
tradeAccountId: string;
|
|
1024
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1024
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1025
1025
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1026
1026
|
createdAt: string;
|
|
1027
1027
|
updatedAt: string;
|
|
@@ -1117,7 +1117,7 @@ declare class Core {
|
|
|
1117
1117
|
tradeAccountId: string;
|
|
1118
1118
|
symbol: string;
|
|
1119
1119
|
positionId: string;
|
|
1120
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1120
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1121
1121
|
side: "BUY" | "SELL";
|
|
1122
1122
|
reduceOnly: boolean;
|
|
1123
1123
|
quantity: string;
|
|
@@ -1131,7 +1131,7 @@ declare class Core {
|
|
|
1131
1131
|
} | {
|
|
1132
1132
|
id: string;
|
|
1133
1133
|
tradeAccountId: string;
|
|
1134
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1134
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1135
1135
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1136
1136
|
createdAt: string;
|
|
1137
1137
|
updatedAt: string;
|
|
@@ -1214,7 +1214,7 @@ declare class Core {
|
|
|
1214
1214
|
tradeAccountId: string;
|
|
1215
1215
|
symbol: string;
|
|
1216
1216
|
positionId: string;
|
|
1217
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1217
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1218
1218
|
side: "BUY" | "SELL";
|
|
1219
1219
|
reduceOnly: boolean;
|
|
1220
1220
|
quantity: string;
|
|
@@ -1231,7 +1231,7 @@ declare class Core {
|
|
|
1231
1231
|
trigger: {
|
|
1232
1232
|
id: string;
|
|
1233
1233
|
tradeAccountId: string;
|
|
1234
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1234
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1235
1235
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1236
1236
|
createdAt: string;
|
|
1237
1237
|
updatedAt: string;
|
|
@@ -1300,7 +1300,7 @@ declare class Core {
|
|
|
1300
1300
|
tradeAccountId: string;
|
|
1301
1301
|
symbol: string;
|
|
1302
1302
|
positionId: string;
|
|
1303
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1303
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1304
1304
|
side: "BUY" | "SELL";
|
|
1305
1305
|
reduceOnly: boolean;
|
|
1306
1306
|
quantity: string;
|
|
@@ -1314,7 +1314,7 @@ declare class Core {
|
|
|
1314
1314
|
} | {
|
|
1315
1315
|
id: string;
|
|
1316
1316
|
tradeAccountId: string;
|
|
1317
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1317
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1318
1318
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1319
1319
|
createdAt: string;
|
|
1320
1320
|
updatedAt: string;
|
|
@@ -1410,7 +1410,7 @@ declare class Core {
|
|
|
1410
1410
|
tradeAccountId: string;
|
|
1411
1411
|
symbol: string;
|
|
1412
1412
|
positionId: string;
|
|
1413
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1413
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1414
1414
|
side: "BUY" | "SELL";
|
|
1415
1415
|
reduceOnly: boolean;
|
|
1416
1416
|
quantity: string;
|
|
@@ -1424,7 +1424,7 @@ declare class Core {
|
|
|
1424
1424
|
} | {
|
|
1425
1425
|
id: string;
|
|
1426
1426
|
tradeAccountId: string;
|
|
1427
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1427
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1428
1428
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1429
1429
|
createdAt: string;
|
|
1430
1430
|
updatedAt: string;
|
|
@@ -1507,7 +1507,7 @@ declare class Core {
|
|
|
1507
1507
|
tradeAccountId: string;
|
|
1508
1508
|
symbol: string;
|
|
1509
1509
|
positionId: string;
|
|
1510
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1510
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1511
1511
|
side: "BUY" | "SELL";
|
|
1512
1512
|
reduceOnly: boolean;
|
|
1513
1513
|
quantity: string;
|
|
@@ -1524,7 +1524,7 @@ declare class Core {
|
|
|
1524
1524
|
trigger: {
|
|
1525
1525
|
id: string;
|
|
1526
1526
|
tradeAccountId: string;
|
|
1527
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1527
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1528
1528
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1529
1529
|
createdAt: string;
|
|
1530
1530
|
updatedAt: string;
|
|
@@ -1593,7 +1593,7 @@ declare class Core {
|
|
|
1593
1593
|
tradeAccountId: string;
|
|
1594
1594
|
symbol: string;
|
|
1595
1595
|
positionId: string;
|
|
1596
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1596
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1597
1597
|
side: "BUY" | "SELL";
|
|
1598
1598
|
reduceOnly: boolean;
|
|
1599
1599
|
quantity: string;
|
|
@@ -1607,7 +1607,7 @@ declare class Core {
|
|
|
1607
1607
|
} | {
|
|
1608
1608
|
id: string;
|
|
1609
1609
|
tradeAccountId: string;
|
|
1610
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1610
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1611
1611
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1612
1612
|
createdAt: string;
|
|
1613
1613
|
updatedAt: string;
|
|
@@ -1703,7 +1703,7 @@ declare class Core {
|
|
|
1703
1703
|
tradeAccountId: string;
|
|
1704
1704
|
symbol: string;
|
|
1705
1705
|
positionId: string;
|
|
1706
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1706
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1707
1707
|
side: "BUY" | "SELL";
|
|
1708
1708
|
reduceOnly: boolean;
|
|
1709
1709
|
quantity: string;
|
|
@@ -1717,7 +1717,7 @@ declare class Core {
|
|
|
1717
1717
|
} | {
|
|
1718
1718
|
id: string;
|
|
1719
1719
|
tradeAccountId: string;
|
|
1720
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1720
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1721
1721
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1722
1722
|
createdAt: string;
|
|
1723
1723
|
updatedAt: string;
|
|
@@ -1800,7 +1800,7 @@ declare class Core {
|
|
|
1800
1800
|
tradeAccountId: string;
|
|
1801
1801
|
symbol: string;
|
|
1802
1802
|
positionId: string;
|
|
1803
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1803
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1804
1804
|
side: "BUY" | "SELL";
|
|
1805
1805
|
reduceOnly: boolean;
|
|
1806
1806
|
quantity: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pear-protocol/core-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Pear Protocol Core SDK",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@pear-protocol/types": "0.0.
|
|
29
|
-
"@pear-protocol/utils": "0.0.
|
|
28
|
+
"@pear-protocol/types": "0.0.14",
|
|
29
|
+
"@pear-protocol/utils": "0.0.14",
|
|
30
30
|
"qs": "^6.14.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|