@pear-protocol/core-sdk 0.0.7 → 0.0.9

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.
@@ -10,7 +10,7 @@ declare class Info {
10
10
  accounts: {
11
11
  id: string;
12
12
  alias: string;
13
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
43
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
44
44
  exchangeIdentifier: string;
45
45
  createdAt: string;
46
46
  updatedAt: string;
@@ -58,7 +58,7 @@ declare class Info {
58
58
  signer_key: string;
59
59
  };
60
60
  } | {
61
- connector: "binanceusdm";
61
+ connector: "binance";
62
62
  credentials: {
63
63
  api_key: string;
64
64
  api_secret: string;
@@ -108,7 +108,7 @@ declare class Info {
108
108
  nextCursor: string | undefined;
109
109
  schedules: ({
110
110
  id: string;
111
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
111
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
112
112
  status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
113
113
  positionKey: string;
114
114
  executionType: "MARKET";
@@ -135,7 +135,7 @@ declare class Info {
135
135
  tradeAccountId: string;
136
136
  symbol: string;
137
137
  positionId: string;
138
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
138
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
139
139
  side: "BUY" | "SELL";
140
140
  reduceOnly: boolean;
141
141
  quantity: string;
@@ -147,7 +147,7 @@ declare class Info {
147
147
  }[] | undefined;
148
148
  } | {
149
149
  id: string;
150
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
150
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
151
151
  status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
152
152
  positionKey: string;
153
153
  executionType: "MARKET";
@@ -172,7 +172,7 @@ declare class Info {
172
172
  tradeAccountId: string;
173
173
  symbol: string;
174
174
  positionId: string;
175
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
175
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
176
176
  side: "BUY" | "SELL";
177
177
  reduceOnly: boolean;
178
178
  quantity: string;
@@ -192,7 +192,7 @@ declare class Info {
192
192
  triggers: ({
193
193
  id: string;
194
194
  tradeAccountId: string;
195
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
195
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
196
196
  status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
197
197
  createdAt: string;
198
198
  updatedAt: string;
@@ -261,7 +261,7 @@ declare class Info {
261
261
  tradeAccountId: string;
262
262
  symbol: string;
263
263
  positionId: string;
264
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
264
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
265
265
  side: "BUY" | "SELL";
266
266
  reduceOnly: boolean;
267
267
  quantity: string;
@@ -275,7 +275,7 @@ declare class Info {
275
275
  } | {
276
276
  id: string;
277
277
  tradeAccountId: string;
278
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
278
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
279
279
  status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
280
280
  createdAt: string;
281
281
  updatedAt: string;
@@ -371,7 +371,7 @@ declare class Info {
371
371
  tradeAccountId: string;
372
372
  symbol: string;
373
373
  positionId: string;
374
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
374
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
375
375
  side: "BUY" | "SELL";
376
376
  reduceOnly: boolean;
377
377
  quantity: string;
@@ -385,7 +385,7 @@ declare class Info {
385
385
  } | {
386
386
  id: string;
387
387
  tradeAccountId: string;
388
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
388
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
389
389
  status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
390
390
  createdAt: string;
391
391
  updatedAt: string;
@@ -468,7 +468,7 @@ declare class Info {
468
468
  tradeAccountId: string;
469
469
  symbol: string;
470
470
  positionId: string;
471
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
471
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
472
472
  side: "BUY" | "SELL";
473
473
  reduceOnly: boolean;
474
474
  quantity: string;
@@ -487,7 +487,7 @@ declare class Info {
487
487
  positions: {
488
488
  id: string;
489
489
  tradeAccountId: string;
490
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
490
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
491
491
  status: "OPEN" | "CLOSED";
492
492
  exposure: Record<string, string>;
493
493
  initialExposureUSD: Record<string, string>;
@@ -505,7 +505,7 @@ declare class Info {
505
505
  tradeAccountId: string;
506
506
  symbol: string;
507
507
  positionId: string;
508
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
508
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
509
509
  side: "BUY" | "SELL";
510
510
  reduceOnly: boolean;
511
511
  quantity: string;
@@ -524,7 +524,7 @@ declare class Info {
524
524
  tradeAccountId: string;
525
525
  symbol: string;
526
526
  positionId: string;
527
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
527
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
528
528
  side: "BUY" | "SELL";
529
529
  reduceOnly: boolean;
530
530
  quantity: string;
@@ -542,7 +542,7 @@ declare class Info {
542
542
  nextCursor: string | undefined;
543
543
  executions: ({
544
544
  id: string;
545
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
545
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
546
546
  status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
547
547
  createdAt: string;
548
548
  updatedAt: string;
@@ -564,7 +564,7 @@ declare class Info {
564
564
  error?: string | undefined;
565
565
  orders?: {
566
566
  id: string;
567
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
567
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
568
568
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
569
569
  createdAt: string;
570
570
  updatedAt: string;
@@ -581,7 +581,7 @@ declare class Info {
581
581
  }[] | undefined;
582
582
  } | {
583
583
  id: string;
584
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
584
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
585
585
  status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
586
586
  createdAt: string;
587
587
  updatedAt: string;
@@ -607,7 +607,7 @@ declare class Info {
607
607
  error?: string | undefined;
608
608
  orders?: {
609
609
  id: string;
610
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
610
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
611
611
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
612
612
  createdAt: string;
613
613
  updatedAt: string;
@@ -624,7 +624,7 @@ declare class Info {
624
624
  }[] | undefined;
625
625
  } | {
626
626
  id: string;
627
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
627
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
628
628
  status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED" | "IDLE";
629
629
  createdAt: string;
630
630
  updatedAt: string;
@@ -637,7 +637,7 @@ declare class Info {
637
637
  error?: string | undefined;
638
638
  orders?: {
639
639
  id: string;
640
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
640
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
641
641
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
642
642
  createdAt: string;
643
643
  updatedAt: string;
@@ -661,7 +661,7 @@ declare class Info {
661
661
  id: string;
662
662
  base: string;
663
663
  quote: string;
664
- connector: "hyperliquid" | "binanceusdm" | "bybit" | "okx";
664
+ connector: "hyperliquid" | "binance" | "bybit" | "okx";
665
665
  type: "spot" | "perp" | "hip3";
666
666
  leverage: number;
667
667
  precision: {
@@ -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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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" | "binanceusdm" | "bybit" | "okx";
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.7",
3
+ "version": "0.0.9",
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.6",
29
- "@pear-protocol/utils": "0.0.6",
28
+ "@pear-protocol/types": "0.0.8",
29
+ "@pear-protocol/utils": "0.0.8",
30
30
  "qs": "^6.14.0"
31
31
  },
32
32
  "devDependencies": {