@pear-protocol/core-sdk 0.0.8 → 0.0.10
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/info/index.d.ts +32 -26
- package/dist/trade/index.d.ts +40 -40
- package/package.json +3 -3
package/dist/info/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare class Info {
|
|
|
10
10
|
accounts: {
|
|
11
11
|
id: string;
|
|
12
12
|
alias: string;
|
|
13
|
-
connector: "hyperliquid" | "
|
|
13
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
14
14
|
exchangeIdentifier: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
@@ -25,7 +25,7 @@ declare class Info {
|
|
|
25
25
|
account: {
|
|
26
26
|
id: string;
|
|
27
27
|
alias: string;
|
|
28
|
-
connector: "hyperliquid" | "
|
|
28
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
29
29
|
exchangeIdentifier: string;
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedAt: string;
|
|
@@ -40,7 +40,7 @@ declare class Info {
|
|
|
40
40
|
account: {
|
|
41
41
|
id: string;
|
|
42
42
|
alias: string;
|
|
43
|
-
connector: "hyperliquid" | "
|
|
43
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
44
44
|
exchangeIdentifier: string;
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
@@ -58,10 +58,16 @@ declare class Info {
|
|
|
58
58
|
signer_key: string;
|
|
59
59
|
};
|
|
60
60
|
} | {
|
|
61
|
-
connector: "
|
|
61
|
+
connector: "binance";
|
|
62
62
|
credentials: {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
read: {
|
|
64
|
+
api_key: string;
|
|
65
|
+
api_secret: string;
|
|
66
|
+
};
|
|
67
|
+
write: {
|
|
68
|
+
api_key: string;
|
|
69
|
+
api_secret: string;
|
|
70
|
+
};
|
|
65
71
|
};
|
|
66
72
|
} | {
|
|
67
73
|
connector: "bybit";
|
|
@@ -108,7 +114,7 @@ declare class Info {
|
|
|
108
114
|
nextCursor: string | undefined;
|
|
109
115
|
schedules: ({
|
|
110
116
|
id: string;
|
|
111
|
-
connector: "hyperliquid" | "
|
|
117
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
112
118
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
113
119
|
positionKey: string;
|
|
114
120
|
executionType: "MARKET";
|
|
@@ -135,7 +141,7 @@ declare class Info {
|
|
|
135
141
|
tradeAccountId: string;
|
|
136
142
|
symbol: string;
|
|
137
143
|
positionId: string;
|
|
138
|
-
connector: "hyperliquid" | "
|
|
144
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
139
145
|
side: "BUY" | "SELL";
|
|
140
146
|
reduceOnly: boolean;
|
|
141
147
|
quantity: string;
|
|
@@ -147,7 +153,7 @@ declare class Info {
|
|
|
147
153
|
}[] | undefined;
|
|
148
154
|
} | {
|
|
149
155
|
id: string;
|
|
150
|
-
connector: "hyperliquid" | "
|
|
156
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
151
157
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
152
158
|
positionKey: string;
|
|
153
159
|
executionType: "MARKET";
|
|
@@ -172,7 +178,7 @@ declare class Info {
|
|
|
172
178
|
tradeAccountId: string;
|
|
173
179
|
symbol: string;
|
|
174
180
|
positionId: string;
|
|
175
|
-
connector: "hyperliquid" | "
|
|
181
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
176
182
|
side: "BUY" | "SELL";
|
|
177
183
|
reduceOnly: boolean;
|
|
178
184
|
quantity: string;
|
|
@@ -192,7 +198,7 @@ declare class Info {
|
|
|
192
198
|
triggers: ({
|
|
193
199
|
id: string;
|
|
194
200
|
tradeAccountId: string;
|
|
195
|
-
connector: "hyperliquid" | "
|
|
201
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
196
202
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
197
203
|
createdAt: string;
|
|
198
204
|
updatedAt: string;
|
|
@@ -261,7 +267,7 @@ declare class Info {
|
|
|
261
267
|
tradeAccountId: string;
|
|
262
268
|
symbol: string;
|
|
263
269
|
positionId: string;
|
|
264
|
-
connector: "hyperliquid" | "
|
|
270
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
265
271
|
side: "BUY" | "SELL";
|
|
266
272
|
reduceOnly: boolean;
|
|
267
273
|
quantity: string;
|
|
@@ -275,7 +281,7 @@ declare class Info {
|
|
|
275
281
|
} | {
|
|
276
282
|
id: string;
|
|
277
283
|
tradeAccountId: string;
|
|
278
|
-
connector: "hyperliquid" | "
|
|
284
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
279
285
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
280
286
|
createdAt: string;
|
|
281
287
|
updatedAt: string;
|
|
@@ -371,7 +377,7 @@ declare class Info {
|
|
|
371
377
|
tradeAccountId: string;
|
|
372
378
|
symbol: string;
|
|
373
379
|
positionId: string;
|
|
374
|
-
connector: "hyperliquid" | "
|
|
380
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
375
381
|
side: "BUY" | "SELL";
|
|
376
382
|
reduceOnly: boolean;
|
|
377
383
|
quantity: string;
|
|
@@ -385,7 +391,7 @@ declare class Info {
|
|
|
385
391
|
} | {
|
|
386
392
|
id: string;
|
|
387
393
|
tradeAccountId: string;
|
|
388
|
-
connector: "hyperliquid" | "
|
|
394
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
389
395
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
390
396
|
createdAt: string;
|
|
391
397
|
updatedAt: string;
|
|
@@ -468,7 +474,7 @@ declare class Info {
|
|
|
468
474
|
tradeAccountId: string;
|
|
469
475
|
symbol: string;
|
|
470
476
|
positionId: string;
|
|
471
|
-
connector: "hyperliquid" | "
|
|
477
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
472
478
|
side: "BUY" | "SELL";
|
|
473
479
|
reduceOnly: boolean;
|
|
474
480
|
quantity: string;
|
|
@@ -487,7 +493,7 @@ declare class Info {
|
|
|
487
493
|
positions: {
|
|
488
494
|
id: string;
|
|
489
495
|
tradeAccountId: string;
|
|
490
|
-
connector: "hyperliquid" | "
|
|
496
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
491
497
|
status: "OPEN" | "CLOSED";
|
|
492
498
|
exposure: Record<string, string>;
|
|
493
499
|
initialExposureUSD: Record<string, string>;
|
|
@@ -505,7 +511,7 @@ declare class Info {
|
|
|
505
511
|
tradeAccountId: string;
|
|
506
512
|
symbol: string;
|
|
507
513
|
positionId: string;
|
|
508
|
-
connector: "hyperliquid" | "
|
|
514
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
509
515
|
side: "BUY" | "SELL";
|
|
510
516
|
reduceOnly: boolean;
|
|
511
517
|
quantity: string;
|
|
@@ -524,7 +530,7 @@ declare class Info {
|
|
|
524
530
|
tradeAccountId: string;
|
|
525
531
|
symbol: string;
|
|
526
532
|
positionId: string;
|
|
527
|
-
connector: "hyperliquid" | "
|
|
533
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
528
534
|
side: "BUY" | "SELL";
|
|
529
535
|
reduceOnly: boolean;
|
|
530
536
|
quantity: string;
|
|
@@ -542,7 +548,7 @@ declare class Info {
|
|
|
542
548
|
nextCursor: string | undefined;
|
|
543
549
|
executions: ({
|
|
544
550
|
id: string;
|
|
545
|
-
connector: "hyperliquid" | "
|
|
551
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
546
552
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
547
553
|
createdAt: string;
|
|
548
554
|
updatedAt: string;
|
|
@@ -564,7 +570,7 @@ declare class Info {
|
|
|
564
570
|
error?: string | undefined;
|
|
565
571
|
orders?: {
|
|
566
572
|
id: string;
|
|
567
|
-
connector: "hyperliquid" | "
|
|
573
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
568
574
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
569
575
|
createdAt: string;
|
|
570
576
|
updatedAt: string;
|
|
@@ -581,7 +587,7 @@ declare class Info {
|
|
|
581
587
|
}[] | undefined;
|
|
582
588
|
} | {
|
|
583
589
|
id: string;
|
|
584
|
-
connector: "hyperliquid" | "
|
|
590
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
585
591
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
586
592
|
createdAt: string;
|
|
587
593
|
updatedAt: string;
|
|
@@ -607,7 +613,7 @@ declare class Info {
|
|
|
607
613
|
error?: string | undefined;
|
|
608
614
|
orders?: {
|
|
609
615
|
id: string;
|
|
610
|
-
connector: "hyperliquid" | "
|
|
616
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
611
617
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
612
618
|
createdAt: string;
|
|
613
619
|
updatedAt: string;
|
|
@@ -624,7 +630,7 @@ declare class Info {
|
|
|
624
630
|
}[] | undefined;
|
|
625
631
|
} | {
|
|
626
632
|
id: string;
|
|
627
|
-
connector: "hyperliquid" | "
|
|
633
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
628
634
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
629
635
|
createdAt: string;
|
|
630
636
|
updatedAt: string;
|
|
@@ -637,7 +643,7 @@ declare class Info {
|
|
|
637
643
|
error?: string | undefined;
|
|
638
644
|
orders?: {
|
|
639
645
|
id: string;
|
|
640
|
-
connector: "hyperliquid" | "
|
|
646
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
641
647
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
642
648
|
createdAt: string;
|
|
643
649
|
updatedAt: string;
|
|
@@ -661,7 +667,7 @@ declare class Info {
|
|
|
661
667
|
id: string;
|
|
662
668
|
base: string;
|
|
663
669
|
quote: string;
|
|
664
|
-
connector: "hyperliquid" | "
|
|
670
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
665
671
|
type: "spot" | "perp" | "hip3";
|
|
666
672
|
leverage: number;
|
|
667
673
|
precision: {
|
package/dist/trade/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare class Trade {
|
|
|
8
8
|
open(body: HttpTypes.CreateTradeOpen, headers?: ClientHeaders): Promise<{
|
|
9
9
|
execution: {
|
|
10
10
|
id: string;
|
|
11
|
-
connector: "hyperliquid" | "
|
|
11
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
12
12
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
@@ -30,7 +30,7 @@ declare class Trade {
|
|
|
30
30
|
error?: string | undefined;
|
|
31
31
|
orders?: {
|
|
32
32
|
id: string;
|
|
33
|
-
connector: "hyperliquid" | "
|
|
33
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
34
34
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
35
35
|
createdAt: string;
|
|
36
36
|
updatedAt: string;
|
|
@@ -47,7 +47,7 @@ declare class Trade {
|
|
|
47
47
|
}[] | undefined;
|
|
48
48
|
} | {
|
|
49
49
|
id: string;
|
|
50
|
-
connector: "hyperliquid" | "
|
|
50
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
51
51
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
52
52
|
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
@@ -73,7 +73,7 @@ declare class Trade {
|
|
|
73
73
|
error?: string | undefined;
|
|
74
74
|
orders?: {
|
|
75
75
|
id: string;
|
|
76
|
-
connector: "hyperliquid" | "
|
|
76
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
77
77
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
78
78
|
createdAt: string;
|
|
79
79
|
updatedAt: string;
|
|
@@ -90,7 +90,7 @@ declare class Trade {
|
|
|
90
90
|
}[] | undefined;
|
|
91
91
|
} | {
|
|
92
92
|
id: string;
|
|
93
|
-
connector: "hyperliquid" | "
|
|
93
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
94
94
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
95
95
|
createdAt: string;
|
|
96
96
|
updatedAt: string;
|
|
@@ -103,7 +103,7 @@ declare class Trade {
|
|
|
103
103
|
error?: string | undefined;
|
|
104
104
|
orders?: {
|
|
105
105
|
id: string;
|
|
106
|
-
connector: "hyperliquid" | "
|
|
106
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
107
107
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
108
108
|
createdAt: string;
|
|
109
109
|
updatedAt: string;
|
|
@@ -123,7 +123,7 @@ declare class Trade {
|
|
|
123
123
|
adjust(positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders): Promise<{
|
|
124
124
|
execution: {
|
|
125
125
|
id: string;
|
|
126
|
-
connector: "hyperliquid" | "
|
|
126
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
127
127
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
128
128
|
createdAt: string;
|
|
129
129
|
updatedAt: string;
|
|
@@ -145,7 +145,7 @@ declare class Trade {
|
|
|
145
145
|
error?: string | undefined;
|
|
146
146
|
orders?: {
|
|
147
147
|
id: string;
|
|
148
|
-
connector: "hyperliquid" | "
|
|
148
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
149
149
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
150
150
|
createdAt: string;
|
|
151
151
|
updatedAt: string;
|
|
@@ -162,7 +162,7 @@ declare class Trade {
|
|
|
162
162
|
}[] | undefined;
|
|
163
163
|
} | {
|
|
164
164
|
id: string;
|
|
165
|
-
connector: "hyperliquid" | "
|
|
165
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
166
166
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
167
167
|
createdAt: string;
|
|
168
168
|
updatedAt: string;
|
|
@@ -188,7 +188,7 @@ declare class Trade {
|
|
|
188
188
|
error?: string | undefined;
|
|
189
189
|
orders?: {
|
|
190
190
|
id: string;
|
|
191
|
-
connector: "hyperliquid" | "
|
|
191
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
192
192
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
193
193
|
createdAt: string;
|
|
194
194
|
updatedAt: string;
|
|
@@ -205,7 +205,7 @@ declare class Trade {
|
|
|
205
205
|
}[] | undefined;
|
|
206
206
|
} | {
|
|
207
207
|
id: string;
|
|
208
|
-
connector: "hyperliquid" | "
|
|
208
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
209
209
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
210
210
|
createdAt: string;
|
|
211
211
|
updatedAt: string;
|
|
@@ -218,7 +218,7 @@ declare class Trade {
|
|
|
218
218
|
error?: string | undefined;
|
|
219
219
|
orders?: {
|
|
220
220
|
id: string;
|
|
221
|
-
connector: "hyperliquid" | "
|
|
221
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
222
222
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
223
223
|
createdAt: string;
|
|
224
224
|
updatedAt: string;
|
|
@@ -238,7 +238,7 @@ declare class Trade {
|
|
|
238
238
|
close(positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders): Promise<{
|
|
239
239
|
execution: {
|
|
240
240
|
id: string;
|
|
241
|
-
connector: "hyperliquid" | "
|
|
241
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
242
242
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
243
243
|
createdAt: string;
|
|
244
244
|
updatedAt: string;
|
|
@@ -260,7 +260,7 @@ declare class Trade {
|
|
|
260
260
|
error?: string | undefined;
|
|
261
261
|
orders?: {
|
|
262
262
|
id: string;
|
|
263
|
-
connector: "hyperliquid" | "
|
|
263
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
264
264
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
265
265
|
createdAt: string;
|
|
266
266
|
updatedAt: string;
|
|
@@ -277,7 +277,7 @@ declare class Trade {
|
|
|
277
277
|
}[] | undefined;
|
|
278
278
|
} | {
|
|
279
279
|
id: string;
|
|
280
|
-
connector: "hyperliquid" | "
|
|
280
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
281
281
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
282
282
|
createdAt: string;
|
|
283
283
|
updatedAt: string;
|
|
@@ -303,7 +303,7 @@ declare class Trade {
|
|
|
303
303
|
error?: string | undefined;
|
|
304
304
|
orders?: {
|
|
305
305
|
id: string;
|
|
306
|
-
connector: "hyperliquid" | "
|
|
306
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
307
307
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
308
308
|
createdAt: string;
|
|
309
309
|
updatedAt: string;
|
|
@@ -320,7 +320,7 @@ declare class Trade {
|
|
|
320
320
|
}[] | undefined;
|
|
321
321
|
} | {
|
|
322
322
|
id: string;
|
|
323
|
-
connector: "hyperliquid" | "
|
|
323
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
324
324
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
325
325
|
createdAt: string;
|
|
326
326
|
updatedAt: string;
|
|
@@ -333,7 +333,7 @@ declare class Trade {
|
|
|
333
333
|
error?: string | undefined;
|
|
334
334
|
orders?: {
|
|
335
335
|
id: string;
|
|
336
|
-
connector: "hyperliquid" | "
|
|
336
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
337
337
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
338
338
|
createdAt: string;
|
|
339
339
|
updatedAt: string;
|
|
@@ -353,7 +353,7 @@ declare class Trade {
|
|
|
353
353
|
closeAll(body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders): Promise<{
|
|
354
354
|
executions: ({
|
|
355
355
|
id: string;
|
|
356
|
-
connector: "hyperliquid" | "
|
|
356
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
357
357
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
358
358
|
createdAt: string;
|
|
359
359
|
updatedAt: string;
|
|
@@ -375,7 +375,7 @@ declare class Trade {
|
|
|
375
375
|
error?: string | undefined;
|
|
376
376
|
orders?: {
|
|
377
377
|
id: string;
|
|
378
|
-
connector: "hyperliquid" | "
|
|
378
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
379
379
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
380
380
|
createdAt: string;
|
|
381
381
|
updatedAt: string;
|
|
@@ -392,7 +392,7 @@ declare class Trade {
|
|
|
392
392
|
}[] | undefined;
|
|
393
393
|
} | {
|
|
394
394
|
id: string;
|
|
395
|
-
connector: "hyperliquid" | "
|
|
395
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
396
396
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
397
397
|
createdAt: string;
|
|
398
398
|
updatedAt: string;
|
|
@@ -418,7 +418,7 @@ declare class Trade {
|
|
|
418
418
|
error?: string | undefined;
|
|
419
419
|
orders?: {
|
|
420
420
|
id: string;
|
|
421
|
-
connector: "hyperliquid" | "
|
|
421
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
422
422
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
423
423
|
createdAt: string;
|
|
424
424
|
updatedAt: string;
|
|
@@ -435,7 +435,7 @@ declare class Trade {
|
|
|
435
435
|
}[] | undefined;
|
|
436
436
|
} | {
|
|
437
437
|
id: string;
|
|
438
|
-
connector: "hyperliquid" | "
|
|
438
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
439
439
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
|
|
440
440
|
createdAt: string;
|
|
441
441
|
updatedAt: string;
|
|
@@ -448,7 +448,7 @@ declare class Trade {
|
|
|
448
448
|
error?: string | undefined;
|
|
449
449
|
orders?: {
|
|
450
450
|
id: string;
|
|
451
|
-
connector: "hyperliquid" | "
|
|
451
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
452
452
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
453
453
|
createdAt: string;
|
|
454
454
|
updatedAt: string;
|
|
@@ -469,7 +469,7 @@ declare class Trade {
|
|
|
469
469
|
create: (body: HttpTypes.CreateSchedule, headers?: ClientHeaders) => Promise<{
|
|
470
470
|
schedule: {
|
|
471
471
|
id: string;
|
|
472
|
-
connector: "hyperliquid" | "
|
|
472
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
473
473
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
474
474
|
positionKey: string;
|
|
475
475
|
executionType: "MARKET";
|
|
@@ -496,7 +496,7 @@ declare class Trade {
|
|
|
496
496
|
tradeAccountId: string;
|
|
497
497
|
symbol: string;
|
|
498
498
|
positionId: string;
|
|
499
|
-
connector: "hyperliquid" | "
|
|
499
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
500
500
|
side: "BUY" | "SELL";
|
|
501
501
|
reduceOnly: boolean;
|
|
502
502
|
quantity: string;
|
|
@@ -508,7 +508,7 @@ declare class Trade {
|
|
|
508
508
|
}[] | undefined;
|
|
509
509
|
} | {
|
|
510
510
|
id: string;
|
|
511
|
-
connector: "hyperliquid" | "
|
|
511
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
512
512
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
513
513
|
positionKey: string;
|
|
514
514
|
executionType: "MARKET";
|
|
@@ -533,7 +533,7 @@ declare class Trade {
|
|
|
533
533
|
tradeAccountId: string;
|
|
534
534
|
symbol: string;
|
|
535
535
|
positionId: string;
|
|
536
|
-
connector: "hyperliquid" | "
|
|
536
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
537
537
|
side: "BUY" | "SELL";
|
|
538
538
|
reduceOnly: boolean;
|
|
539
539
|
quantity: string;
|
|
@@ -557,7 +557,7 @@ declare class Trade {
|
|
|
557
557
|
trigger: {
|
|
558
558
|
id: string;
|
|
559
559
|
tradeAccountId: string;
|
|
560
|
-
connector: "hyperliquid" | "
|
|
560
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
561
561
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
562
562
|
createdAt: string;
|
|
563
563
|
updatedAt: string;
|
|
@@ -626,7 +626,7 @@ declare class Trade {
|
|
|
626
626
|
tradeAccountId: string;
|
|
627
627
|
symbol: string;
|
|
628
628
|
positionId: string;
|
|
629
|
-
connector: "hyperliquid" | "
|
|
629
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
630
630
|
side: "BUY" | "SELL";
|
|
631
631
|
reduceOnly: boolean;
|
|
632
632
|
quantity: string;
|
|
@@ -640,7 +640,7 @@ declare class Trade {
|
|
|
640
640
|
} | {
|
|
641
641
|
id: string;
|
|
642
642
|
tradeAccountId: string;
|
|
643
|
-
connector: "hyperliquid" | "
|
|
643
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
644
644
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
645
645
|
createdAt: string;
|
|
646
646
|
updatedAt: string;
|
|
@@ -736,7 +736,7 @@ declare class Trade {
|
|
|
736
736
|
tradeAccountId: string;
|
|
737
737
|
symbol: string;
|
|
738
738
|
positionId: string;
|
|
739
|
-
connector: "hyperliquid" | "
|
|
739
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
740
740
|
side: "BUY" | "SELL";
|
|
741
741
|
reduceOnly: boolean;
|
|
742
742
|
quantity: string;
|
|
@@ -750,7 +750,7 @@ declare class Trade {
|
|
|
750
750
|
} | {
|
|
751
751
|
id: string;
|
|
752
752
|
tradeAccountId: string;
|
|
753
|
-
connector: "hyperliquid" | "
|
|
753
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
754
754
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
755
755
|
createdAt: string;
|
|
756
756
|
updatedAt: string;
|
|
@@ -833,7 +833,7 @@ declare class Trade {
|
|
|
833
833
|
tradeAccountId: string;
|
|
834
834
|
symbol: string;
|
|
835
835
|
positionId: string;
|
|
836
|
-
connector: "hyperliquid" | "
|
|
836
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
837
837
|
side: "BUY" | "SELL";
|
|
838
838
|
reduceOnly: boolean;
|
|
839
839
|
quantity: string;
|
|
@@ -850,7 +850,7 @@ declare class Trade {
|
|
|
850
850
|
trigger: {
|
|
851
851
|
id: string;
|
|
852
852
|
tradeAccountId: string;
|
|
853
|
-
connector: "hyperliquid" | "
|
|
853
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
854
854
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
855
855
|
createdAt: string;
|
|
856
856
|
updatedAt: string;
|
|
@@ -919,7 +919,7 @@ declare class Trade {
|
|
|
919
919
|
tradeAccountId: string;
|
|
920
920
|
symbol: string;
|
|
921
921
|
positionId: string;
|
|
922
|
-
connector: "hyperliquid" | "
|
|
922
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
923
923
|
side: "BUY" | "SELL";
|
|
924
924
|
reduceOnly: boolean;
|
|
925
925
|
quantity: string;
|
|
@@ -933,7 +933,7 @@ declare class Trade {
|
|
|
933
933
|
} | {
|
|
934
934
|
id: string;
|
|
935
935
|
tradeAccountId: string;
|
|
936
|
-
connector: "hyperliquid" | "
|
|
936
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
937
937
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
938
938
|
createdAt: string;
|
|
939
939
|
updatedAt: string;
|
|
@@ -1029,7 +1029,7 @@ declare class Trade {
|
|
|
1029
1029
|
tradeAccountId: string;
|
|
1030
1030
|
symbol: string;
|
|
1031
1031
|
positionId: string;
|
|
1032
|
-
connector: "hyperliquid" | "
|
|
1032
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1033
1033
|
side: "BUY" | "SELL";
|
|
1034
1034
|
reduceOnly: boolean;
|
|
1035
1035
|
quantity: string;
|
|
@@ -1043,7 +1043,7 @@ declare class Trade {
|
|
|
1043
1043
|
} | {
|
|
1044
1044
|
id: string;
|
|
1045
1045
|
tradeAccountId: string;
|
|
1046
|
-
connector: "hyperliquid" | "
|
|
1046
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1047
1047
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1048
1048
|
createdAt: string;
|
|
1049
1049
|
updatedAt: string;
|
|
@@ -1126,7 +1126,7 @@ declare class Trade {
|
|
|
1126
1126
|
tradeAccountId: string;
|
|
1127
1127
|
symbol: string;
|
|
1128
1128
|
positionId: string;
|
|
1129
|
-
connector: "hyperliquid" | "
|
|
1129
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx";
|
|
1130
1130
|
side: "BUY" | "SELL";
|
|
1131
1131
|
reduceOnly: boolean;
|
|
1132
1132
|
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.10",
|
|
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.9",
|
|
29
|
+
"@pear-protocol/utils": "0.0.9",
|
|
30
30
|
"qs": "^6.14.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|