@pear-protocol/core-sdk 2.2.0 → 2.4.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 +168 -87
- package/dist/core/index.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/vaults/index.d.ts +426 -0
- package/dist/vaults/index.js +193 -0
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -281,7 +281,7 @@ declare class Core {
|
|
|
281
281
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
282
282
|
baseBps: string;
|
|
283
283
|
discounts: {
|
|
284
|
-
scope: "
|
|
284
|
+
scope: "user" | "connector" | "all" | "client_id";
|
|
285
285
|
rate: string;
|
|
286
286
|
}[];
|
|
287
287
|
finalBps: string;
|
|
@@ -415,6 +415,7 @@ declare class Core {
|
|
|
415
415
|
amount: string;
|
|
416
416
|
reduceOnly: boolean;
|
|
417
417
|
id?: string | undefined;
|
|
418
|
+
maxImpactPrice?: string | undefined;
|
|
418
419
|
}, ...{
|
|
419
420
|
symbol: string;
|
|
420
421
|
side: "BUY" | "SELL";
|
|
@@ -422,6 +423,7 @@ declare class Core {
|
|
|
422
423
|
amount: string;
|
|
423
424
|
reduceOnly: boolean;
|
|
424
425
|
id?: string | undefined;
|
|
426
|
+
maxImpactPrice?: string | undefined;
|
|
425
427
|
}[]];
|
|
426
428
|
error?: string | undefined;
|
|
427
429
|
orders?: {
|
|
@@ -441,6 +443,10 @@ declare class Core {
|
|
|
441
443
|
errorCode?: string | undefined;
|
|
442
444
|
filledPrice?: string | undefined;
|
|
443
445
|
}[] | undefined;
|
|
446
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
447
|
+
position?: {
|
|
448
|
+
id: string;
|
|
449
|
+
} | undefined;
|
|
444
450
|
} | {
|
|
445
451
|
id: string;
|
|
446
452
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -449,10 +455,6 @@ declare class Core {
|
|
|
449
455
|
updatedAt: string;
|
|
450
456
|
intent: "ADJUST";
|
|
451
457
|
orderType: "MARKET";
|
|
452
|
-
position: {
|
|
453
|
-
id: string;
|
|
454
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
455
|
-
};
|
|
456
458
|
legs: [{
|
|
457
459
|
symbol: string;
|
|
458
460
|
side: "BUY" | "SELL";
|
|
@@ -460,6 +462,7 @@ declare class Core {
|
|
|
460
462
|
amount: string;
|
|
461
463
|
reduceOnly: boolean;
|
|
462
464
|
id?: string | undefined;
|
|
465
|
+
maxImpactPrice?: string | undefined;
|
|
463
466
|
}, ...{
|
|
464
467
|
symbol: string;
|
|
465
468
|
side: "BUY" | "SELL";
|
|
@@ -467,6 +470,7 @@ declare class Core {
|
|
|
467
470
|
amount: string;
|
|
468
471
|
reduceOnly: boolean;
|
|
469
472
|
id?: string | undefined;
|
|
473
|
+
maxImpactPrice?: string | undefined;
|
|
470
474
|
}[]];
|
|
471
475
|
error?: string | undefined;
|
|
472
476
|
orders?: {
|
|
@@ -486,6 +490,11 @@ declare class Core {
|
|
|
486
490
|
errorCode?: string | undefined;
|
|
487
491
|
filledPrice?: string | undefined;
|
|
488
492
|
}[] | undefined;
|
|
493
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
494
|
+
position?: {
|
|
495
|
+
id: string;
|
|
496
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
497
|
+
} | undefined;
|
|
489
498
|
} | {
|
|
490
499
|
id: string;
|
|
491
500
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -494,10 +503,6 @@ declare class Core {
|
|
|
494
503
|
updatedAt: string;
|
|
495
504
|
intent: "CLOSE";
|
|
496
505
|
orderType: "MARKET";
|
|
497
|
-
position: {
|
|
498
|
-
id: string;
|
|
499
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
500
|
-
};
|
|
501
506
|
error?: string | undefined;
|
|
502
507
|
orders?: {
|
|
503
508
|
id: string;
|
|
@@ -516,6 +521,11 @@ declare class Core {
|
|
|
516
521
|
errorCode?: string | undefined;
|
|
517
522
|
filledPrice?: string | undefined;
|
|
518
523
|
}[] | undefined;
|
|
524
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
525
|
+
position?: {
|
|
526
|
+
id: string;
|
|
527
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
528
|
+
} | undefined;
|
|
519
529
|
} | {
|
|
520
530
|
id: string;
|
|
521
531
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -524,10 +534,6 @@ declare class Core {
|
|
|
524
534
|
updatedAt: string;
|
|
525
535
|
intent: "REVERSE";
|
|
526
536
|
orderType: "MARKET";
|
|
527
|
-
position: {
|
|
528
|
-
id: string;
|
|
529
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
530
|
-
};
|
|
531
537
|
error?: string | undefined;
|
|
532
538
|
orders?: {
|
|
533
539
|
id: string;
|
|
@@ -546,6 +552,11 @@ declare class Core {
|
|
|
546
552
|
errorCode?: string | undefined;
|
|
547
553
|
filledPrice?: string | undefined;
|
|
548
554
|
}[] | undefined;
|
|
555
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
556
|
+
position?: {
|
|
557
|
+
id: string;
|
|
558
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
559
|
+
} | undefined;
|
|
549
560
|
})[];
|
|
550
561
|
nextCursor?: string | undefined;
|
|
551
562
|
}>;
|
|
@@ -565,6 +576,7 @@ declare class Core {
|
|
|
565
576
|
amount: string;
|
|
566
577
|
reduceOnly: boolean;
|
|
567
578
|
id?: string | undefined;
|
|
579
|
+
maxImpactPrice?: string | undefined;
|
|
568
580
|
}, ...{
|
|
569
581
|
symbol: string;
|
|
570
582
|
side: "BUY" | "SELL";
|
|
@@ -572,6 +584,7 @@ declare class Core {
|
|
|
572
584
|
amount: string;
|
|
573
585
|
reduceOnly: boolean;
|
|
574
586
|
id?: string | undefined;
|
|
587
|
+
maxImpactPrice?: string | undefined;
|
|
575
588
|
}[]];
|
|
576
589
|
error?: string | undefined;
|
|
577
590
|
orders?: {
|
|
@@ -591,6 +604,10 @@ declare class Core {
|
|
|
591
604
|
errorCode?: string | undefined;
|
|
592
605
|
filledPrice?: string | undefined;
|
|
593
606
|
}[] | undefined;
|
|
607
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
608
|
+
position?: {
|
|
609
|
+
id: string;
|
|
610
|
+
} | undefined;
|
|
594
611
|
} | {
|
|
595
612
|
id: string;
|
|
596
613
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -599,10 +616,6 @@ declare class Core {
|
|
|
599
616
|
updatedAt: string;
|
|
600
617
|
intent: "ADJUST";
|
|
601
618
|
orderType: "MARKET";
|
|
602
|
-
position: {
|
|
603
|
-
id: string;
|
|
604
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
605
|
-
};
|
|
606
619
|
legs: [{
|
|
607
620
|
symbol: string;
|
|
608
621
|
side: "BUY" | "SELL";
|
|
@@ -610,6 +623,7 @@ declare class Core {
|
|
|
610
623
|
amount: string;
|
|
611
624
|
reduceOnly: boolean;
|
|
612
625
|
id?: string | undefined;
|
|
626
|
+
maxImpactPrice?: string | undefined;
|
|
613
627
|
}, ...{
|
|
614
628
|
symbol: string;
|
|
615
629
|
side: "BUY" | "SELL";
|
|
@@ -617,6 +631,7 @@ declare class Core {
|
|
|
617
631
|
amount: string;
|
|
618
632
|
reduceOnly: boolean;
|
|
619
633
|
id?: string | undefined;
|
|
634
|
+
maxImpactPrice?: string | undefined;
|
|
620
635
|
}[]];
|
|
621
636
|
error?: string | undefined;
|
|
622
637
|
orders?: {
|
|
@@ -636,6 +651,11 @@ declare class Core {
|
|
|
636
651
|
errorCode?: string | undefined;
|
|
637
652
|
filledPrice?: string | undefined;
|
|
638
653
|
}[] | undefined;
|
|
654
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
655
|
+
position?: {
|
|
656
|
+
id: string;
|
|
657
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
658
|
+
} | undefined;
|
|
639
659
|
} | {
|
|
640
660
|
id: string;
|
|
641
661
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -644,10 +664,6 @@ declare class Core {
|
|
|
644
664
|
updatedAt: string;
|
|
645
665
|
intent: "CLOSE";
|
|
646
666
|
orderType: "MARKET";
|
|
647
|
-
position: {
|
|
648
|
-
id: string;
|
|
649
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
650
|
-
};
|
|
651
667
|
error?: string | undefined;
|
|
652
668
|
orders?: {
|
|
653
669
|
id: string;
|
|
@@ -666,6 +682,11 @@ declare class Core {
|
|
|
666
682
|
errorCode?: string | undefined;
|
|
667
683
|
filledPrice?: string | undefined;
|
|
668
684
|
}[] | undefined;
|
|
685
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
686
|
+
position?: {
|
|
687
|
+
id: string;
|
|
688
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
689
|
+
} | undefined;
|
|
669
690
|
} | {
|
|
670
691
|
id: string;
|
|
671
692
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -674,10 +695,6 @@ declare class Core {
|
|
|
674
695
|
updatedAt: string;
|
|
675
696
|
intent: "REVERSE";
|
|
676
697
|
orderType: "MARKET";
|
|
677
|
-
position: {
|
|
678
|
-
id: string;
|
|
679
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
680
|
-
};
|
|
681
698
|
error?: string | undefined;
|
|
682
699
|
orders?: {
|
|
683
700
|
id: string;
|
|
@@ -696,6 +713,11 @@ declare class Core {
|
|
|
696
713
|
errorCode?: string | undefined;
|
|
697
714
|
filledPrice?: string | undefined;
|
|
698
715
|
}[] | undefined;
|
|
716
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
717
|
+
position?: {
|
|
718
|
+
id: string;
|
|
719
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
720
|
+
} | undefined;
|
|
699
721
|
};
|
|
700
722
|
}>;
|
|
701
723
|
};
|
|
@@ -3591,6 +3613,7 @@ declare class Core {
|
|
|
3591
3613
|
exitNotional: string;
|
|
3592
3614
|
exitNotionalComplete: boolean;
|
|
3593
3615
|
hasSyntheticFills: boolean;
|
|
3616
|
+
hasProvisionalFills: boolean;
|
|
3594
3617
|
unstableHistoricalData: boolean;
|
|
3595
3618
|
longAssets: string[];
|
|
3596
3619
|
shortAssets: string[];
|
|
@@ -3827,6 +3850,7 @@ declare class Core {
|
|
|
3827
3850
|
};
|
|
3828
3851
|
portfolio: {
|
|
3829
3852
|
overview: (query?: HttpTypes.PortfolioQueryInput, headers?: ClientHeaders) => Promise<{
|
|
3853
|
+
hasProvisionalFills: boolean;
|
|
3830
3854
|
realizedCashflow: {
|
|
3831
3855
|
grossPnl: number;
|
|
3832
3856
|
tradeFees: number;
|
|
@@ -3946,6 +3970,7 @@ declare class Core {
|
|
|
3946
3970
|
startDate: string;
|
|
3947
3971
|
endDate: string;
|
|
3948
3972
|
};
|
|
3973
|
+
hasProvisionalFills: boolean;
|
|
3949
3974
|
realizedCashflow: {
|
|
3950
3975
|
grossPnl: number;
|
|
3951
3976
|
tradeFees: number;
|
|
@@ -4208,11 +4233,11 @@ declare class Core {
|
|
|
4208
4233
|
status: "BOUND";
|
|
4209
4234
|
tradeCount: number;
|
|
4210
4235
|
volumeUsd: string;
|
|
4211
|
-
address?:
|
|
4236
|
+
address?: HttpTypes.EthereumAddress | undefined;
|
|
4212
4237
|
referredAt?: number | undefined;
|
|
4213
4238
|
} | {
|
|
4214
4239
|
status: "PENDING";
|
|
4215
|
-
address:
|
|
4240
|
+
address: HttpTypes.EthereumAddress;
|
|
4216
4241
|
})[];
|
|
4217
4242
|
nextCursor?: string | undefined;
|
|
4218
4243
|
}>;
|
|
@@ -4438,6 +4463,7 @@ declare class Core {
|
|
|
4438
4463
|
since: (body: HttpTypes.SyncFillsSinceRequest, headers?: ClientHeaders) => Promise<{
|
|
4439
4464
|
sinceMs: number;
|
|
4440
4465
|
neverSynced: boolean;
|
|
4466
|
+
executionsUpdatedAtEpochMs: number;
|
|
4441
4467
|
firstSyncStartedAt?: number | undefined;
|
|
4442
4468
|
confirmedExchangeFillIds?: string[] | undefined;
|
|
4443
4469
|
}>;
|
|
@@ -4474,6 +4500,7 @@ declare class Core {
|
|
|
4474
4500
|
amount: string;
|
|
4475
4501
|
reduceOnly: boolean;
|
|
4476
4502
|
id?: string | undefined;
|
|
4503
|
+
maxImpactPrice?: string | undefined;
|
|
4477
4504
|
}, ...{
|
|
4478
4505
|
symbol: string;
|
|
4479
4506
|
side: "BUY" | "SELL";
|
|
@@ -4481,6 +4508,7 @@ declare class Core {
|
|
|
4481
4508
|
amount: string;
|
|
4482
4509
|
reduceOnly: boolean;
|
|
4483
4510
|
id?: string | undefined;
|
|
4511
|
+
maxImpactPrice?: string | undefined;
|
|
4484
4512
|
}[]];
|
|
4485
4513
|
error?: string | undefined;
|
|
4486
4514
|
orders?: {
|
|
@@ -4500,6 +4528,10 @@ declare class Core {
|
|
|
4500
4528
|
errorCode?: string | undefined;
|
|
4501
4529
|
filledPrice?: string | undefined;
|
|
4502
4530
|
}[] | undefined;
|
|
4531
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4532
|
+
position?: {
|
|
4533
|
+
id: string;
|
|
4534
|
+
} | undefined;
|
|
4503
4535
|
} | {
|
|
4504
4536
|
id: string;
|
|
4505
4537
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4508,10 +4540,6 @@ declare class Core {
|
|
|
4508
4540
|
updatedAt: string;
|
|
4509
4541
|
intent: "ADJUST";
|
|
4510
4542
|
orderType: "MARKET";
|
|
4511
|
-
position: {
|
|
4512
|
-
id: string;
|
|
4513
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4514
|
-
};
|
|
4515
4543
|
legs: [{
|
|
4516
4544
|
symbol: string;
|
|
4517
4545
|
side: "BUY" | "SELL";
|
|
@@ -4519,6 +4547,7 @@ declare class Core {
|
|
|
4519
4547
|
amount: string;
|
|
4520
4548
|
reduceOnly: boolean;
|
|
4521
4549
|
id?: string | undefined;
|
|
4550
|
+
maxImpactPrice?: string | undefined;
|
|
4522
4551
|
}, ...{
|
|
4523
4552
|
symbol: string;
|
|
4524
4553
|
side: "BUY" | "SELL";
|
|
@@ -4526,6 +4555,7 @@ declare class Core {
|
|
|
4526
4555
|
amount: string;
|
|
4527
4556
|
reduceOnly: boolean;
|
|
4528
4557
|
id?: string | undefined;
|
|
4558
|
+
maxImpactPrice?: string | undefined;
|
|
4529
4559
|
}[]];
|
|
4530
4560
|
error?: string | undefined;
|
|
4531
4561
|
orders?: {
|
|
@@ -4545,6 +4575,11 @@ declare class Core {
|
|
|
4545
4575
|
errorCode?: string | undefined;
|
|
4546
4576
|
filledPrice?: string | undefined;
|
|
4547
4577
|
}[] | undefined;
|
|
4578
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4579
|
+
position?: {
|
|
4580
|
+
id: string;
|
|
4581
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4582
|
+
} | undefined;
|
|
4548
4583
|
} | {
|
|
4549
4584
|
id: string;
|
|
4550
4585
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4553,10 +4588,6 @@ declare class Core {
|
|
|
4553
4588
|
updatedAt: string;
|
|
4554
4589
|
intent: "CLOSE";
|
|
4555
4590
|
orderType: "MARKET";
|
|
4556
|
-
position: {
|
|
4557
|
-
id: string;
|
|
4558
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4559
|
-
};
|
|
4560
4591
|
error?: string | undefined;
|
|
4561
4592
|
orders?: {
|
|
4562
4593
|
id: string;
|
|
@@ -4575,6 +4606,11 @@ declare class Core {
|
|
|
4575
4606
|
errorCode?: string | undefined;
|
|
4576
4607
|
filledPrice?: string | undefined;
|
|
4577
4608
|
}[] | undefined;
|
|
4609
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4610
|
+
position?: {
|
|
4611
|
+
id: string;
|
|
4612
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4613
|
+
} | undefined;
|
|
4578
4614
|
} | {
|
|
4579
4615
|
id: string;
|
|
4580
4616
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4583,10 +4619,6 @@ declare class Core {
|
|
|
4583
4619
|
updatedAt: string;
|
|
4584
4620
|
intent: "REVERSE";
|
|
4585
4621
|
orderType: "MARKET";
|
|
4586
|
-
position: {
|
|
4587
|
-
id: string;
|
|
4588
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4589
|
-
};
|
|
4590
4622
|
error?: string | undefined;
|
|
4591
4623
|
orders?: {
|
|
4592
4624
|
id: string;
|
|
@@ -4605,6 +4637,11 @@ declare class Core {
|
|
|
4605
4637
|
errorCode?: string | undefined;
|
|
4606
4638
|
filledPrice?: string | undefined;
|
|
4607
4639
|
}[] | undefined;
|
|
4640
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4641
|
+
position?: {
|
|
4642
|
+
id: string;
|
|
4643
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4644
|
+
} | undefined;
|
|
4608
4645
|
};
|
|
4609
4646
|
}>;
|
|
4610
4647
|
adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
|
|
@@ -4623,6 +4660,7 @@ declare class Core {
|
|
|
4623
4660
|
amount: string;
|
|
4624
4661
|
reduceOnly: boolean;
|
|
4625
4662
|
id?: string | undefined;
|
|
4663
|
+
maxImpactPrice?: string | undefined;
|
|
4626
4664
|
}, ...{
|
|
4627
4665
|
symbol: string;
|
|
4628
4666
|
side: "BUY" | "SELL";
|
|
@@ -4630,6 +4668,7 @@ declare class Core {
|
|
|
4630
4668
|
amount: string;
|
|
4631
4669
|
reduceOnly: boolean;
|
|
4632
4670
|
id?: string | undefined;
|
|
4671
|
+
maxImpactPrice?: string | undefined;
|
|
4633
4672
|
}[]];
|
|
4634
4673
|
error?: string | undefined;
|
|
4635
4674
|
orders?: {
|
|
@@ -4649,6 +4688,10 @@ declare class Core {
|
|
|
4649
4688
|
errorCode?: string | undefined;
|
|
4650
4689
|
filledPrice?: string | undefined;
|
|
4651
4690
|
}[] | undefined;
|
|
4691
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4692
|
+
position?: {
|
|
4693
|
+
id: string;
|
|
4694
|
+
} | undefined;
|
|
4652
4695
|
} | {
|
|
4653
4696
|
id: string;
|
|
4654
4697
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4657,10 +4700,6 @@ declare class Core {
|
|
|
4657
4700
|
updatedAt: string;
|
|
4658
4701
|
intent: "ADJUST";
|
|
4659
4702
|
orderType: "MARKET";
|
|
4660
|
-
position: {
|
|
4661
|
-
id: string;
|
|
4662
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4663
|
-
};
|
|
4664
4703
|
legs: [{
|
|
4665
4704
|
symbol: string;
|
|
4666
4705
|
side: "BUY" | "SELL";
|
|
@@ -4668,6 +4707,7 @@ declare class Core {
|
|
|
4668
4707
|
amount: string;
|
|
4669
4708
|
reduceOnly: boolean;
|
|
4670
4709
|
id?: string | undefined;
|
|
4710
|
+
maxImpactPrice?: string | undefined;
|
|
4671
4711
|
}, ...{
|
|
4672
4712
|
symbol: string;
|
|
4673
4713
|
side: "BUY" | "SELL";
|
|
@@ -4675,6 +4715,7 @@ declare class Core {
|
|
|
4675
4715
|
amount: string;
|
|
4676
4716
|
reduceOnly: boolean;
|
|
4677
4717
|
id?: string | undefined;
|
|
4718
|
+
maxImpactPrice?: string | undefined;
|
|
4678
4719
|
}[]];
|
|
4679
4720
|
error?: string | undefined;
|
|
4680
4721
|
orders?: {
|
|
@@ -4694,6 +4735,11 @@ declare class Core {
|
|
|
4694
4735
|
errorCode?: string | undefined;
|
|
4695
4736
|
filledPrice?: string | undefined;
|
|
4696
4737
|
}[] | undefined;
|
|
4738
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4739
|
+
position?: {
|
|
4740
|
+
id: string;
|
|
4741
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4742
|
+
} | undefined;
|
|
4697
4743
|
} | {
|
|
4698
4744
|
id: string;
|
|
4699
4745
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4702,10 +4748,6 @@ declare class Core {
|
|
|
4702
4748
|
updatedAt: string;
|
|
4703
4749
|
intent: "CLOSE";
|
|
4704
4750
|
orderType: "MARKET";
|
|
4705
|
-
position: {
|
|
4706
|
-
id: string;
|
|
4707
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4708
|
-
};
|
|
4709
4751
|
error?: string | undefined;
|
|
4710
4752
|
orders?: {
|
|
4711
4753
|
id: string;
|
|
@@ -4724,6 +4766,11 @@ declare class Core {
|
|
|
4724
4766
|
errorCode?: string | undefined;
|
|
4725
4767
|
filledPrice?: string | undefined;
|
|
4726
4768
|
}[] | undefined;
|
|
4769
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4770
|
+
position?: {
|
|
4771
|
+
id: string;
|
|
4772
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4773
|
+
} | undefined;
|
|
4727
4774
|
} | {
|
|
4728
4775
|
id: string;
|
|
4729
4776
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4732,10 +4779,6 @@ declare class Core {
|
|
|
4732
4779
|
updatedAt: string;
|
|
4733
4780
|
intent: "REVERSE";
|
|
4734
4781
|
orderType: "MARKET";
|
|
4735
|
-
position: {
|
|
4736
|
-
id: string;
|
|
4737
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4738
|
-
};
|
|
4739
4782
|
error?: string | undefined;
|
|
4740
4783
|
orders?: {
|
|
4741
4784
|
id: string;
|
|
@@ -4754,6 +4797,11 @@ declare class Core {
|
|
|
4754
4797
|
errorCode?: string | undefined;
|
|
4755
4798
|
filledPrice?: string | undefined;
|
|
4756
4799
|
}[] | undefined;
|
|
4800
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4801
|
+
position?: {
|
|
4802
|
+
id: string;
|
|
4803
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4804
|
+
} | undefined;
|
|
4757
4805
|
};
|
|
4758
4806
|
}>;
|
|
4759
4807
|
close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
|
|
@@ -4772,6 +4820,7 @@ declare class Core {
|
|
|
4772
4820
|
amount: string;
|
|
4773
4821
|
reduceOnly: boolean;
|
|
4774
4822
|
id?: string | undefined;
|
|
4823
|
+
maxImpactPrice?: string | undefined;
|
|
4775
4824
|
}, ...{
|
|
4776
4825
|
symbol: string;
|
|
4777
4826
|
side: "BUY" | "SELL";
|
|
@@ -4779,6 +4828,7 @@ declare class Core {
|
|
|
4779
4828
|
amount: string;
|
|
4780
4829
|
reduceOnly: boolean;
|
|
4781
4830
|
id?: string | undefined;
|
|
4831
|
+
maxImpactPrice?: string | undefined;
|
|
4782
4832
|
}[]];
|
|
4783
4833
|
error?: string | undefined;
|
|
4784
4834
|
orders?: {
|
|
@@ -4798,6 +4848,10 @@ declare class Core {
|
|
|
4798
4848
|
errorCode?: string | undefined;
|
|
4799
4849
|
filledPrice?: string | undefined;
|
|
4800
4850
|
}[] | undefined;
|
|
4851
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4852
|
+
position?: {
|
|
4853
|
+
id: string;
|
|
4854
|
+
} | undefined;
|
|
4801
4855
|
} | {
|
|
4802
4856
|
id: string;
|
|
4803
4857
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4806,10 +4860,6 @@ declare class Core {
|
|
|
4806
4860
|
updatedAt: string;
|
|
4807
4861
|
intent: "ADJUST";
|
|
4808
4862
|
orderType: "MARKET";
|
|
4809
|
-
position: {
|
|
4810
|
-
id: string;
|
|
4811
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4812
|
-
};
|
|
4813
4863
|
legs: [{
|
|
4814
4864
|
symbol: string;
|
|
4815
4865
|
side: "BUY" | "SELL";
|
|
@@ -4817,6 +4867,7 @@ declare class Core {
|
|
|
4817
4867
|
amount: string;
|
|
4818
4868
|
reduceOnly: boolean;
|
|
4819
4869
|
id?: string | undefined;
|
|
4870
|
+
maxImpactPrice?: string | undefined;
|
|
4820
4871
|
}, ...{
|
|
4821
4872
|
symbol: string;
|
|
4822
4873
|
side: "BUY" | "SELL";
|
|
@@ -4824,6 +4875,7 @@ declare class Core {
|
|
|
4824
4875
|
amount: string;
|
|
4825
4876
|
reduceOnly: boolean;
|
|
4826
4877
|
id?: string | undefined;
|
|
4878
|
+
maxImpactPrice?: string | undefined;
|
|
4827
4879
|
}[]];
|
|
4828
4880
|
error?: string | undefined;
|
|
4829
4881
|
orders?: {
|
|
@@ -4843,6 +4895,11 @@ declare class Core {
|
|
|
4843
4895
|
errorCode?: string | undefined;
|
|
4844
4896
|
filledPrice?: string | undefined;
|
|
4845
4897
|
}[] | undefined;
|
|
4898
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4899
|
+
position?: {
|
|
4900
|
+
id: string;
|
|
4901
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4902
|
+
} | undefined;
|
|
4846
4903
|
} | {
|
|
4847
4904
|
id: string;
|
|
4848
4905
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4851,10 +4908,6 @@ declare class Core {
|
|
|
4851
4908
|
updatedAt: string;
|
|
4852
4909
|
intent: "CLOSE";
|
|
4853
4910
|
orderType: "MARKET";
|
|
4854
|
-
position: {
|
|
4855
|
-
id: string;
|
|
4856
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4857
|
-
};
|
|
4858
4911
|
error?: string | undefined;
|
|
4859
4912
|
orders?: {
|
|
4860
4913
|
id: string;
|
|
@@ -4873,6 +4926,11 @@ declare class Core {
|
|
|
4873
4926
|
errorCode?: string | undefined;
|
|
4874
4927
|
filledPrice?: string | undefined;
|
|
4875
4928
|
}[] | undefined;
|
|
4929
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4930
|
+
position?: {
|
|
4931
|
+
id: string;
|
|
4932
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4933
|
+
} | undefined;
|
|
4876
4934
|
} | {
|
|
4877
4935
|
id: string;
|
|
4878
4936
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4881,10 +4939,6 @@ declare class Core {
|
|
|
4881
4939
|
updatedAt: string;
|
|
4882
4940
|
intent: "REVERSE";
|
|
4883
4941
|
orderType: "MARKET";
|
|
4884
|
-
position: {
|
|
4885
|
-
id: string;
|
|
4886
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4887
|
-
};
|
|
4888
4942
|
error?: string | undefined;
|
|
4889
4943
|
orders?: {
|
|
4890
4944
|
id: string;
|
|
@@ -4903,6 +4957,11 @@ declare class Core {
|
|
|
4903
4957
|
errorCode?: string | undefined;
|
|
4904
4958
|
filledPrice?: string | undefined;
|
|
4905
4959
|
}[] | undefined;
|
|
4960
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
4961
|
+
position?: {
|
|
4962
|
+
id: string;
|
|
4963
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4964
|
+
} | undefined;
|
|
4906
4965
|
};
|
|
4907
4966
|
}>;
|
|
4908
4967
|
reverse: (positionId: string, body: HttpTypes.CreateTradeReverse, headers?: ClientHeaders) => Promise<{
|
|
@@ -4921,6 +4980,7 @@ declare class Core {
|
|
|
4921
4980
|
amount: string;
|
|
4922
4981
|
reduceOnly: boolean;
|
|
4923
4982
|
id?: string | undefined;
|
|
4983
|
+
maxImpactPrice?: string | undefined;
|
|
4924
4984
|
}, ...{
|
|
4925
4985
|
symbol: string;
|
|
4926
4986
|
side: "BUY" | "SELL";
|
|
@@ -4928,6 +4988,7 @@ declare class Core {
|
|
|
4928
4988
|
amount: string;
|
|
4929
4989
|
reduceOnly: boolean;
|
|
4930
4990
|
id?: string | undefined;
|
|
4991
|
+
maxImpactPrice?: string | undefined;
|
|
4931
4992
|
}[]];
|
|
4932
4993
|
error?: string | undefined;
|
|
4933
4994
|
orders?: {
|
|
@@ -4947,6 +5008,10 @@ declare class Core {
|
|
|
4947
5008
|
errorCode?: string | undefined;
|
|
4948
5009
|
filledPrice?: string | undefined;
|
|
4949
5010
|
}[] | undefined;
|
|
5011
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5012
|
+
position?: {
|
|
5013
|
+
id: string;
|
|
5014
|
+
} | undefined;
|
|
4950
5015
|
} | {
|
|
4951
5016
|
id: string;
|
|
4952
5017
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -4955,10 +5020,6 @@ declare class Core {
|
|
|
4955
5020
|
updatedAt: string;
|
|
4956
5021
|
intent: "ADJUST";
|
|
4957
5022
|
orderType: "MARKET";
|
|
4958
|
-
position: {
|
|
4959
|
-
id: string;
|
|
4960
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
4961
|
-
};
|
|
4962
5023
|
legs: [{
|
|
4963
5024
|
symbol: string;
|
|
4964
5025
|
side: "BUY" | "SELL";
|
|
@@ -4966,6 +5027,7 @@ declare class Core {
|
|
|
4966
5027
|
amount: string;
|
|
4967
5028
|
reduceOnly: boolean;
|
|
4968
5029
|
id?: string | undefined;
|
|
5030
|
+
maxImpactPrice?: string | undefined;
|
|
4969
5031
|
}, ...{
|
|
4970
5032
|
symbol: string;
|
|
4971
5033
|
side: "BUY" | "SELL";
|
|
@@ -4973,6 +5035,7 @@ declare class Core {
|
|
|
4973
5035
|
amount: string;
|
|
4974
5036
|
reduceOnly: boolean;
|
|
4975
5037
|
id?: string | undefined;
|
|
5038
|
+
maxImpactPrice?: string | undefined;
|
|
4976
5039
|
}[]];
|
|
4977
5040
|
error?: string | undefined;
|
|
4978
5041
|
orders?: {
|
|
@@ -4992,6 +5055,11 @@ declare class Core {
|
|
|
4992
5055
|
errorCode?: string | undefined;
|
|
4993
5056
|
filledPrice?: string | undefined;
|
|
4994
5057
|
}[] | undefined;
|
|
5058
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5059
|
+
position?: {
|
|
5060
|
+
id: string;
|
|
5061
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5062
|
+
} | undefined;
|
|
4995
5063
|
} | {
|
|
4996
5064
|
id: string;
|
|
4997
5065
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -5000,10 +5068,6 @@ declare class Core {
|
|
|
5000
5068
|
updatedAt: string;
|
|
5001
5069
|
intent: "CLOSE";
|
|
5002
5070
|
orderType: "MARKET";
|
|
5003
|
-
position: {
|
|
5004
|
-
id: string;
|
|
5005
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5006
|
-
};
|
|
5007
5071
|
error?: string | undefined;
|
|
5008
5072
|
orders?: {
|
|
5009
5073
|
id: string;
|
|
@@ -5022,6 +5086,11 @@ declare class Core {
|
|
|
5022
5086
|
errorCode?: string | undefined;
|
|
5023
5087
|
filledPrice?: string | undefined;
|
|
5024
5088
|
}[] | undefined;
|
|
5089
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5090
|
+
position?: {
|
|
5091
|
+
id: string;
|
|
5092
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5093
|
+
} | undefined;
|
|
5025
5094
|
} | {
|
|
5026
5095
|
id: string;
|
|
5027
5096
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -5030,10 +5099,6 @@ declare class Core {
|
|
|
5030
5099
|
updatedAt: string;
|
|
5031
5100
|
intent: "REVERSE";
|
|
5032
5101
|
orderType: "MARKET";
|
|
5033
|
-
position: {
|
|
5034
|
-
id: string;
|
|
5035
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5036
|
-
};
|
|
5037
5102
|
error?: string | undefined;
|
|
5038
5103
|
orders?: {
|
|
5039
5104
|
id: string;
|
|
@@ -5052,6 +5117,11 @@ declare class Core {
|
|
|
5052
5117
|
errorCode?: string | undefined;
|
|
5053
5118
|
filledPrice?: string | undefined;
|
|
5054
5119
|
}[] | undefined;
|
|
5120
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5121
|
+
position?: {
|
|
5122
|
+
id: string;
|
|
5123
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5124
|
+
} | undefined;
|
|
5055
5125
|
};
|
|
5056
5126
|
}>;
|
|
5057
5127
|
closeAll: (body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders) => Promise<{
|
|
@@ -5070,6 +5140,7 @@ declare class Core {
|
|
|
5070
5140
|
amount: string;
|
|
5071
5141
|
reduceOnly: boolean;
|
|
5072
5142
|
id?: string | undefined;
|
|
5143
|
+
maxImpactPrice?: string | undefined;
|
|
5073
5144
|
}, ...{
|
|
5074
5145
|
symbol: string;
|
|
5075
5146
|
side: "BUY" | "SELL";
|
|
@@ -5077,6 +5148,7 @@ declare class Core {
|
|
|
5077
5148
|
amount: string;
|
|
5078
5149
|
reduceOnly: boolean;
|
|
5079
5150
|
id?: string | undefined;
|
|
5151
|
+
maxImpactPrice?: string | undefined;
|
|
5080
5152
|
}[]];
|
|
5081
5153
|
error?: string | undefined;
|
|
5082
5154
|
orders?: {
|
|
@@ -5096,6 +5168,10 @@ declare class Core {
|
|
|
5096
5168
|
errorCode?: string | undefined;
|
|
5097
5169
|
filledPrice?: string | undefined;
|
|
5098
5170
|
}[] | undefined;
|
|
5171
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5172
|
+
position?: {
|
|
5173
|
+
id: string;
|
|
5174
|
+
} | undefined;
|
|
5099
5175
|
} | {
|
|
5100
5176
|
id: string;
|
|
5101
5177
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -5104,10 +5180,6 @@ declare class Core {
|
|
|
5104
5180
|
updatedAt: string;
|
|
5105
5181
|
intent: "ADJUST";
|
|
5106
5182
|
orderType: "MARKET";
|
|
5107
|
-
position: {
|
|
5108
|
-
id: string;
|
|
5109
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5110
|
-
};
|
|
5111
5183
|
legs: [{
|
|
5112
5184
|
symbol: string;
|
|
5113
5185
|
side: "BUY" | "SELL";
|
|
@@ -5115,6 +5187,7 @@ declare class Core {
|
|
|
5115
5187
|
amount: string;
|
|
5116
5188
|
reduceOnly: boolean;
|
|
5117
5189
|
id?: string | undefined;
|
|
5190
|
+
maxImpactPrice?: string | undefined;
|
|
5118
5191
|
}, ...{
|
|
5119
5192
|
symbol: string;
|
|
5120
5193
|
side: "BUY" | "SELL";
|
|
@@ -5122,6 +5195,7 @@ declare class Core {
|
|
|
5122
5195
|
amount: string;
|
|
5123
5196
|
reduceOnly: boolean;
|
|
5124
5197
|
id?: string | undefined;
|
|
5198
|
+
maxImpactPrice?: string | undefined;
|
|
5125
5199
|
}[]];
|
|
5126
5200
|
error?: string | undefined;
|
|
5127
5201
|
orders?: {
|
|
@@ -5141,6 +5215,11 @@ declare class Core {
|
|
|
5141
5215
|
errorCode?: string | undefined;
|
|
5142
5216
|
filledPrice?: string | undefined;
|
|
5143
5217
|
}[] | undefined;
|
|
5218
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5219
|
+
position?: {
|
|
5220
|
+
id: string;
|
|
5221
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5222
|
+
} | undefined;
|
|
5144
5223
|
} | {
|
|
5145
5224
|
id: string;
|
|
5146
5225
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -5149,10 +5228,6 @@ declare class Core {
|
|
|
5149
5228
|
updatedAt: string;
|
|
5150
5229
|
intent: "CLOSE";
|
|
5151
5230
|
orderType: "MARKET";
|
|
5152
|
-
position: {
|
|
5153
|
-
id: string;
|
|
5154
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5155
|
-
};
|
|
5156
5231
|
error?: string | undefined;
|
|
5157
5232
|
orders?: {
|
|
5158
5233
|
id: string;
|
|
@@ -5171,6 +5246,11 @@ declare class Core {
|
|
|
5171
5246
|
errorCode?: string | undefined;
|
|
5172
5247
|
filledPrice?: string | undefined;
|
|
5173
5248
|
}[] | undefined;
|
|
5249
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5250
|
+
position?: {
|
|
5251
|
+
id: string;
|
|
5252
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5253
|
+
} | undefined;
|
|
5174
5254
|
} | {
|
|
5175
5255
|
id: string;
|
|
5176
5256
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -5179,10 +5259,6 @@ declare class Core {
|
|
|
5179
5259
|
updatedAt: string;
|
|
5180
5260
|
intent: "REVERSE";
|
|
5181
5261
|
orderType: "MARKET";
|
|
5182
|
-
position: {
|
|
5183
|
-
id: string;
|
|
5184
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5185
|
-
};
|
|
5186
5262
|
error?: string | undefined;
|
|
5187
5263
|
orders?: {
|
|
5188
5264
|
id: string;
|
|
@@ -5201,6 +5277,11 @@ declare class Core {
|
|
|
5201
5277
|
errorCode?: string | undefined;
|
|
5202
5278
|
filledPrice?: string | undefined;
|
|
5203
5279
|
}[] | undefined;
|
|
5280
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
5281
|
+
position?: {
|
|
5282
|
+
id: string;
|
|
5283
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
5284
|
+
} | undefined;
|
|
5204
5285
|
})[];
|
|
5205
5286
|
}>;
|
|
5206
5287
|
setLeverage: (body: HttpTypes.SetLeverage, headers?: ClientHeaders) => Promise<Record<string, never>>;
|