@pear-protocol/core-sdk 2.15.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.d.ts +941 -168
- package/dist/core/index.js +9 -0
- package/dist/vaults/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare class Core {
|
|
|
13
13
|
performance: (tradeAccountId: string, query?: HttpTypes.TraderPerformanceQueryInput, headers?: ClientHeaders) => Promise<{
|
|
14
14
|
points: {
|
|
15
15
|
at: string;
|
|
16
|
+
hasGap: boolean;
|
|
16
17
|
equityUsd?: `-${string}` | `+${string}` | undefined;
|
|
17
18
|
pnlUsd?: `-${string}` | `+${string}` | undefined;
|
|
18
19
|
roiPercent?: `-${string}` | `+${string}` | undefined;
|
|
@@ -24,8 +25,8 @@ declare class Core {
|
|
|
24
25
|
positions: {
|
|
25
26
|
status: "CLOSED";
|
|
26
27
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
27
|
-
netPnl: `-${string}` | `+${string}`;
|
|
28
28
|
positionId: string;
|
|
29
|
+
netPnl: `-${string}` | `+${string}`;
|
|
29
30
|
closedAt: string;
|
|
30
31
|
grossPnl: `-${string}` | `+${string}`;
|
|
31
32
|
openedAt: string;
|
|
@@ -39,7 +40,7 @@ declare class Core {
|
|
|
39
40
|
entryVwap?: string | undefined;
|
|
40
41
|
exitVwap?: string | undefined;
|
|
41
42
|
}[];
|
|
42
|
-
closedReason?: "
|
|
43
|
+
closedReason?: "USER" | "LIQUIDATED" | "NETTED" | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
nextCursor?: string | undefined;
|
|
45
46
|
}>;
|
|
@@ -90,8 +91,8 @@ declare class Core {
|
|
|
90
91
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
91
92
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
92
93
|
updatedAt: string;
|
|
93
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
94
94
|
intent: "OPEN";
|
|
95
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
95
96
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
96
97
|
condition: {
|
|
97
98
|
type: "ratio";
|
|
@@ -166,12 +167,12 @@ declare class Core {
|
|
|
166
167
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT";
|
|
167
168
|
}[];
|
|
168
169
|
};
|
|
170
|
+
cancelledAt?: string | undefined;
|
|
171
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
169
172
|
ladderId?: string | undefined;
|
|
170
173
|
ladderIndex?: number | undefined;
|
|
171
174
|
parentTriggerId?: string | undefined;
|
|
172
175
|
triggeredAt?: string | undefined;
|
|
173
|
-
cancelledAt?: string | undefined;
|
|
174
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
175
176
|
} | {
|
|
176
177
|
type: "MARKET";
|
|
177
178
|
id: string;
|
|
@@ -179,8 +180,8 @@ declare class Core {
|
|
|
179
180
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
180
181
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
181
182
|
updatedAt: string;
|
|
182
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
183
183
|
intent: "ADJUST";
|
|
184
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
184
185
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
185
186
|
condition: {
|
|
186
187
|
type: "ratio";
|
|
@@ -217,6 +218,7 @@ declare class Core {
|
|
|
217
218
|
priceSource: "mid" | "mark";
|
|
218
219
|
track: "PEAK" | "TROUGH";
|
|
219
220
|
threshold: number;
|
|
221
|
+
onPositionResize: "cancel" | "keep";
|
|
220
222
|
};
|
|
221
223
|
} | {
|
|
222
224
|
type: "upnl";
|
|
@@ -224,6 +226,7 @@ declare class Core {
|
|
|
224
226
|
priceSource: "mid" | "mark";
|
|
225
227
|
track: "PEAK" | "TROUGH";
|
|
226
228
|
threshold: number;
|
|
229
|
+
onPositionResize: "cancel" | "keep";
|
|
227
230
|
};
|
|
228
231
|
} | {
|
|
229
232
|
type: "upnl_bps";
|
|
@@ -278,12 +281,12 @@ declare class Core {
|
|
|
278
281
|
id?: string | undefined;
|
|
279
282
|
}[]];
|
|
280
283
|
};
|
|
284
|
+
cancelledAt?: string | undefined;
|
|
285
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
281
286
|
ladderId?: string | undefined;
|
|
282
287
|
ladderIndex?: number | undefined;
|
|
283
288
|
parentTriggerId?: string | undefined;
|
|
284
289
|
triggeredAt?: string | undefined;
|
|
285
|
-
cancelledAt?: string | undefined;
|
|
286
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
287
290
|
trailing?: {
|
|
288
291
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
289
292
|
deltaValue: number;
|
|
@@ -299,8 +302,8 @@ declare class Core {
|
|
|
299
302
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
300
303
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
301
304
|
updatedAt: string;
|
|
302
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
303
305
|
intent: "CLOSE";
|
|
306
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
304
307
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
305
308
|
condition: {
|
|
306
309
|
type: "ratio";
|
|
@@ -337,6 +340,7 @@ declare class Core {
|
|
|
337
340
|
priceSource: "mid" | "mark";
|
|
338
341
|
track: "PEAK" | "TROUGH";
|
|
339
342
|
threshold: number;
|
|
343
|
+
onPositionResize: "cancel" | "keep";
|
|
340
344
|
};
|
|
341
345
|
} | {
|
|
342
346
|
type: "upnl";
|
|
@@ -344,6 +348,7 @@ declare class Core {
|
|
|
344
348
|
priceSource: "mid" | "mark";
|
|
345
349
|
track: "PEAK" | "TROUGH";
|
|
346
350
|
threshold: number;
|
|
351
|
+
onPositionResize: "cancel" | "keep";
|
|
347
352
|
};
|
|
348
353
|
} | {
|
|
349
354
|
type: "upnl_bps";
|
|
@@ -379,11 +384,13 @@ declare class Core {
|
|
|
379
384
|
type: "notional_trailing";
|
|
380
385
|
data: {
|
|
381
386
|
priceSource: "mid" | "mark";
|
|
387
|
+
onPositionResize: "cancel" | "keep";
|
|
382
388
|
};
|
|
383
389
|
} | {
|
|
384
390
|
type: "upnl_trailing";
|
|
385
391
|
data: {
|
|
386
392
|
priceSource: "mid" | "mark";
|
|
393
|
+
onPositionResize: "cancel" | "keep";
|
|
387
394
|
};
|
|
388
395
|
} | {
|
|
389
396
|
type: "upnl_bps_trailing";
|
|
@@ -421,12 +428,12 @@ declare class Core {
|
|
|
421
428
|
initialExposure: Record<string, `-${string}` | `+${string}`>;
|
|
422
429
|
};
|
|
423
430
|
};
|
|
431
|
+
cancelledAt?: string | undefined;
|
|
432
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
424
433
|
ladderId?: string | undefined;
|
|
425
434
|
ladderIndex?: number | undefined;
|
|
426
435
|
parentTriggerId?: string | undefined;
|
|
427
436
|
triggeredAt?: string | undefined;
|
|
428
|
-
cancelledAt?: string | undefined;
|
|
429
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
430
437
|
trailing?: {
|
|
431
438
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
432
439
|
deltaValue: number;
|
|
@@ -442,8 +449,8 @@ declare class Core {
|
|
|
442
449
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
443
450
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
444
451
|
updatedAt: string;
|
|
445
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
446
452
|
intent: "ADJUST";
|
|
453
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
447
454
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
448
455
|
condition: {
|
|
449
456
|
type: "ratio";
|
|
@@ -480,6 +487,7 @@ declare class Core {
|
|
|
480
487
|
priceSource: "mid" | "mark";
|
|
481
488
|
track: "PEAK" | "TROUGH";
|
|
482
489
|
threshold: number;
|
|
490
|
+
onPositionResize: "cancel" | "keep";
|
|
483
491
|
};
|
|
484
492
|
} | {
|
|
485
493
|
type: "upnl";
|
|
@@ -487,6 +495,7 @@ declare class Core {
|
|
|
487
495
|
priceSource: "mid" | "mark";
|
|
488
496
|
track: "PEAK" | "TROUGH";
|
|
489
497
|
threshold: number;
|
|
498
|
+
onPositionResize: "cancel" | "keep";
|
|
490
499
|
};
|
|
491
500
|
} | {
|
|
492
501
|
type: "upnl_bps";
|
|
@@ -545,12 +554,12 @@ declare class Core {
|
|
|
545
554
|
targetNotional: string;
|
|
546
555
|
};
|
|
547
556
|
scheduleId?: string | undefined;
|
|
557
|
+
cancelledAt?: string | undefined;
|
|
558
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
548
559
|
ladderId?: string | undefined;
|
|
549
560
|
ladderIndex?: number | undefined;
|
|
550
561
|
parentTriggerId?: string | undefined;
|
|
551
562
|
triggeredAt?: string | undefined;
|
|
552
|
-
cancelledAt?: string | undefined;
|
|
553
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
554
563
|
trailing?: {
|
|
555
564
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
556
565
|
deltaValue: number;
|
|
@@ -566,8 +575,8 @@ declare class Core {
|
|
|
566
575
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
567
576
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
568
577
|
updatedAt: string;
|
|
569
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
570
578
|
intent: "CLOSE";
|
|
579
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
571
580
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
572
581
|
condition: {
|
|
573
582
|
type: "ratio";
|
|
@@ -604,6 +613,7 @@ declare class Core {
|
|
|
604
613
|
priceSource: "mid" | "mark";
|
|
605
614
|
track: "PEAK" | "TROUGH";
|
|
606
615
|
threshold: number;
|
|
616
|
+
onPositionResize: "cancel" | "keep";
|
|
607
617
|
};
|
|
608
618
|
} | {
|
|
609
619
|
type: "upnl";
|
|
@@ -611,6 +621,7 @@ declare class Core {
|
|
|
611
621
|
priceSource: "mid" | "mark";
|
|
612
622
|
track: "PEAK" | "TROUGH";
|
|
613
623
|
threshold: number;
|
|
624
|
+
onPositionResize: "cancel" | "keep";
|
|
614
625
|
};
|
|
615
626
|
} | {
|
|
616
627
|
type: "upnl_bps";
|
|
@@ -646,11 +657,13 @@ declare class Core {
|
|
|
646
657
|
type: "notional_trailing";
|
|
647
658
|
data: {
|
|
648
659
|
priceSource: "mid" | "mark";
|
|
660
|
+
onPositionResize: "cancel" | "keep";
|
|
649
661
|
};
|
|
650
662
|
} | {
|
|
651
663
|
type: "upnl_trailing";
|
|
652
664
|
data: {
|
|
653
665
|
priceSource: "mid" | "mark";
|
|
666
|
+
onPositionResize: "cancel" | "keep";
|
|
654
667
|
};
|
|
655
668
|
} | {
|
|
656
669
|
type: "upnl_bps_trailing";
|
|
@@ -695,12 +708,12 @@ declare class Core {
|
|
|
695
708
|
};
|
|
696
709
|
};
|
|
697
710
|
scheduleId?: string | undefined;
|
|
711
|
+
cancelledAt?: string | undefined;
|
|
712
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
698
713
|
ladderId?: string | undefined;
|
|
699
714
|
ladderIndex?: number | undefined;
|
|
700
715
|
parentTriggerId?: string | undefined;
|
|
701
716
|
triggeredAt?: string | undefined;
|
|
702
|
-
cancelledAt?: string | undefined;
|
|
703
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
704
717
|
trailing?: {
|
|
705
718
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
706
719
|
deltaValue: number;
|
|
@@ -713,7 +726,7 @@ declare class Core {
|
|
|
713
726
|
schedules: ({
|
|
714
727
|
id: string;
|
|
715
728
|
createdAt: string;
|
|
716
|
-
status: "ACTIVE" | "
|
|
729
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
717
730
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
718
731
|
legs: {
|
|
719
732
|
symbol: string;
|
|
@@ -722,51 +735,53 @@ declare class Core {
|
|
|
722
735
|
id?: string | undefined;
|
|
723
736
|
}[];
|
|
724
737
|
updatedAt: string;
|
|
725
|
-
|
|
738
|
+
strategy: "TWAP";
|
|
726
739
|
intent: "OPEN";
|
|
740
|
+
executionType: "MARKET";
|
|
741
|
+
positionKey: string;
|
|
742
|
+
startAt: string;
|
|
743
|
+
endAt: string;
|
|
727
744
|
sliceIntervalSec: number;
|
|
745
|
+
sliceCount: number;
|
|
728
746
|
randomization: {
|
|
729
747
|
timingJitterBps: number;
|
|
730
748
|
sizeJitterBps: number;
|
|
731
749
|
};
|
|
732
750
|
targetNotional: string;
|
|
733
|
-
strategy: "TWAP";
|
|
734
|
-
executionType: "MARKET";
|
|
735
|
-
startAt: string;
|
|
736
|
-
endAt: string;
|
|
737
|
-
sliceCount: number;
|
|
738
751
|
remainingNotional: string;
|
|
752
|
+
lastSliceAt?: string | undefined;
|
|
739
753
|
cancelledAt?: string | undefined;
|
|
740
754
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
741
|
-
|
|
755
|
+
failedAt?: string | undefined;
|
|
742
756
|
} | {
|
|
743
757
|
id: string;
|
|
744
758
|
createdAt: string;
|
|
745
|
-
status: "ACTIVE" | "
|
|
759
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
746
760
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
747
761
|
updatedAt: string;
|
|
748
762
|
positionId: string;
|
|
749
|
-
|
|
763
|
+
strategy: "TWAP";
|
|
750
764
|
intent: "CLOSE";
|
|
751
|
-
|
|
765
|
+
executionType: "MARKET";
|
|
766
|
+
positionKey: string;
|
|
767
|
+
startAt: string;
|
|
768
|
+
endAt: string;
|
|
752
769
|
sliceIntervalSec: number;
|
|
770
|
+
sliceCount: number;
|
|
753
771
|
randomization: {
|
|
754
772
|
timingJitterBps: number;
|
|
755
773
|
sizeJitterBps: number;
|
|
756
774
|
};
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
startAt: string;
|
|
760
|
-
endAt: string;
|
|
761
|
-
sliceCount: number;
|
|
775
|
+
initialExposure: Record<string, `-${string}` | `+${string}`>;
|
|
776
|
+
lastSliceAt?: string | undefined;
|
|
762
777
|
cancelledAt?: string | undefined;
|
|
763
778
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
764
|
-
|
|
779
|
+
failedAt?: string | undefined;
|
|
765
780
|
})[];
|
|
766
781
|
ladders: {
|
|
767
782
|
id: string;
|
|
768
783
|
createdAt: string;
|
|
769
|
-
status: "ACTIVE" | "
|
|
784
|
+
status: "ACTIVE" | "COMPLETED" | "CANCELLED";
|
|
770
785
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
771
786
|
updatedAt: string;
|
|
772
787
|
positionKey: string;
|
|
@@ -783,8 +798,8 @@ declare class Core {
|
|
|
783
798
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
784
799
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
785
800
|
updatedAt: string;
|
|
786
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
787
801
|
intent: "OPEN";
|
|
802
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
788
803
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
789
804
|
condition: {
|
|
790
805
|
type: "ratio";
|
|
@@ -859,12 +874,12 @@ declare class Core {
|
|
|
859
874
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT";
|
|
860
875
|
}[];
|
|
861
876
|
};
|
|
877
|
+
cancelledAt?: string | undefined;
|
|
878
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
862
879
|
ladderId?: string | undefined;
|
|
863
880
|
ladderIndex?: number | undefined;
|
|
864
881
|
parentTriggerId?: string | undefined;
|
|
865
882
|
triggeredAt?: string | undefined;
|
|
866
|
-
cancelledAt?: string | undefined;
|
|
867
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
868
883
|
} | {
|
|
869
884
|
type: "MARKET";
|
|
870
885
|
id: string;
|
|
@@ -872,8 +887,8 @@ declare class Core {
|
|
|
872
887
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
873
888
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
874
889
|
updatedAt: string;
|
|
875
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
876
890
|
intent: "ADJUST";
|
|
891
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
877
892
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
878
893
|
condition: {
|
|
879
894
|
type: "ratio";
|
|
@@ -910,6 +925,7 @@ declare class Core {
|
|
|
910
925
|
priceSource: "mid" | "mark";
|
|
911
926
|
track: "PEAK" | "TROUGH";
|
|
912
927
|
threshold: number;
|
|
928
|
+
onPositionResize: "cancel" | "keep";
|
|
913
929
|
};
|
|
914
930
|
} | {
|
|
915
931
|
type: "upnl";
|
|
@@ -917,6 +933,7 @@ declare class Core {
|
|
|
917
933
|
priceSource: "mid" | "mark";
|
|
918
934
|
track: "PEAK" | "TROUGH";
|
|
919
935
|
threshold: number;
|
|
936
|
+
onPositionResize: "cancel" | "keep";
|
|
920
937
|
};
|
|
921
938
|
} | {
|
|
922
939
|
type: "upnl_bps";
|
|
@@ -971,12 +988,12 @@ declare class Core {
|
|
|
971
988
|
id?: string | undefined;
|
|
972
989
|
}[]];
|
|
973
990
|
};
|
|
991
|
+
cancelledAt?: string | undefined;
|
|
992
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
974
993
|
ladderId?: string | undefined;
|
|
975
994
|
ladderIndex?: number | undefined;
|
|
976
995
|
parentTriggerId?: string | undefined;
|
|
977
996
|
triggeredAt?: string | undefined;
|
|
978
|
-
cancelledAt?: string | undefined;
|
|
979
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
980
997
|
trailing?: {
|
|
981
998
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
982
999
|
deltaValue: number;
|
|
@@ -992,8 +1009,8 @@ declare class Core {
|
|
|
992
1009
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
993
1010
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
994
1011
|
updatedAt: string;
|
|
995
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
996
1012
|
intent: "CLOSE";
|
|
1013
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
997
1014
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
998
1015
|
condition: {
|
|
999
1016
|
type: "ratio";
|
|
@@ -1030,6 +1047,7 @@ declare class Core {
|
|
|
1030
1047
|
priceSource: "mid" | "mark";
|
|
1031
1048
|
track: "PEAK" | "TROUGH";
|
|
1032
1049
|
threshold: number;
|
|
1050
|
+
onPositionResize: "cancel" | "keep";
|
|
1033
1051
|
};
|
|
1034
1052
|
} | {
|
|
1035
1053
|
type: "upnl";
|
|
@@ -1037,6 +1055,7 @@ declare class Core {
|
|
|
1037
1055
|
priceSource: "mid" | "mark";
|
|
1038
1056
|
track: "PEAK" | "TROUGH";
|
|
1039
1057
|
threshold: number;
|
|
1058
|
+
onPositionResize: "cancel" | "keep";
|
|
1040
1059
|
};
|
|
1041
1060
|
} | {
|
|
1042
1061
|
type: "upnl_bps";
|
|
@@ -1072,11 +1091,13 @@ declare class Core {
|
|
|
1072
1091
|
type: "notional_trailing";
|
|
1073
1092
|
data: {
|
|
1074
1093
|
priceSource: "mid" | "mark";
|
|
1094
|
+
onPositionResize: "cancel" | "keep";
|
|
1075
1095
|
};
|
|
1076
1096
|
} | {
|
|
1077
1097
|
type: "upnl_trailing";
|
|
1078
1098
|
data: {
|
|
1079
1099
|
priceSource: "mid" | "mark";
|
|
1100
|
+
onPositionResize: "cancel" | "keep";
|
|
1080
1101
|
};
|
|
1081
1102
|
} | {
|
|
1082
1103
|
type: "upnl_bps_trailing";
|
|
@@ -1114,12 +1135,12 @@ declare class Core {
|
|
|
1114
1135
|
initialExposure: Record<string, `-${string}` | `+${string}`>;
|
|
1115
1136
|
};
|
|
1116
1137
|
};
|
|
1138
|
+
cancelledAt?: string | undefined;
|
|
1139
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
1117
1140
|
ladderId?: string | undefined;
|
|
1118
1141
|
ladderIndex?: number | undefined;
|
|
1119
1142
|
parentTriggerId?: string | undefined;
|
|
1120
1143
|
triggeredAt?: string | undefined;
|
|
1121
|
-
cancelledAt?: string | undefined;
|
|
1122
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
1123
1144
|
trailing?: {
|
|
1124
1145
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
1125
1146
|
deltaValue: number;
|
|
@@ -1135,8 +1156,8 @@ declare class Core {
|
|
|
1135
1156
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
1136
1157
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1137
1158
|
updatedAt: string;
|
|
1138
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1139
1159
|
intent: "ADJUST";
|
|
1160
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1140
1161
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1141
1162
|
condition: {
|
|
1142
1163
|
type: "ratio";
|
|
@@ -1173,6 +1194,7 @@ declare class Core {
|
|
|
1173
1194
|
priceSource: "mid" | "mark";
|
|
1174
1195
|
track: "PEAK" | "TROUGH";
|
|
1175
1196
|
threshold: number;
|
|
1197
|
+
onPositionResize: "cancel" | "keep";
|
|
1176
1198
|
};
|
|
1177
1199
|
} | {
|
|
1178
1200
|
type: "upnl";
|
|
@@ -1180,6 +1202,7 @@ declare class Core {
|
|
|
1180
1202
|
priceSource: "mid" | "mark";
|
|
1181
1203
|
track: "PEAK" | "TROUGH";
|
|
1182
1204
|
threshold: number;
|
|
1205
|
+
onPositionResize: "cancel" | "keep";
|
|
1183
1206
|
};
|
|
1184
1207
|
} | {
|
|
1185
1208
|
type: "upnl_bps";
|
|
@@ -1238,12 +1261,12 @@ declare class Core {
|
|
|
1238
1261
|
targetNotional: string;
|
|
1239
1262
|
};
|
|
1240
1263
|
scheduleId?: string | undefined;
|
|
1264
|
+
cancelledAt?: string | undefined;
|
|
1265
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
1241
1266
|
ladderId?: string | undefined;
|
|
1242
1267
|
ladderIndex?: number | undefined;
|
|
1243
1268
|
parentTriggerId?: string | undefined;
|
|
1244
1269
|
triggeredAt?: string | undefined;
|
|
1245
|
-
cancelledAt?: string | undefined;
|
|
1246
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
1247
1270
|
trailing?: {
|
|
1248
1271
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
1249
1272
|
deltaValue: number;
|
|
@@ -1259,8 +1282,8 @@ declare class Core {
|
|
|
1259
1282
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
1260
1283
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1261
1284
|
updatedAt: string;
|
|
1262
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1263
1285
|
intent: "CLOSE";
|
|
1286
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1264
1287
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1265
1288
|
condition: {
|
|
1266
1289
|
type: "ratio";
|
|
@@ -1297,6 +1320,7 @@ declare class Core {
|
|
|
1297
1320
|
priceSource: "mid" | "mark";
|
|
1298
1321
|
track: "PEAK" | "TROUGH";
|
|
1299
1322
|
threshold: number;
|
|
1323
|
+
onPositionResize: "cancel" | "keep";
|
|
1300
1324
|
};
|
|
1301
1325
|
} | {
|
|
1302
1326
|
type: "upnl";
|
|
@@ -1304,6 +1328,7 @@ declare class Core {
|
|
|
1304
1328
|
priceSource: "mid" | "mark";
|
|
1305
1329
|
track: "PEAK" | "TROUGH";
|
|
1306
1330
|
threshold: number;
|
|
1331
|
+
onPositionResize: "cancel" | "keep";
|
|
1307
1332
|
};
|
|
1308
1333
|
} | {
|
|
1309
1334
|
type: "upnl_bps";
|
|
@@ -1339,11 +1364,13 @@ declare class Core {
|
|
|
1339
1364
|
type: "notional_trailing";
|
|
1340
1365
|
data: {
|
|
1341
1366
|
priceSource: "mid" | "mark";
|
|
1367
|
+
onPositionResize: "cancel" | "keep";
|
|
1342
1368
|
};
|
|
1343
1369
|
} | {
|
|
1344
1370
|
type: "upnl_trailing";
|
|
1345
1371
|
data: {
|
|
1346
1372
|
priceSource: "mid" | "mark";
|
|
1373
|
+
onPositionResize: "cancel" | "keep";
|
|
1347
1374
|
};
|
|
1348
1375
|
} | {
|
|
1349
1376
|
type: "upnl_bps_trailing";
|
|
@@ -1388,12 +1415,12 @@ declare class Core {
|
|
|
1388
1415
|
};
|
|
1389
1416
|
};
|
|
1390
1417
|
scheduleId?: string | undefined;
|
|
1418
|
+
cancelledAt?: string | undefined;
|
|
1419
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
1391
1420
|
ladderId?: string | undefined;
|
|
1392
1421
|
ladderIndex?: number | undefined;
|
|
1393
1422
|
parentTriggerId?: string | undefined;
|
|
1394
1423
|
triggeredAt?: string | undefined;
|
|
1395
|
-
cancelledAt?: string | undefined;
|
|
1396
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
1397
1424
|
trailing?: {
|
|
1398
1425
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
1399
1426
|
deltaValue: number;
|
|
@@ -1412,12 +1439,14 @@ declare class Core {
|
|
|
1412
1439
|
data: {
|
|
1413
1440
|
priceSource: "mid" | "mark";
|
|
1414
1441
|
threshold: number;
|
|
1442
|
+
onPositionResize: "cancel" | "keep";
|
|
1415
1443
|
};
|
|
1416
1444
|
} | {
|
|
1417
1445
|
type: "upnl";
|
|
1418
1446
|
data: {
|
|
1419
1447
|
priceSource: "mid" | "mark";
|
|
1420
1448
|
threshold: number;
|
|
1449
|
+
onPositionResize: "cancel" | "keep";
|
|
1421
1450
|
};
|
|
1422
1451
|
} | {
|
|
1423
1452
|
type: "upnl_bps";
|
|
@@ -1426,6 +1455,7 @@ declare class Core {
|
|
|
1426
1455
|
threshold: number;
|
|
1427
1456
|
};
|
|
1428
1457
|
};
|
|
1458
|
+
closePercent?: number | undefined;
|
|
1429
1459
|
} | {
|
|
1430
1460
|
intent: "CLOSE";
|
|
1431
1461
|
type: "MARKET";
|
|
@@ -1433,11 +1463,13 @@ declare class Core {
|
|
|
1433
1463
|
type: "notional_trailing";
|
|
1434
1464
|
data: {
|
|
1435
1465
|
priceSource: "mid" | "mark";
|
|
1466
|
+
onPositionResize: "cancel" | "keep";
|
|
1436
1467
|
};
|
|
1437
1468
|
} | {
|
|
1438
1469
|
type: "upnl_trailing";
|
|
1439
1470
|
data: {
|
|
1440
1471
|
priceSource: "mid" | "mark";
|
|
1472
|
+
onPositionResize: "cancel" | "keep";
|
|
1441
1473
|
};
|
|
1442
1474
|
} | {
|
|
1443
1475
|
type: "upnl_bps_trailing";
|
|
@@ -1450,6 +1482,7 @@ declare class Core {
|
|
|
1450
1482
|
deltaValue: number;
|
|
1451
1483
|
activationValue?: number | undefined;
|
|
1452
1484
|
};
|
|
1485
|
+
closePercent?: number | undefined;
|
|
1453
1486
|
})[] | undefined;
|
|
1454
1487
|
}[];
|
|
1455
1488
|
xHandle?: string | undefined;
|
|
@@ -2379,7 +2412,7 @@ declare class Core {
|
|
|
2379
2412
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
2380
2413
|
baseBps: string;
|
|
2381
2414
|
discounts: {
|
|
2382
|
-
scope: "user" | "
|
|
2415
|
+
scope: "user" | "all" | "connector" | "client_id" | "referral";
|
|
2383
2416
|
rate: string;
|
|
2384
2417
|
}[];
|
|
2385
2418
|
finalBps: string;
|
|
@@ -2512,7 +2545,7 @@ declare class Core {
|
|
|
2512
2545
|
executions: ({
|
|
2513
2546
|
id: string;
|
|
2514
2547
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2515
|
-
status: "ACTIVE" | "
|
|
2548
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2516
2549
|
createdAt: string;
|
|
2517
2550
|
updatedAt: string;
|
|
2518
2551
|
intent: "OPEN";
|
|
@@ -2535,6 +2568,13 @@ declare class Core {
|
|
|
2535
2568
|
maxImpactPrice?: string | undefined;
|
|
2536
2569
|
}[]];
|
|
2537
2570
|
error?: string | undefined;
|
|
2571
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2572
|
+
refusedLegs?: {
|
|
2573
|
+
id: string;
|
|
2574
|
+
ticker: string;
|
|
2575
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2576
|
+
error: string;
|
|
2577
|
+
}[] | undefined;
|
|
2538
2578
|
orders?: {
|
|
2539
2579
|
id: string;
|
|
2540
2580
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2559,7 +2599,7 @@ declare class Core {
|
|
|
2559
2599
|
} | {
|
|
2560
2600
|
id: string;
|
|
2561
2601
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2562
|
-
status: "ACTIVE" | "
|
|
2602
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2563
2603
|
createdAt: string;
|
|
2564
2604
|
updatedAt: string;
|
|
2565
2605
|
intent: "ADJUST";
|
|
@@ -2582,6 +2622,13 @@ declare class Core {
|
|
|
2582
2622
|
maxImpactPrice?: string | undefined;
|
|
2583
2623
|
}[]];
|
|
2584
2624
|
error?: string | undefined;
|
|
2625
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2626
|
+
refusedLegs?: {
|
|
2627
|
+
id: string;
|
|
2628
|
+
ticker: string;
|
|
2629
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2630
|
+
error: string;
|
|
2631
|
+
}[] | undefined;
|
|
2585
2632
|
orders?: {
|
|
2586
2633
|
id: string;
|
|
2587
2634
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2607,12 +2654,19 @@ declare class Core {
|
|
|
2607
2654
|
} | {
|
|
2608
2655
|
id: string;
|
|
2609
2656
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2610
|
-
status: "ACTIVE" | "
|
|
2657
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2611
2658
|
createdAt: string;
|
|
2612
2659
|
updatedAt: string;
|
|
2613
2660
|
intent: "CLOSE";
|
|
2614
2661
|
orderType: "MARKET";
|
|
2615
2662
|
error?: string | undefined;
|
|
2663
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2664
|
+
refusedLegs?: {
|
|
2665
|
+
id: string;
|
|
2666
|
+
ticker: string;
|
|
2667
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2668
|
+
error: string;
|
|
2669
|
+
}[] | undefined;
|
|
2616
2670
|
orders?: {
|
|
2617
2671
|
id: string;
|
|
2618
2672
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2638,12 +2692,19 @@ declare class Core {
|
|
|
2638
2692
|
} | {
|
|
2639
2693
|
id: string;
|
|
2640
2694
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2641
|
-
status: "ACTIVE" | "
|
|
2695
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2642
2696
|
createdAt: string;
|
|
2643
2697
|
updatedAt: string;
|
|
2644
2698
|
intent: "REVERSE";
|
|
2645
2699
|
orderType: "MARKET";
|
|
2646
2700
|
error?: string | undefined;
|
|
2701
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2702
|
+
refusedLegs?: {
|
|
2703
|
+
id: string;
|
|
2704
|
+
ticker: string;
|
|
2705
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2706
|
+
error: string;
|
|
2707
|
+
}[] | undefined;
|
|
2647
2708
|
orders?: {
|
|
2648
2709
|
id: string;
|
|
2649
2710
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2673,7 +2734,7 @@ declare class Core {
|
|
|
2673
2734
|
execution: {
|
|
2674
2735
|
id: string;
|
|
2675
2736
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2676
|
-
status: "ACTIVE" | "
|
|
2737
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2677
2738
|
createdAt: string;
|
|
2678
2739
|
updatedAt: string;
|
|
2679
2740
|
intent: "OPEN";
|
|
@@ -2696,6 +2757,13 @@ declare class Core {
|
|
|
2696
2757
|
maxImpactPrice?: string | undefined;
|
|
2697
2758
|
}[]];
|
|
2698
2759
|
error?: string | undefined;
|
|
2760
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2761
|
+
refusedLegs?: {
|
|
2762
|
+
id: string;
|
|
2763
|
+
ticker: string;
|
|
2764
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2765
|
+
error: string;
|
|
2766
|
+
}[] | undefined;
|
|
2699
2767
|
orders?: {
|
|
2700
2768
|
id: string;
|
|
2701
2769
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2720,7 +2788,7 @@ declare class Core {
|
|
|
2720
2788
|
} | {
|
|
2721
2789
|
id: string;
|
|
2722
2790
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2723
|
-
status: "ACTIVE" | "
|
|
2791
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2724
2792
|
createdAt: string;
|
|
2725
2793
|
updatedAt: string;
|
|
2726
2794
|
intent: "ADJUST";
|
|
@@ -2743,6 +2811,13 @@ declare class Core {
|
|
|
2743
2811
|
maxImpactPrice?: string | undefined;
|
|
2744
2812
|
}[]];
|
|
2745
2813
|
error?: string | undefined;
|
|
2814
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2815
|
+
refusedLegs?: {
|
|
2816
|
+
id: string;
|
|
2817
|
+
ticker: string;
|
|
2818
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2819
|
+
error: string;
|
|
2820
|
+
}[] | undefined;
|
|
2746
2821
|
orders?: {
|
|
2747
2822
|
id: string;
|
|
2748
2823
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2768,12 +2843,19 @@ declare class Core {
|
|
|
2768
2843
|
} | {
|
|
2769
2844
|
id: string;
|
|
2770
2845
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2771
|
-
status: "ACTIVE" | "
|
|
2846
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2772
2847
|
createdAt: string;
|
|
2773
2848
|
updatedAt: string;
|
|
2774
2849
|
intent: "CLOSE";
|
|
2775
2850
|
orderType: "MARKET";
|
|
2776
2851
|
error?: string | undefined;
|
|
2852
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2853
|
+
refusedLegs?: {
|
|
2854
|
+
id: string;
|
|
2855
|
+
ticker: string;
|
|
2856
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2857
|
+
error: string;
|
|
2858
|
+
}[] | undefined;
|
|
2777
2859
|
orders?: {
|
|
2778
2860
|
id: string;
|
|
2779
2861
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2799,12 +2881,19 @@ declare class Core {
|
|
|
2799
2881
|
} | {
|
|
2800
2882
|
id: string;
|
|
2801
2883
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2802
|
-
status: "ACTIVE" | "
|
|
2884
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2803
2885
|
createdAt: string;
|
|
2804
2886
|
updatedAt: string;
|
|
2805
2887
|
intent: "REVERSE";
|
|
2806
2888
|
orderType: "MARKET";
|
|
2807
2889
|
error?: string | undefined;
|
|
2890
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2891
|
+
refusedLegs?: {
|
|
2892
|
+
id: string;
|
|
2893
|
+
ticker: string;
|
|
2894
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2895
|
+
error: string;
|
|
2896
|
+
}[] | undefined;
|
|
2808
2897
|
orders?: {
|
|
2809
2898
|
id: string;
|
|
2810
2899
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -2831,13 +2920,13 @@ declare class Core {
|
|
|
2831
2920
|
}>;
|
|
2832
2921
|
};
|
|
2833
2922
|
fills: {
|
|
2923
|
+
/** Read one position's assigned quantities and fees at the original receipt price. */
|
|
2834
2924
|
details: (positionId: string, headers?: ClientHeaders) => Promise<{
|
|
2835
2925
|
fills: {
|
|
2836
2926
|
id: string;
|
|
2837
2927
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
2838
2928
|
tradeAccountId: string;
|
|
2839
2929
|
symbol: string;
|
|
2840
|
-
positionId: string;
|
|
2841
2930
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2842
2931
|
side: "BUY" | "SELL";
|
|
2843
2932
|
reduceOnly: boolean;
|
|
@@ -2847,8 +2936,12 @@ declare class Core {
|
|
|
2847
2936
|
price: string;
|
|
2848
2937
|
usd: string;
|
|
2849
2938
|
timestamp: string;
|
|
2939
|
+
positionId: string;
|
|
2850
2940
|
cloid?: string | undefined;
|
|
2851
2941
|
exchangeFillId?: string | undefined;
|
|
2942
|
+
executionId?: string | undefined;
|
|
2943
|
+
scheduleId?: string | undefined;
|
|
2944
|
+
triggerId?: string | undefined;
|
|
2852
2945
|
tradeFee?: string | undefined;
|
|
2853
2946
|
pearFee?: string | undefined;
|
|
2854
2947
|
original?: {
|
|
@@ -2857,14 +2950,14 @@ declare class Core {
|
|
|
2857
2950
|
} | undefined;
|
|
2858
2951
|
}[];
|
|
2859
2952
|
}>;
|
|
2860
|
-
|
|
2953
|
+
/** Page raw receipts with all position assignments, leaving query defaults to the server. */
|
|
2954
|
+
list: (query: HttpTypes.FillListParamsInput, headers?: ClientHeaders) => Promise<{
|
|
2861
2955
|
limit: number;
|
|
2862
2956
|
fills: {
|
|
2863
2957
|
id: string;
|
|
2864
2958
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
2865
2959
|
tradeAccountId: string;
|
|
2866
2960
|
symbol: string;
|
|
2867
|
-
positionId: string;
|
|
2868
2961
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2869
2962
|
side: "BUY" | "SELL";
|
|
2870
2963
|
reduceOnly: boolean;
|
|
@@ -2874,8 +2967,18 @@ declare class Core {
|
|
|
2874
2967
|
price: string;
|
|
2875
2968
|
usd: string;
|
|
2876
2969
|
timestamp: string;
|
|
2970
|
+
assignments: {
|
|
2971
|
+
positionId: string;
|
|
2972
|
+
quantity: string;
|
|
2973
|
+
usd: string;
|
|
2974
|
+
tradeFee?: string | undefined;
|
|
2975
|
+
pearFee?: string | undefined;
|
|
2976
|
+
}[];
|
|
2877
2977
|
cloid?: string | undefined;
|
|
2878
2978
|
exchangeFillId?: string | undefined;
|
|
2979
|
+
executionId?: string | undefined;
|
|
2980
|
+
scheduleId?: string | undefined;
|
|
2981
|
+
triggerId?: string | undefined;
|
|
2879
2982
|
tradeFee?: string | undefined;
|
|
2880
2983
|
pearFee?: string | undefined;
|
|
2881
2984
|
original?: {
|
|
@@ -2885,12 +2988,15 @@ declare class Core {
|
|
|
2885
2988
|
}[];
|
|
2886
2989
|
nextCursor?: string | undefined;
|
|
2887
2990
|
}>;
|
|
2991
|
+
/** Read account-owned provisional receipts awaiting fee collection. */
|
|
2888
2992
|
provisionals: (headers?: ClientHeaders) => Promise<{
|
|
2889
2993
|
fills: {
|
|
2890
2994
|
id: string;
|
|
2891
|
-
|
|
2995
|
+
tradeAccountId: string;
|
|
2996
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2892
2997
|
symbol: string;
|
|
2893
2998
|
status: "PROVISIONAL";
|
|
2999
|
+
executionId?: string | undefined;
|
|
2894
3000
|
cloid?: string | undefined;
|
|
2895
3001
|
}[];
|
|
2896
3002
|
}>;
|
|
@@ -2916,7 +3022,7 @@ declare class Core {
|
|
|
2916
3022
|
levels: number;
|
|
2917
3023
|
weighting: "EQUAL";
|
|
2918
3024
|
};
|
|
2919
|
-
status: "ACTIVE" | "
|
|
3025
|
+
status: "ACTIVE" | "COMPLETED" | "CANCELLED";
|
|
2920
3026
|
triggers: ({
|
|
2921
3027
|
id: string;
|
|
2922
3028
|
tradeAccountId: string;
|
|
@@ -3006,13 +3112,12 @@ declare class Core {
|
|
|
3006
3112
|
parentTriggerId?: string | undefined;
|
|
3007
3113
|
triggeredAt?: string | undefined;
|
|
3008
3114
|
cancelledAt?: string | undefined;
|
|
3009
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
3115
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3010
3116
|
fills?: {
|
|
3011
3117
|
id: string;
|
|
3012
3118
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3013
3119
|
tradeAccountId: string;
|
|
3014
3120
|
symbol: string;
|
|
3015
|
-
positionId: string;
|
|
3016
3121
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3017
3122
|
side: "BUY" | "SELL";
|
|
3018
3123
|
reduceOnly: boolean;
|
|
@@ -3022,8 +3127,18 @@ declare class Core {
|
|
|
3022
3127
|
price: string;
|
|
3023
3128
|
usd: string;
|
|
3024
3129
|
timestamp: string;
|
|
3130
|
+
assignments: {
|
|
3131
|
+
positionId: string;
|
|
3132
|
+
quantity: string;
|
|
3133
|
+
usd: string;
|
|
3134
|
+
tradeFee?: string | undefined;
|
|
3135
|
+
pearFee?: string | undefined;
|
|
3136
|
+
}[];
|
|
3025
3137
|
cloid?: string | undefined;
|
|
3026
3138
|
exchangeFillId?: string | undefined;
|
|
3139
|
+
executionId?: string | undefined;
|
|
3140
|
+
scheduleId?: string | undefined;
|
|
3141
|
+
triggerId?: string | undefined;
|
|
3027
3142
|
tradeFee?: string | undefined;
|
|
3028
3143
|
pearFee?: string | undefined;
|
|
3029
3144
|
original?: {
|
|
@@ -3077,6 +3192,7 @@ declare class Core {
|
|
|
3077
3192
|
priceSource: "mid" | "mark";
|
|
3078
3193
|
track: "PEAK" | "TROUGH";
|
|
3079
3194
|
threshold: number;
|
|
3195
|
+
onPositionResize: "cancel" | "keep";
|
|
3080
3196
|
};
|
|
3081
3197
|
} | {
|
|
3082
3198
|
type: "upnl";
|
|
@@ -3084,6 +3200,7 @@ declare class Core {
|
|
|
3084
3200
|
priceSource: "mid" | "mark";
|
|
3085
3201
|
track: "PEAK" | "TROUGH";
|
|
3086
3202
|
threshold: number;
|
|
3203
|
+
onPositionResize: "cancel" | "keep";
|
|
3087
3204
|
};
|
|
3088
3205
|
} | {
|
|
3089
3206
|
type: "upnl_bps";
|
|
@@ -3143,13 +3260,12 @@ declare class Core {
|
|
|
3143
3260
|
parentTriggerId?: string | undefined;
|
|
3144
3261
|
triggeredAt?: string | undefined;
|
|
3145
3262
|
cancelledAt?: string | undefined;
|
|
3146
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
3263
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3147
3264
|
fills?: {
|
|
3148
3265
|
id: string;
|
|
3149
3266
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3150
3267
|
tradeAccountId: string;
|
|
3151
3268
|
symbol: string;
|
|
3152
|
-
positionId: string;
|
|
3153
3269
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3154
3270
|
side: "BUY" | "SELL";
|
|
3155
3271
|
reduceOnly: boolean;
|
|
@@ -3159,8 +3275,18 @@ declare class Core {
|
|
|
3159
3275
|
price: string;
|
|
3160
3276
|
usd: string;
|
|
3161
3277
|
timestamp: string;
|
|
3278
|
+
assignments: {
|
|
3279
|
+
positionId: string;
|
|
3280
|
+
quantity: string;
|
|
3281
|
+
usd: string;
|
|
3282
|
+
tradeFee?: string | undefined;
|
|
3283
|
+
pearFee?: string | undefined;
|
|
3284
|
+
}[];
|
|
3162
3285
|
cloid?: string | undefined;
|
|
3163
3286
|
exchangeFillId?: string | undefined;
|
|
3287
|
+
executionId?: string | undefined;
|
|
3288
|
+
scheduleId?: string | undefined;
|
|
3289
|
+
triggerId?: string | undefined;
|
|
3164
3290
|
tradeFee?: string | undefined;
|
|
3165
3291
|
pearFee?: string | undefined;
|
|
3166
3292
|
original?: {
|
|
@@ -3222,6 +3348,7 @@ declare class Core {
|
|
|
3222
3348
|
priceSource: "mid" | "mark";
|
|
3223
3349
|
track: "PEAK" | "TROUGH";
|
|
3224
3350
|
threshold: number;
|
|
3351
|
+
onPositionResize: "cancel" | "keep";
|
|
3225
3352
|
};
|
|
3226
3353
|
} | {
|
|
3227
3354
|
type: "upnl";
|
|
@@ -3229,6 +3356,7 @@ declare class Core {
|
|
|
3229
3356
|
priceSource: "mid" | "mark";
|
|
3230
3357
|
track: "PEAK" | "TROUGH";
|
|
3231
3358
|
threshold: number;
|
|
3359
|
+
onPositionResize: "cancel" | "keep";
|
|
3232
3360
|
};
|
|
3233
3361
|
} | {
|
|
3234
3362
|
type: "upnl_bps";
|
|
@@ -3264,11 +3392,13 @@ declare class Core {
|
|
|
3264
3392
|
type: "notional_trailing";
|
|
3265
3393
|
data: {
|
|
3266
3394
|
priceSource: "mid" | "mark";
|
|
3395
|
+
onPositionResize: "cancel" | "keep";
|
|
3267
3396
|
};
|
|
3268
3397
|
} | {
|
|
3269
3398
|
type: "upnl_trailing";
|
|
3270
3399
|
data: {
|
|
3271
3400
|
priceSource: "mid" | "mark";
|
|
3401
|
+
onPositionResize: "cancel" | "keep";
|
|
3272
3402
|
};
|
|
3273
3403
|
} | {
|
|
3274
3404
|
type: "upnl_bps_trailing";
|
|
@@ -3311,13 +3441,12 @@ declare class Core {
|
|
|
3311
3441
|
parentTriggerId?: string | undefined;
|
|
3312
3442
|
triggeredAt?: string | undefined;
|
|
3313
3443
|
cancelledAt?: string | undefined;
|
|
3314
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
3444
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3315
3445
|
fills?: {
|
|
3316
3446
|
id: string;
|
|
3317
3447
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3318
3448
|
tradeAccountId: string;
|
|
3319
3449
|
symbol: string;
|
|
3320
|
-
positionId: string;
|
|
3321
3450
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3322
3451
|
side: "BUY" | "SELL";
|
|
3323
3452
|
reduceOnly: boolean;
|
|
@@ -3327,8 +3456,18 @@ declare class Core {
|
|
|
3327
3456
|
price: string;
|
|
3328
3457
|
usd: string;
|
|
3329
3458
|
timestamp: string;
|
|
3459
|
+
assignments: {
|
|
3460
|
+
positionId: string;
|
|
3461
|
+
quantity: string;
|
|
3462
|
+
usd: string;
|
|
3463
|
+
tradeFee?: string | undefined;
|
|
3464
|
+
pearFee?: string | undefined;
|
|
3465
|
+
}[];
|
|
3330
3466
|
cloid?: string | undefined;
|
|
3331
3467
|
exchangeFillId?: string | undefined;
|
|
3468
|
+
executionId?: string | undefined;
|
|
3469
|
+
scheduleId?: string | undefined;
|
|
3470
|
+
triggerId?: string | undefined;
|
|
3332
3471
|
tradeFee?: string | undefined;
|
|
3333
3472
|
pearFee?: string | undefined;
|
|
3334
3473
|
original?: {
|
|
@@ -3336,6 +3475,7 @@ declare class Core {
|
|
|
3336
3475
|
quantity: string;
|
|
3337
3476
|
} | undefined;
|
|
3338
3477
|
}[] | undefined;
|
|
3478
|
+
closePercent?: number | undefined;
|
|
3339
3479
|
trailing?: {
|
|
3340
3480
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
3341
3481
|
deltaValue: number;
|
|
@@ -3390,6 +3530,7 @@ declare class Core {
|
|
|
3390
3530
|
priceSource: "mid" | "mark";
|
|
3391
3531
|
track: "PEAK" | "TROUGH";
|
|
3392
3532
|
threshold: number;
|
|
3533
|
+
onPositionResize: "cancel" | "keep";
|
|
3393
3534
|
};
|
|
3394
3535
|
} | {
|
|
3395
3536
|
type: "upnl";
|
|
@@ -3397,6 +3538,7 @@ declare class Core {
|
|
|
3397
3538
|
priceSource: "mid" | "mark";
|
|
3398
3539
|
track: "PEAK" | "TROUGH";
|
|
3399
3540
|
threshold: number;
|
|
3541
|
+
onPositionResize: "cancel" | "keep";
|
|
3400
3542
|
};
|
|
3401
3543
|
} | {
|
|
3402
3544
|
type: "upnl_bps";
|
|
@@ -3459,13 +3601,12 @@ declare class Core {
|
|
|
3459
3601
|
parentTriggerId?: string | undefined;
|
|
3460
3602
|
triggeredAt?: string | undefined;
|
|
3461
3603
|
cancelledAt?: string | undefined;
|
|
3462
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
3604
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3463
3605
|
fills?: {
|
|
3464
3606
|
id: string;
|
|
3465
3607
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3466
3608
|
tradeAccountId: string;
|
|
3467
3609
|
symbol: string;
|
|
3468
|
-
positionId: string;
|
|
3469
3610
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3470
3611
|
side: "BUY" | "SELL";
|
|
3471
3612
|
reduceOnly: boolean;
|
|
@@ -3475,8 +3616,18 @@ declare class Core {
|
|
|
3475
3616
|
price: string;
|
|
3476
3617
|
usd: string;
|
|
3477
3618
|
timestamp: string;
|
|
3619
|
+
assignments: {
|
|
3620
|
+
positionId: string;
|
|
3621
|
+
quantity: string;
|
|
3622
|
+
usd: string;
|
|
3623
|
+
tradeFee?: string | undefined;
|
|
3624
|
+
pearFee?: string | undefined;
|
|
3625
|
+
}[];
|
|
3478
3626
|
cloid?: string | undefined;
|
|
3479
3627
|
exchangeFillId?: string | undefined;
|
|
3628
|
+
executionId?: string | undefined;
|
|
3629
|
+
scheduleId?: string | undefined;
|
|
3630
|
+
triggerId?: string | undefined;
|
|
3480
3631
|
tradeFee?: string | undefined;
|
|
3481
3632
|
pearFee?: string | undefined;
|
|
3482
3633
|
original?: {
|
|
@@ -3539,6 +3690,7 @@ declare class Core {
|
|
|
3539
3690
|
priceSource: "mid" | "mark";
|
|
3540
3691
|
track: "PEAK" | "TROUGH";
|
|
3541
3692
|
threshold: number;
|
|
3693
|
+
onPositionResize: "cancel" | "keep";
|
|
3542
3694
|
};
|
|
3543
3695
|
} | {
|
|
3544
3696
|
type: "upnl";
|
|
@@ -3546,6 +3698,7 @@ declare class Core {
|
|
|
3546
3698
|
priceSource: "mid" | "mark";
|
|
3547
3699
|
track: "PEAK" | "TROUGH";
|
|
3548
3700
|
threshold: number;
|
|
3701
|
+
onPositionResize: "cancel" | "keep";
|
|
3549
3702
|
};
|
|
3550
3703
|
} | {
|
|
3551
3704
|
type: "upnl_bps";
|
|
@@ -3581,11 +3734,13 @@ declare class Core {
|
|
|
3581
3734
|
type: "notional_trailing";
|
|
3582
3735
|
data: {
|
|
3583
3736
|
priceSource: "mid" | "mark";
|
|
3737
|
+
onPositionResize: "cancel" | "keep";
|
|
3584
3738
|
};
|
|
3585
3739
|
} | {
|
|
3586
3740
|
type: "upnl_trailing";
|
|
3587
3741
|
data: {
|
|
3588
3742
|
priceSource: "mid" | "mark";
|
|
3743
|
+
onPositionResize: "cancel" | "keep";
|
|
3589
3744
|
};
|
|
3590
3745
|
} | {
|
|
3591
3746
|
type: "upnl_bps_trailing";
|
|
@@ -3634,13 +3789,12 @@ declare class Core {
|
|
|
3634
3789
|
parentTriggerId?: string | undefined;
|
|
3635
3790
|
triggeredAt?: string | undefined;
|
|
3636
3791
|
cancelledAt?: string | undefined;
|
|
3637
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
3792
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3638
3793
|
fills?: {
|
|
3639
3794
|
id: string;
|
|
3640
3795
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3641
3796
|
tradeAccountId: string;
|
|
3642
3797
|
symbol: string;
|
|
3643
|
-
positionId: string;
|
|
3644
3798
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3645
3799
|
side: "BUY" | "SELL";
|
|
3646
3800
|
reduceOnly: boolean;
|
|
@@ -3650,8 +3804,18 @@ declare class Core {
|
|
|
3650
3804
|
price: string;
|
|
3651
3805
|
usd: string;
|
|
3652
3806
|
timestamp: string;
|
|
3807
|
+
assignments: {
|
|
3808
|
+
positionId: string;
|
|
3809
|
+
quantity: string;
|
|
3810
|
+
usd: string;
|
|
3811
|
+
tradeFee?: string | undefined;
|
|
3812
|
+
pearFee?: string | undefined;
|
|
3813
|
+
}[];
|
|
3653
3814
|
cloid?: string | undefined;
|
|
3654
3815
|
exchangeFillId?: string | undefined;
|
|
3816
|
+
executionId?: string | undefined;
|
|
3817
|
+
scheduleId?: string | undefined;
|
|
3818
|
+
triggerId?: string | undefined;
|
|
3655
3819
|
tradeFee?: string | undefined;
|
|
3656
3820
|
pearFee?: string | undefined;
|
|
3657
3821
|
original?: {
|
|
@@ -3680,12 +3844,14 @@ declare class Core {
|
|
|
3680
3844
|
data: {
|
|
3681
3845
|
priceSource: "mid" | "mark";
|
|
3682
3846
|
threshold: number;
|
|
3847
|
+
onPositionResize: "cancel" | "keep";
|
|
3683
3848
|
};
|
|
3684
3849
|
} | {
|
|
3685
3850
|
type: "upnl";
|
|
3686
3851
|
data: {
|
|
3687
3852
|
priceSource: "mid" | "mark";
|
|
3688
3853
|
threshold: number;
|
|
3854
|
+
onPositionResize: "cancel" | "keep";
|
|
3689
3855
|
};
|
|
3690
3856
|
} | {
|
|
3691
3857
|
type: "upnl_bps";
|
|
@@ -3694,6 +3860,7 @@ declare class Core {
|
|
|
3694
3860
|
threshold: number;
|
|
3695
3861
|
};
|
|
3696
3862
|
};
|
|
3863
|
+
closePercent?: number | undefined;
|
|
3697
3864
|
} | {
|
|
3698
3865
|
intent: "CLOSE";
|
|
3699
3866
|
type: "MARKET";
|
|
@@ -3701,11 +3868,13 @@ declare class Core {
|
|
|
3701
3868
|
type: "notional_trailing";
|
|
3702
3869
|
data: {
|
|
3703
3870
|
priceSource: "mid" | "mark";
|
|
3871
|
+
onPositionResize: "cancel" | "keep";
|
|
3704
3872
|
};
|
|
3705
3873
|
} | {
|
|
3706
3874
|
type: "upnl_trailing";
|
|
3707
3875
|
data: {
|
|
3708
3876
|
priceSource: "mid" | "mark";
|
|
3877
|
+
onPositionResize: "cancel" | "keep";
|
|
3709
3878
|
};
|
|
3710
3879
|
} | {
|
|
3711
3880
|
type: "upnl_bps_trailing";
|
|
@@ -3718,6 +3887,7 @@ declare class Core {
|
|
|
3718
3887
|
deltaValue: number;
|
|
3719
3888
|
activationValue?: number | undefined;
|
|
3720
3889
|
};
|
|
3890
|
+
closePercent?: number | undefined;
|
|
3721
3891
|
})[] | undefined;
|
|
3722
3892
|
}[];
|
|
3723
3893
|
nextCursor?: string | undefined;
|
|
@@ -3733,7 +3903,7 @@ declare class Core {
|
|
|
3733
3903
|
levels: number;
|
|
3734
3904
|
weighting: "EQUAL";
|
|
3735
3905
|
};
|
|
3736
|
-
status: "ACTIVE" | "
|
|
3906
|
+
status: "ACTIVE" | "COMPLETED" | "CANCELLED";
|
|
3737
3907
|
triggers: ({
|
|
3738
3908
|
id: string;
|
|
3739
3909
|
tradeAccountId: string;
|
|
@@ -3823,13 +3993,12 @@ declare class Core {
|
|
|
3823
3993
|
parentTriggerId?: string | undefined;
|
|
3824
3994
|
triggeredAt?: string | undefined;
|
|
3825
3995
|
cancelledAt?: string | undefined;
|
|
3826
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
3996
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3827
3997
|
fills?: {
|
|
3828
3998
|
id: string;
|
|
3829
3999
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3830
4000
|
tradeAccountId: string;
|
|
3831
4001
|
symbol: string;
|
|
3832
|
-
positionId: string;
|
|
3833
4002
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3834
4003
|
side: "BUY" | "SELL";
|
|
3835
4004
|
reduceOnly: boolean;
|
|
@@ -3839,8 +4008,18 @@ declare class Core {
|
|
|
3839
4008
|
price: string;
|
|
3840
4009
|
usd: string;
|
|
3841
4010
|
timestamp: string;
|
|
4011
|
+
assignments: {
|
|
4012
|
+
positionId: string;
|
|
4013
|
+
quantity: string;
|
|
4014
|
+
usd: string;
|
|
4015
|
+
tradeFee?: string | undefined;
|
|
4016
|
+
pearFee?: string | undefined;
|
|
4017
|
+
}[];
|
|
3842
4018
|
cloid?: string | undefined;
|
|
3843
4019
|
exchangeFillId?: string | undefined;
|
|
4020
|
+
executionId?: string | undefined;
|
|
4021
|
+
scheduleId?: string | undefined;
|
|
4022
|
+
triggerId?: string | undefined;
|
|
3844
4023
|
tradeFee?: string | undefined;
|
|
3845
4024
|
pearFee?: string | undefined;
|
|
3846
4025
|
original?: {
|
|
@@ -3894,6 +4073,7 @@ declare class Core {
|
|
|
3894
4073
|
priceSource: "mid" | "mark";
|
|
3895
4074
|
track: "PEAK" | "TROUGH";
|
|
3896
4075
|
threshold: number;
|
|
4076
|
+
onPositionResize: "cancel" | "keep";
|
|
3897
4077
|
};
|
|
3898
4078
|
} | {
|
|
3899
4079
|
type: "upnl";
|
|
@@ -3901,6 +4081,7 @@ declare class Core {
|
|
|
3901
4081
|
priceSource: "mid" | "mark";
|
|
3902
4082
|
track: "PEAK" | "TROUGH";
|
|
3903
4083
|
threshold: number;
|
|
4084
|
+
onPositionResize: "cancel" | "keep";
|
|
3904
4085
|
};
|
|
3905
4086
|
} | {
|
|
3906
4087
|
type: "upnl_bps";
|
|
@@ -3960,13 +4141,12 @@ declare class Core {
|
|
|
3960
4141
|
parentTriggerId?: string | undefined;
|
|
3961
4142
|
triggeredAt?: string | undefined;
|
|
3962
4143
|
cancelledAt?: string | undefined;
|
|
3963
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
4144
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
3964
4145
|
fills?: {
|
|
3965
4146
|
id: string;
|
|
3966
4147
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
3967
4148
|
tradeAccountId: string;
|
|
3968
4149
|
symbol: string;
|
|
3969
|
-
positionId: string;
|
|
3970
4150
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3971
4151
|
side: "BUY" | "SELL";
|
|
3972
4152
|
reduceOnly: boolean;
|
|
@@ -3976,8 +4156,18 @@ declare class Core {
|
|
|
3976
4156
|
price: string;
|
|
3977
4157
|
usd: string;
|
|
3978
4158
|
timestamp: string;
|
|
4159
|
+
assignments: {
|
|
4160
|
+
positionId: string;
|
|
4161
|
+
quantity: string;
|
|
4162
|
+
usd: string;
|
|
4163
|
+
tradeFee?: string | undefined;
|
|
4164
|
+
pearFee?: string | undefined;
|
|
4165
|
+
}[];
|
|
3979
4166
|
cloid?: string | undefined;
|
|
3980
4167
|
exchangeFillId?: string | undefined;
|
|
4168
|
+
executionId?: string | undefined;
|
|
4169
|
+
scheduleId?: string | undefined;
|
|
4170
|
+
triggerId?: string | undefined;
|
|
3981
4171
|
tradeFee?: string | undefined;
|
|
3982
4172
|
pearFee?: string | undefined;
|
|
3983
4173
|
original?: {
|
|
@@ -4039,6 +4229,7 @@ declare class Core {
|
|
|
4039
4229
|
priceSource: "mid" | "mark";
|
|
4040
4230
|
track: "PEAK" | "TROUGH";
|
|
4041
4231
|
threshold: number;
|
|
4232
|
+
onPositionResize: "cancel" | "keep";
|
|
4042
4233
|
};
|
|
4043
4234
|
} | {
|
|
4044
4235
|
type: "upnl";
|
|
@@ -4046,6 +4237,7 @@ declare class Core {
|
|
|
4046
4237
|
priceSource: "mid" | "mark";
|
|
4047
4238
|
track: "PEAK" | "TROUGH";
|
|
4048
4239
|
threshold: number;
|
|
4240
|
+
onPositionResize: "cancel" | "keep";
|
|
4049
4241
|
};
|
|
4050
4242
|
} | {
|
|
4051
4243
|
type: "upnl_bps";
|
|
@@ -4081,11 +4273,13 @@ declare class Core {
|
|
|
4081
4273
|
type: "notional_trailing";
|
|
4082
4274
|
data: {
|
|
4083
4275
|
priceSource: "mid" | "mark";
|
|
4276
|
+
onPositionResize: "cancel" | "keep";
|
|
4084
4277
|
};
|
|
4085
4278
|
} | {
|
|
4086
4279
|
type: "upnl_trailing";
|
|
4087
4280
|
data: {
|
|
4088
4281
|
priceSource: "mid" | "mark";
|
|
4282
|
+
onPositionResize: "cancel" | "keep";
|
|
4089
4283
|
};
|
|
4090
4284
|
} | {
|
|
4091
4285
|
type: "upnl_bps_trailing";
|
|
@@ -4128,13 +4322,12 @@ declare class Core {
|
|
|
4128
4322
|
parentTriggerId?: string | undefined;
|
|
4129
4323
|
triggeredAt?: string | undefined;
|
|
4130
4324
|
cancelledAt?: string | undefined;
|
|
4131
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
4325
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
4132
4326
|
fills?: {
|
|
4133
4327
|
id: string;
|
|
4134
4328
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
4135
4329
|
tradeAccountId: string;
|
|
4136
4330
|
symbol: string;
|
|
4137
|
-
positionId: string;
|
|
4138
4331
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4139
4332
|
side: "BUY" | "SELL";
|
|
4140
4333
|
reduceOnly: boolean;
|
|
@@ -4144,8 +4337,18 @@ declare class Core {
|
|
|
4144
4337
|
price: string;
|
|
4145
4338
|
usd: string;
|
|
4146
4339
|
timestamp: string;
|
|
4340
|
+
assignments: {
|
|
4341
|
+
positionId: string;
|
|
4342
|
+
quantity: string;
|
|
4343
|
+
usd: string;
|
|
4344
|
+
tradeFee?: string | undefined;
|
|
4345
|
+
pearFee?: string | undefined;
|
|
4346
|
+
}[];
|
|
4147
4347
|
cloid?: string | undefined;
|
|
4148
4348
|
exchangeFillId?: string | undefined;
|
|
4349
|
+
executionId?: string | undefined;
|
|
4350
|
+
scheduleId?: string | undefined;
|
|
4351
|
+
triggerId?: string | undefined;
|
|
4149
4352
|
tradeFee?: string | undefined;
|
|
4150
4353
|
pearFee?: string | undefined;
|
|
4151
4354
|
original?: {
|
|
@@ -4153,6 +4356,7 @@ declare class Core {
|
|
|
4153
4356
|
quantity: string;
|
|
4154
4357
|
} | undefined;
|
|
4155
4358
|
}[] | undefined;
|
|
4359
|
+
closePercent?: number | undefined;
|
|
4156
4360
|
trailing?: {
|
|
4157
4361
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
4158
4362
|
deltaValue: number;
|
|
@@ -4207,6 +4411,7 @@ declare class Core {
|
|
|
4207
4411
|
priceSource: "mid" | "mark";
|
|
4208
4412
|
track: "PEAK" | "TROUGH";
|
|
4209
4413
|
threshold: number;
|
|
4414
|
+
onPositionResize: "cancel" | "keep";
|
|
4210
4415
|
};
|
|
4211
4416
|
} | {
|
|
4212
4417
|
type: "upnl";
|
|
@@ -4214,6 +4419,7 @@ declare class Core {
|
|
|
4214
4419
|
priceSource: "mid" | "mark";
|
|
4215
4420
|
track: "PEAK" | "TROUGH";
|
|
4216
4421
|
threshold: number;
|
|
4422
|
+
onPositionResize: "cancel" | "keep";
|
|
4217
4423
|
};
|
|
4218
4424
|
} | {
|
|
4219
4425
|
type: "upnl_bps";
|
|
@@ -4276,13 +4482,12 @@ declare class Core {
|
|
|
4276
4482
|
parentTriggerId?: string | undefined;
|
|
4277
4483
|
triggeredAt?: string | undefined;
|
|
4278
4484
|
cancelledAt?: string | undefined;
|
|
4279
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
4485
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
4280
4486
|
fills?: {
|
|
4281
4487
|
id: string;
|
|
4282
4488
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
4283
4489
|
tradeAccountId: string;
|
|
4284
4490
|
symbol: string;
|
|
4285
|
-
positionId: string;
|
|
4286
4491
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4287
4492
|
side: "BUY" | "SELL";
|
|
4288
4493
|
reduceOnly: boolean;
|
|
@@ -4292,8 +4497,18 @@ declare class Core {
|
|
|
4292
4497
|
price: string;
|
|
4293
4498
|
usd: string;
|
|
4294
4499
|
timestamp: string;
|
|
4500
|
+
assignments: {
|
|
4501
|
+
positionId: string;
|
|
4502
|
+
quantity: string;
|
|
4503
|
+
usd: string;
|
|
4504
|
+
tradeFee?: string | undefined;
|
|
4505
|
+
pearFee?: string | undefined;
|
|
4506
|
+
}[];
|
|
4295
4507
|
cloid?: string | undefined;
|
|
4296
4508
|
exchangeFillId?: string | undefined;
|
|
4509
|
+
executionId?: string | undefined;
|
|
4510
|
+
scheduleId?: string | undefined;
|
|
4511
|
+
triggerId?: string | undefined;
|
|
4297
4512
|
tradeFee?: string | undefined;
|
|
4298
4513
|
pearFee?: string | undefined;
|
|
4299
4514
|
original?: {
|
|
@@ -4356,6 +4571,7 @@ declare class Core {
|
|
|
4356
4571
|
priceSource: "mid" | "mark";
|
|
4357
4572
|
track: "PEAK" | "TROUGH";
|
|
4358
4573
|
threshold: number;
|
|
4574
|
+
onPositionResize: "cancel" | "keep";
|
|
4359
4575
|
};
|
|
4360
4576
|
} | {
|
|
4361
4577
|
type: "upnl";
|
|
@@ -4363,6 +4579,7 @@ declare class Core {
|
|
|
4363
4579
|
priceSource: "mid" | "mark";
|
|
4364
4580
|
track: "PEAK" | "TROUGH";
|
|
4365
4581
|
threshold: number;
|
|
4582
|
+
onPositionResize: "cancel" | "keep";
|
|
4366
4583
|
};
|
|
4367
4584
|
} | {
|
|
4368
4585
|
type: "upnl_bps";
|
|
@@ -4398,11 +4615,13 @@ declare class Core {
|
|
|
4398
4615
|
type: "notional_trailing";
|
|
4399
4616
|
data: {
|
|
4400
4617
|
priceSource: "mid" | "mark";
|
|
4618
|
+
onPositionResize: "cancel" | "keep";
|
|
4401
4619
|
};
|
|
4402
4620
|
} | {
|
|
4403
4621
|
type: "upnl_trailing";
|
|
4404
4622
|
data: {
|
|
4405
4623
|
priceSource: "mid" | "mark";
|
|
4624
|
+
onPositionResize: "cancel" | "keep";
|
|
4406
4625
|
};
|
|
4407
4626
|
} | {
|
|
4408
4627
|
type: "upnl_bps_trailing";
|
|
@@ -4451,13 +4670,12 @@ declare class Core {
|
|
|
4451
4670
|
parentTriggerId?: string | undefined;
|
|
4452
4671
|
triggeredAt?: string | undefined;
|
|
4453
4672
|
cancelledAt?: string | undefined;
|
|
4454
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
4673
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
4455
4674
|
fills?: {
|
|
4456
4675
|
id: string;
|
|
4457
4676
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
4458
4677
|
tradeAccountId: string;
|
|
4459
4678
|
symbol: string;
|
|
4460
|
-
positionId: string;
|
|
4461
4679
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4462
4680
|
side: "BUY" | "SELL";
|
|
4463
4681
|
reduceOnly: boolean;
|
|
@@ -4467,8 +4685,18 @@ declare class Core {
|
|
|
4467
4685
|
price: string;
|
|
4468
4686
|
usd: string;
|
|
4469
4687
|
timestamp: string;
|
|
4688
|
+
assignments: {
|
|
4689
|
+
positionId: string;
|
|
4690
|
+
quantity: string;
|
|
4691
|
+
usd: string;
|
|
4692
|
+
tradeFee?: string | undefined;
|
|
4693
|
+
pearFee?: string | undefined;
|
|
4694
|
+
}[];
|
|
4470
4695
|
cloid?: string | undefined;
|
|
4471
4696
|
exchangeFillId?: string | undefined;
|
|
4697
|
+
executionId?: string | undefined;
|
|
4698
|
+
scheduleId?: string | undefined;
|
|
4699
|
+
triggerId?: string | undefined;
|
|
4472
4700
|
tradeFee?: string | undefined;
|
|
4473
4701
|
pearFee?: string | undefined;
|
|
4474
4702
|
original?: {
|
|
@@ -4497,12 +4725,14 @@ declare class Core {
|
|
|
4497
4725
|
data: {
|
|
4498
4726
|
priceSource: "mid" | "mark";
|
|
4499
4727
|
threshold: number;
|
|
4728
|
+
onPositionResize: "cancel" | "keep";
|
|
4500
4729
|
};
|
|
4501
4730
|
} | {
|
|
4502
4731
|
type: "upnl";
|
|
4503
4732
|
data: {
|
|
4504
4733
|
priceSource: "mid" | "mark";
|
|
4505
4734
|
threshold: number;
|
|
4735
|
+
onPositionResize: "cancel" | "keep";
|
|
4506
4736
|
};
|
|
4507
4737
|
} | {
|
|
4508
4738
|
type: "upnl_bps";
|
|
@@ -4511,6 +4741,7 @@ declare class Core {
|
|
|
4511
4741
|
threshold: number;
|
|
4512
4742
|
};
|
|
4513
4743
|
};
|
|
4744
|
+
closePercent?: number | undefined;
|
|
4514
4745
|
} | {
|
|
4515
4746
|
intent: "CLOSE";
|
|
4516
4747
|
type: "MARKET";
|
|
@@ -4518,11 +4749,13 @@ declare class Core {
|
|
|
4518
4749
|
type: "notional_trailing";
|
|
4519
4750
|
data: {
|
|
4520
4751
|
priceSource: "mid" | "mark";
|
|
4752
|
+
onPositionResize: "cancel" | "keep";
|
|
4521
4753
|
};
|
|
4522
4754
|
} | {
|
|
4523
4755
|
type: "upnl_trailing";
|
|
4524
4756
|
data: {
|
|
4525
4757
|
priceSource: "mid" | "mark";
|
|
4758
|
+
onPositionResize: "cancel" | "keep";
|
|
4526
4759
|
};
|
|
4527
4760
|
} | {
|
|
4528
4761
|
type: "upnl_bps_trailing";
|
|
@@ -4535,6 +4768,7 @@ declare class Core {
|
|
|
4535
4768
|
deltaValue: number;
|
|
4536
4769
|
activationValue?: number | undefined;
|
|
4537
4770
|
};
|
|
4771
|
+
closePercent?: number | undefined;
|
|
4538
4772
|
})[] | undefined;
|
|
4539
4773
|
};
|
|
4540
4774
|
}>;
|
|
@@ -4549,7 +4783,7 @@ declare class Core {
|
|
|
4549
4783
|
levels: number;
|
|
4550
4784
|
weighting: "EQUAL";
|
|
4551
4785
|
};
|
|
4552
|
-
status: "ACTIVE" | "
|
|
4786
|
+
status: "ACTIVE" | "COMPLETED" | "CANCELLED";
|
|
4553
4787
|
triggers: ({
|
|
4554
4788
|
id: string;
|
|
4555
4789
|
tradeAccountId: string;
|
|
@@ -4639,13 +4873,12 @@ declare class Core {
|
|
|
4639
4873
|
parentTriggerId?: string | undefined;
|
|
4640
4874
|
triggeredAt?: string | undefined;
|
|
4641
4875
|
cancelledAt?: string | undefined;
|
|
4642
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
4876
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
4643
4877
|
fills?: {
|
|
4644
4878
|
id: string;
|
|
4645
4879
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
4646
4880
|
tradeAccountId: string;
|
|
4647
4881
|
symbol: string;
|
|
4648
|
-
positionId: string;
|
|
4649
4882
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4650
4883
|
side: "BUY" | "SELL";
|
|
4651
4884
|
reduceOnly: boolean;
|
|
@@ -4655,8 +4888,18 @@ declare class Core {
|
|
|
4655
4888
|
price: string;
|
|
4656
4889
|
usd: string;
|
|
4657
4890
|
timestamp: string;
|
|
4891
|
+
assignments: {
|
|
4892
|
+
positionId: string;
|
|
4893
|
+
quantity: string;
|
|
4894
|
+
usd: string;
|
|
4895
|
+
tradeFee?: string | undefined;
|
|
4896
|
+
pearFee?: string | undefined;
|
|
4897
|
+
}[];
|
|
4658
4898
|
cloid?: string | undefined;
|
|
4659
4899
|
exchangeFillId?: string | undefined;
|
|
4900
|
+
executionId?: string | undefined;
|
|
4901
|
+
scheduleId?: string | undefined;
|
|
4902
|
+
triggerId?: string | undefined;
|
|
4660
4903
|
tradeFee?: string | undefined;
|
|
4661
4904
|
pearFee?: string | undefined;
|
|
4662
4905
|
original?: {
|
|
@@ -4710,6 +4953,7 @@ declare class Core {
|
|
|
4710
4953
|
priceSource: "mid" | "mark";
|
|
4711
4954
|
track: "PEAK" | "TROUGH";
|
|
4712
4955
|
threshold: number;
|
|
4956
|
+
onPositionResize: "cancel" | "keep";
|
|
4713
4957
|
};
|
|
4714
4958
|
} | {
|
|
4715
4959
|
type: "upnl";
|
|
@@ -4717,6 +4961,7 @@ declare class Core {
|
|
|
4717
4961
|
priceSource: "mid" | "mark";
|
|
4718
4962
|
track: "PEAK" | "TROUGH";
|
|
4719
4963
|
threshold: number;
|
|
4964
|
+
onPositionResize: "cancel" | "keep";
|
|
4720
4965
|
};
|
|
4721
4966
|
} | {
|
|
4722
4967
|
type: "upnl_bps";
|
|
@@ -4776,13 +5021,12 @@ declare class Core {
|
|
|
4776
5021
|
parentTriggerId?: string | undefined;
|
|
4777
5022
|
triggeredAt?: string | undefined;
|
|
4778
5023
|
cancelledAt?: string | undefined;
|
|
4779
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
5024
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
4780
5025
|
fills?: {
|
|
4781
5026
|
id: string;
|
|
4782
5027
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
4783
5028
|
tradeAccountId: string;
|
|
4784
5029
|
symbol: string;
|
|
4785
|
-
positionId: string;
|
|
4786
5030
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4787
5031
|
side: "BUY" | "SELL";
|
|
4788
5032
|
reduceOnly: boolean;
|
|
@@ -4792,8 +5036,18 @@ declare class Core {
|
|
|
4792
5036
|
price: string;
|
|
4793
5037
|
usd: string;
|
|
4794
5038
|
timestamp: string;
|
|
5039
|
+
assignments: {
|
|
5040
|
+
positionId: string;
|
|
5041
|
+
quantity: string;
|
|
5042
|
+
usd: string;
|
|
5043
|
+
tradeFee?: string | undefined;
|
|
5044
|
+
pearFee?: string | undefined;
|
|
5045
|
+
}[];
|
|
4795
5046
|
cloid?: string | undefined;
|
|
4796
5047
|
exchangeFillId?: string | undefined;
|
|
5048
|
+
executionId?: string | undefined;
|
|
5049
|
+
scheduleId?: string | undefined;
|
|
5050
|
+
triggerId?: string | undefined;
|
|
4797
5051
|
tradeFee?: string | undefined;
|
|
4798
5052
|
pearFee?: string | undefined;
|
|
4799
5053
|
original?: {
|
|
@@ -4855,6 +5109,7 @@ declare class Core {
|
|
|
4855
5109
|
priceSource: "mid" | "mark";
|
|
4856
5110
|
track: "PEAK" | "TROUGH";
|
|
4857
5111
|
threshold: number;
|
|
5112
|
+
onPositionResize: "cancel" | "keep";
|
|
4858
5113
|
};
|
|
4859
5114
|
} | {
|
|
4860
5115
|
type: "upnl";
|
|
@@ -4862,6 +5117,7 @@ declare class Core {
|
|
|
4862
5117
|
priceSource: "mid" | "mark";
|
|
4863
5118
|
track: "PEAK" | "TROUGH";
|
|
4864
5119
|
threshold: number;
|
|
5120
|
+
onPositionResize: "cancel" | "keep";
|
|
4865
5121
|
};
|
|
4866
5122
|
} | {
|
|
4867
5123
|
type: "upnl_bps";
|
|
@@ -4897,11 +5153,13 @@ declare class Core {
|
|
|
4897
5153
|
type: "notional_trailing";
|
|
4898
5154
|
data: {
|
|
4899
5155
|
priceSource: "mid" | "mark";
|
|
5156
|
+
onPositionResize: "cancel" | "keep";
|
|
4900
5157
|
};
|
|
4901
5158
|
} | {
|
|
4902
5159
|
type: "upnl_trailing";
|
|
4903
5160
|
data: {
|
|
4904
5161
|
priceSource: "mid" | "mark";
|
|
5162
|
+
onPositionResize: "cancel" | "keep";
|
|
4905
5163
|
};
|
|
4906
5164
|
} | {
|
|
4907
5165
|
type: "upnl_bps_trailing";
|
|
@@ -4944,13 +5202,12 @@ declare class Core {
|
|
|
4944
5202
|
parentTriggerId?: string | undefined;
|
|
4945
5203
|
triggeredAt?: string | undefined;
|
|
4946
5204
|
cancelledAt?: string | undefined;
|
|
4947
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
5205
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
4948
5206
|
fills?: {
|
|
4949
5207
|
id: string;
|
|
4950
5208
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
4951
5209
|
tradeAccountId: string;
|
|
4952
5210
|
symbol: string;
|
|
4953
|
-
positionId: string;
|
|
4954
5211
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4955
5212
|
side: "BUY" | "SELL";
|
|
4956
5213
|
reduceOnly: boolean;
|
|
@@ -4960,8 +5217,18 @@ declare class Core {
|
|
|
4960
5217
|
price: string;
|
|
4961
5218
|
usd: string;
|
|
4962
5219
|
timestamp: string;
|
|
5220
|
+
assignments: {
|
|
5221
|
+
positionId: string;
|
|
5222
|
+
quantity: string;
|
|
5223
|
+
usd: string;
|
|
5224
|
+
tradeFee?: string | undefined;
|
|
5225
|
+
pearFee?: string | undefined;
|
|
5226
|
+
}[];
|
|
4963
5227
|
cloid?: string | undefined;
|
|
4964
5228
|
exchangeFillId?: string | undefined;
|
|
5229
|
+
executionId?: string | undefined;
|
|
5230
|
+
scheduleId?: string | undefined;
|
|
5231
|
+
triggerId?: string | undefined;
|
|
4965
5232
|
tradeFee?: string | undefined;
|
|
4966
5233
|
pearFee?: string | undefined;
|
|
4967
5234
|
original?: {
|
|
@@ -4969,6 +5236,7 @@ declare class Core {
|
|
|
4969
5236
|
quantity: string;
|
|
4970
5237
|
} | undefined;
|
|
4971
5238
|
}[] | undefined;
|
|
5239
|
+
closePercent?: number | undefined;
|
|
4972
5240
|
trailing?: {
|
|
4973
5241
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
4974
5242
|
deltaValue: number;
|
|
@@ -5023,6 +5291,7 @@ declare class Core {
|
|
|
5023
5291
|
priceSource: "mid" | "mark";
|
|
5024
5292
|
track: "PEAK" | "TROUGH";
|
|
5025
5293
|
threshold: number;
|
|
5294
|
+
onPositionResize: "cancel" | "keep";
|
|
5026
5295
|
};
|
|
5027
5296
|
} | {
|
|
5028
5297
|
type: "upnl";
|
|
@@ -5030,6 +5299,7 @@ declare class Core {
|
|
|
5030
5299
|
priceSource: "mid" | "mark";
|
|
5031
5300
|
track: "PEAK" | "TROUGH";
|
|
5032
5301
|
threshold: number;
|
|
5302
|
+
onPositionResize: "cancel" | "keep";
|
|
5033
5303
|
};
|
|
5034
5304
|
} | {
|
|
5035
5305
|
type: "upnl_bps";
|
|
@@ -5092,13 +5362,12 @@ declare class Core {
|
|
|
5092
5362
|
parentTriggerId?: string | undefined;
|
|
5093
5363
|
triggeredAt?: string | undefined;
|
|
5094
5364
|
cancelledAt?: string | undefined;
|
|
5095
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
5365
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
5096
5366
|
fills?: {
|
|
5097
5367
|
id: string;
|
|
5098
5368
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
5099
5369
|
tradeAccountId: string;
|
|
5100
5370
|
symbol: string;
|
|
5101
|
-
positionId: string;
|
|
5102
5371
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5103
5372
|
side: "BUY" | "SELL";
|
|
5104
5373
|
reduceOnly: boolean;
|
|
@@ -5108,8 +5377,18 @@ declare class Core {
|
|
|
5108
5377
|
price: string;
|
|
5109
5378
|
usd: string;
|
|
5110
5379
|
timestamp: string;
|
|
5380
|
+
assignments: {
|
|
5381
|
+
positionId: string;
|
|
5382
|
+
quantity: string;
|
|
5383
|
+
usd: string;
|
|
5384
|
+
tradeFee?: string | undefined;
|
|
5385
|
+
pearFee?: string | undefined;
|
|
5386
|
+
}[];
|
|
5111
5387
|
cloid?: string | undefined;
|
|
5112
5388
|
exchangeFillId?: string | undefined;
|
|
5389
|
+
executionId?: string | undefined;
|
|
5390
|
+
scheduleId?: string | undefined;
|
|
5391
|
+
triggerId?: string | undefined;
|
|
5113
5392
|
tradeFee?: string | undefined;
|
|
5114
5393
|
pearFee?: string | undefined;
|
|
5115
5394
|
original?: {
|
|
@@ -5172,6 +5451,7 @@ declare class Core {
|
|
|
5172
5451
|
priceSource: "mid" | "mark";
|
|
5173
5452
|
track: "PEAK" | "TROUGH";
|
|
5174
5453
|
threshold: number;
|
|
5454
|
+
onPositionResize: "cancel" | "keep";
|
|
5175
5455
|
};
|
|
5176
5456
|
} | {
|
|
5177
5457
|
type: "upnl";
|
|
@@ -5179,6 +5459,7 @@ declare class Core {
|
|
|
5179
5459
|
priceSource: "mid" | "mark";
|
|
5180
5460
|
track: "PEAK" | "TROUGH";
|
|
5181
5461
|
threshold: number;
|
|
5462
|
+
onPositionResize: "cancel" | "keep";
|
|
5182
5463
|
};
|
|
5183
5464
|
} | {
|
|
5184
5465
|
type: "upnl_bps";
|
|
@@ -5214,11 +5495,13 @@ declare class Core {
|
|
|
5214
5495
|
type: "notional_trailing";
|
|
5215
5496
|
data: {
|
|
5216
5497
|
priceSource: "mid" | "mark";
|
|
5498
|
+
onPositionResize: "cancel" | "keep";
|
|
5217
5499
|
};
|
|
5218
5500
|
} | {
|
|
5219
5501
|
type: "upnl_trailing";
|
|
5220
5502
|
data: {
|
|
5221
5503
|
priceSource: "mid" | "mark";
|
|
5504
|
+
onPositionResize: "cancel" | "keep";
|
|
5222
5505
|
};
|
|
5223
5506
|
} | {
|
|
5224
5507
|
type: "upnl_bps_trailing";
|
|
@@ -5267,13 +5550,12 @@ declare class Core {
|
|
|
5267
5550
|
parentTriggerId?: string | undefined;
|
|
5268
5551
|
triggeredAt?: string | undefined;
|
|
5269
5552
|
cancelledAt?: string | undefined;
|
|
5270
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
5553
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
5271
5554
|
fills?: {
|
|
5272
5555
|
id: string;
|
|
5273
5556
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
5274
5557
|
tradeAccountId: string;
|
|
5275
5558
|
symbol: string;
|
|
5276
|
-
positionId: string;
|
|
5277
5559
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5278
5560
|
side: "BUY" | "SELL";
|
|
5279
5561
|
reduceOnly: boolean;
|
|
@@ -5283,8 +5565,18 @@ declare class Core {
|
|
|
5283
5565
|
price: string;
|
|
5284
5566
|
usd: string;
|
|
5285
5567
|
timestamp: string;
|
|
5568
|
+
assignments: {
|
|
5569
|
+
positionId: string;
|
|
5570
|
+
quantity: string;
|
|
5571
|
+
usd: string;
|
|
5572
|
+
tradeFee?: string | undefined;
|
|
5573
|
+
pearFee?: string | undefined;
|
|
5574
|
+
}[];
|
|
5286
5575
|
cloid?: string | undefined;
|
|
5287
5576
|
exchangeFillId?: string | undefined;
|
|
5577
|
+
executionId?: string | undefined;
|
|
5578
|
+
scheduleId?: string | undefined;
|
|
5579
|
+
triggerId?: string | undefined;
|
|
5288
5580
|
tradeFee?: string | undefined;
|
|
5289
5581
|
pearFee?: string | undefined;
|
|
5290
5582
|
original?: {
|
|
@@ -5313,12 +5605,14 @@ declare class Core {
|
|
|
5313
5605
|
data: {
|
|
5314
5606
|
priceSource: "mid" | "mark";
|
|
5315
5607
|
threshold: number;
|
|
5608
|
+
onPositionResize: "cancel" | "keep";
|
|
5316
5609
|
};
|
|
5317
5610
|
} | {
|
|
5318
5611
|
type: "upnl";
|
|
5319
5612
|
data: {
|
|
5320
5613
|
priceSource: "mid" | "mark";
|
|
5321
5614
|
threshold: number;
|
|
5615
|
+
onPositionResize: "cancel" | "keep";
|
|
5322
5616
|
};
|
|
5323
5617
|
} | {
|
|
5324
5618
|
type: "upnl_bps";
|
|
@@ -5327,6 +5621,7 @@ declare class Core {
|
|
|
5327
5621
|
threshold: number;
|
|
5328
5622
|
};
|
|
5329
5623
|
};
|
|
5624
|
+
closePercent?: number | undefined;
|
|
5330
5625
|
} | {
|
|
5331
5626
|
intent: "CLOSE";
|
|
5332
5627
|
type: "MARKET";
|
|
@@ -5334,11 +5629,13 @@ declare class Core {
|
|
|
5334
5629
|
type: "notional_trailing";
|
|
5335
5630
|
data: {
|
|
5336
5631
|
priceSource: "mid" | "mark";
|
|
5632
|
+
onPositionResize: "cancel" | "keep";
|
|
5337
5633
|
};
|
|
5338
5634
|
} | {
|
|
5339
5635
|
type: "upnl_trailing";
|
|
5340
5636
|
data: {
|
|
5341
5637
|
priceSource: "mid" | "mark";
|
|
5638
|
+
onPositionResize: "cancel" | "keep";
|
|
5342
5639
|
};
|
|
5343
5640
|
} | {
|
|
5344
5641
|
type: "upnl_bps_trailing";
|
|
@@ -5351,6 +5648,7 @@ declare class Core {
|
|
|
5351
5648
|
deltaValue: number;
|
|
5352
5649
|
activationValue?: number | undefined;
|
|
5353
5650
|
};
|
|
5651
|
+
closePercent?: number | undefined;
|
|
5354
5652
|
})[] | undefined;
|
|
5355
5653
|
};
|
|
5356
5654
|
}>;
|
|
@@ -5472,7 +5770,7 @@ declare class Core {
|
|
|
5472
5770
|
list: (query?: HttpTypes.NotificationListParamsInput, headers?: ClientHeaders) => Promise<{
|
|
5473
5771
|
notifications: {
|
|
5474
5772
|
id: string;
|
|
5475
|
-
category: "TAKE_PROFIT_HIT" | "STOP_LOSS_HIT" | "TRIGGER_ORDER_HIT" | "TAKE_PROFIT_FAILED" | "STOP_LOSS_FAILED" | "TRIGGER_ORDER_FAILED" | "ATTACHED_TRIGGER_DISCARDED" | "AUTO_REBALANCE_EXECUTED" | "AUTO_REBALANCE_FAILED" | "AUTO_REBALANCE_PAUSED" | "TRIGGER_TWAP_STARTED" | "TRIGGER_TWAP_SKIPPED" | "TRIGGER_TWAP_FAILED" | "TRIGGER_TWAP_POSITION_CHANGED" | "TRIGGER_CANCELLED_MIS_SCALED" | "COPY_PLACED" | "COPY_FAILED" | "COPY_SUBSCRIPTION_STOPPED" | "COPY_LEVERAGE_NOT_APPLIED" | "POSITION_LIQUIDATION";
|
|
5773
|
+
category: "TAKE_PROFIT_HIT" | "STOP_LOSS_HIT" | "TRIGGER_ORDER_HIT" | "TAKE_PROFIT_FAILED" | "STOP_LOSS_FAILED" | "TRIGGER_ORDER_FAILED" | "ATTACHED_TRIGGER_DISCARDED" | "AUTO_REBALANCE_EXECUTED" | "AUTO_REBALANCE_FAILED" | "AUTO_REBALANCE_PAUSED" | "TRIGGER_TWAP_STARTED" | "TRIGGER_TWAP_SKIPPED" | "TRIGGER_TWAP_FAILED" | "TRIGGER_TWAP_POSITION_CHANGED" | "TRIGGER_CANCELLED_MIS_SCALED" | "COPY_PLACED" | "COPY_FAILED" | "COPY_SUBSCRIPTION_STOPPED" | "COPY_LEVERAGE_NOT_APPLIED" | "POSITION_LIQUIDATION" | "TRIGGER_CANCELLED_POSITION_RESIZED" | "TAKE_PROFIT_PARTIAL" | "STOP_LOSS_PARTIAL" | "TRIGGER_ORDER_PARTIAL" | "TRIGGER_CANCELLED_BY_OPERATOR" | "LADDER_CANCELLED_BY_OPERATOR" | "AUTO_REBALANCE_STOPPED_BY_OPERATOR";
|
|
5476
5774
|
parameters: {
|
|
5477
5775
|
type: "position_liquidation";
|
|
5478
5776
|
positionId: string;
|
|
@@ -5502,6 +5800,7 @@ declare class Core {
|
|
|
5502
5800
|
metric?: "ratio" | "price" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
5503
5801
|
level?: number | undefined;
|
|
5504
5802
|
reason?: string | undefined;
|
|
5803
|
+
triggerActive?: boolean | undefined;
|
|
5505
5804
|
} | {
|
|
5506
5805
|
legs: {
|
|
5507
5806
|
id: string;
|
|
@@ -5516,6 +5815,7 @@ declare class Core {
|
|
|
5516
5815
|
metric?: "ratio" | "price" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
5517
5816
|
level?: number | undefined;
|
|
5518
5817
|
reason?: string | undefined;
|
|
5818
|
+
triggerActive?: boolean | undefined;
|
|
5519
5819
|
} | {
|
|
5520
5820
|
legs: {
|
|
5521
5821
|
id: string;
|
|
@@ -5529,6 +5829,7 @@ declare class Core {
|
|
|
5529
5829
|
metric?: "ratio" | "price" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
5530
5830
|
level?: number | undefined;
|
|
5531
5831
|
reason?: string | undefined;
|
|
5832
|
+
triggerActive?: boolean | undefined;
|
|
5532
5833
|
} | {
|
|
5533
5834
|
legs: {
|
|
5534
5835
|
id: string;
|
|
@@ -5541,6 +5842,7 @@ declare class Core {
|
|
|
5541
5842
|
metric?: "ratio" | "price" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
5542
5843
|
level?: number | undefined;
|
|
5543
5844
|
reason?: string | undefined;
|
|
5845
|
+
triggerActive?: boolean | undefined;
|
|
5544
5846
|
} | {
|
|
5545
5847
|
legs: {
|
|
5546
5848
|
id: string;
|
|
@@ -5662,6 +5964,9 @@ declare class Core {
|
|
|
5662
5964
|
resource: {
|
|
5663
5965
|
kind: "POSITION";
|
|
5664
5966
|
id: string;
|
|
5967
|
+
} | {
|
|
5968
|
+
kind: "SCHEDULE";
|
|
5969
|
+
id: string;
|
|
5665
5970
|
};
|
|
5666
5971
|
leaderTradeAccountId: string;
|
|
5667
5972
|
} | {
|
|
@@ -5677,6 +5982,43 @@ declare class Core {
|
|
|
5677
5982
|
type: "copy_leverage_not_applied";
|
|
5678
5983
|
subscriptionId: string;
|
|
5679
5984
|
activityId: string;
|
|
5985
|
+
} | {
|
|
5986
|
+
type: "trigger_cancelled_position_resized";
|
|
5987
|
+
triggerId: string;
|
|
5988
|
+
positionId: string;
|
|
5989
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5990
|
+
metric: "notional" | "upnl" | "notional_trailing" | "upnl_trailing";
|
|
5991
|
+
} | {
|
|
5992
|
+
legs: {
|
|
5993
|
+
id: string;
|
|
5994
|
+
symbol: string;
|
|
5995
|
+
side: "BUY" | "SELL";
|
|
5996
|
+
}[];
|
|
5997
|
+
type: "trigger_cancelled_by_operator";
|
|
5998
|
+
triggerId: string;
|
|
5999
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6000
|
+
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6001
|
+
positionId?: string | undefined;
|
|
6002
|
+
} | {
|
|
6003
|
+
legs: {
|
|
6004
|
+
id: string;
|
|
6005
|
+
symbol: string;
|
|
6006
|
+
side: "BUY" | "SELL";
|
|
6007
|
+
}[];
|
|
6008
|
+
type: "ladder_cancelled_by_operator";
|
|
6009
|
+
ladderId: string;
|
|
6010
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6011
|
+
positionId?: string | undefined;
|
|
6012
|
+
} | {
|
|
6013
|
+
legs: {
|
|
6014
|
+
id: string;
|
|
6015
|
+
symbol: string;
|
|
6016
|
+
side: "BUY" | "SELL";
|
|
6017
|
+
}[];
|
|
6018
|
+
type: "auto_rebalance_stopped_by_operator";
|
|
6019
|
+
configId: string;
|
|
6020
|
+
positionId: string;
|
|
6021
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5680
6022
|
};
|
|
5681
6023
|
isRead: boolean;
|
|
5682
6024
|
createdAt: string;
|
|
@@ -5717,7 +6059,7 @@ declare class Core {
|
|
|
5717
6059
|
entryPrices: Record<string, string>;
|
|
5718
6060
|
createdAt: string;
|
|
5719
6061
|
updatedAt: string;
|
|
5720
|
-
closedReason?: "
|
|
6062
|
+
closedReason?: "USER" | "LIQUIDATED" | "NETTED" | null | undefined;
|
|
5721
6063
|
copySubscriptionId?: string | undefined;
|
|
5722
6064
|
isCopying?: boolean | undefined;
|
|
5723
6065
|
closedAt?: string | null | undefined;
|
|
@@ -5782,7 +6124,7 @@ declare class Core {
|
|
|
5782
6124
|
entryVwap?: string | undefined;
|
|
5783
6125
|
exitVwap?: string | undefined;
|
|
5784
6126
|
}[];
|
|
5785
|
-
closedReason?: "
|
|
6127
|
+
closedReason?: "USER" | "LIQUIDATED" | "NETTED" | undefined;
|
|
5786
6128
|
copySubscriptionId?: string | undefined;
|
|
5787
6129
|
isCopying?: false | undefined;
|
|
5788
6130
|
steps?: {
|
|
@@ -6414,6 +6756,18 @@ declare class Core {
|
|
|
6414
6756
|
pendingFunding: string;
|
|
6415
6757
|
claimable: string;
|
|
6416
6758
|
paid: string;
|
|
6759
|
+
sources: {
|
|
6760
|
+
referral: {
|
|
6761
|
+
earned: string;
|
|
6762
|
+
pendingMaturity: string;
|
|
6763
|
+
pendingFunding: string;
|
|
6764
|
+
};
|
|
6765
|
+
copy: {
|
|
6766
|
+
earned: string;
|
|
6767
|
+
pendingMaturity: string;
|
|
6768
|
+
pendingFunding: string;
|
|
6769
|
+
};
|
|
6770
|
+
};
|
|
6417
6771
|
};
|
|
6418
6772
|
};
|
|
6419
6773
|
payout: {
|
|
@@ -6426,6 +6780,7 @@ declare class Core {
|
|
|
6426
6780
|
claim: (body: HttpTypes.CreateRewardClaim, headers?: ClientHeaders) => Promise<{
|
|
6427
6781
|
status: "TRANSFER_INTENT_READY" | "PAYOUT_PENDING" | "PAID" | "RELEASED" | "NO_CLAIMABLE_BALANCE" | "CLAIMABILITY_DISABLED" | "NO_CAPACITY" | "MISSING_BALANCE" | "STALE_BALANCE" | "PAYOUT_DISABLED";
|
|
6428
6782
|
claimId?: string | undefined;
|
|
6783
|
+
transactionHash?: `0x${string}` | undefined;
|
|
6429
6784
|
}>;
|
|
6430
6785
|
/** Return the lifecycle of one reward claim owned by the authenticated referrer. */
|
|
6431
6786
|
claimStatus: (claimId: string, headers?: ClientHeaders) => Promise<{
|
|
@@ -6438,6 +6793,7 @@ declare class Core {
|
|
|
6438
6793
|
reservedAmount?: string | undefined;
|
|
6439
6794
|
transferIntentCreatedAt?: string | undefined;
|
|
6440
6795
|
verifiedAt?: string | undefined;
|
|
6796
|
+
transactionHash?: `0x${string}` | undefined;
|
|
6441
6797
|
}>;
|
|
6442
6798
|
};
|
|
6443
6799
|
schedules: {
|
|
@@ -6446,7 +6802,7 @@ declare class Core {
|
|
|
6446
6802
|
schedules: ({
|
|
6447
6803
|
id: string;
|
|
6448
6804
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6449
|
-
status: "ACTIVE" | "
|
|
6805
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6450
6806
|
positionKey: string;
|
|
6451
6807
|
executionType: "MARKET";
|
|
6452
6808
|
startAt: string;
|
|
@@ -6477,10 +6833,17 @@ declare class Core {
|
|
|
6477
6833
|
lastSliceAt?: string | undefined;
|
|
6478
6834
|
cancelledAt?: string | undefined;
|
|
6479
6835
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
6836
|
+
failure?: {
|
|
6837
|
+
reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
|
|
6838
|
+
} | {
|
|
6839
|
+
reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
|
|
6840
|
+
executionId?: string | undefined;
|
|
6841
|
+
} | undefined;
|
|
6842
|
+
failedAt?: string | undefined;
|
|
6480
6843
|
} | {
|
|
6481
6844
|
id: string;
|
|
6482
6845
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6483
|
-
status: "ACTIVE" | "
|
|
6846
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6484
6847
|
positionKey: string;
|
|
6485
6848
|
executionType: "MARKET";
|
|
6486
6849
|
startAt: string;
|
|
@@ -6505,6 +6868,13 @@ declare class Core {
|
|
|
6505
6868
|
lastSliceAt?: string | undefined;
|
|
6506
6869
|
cancelledAt?: string | undefined;
|
|
6507
6870
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
6871
|
+
failure?: {
|
|
6872
|
+
reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
|
|
6873
|
+
} | {
|
|
6874
|
+
reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
|
|
6875
|
+
executionId?: string | undefined;
|
|
6876
|
+
} | undefined;
|
|
6877
|
+
failedAt?: string | undefined;
|
|
6508
6878
|
})[];
|
|
6509
6879
|
nextCursor?: string | undefined;
|
|
6510
6880
|
}>;
|
|
@@ -6512,7 +6882,7 @@ declare class Core {
|
|
|
6512
6882
|
schedule: {
|
|
6513
6883
|
id: string;
|
|
6514
6884
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6515
|
-
status: "ACTIVE" | "
|
|
6885
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6516
6886
|
positionKey: string;
|
|
6517
6887
|
executionType: "MARKET";
|
|
6518
6888
|
startAt: string;
|
|
@@ -6543,10 +6913,17 @@ declare class Core {
|
|
|
6543
6913
|
lastSliceAt?: string | undefined;
|
|
6544
6914
|
cancelledAt?: string | undefined;
|
|
6545
6915
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
6916
|
+
failure?: {
|
|
6917
|
+
reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
|
|
6918
|
+
} | {
|
|
6919
|
+
reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
|
|
6920
|
+
executionId?: string | undefined;
|
|
6921
|
+
} | undefined;
|
|
6922
|
+
failedAt?: string | undefined;
|
|
6546
6923
|
} | {
|
|
6547
6924
|
id: string;
|
|
6548
6925
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6549
|
-
status: "ACTIVE" | "
|
|
6926
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6550
6927
|
positionKey: string;
|
|
6551
6928
|
executionType: "MARKET";
|
|
6552
6929
|
startAt: string;
|
|
@@ -6571,6 +6948,13 @@ declare class Core {
|
|
|
6571
6948
|
lastSliceAt?: string | undefined;
|
|
6572
6949
|
cancelledAt?: string | undefined;
|
|
6573
6950
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
6951
|
+
failure?: {
|
|
6952
|
+
reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
|
|
6953
|
+
} | {
|
|
6954
|
+
reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
|
|
6955
|
+
executionId?: string | undefined;
|
|
6956
|
+
} | undefined;
|
|
6957
|
+
failedAt?: string | undefined;
|
|
6574
6958
|
};
|
|
6575
6959
|
}>;
|
|
6576
6960
|
get: (scheduleId: string, query: HttpTypes.ScheduleDetailParamsInput, headers?: ClientHeaders) => Promise<{
|
|
@@ -6578,7 +6962,7 @@ declare class Core {
|
|
|
6578
6962
|
schedule: {
|
|
6579
6963
|
id: string;
|
|
6580
6964
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6581
|
-
status: "ACTIVE" | "
|
|
6965
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6582
6966
|
positionKey: string;
|
|
6583
6967
|
executionType: "MARKET";
|
|
6584
6968
|
startAt: string;
|
|
@@ -6609,10 +6993,17 @@ declare class Core {
|
|
|
6609
6993
|
lastSliceAt?: string | undefined;
|
|
6610
6994
|
cancelledAt?: string | undefined;
|
|
6611
6995
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
6996
|
+
failure?: {
|
|
6997
|
+
reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
|
|
6998
|
+
} | {
|
|
6999
|
+
reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
|
|
7000
|
+
executionId?: string | undefined;
|
|
7001
|
+
} | undefined;
|
|
7002
|
+
failedAt?: string | undefined;
|
|
6612
7003
|
} | {
|
|
6613
7004
|
id: string;
|
|
6614
7005
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6615
|
-
status: "ACTIVE" | "
|
|
7006
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6616
7007
|
positionKey: string;
|
|
6617
7008
|
executionType: "MARKET";
|
|
6618
7009
|
startAt: string;
|
|
@@ -6637,6 +7028,13 @@ declare class Core {
|
|
|
6637
7028
|
lastSliceAt?: string | undefined;
|
|
6638
7029
|
cancelledAt?: string | undefined;
|
|
6639
7030
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
7031
|
+
failure?: {
|
|
7032
|
+
reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
|
|
7033
|
+
} | {
|
|
7034
|
+
reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
|
|
7035
|
+
executionId?: string | undefined;
|
|
7036
|
+
} | undefined;
|
|
7037
|
+
failedAt?: string | undefined;
|
|
6640
7038
|
};
|
|
6641
7039
|
slices: ({
|
|
6642
7040
|
index: number;
|
|
@@ -6650,7 +7048,6 @@ declare class Core {
|
|
|
6650
7048
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
6651
7049
|
tradeAccountId: string;
|
|
6652
7050
|
symbol: string;
|
|
6653
|
-
positionId: string;
|
|
6654
7051
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6655
7052
|
side: "BUY" | "SELL";
|
|
6656
7053
|
reduceOnly: boolean;
|
|
@@ -6660,8 +7057,18 @@ declare class Core {
|
|
|
6660
7057
|
price: string;
|
|
6661
7058
|
usd: string;
|
|
6662
7059
|
timestamp: string;
|
|
7060
|
+
assignments: {
|
|
7061
|
+
positionId: string;
|
|
7062
|
+
quantity: string;
|
|
7063
|
+
usd: string;
|
|
7064
|
+
tradeFee?: string | undefined;
|
|
7065
|
+
pearFee?: string | undefined;
|
|
7066
|
+
}[];
|
|
6663
7067
|
cloid?: string | undefined;
|
|
6664
7068
|
exchangeFillId?: string | undefined;
|
|
7069
|
+
executionId?: string | undefined;
|
|
7070
|
+
scheduleId?: string | undefined;
|
|
7071
|
+
triggerId?: string | undefined;
|
|
6665
7072
|
tradeFee?: string | undefined;
|
|
6666
7073
|
pearFee?: string | undefined;
|
|
6667
7074
|
original?: {
|
|
@@ -6714,7 +7121,7 @@ declare class Core {
|
|
|
6714
7121
|
execution: {
|
|
6715
7122
|
id: string;
|
|
6716
7123
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6717
|
-
status: "ACTIVE" | "
|
|
7124
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6718
7125
|
createdAt: string;
|
|
6719
7126
|
updatedAt: string;
|
|
6720
7127
|
intent: "OPEN";
|
|
@@ -6737,6 +7144,13 @@ declare class Core {
|
|
|
6737
7144
|
maxImpactPrice?: string | undefined;
|
|
6738
7145
|
}[]];
|
|
6739
7146
|
error?: string | undefined;
|
|
7147
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7148
|
+
refusedLegs?: {
|
|
7149
|
+
id: string;
|
|
7150
|
+
ticker: string;
|
|
7151
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7152
|
+
error: string;
|
|
7153
|
+
}[] | undefined;
|
|
6740
7154
|
orders?: {
|
|
6741
7155
|
id: string;
|
|
6742
7156
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -6761,7 +7175,7 @@ declare class Core {
|
|
|
6761
7175
|
} | {
|
|
6762
7176
|
id: string;
|
|
6763
7177
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6764
|
-
status: "ACTIVE" | "
|
|
7178
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6765
7179
|
createdAt: string;
|
|
6766
7180
|
updatedAt: string;
|
|
6767
7181
|
intent: "ADJUST";
|
|
@@ -6784,6 +7198,13 @@ declare class Core {
|
|
|
6784
7198
|
maxImpactPrice?: string | undefined;
|
|
6785
7199
|
}[]];
|
|
6786
7200
|
error?: string | undefined;
|
|
7201
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7202
|
+
refusedLegs?: {
|
|
7203
|
+
id: string;
|
|
7204
|
+
ticker: string;
|
|
7205
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7206
|
+
error: string;
|
|
7207
|
+
}[] | undefined;
|
|
6787
7208
|
orders?: {
|
|
6788
7209
|
id: string;
|
|
6789
7210
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -6809,12 +7230,19 @@ declare class Core {
|
|
|
6809
7230
|
} | {
|
|
6810
7231
|
id: string;
|
|
6811
7232
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6812
|
-
status: "ACTIVE" | "
|
|
7233
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6813
7234
|
createdAt: string;
|
|
6814
7235
|
updatedAt: string;
|
|
6815
7236
|
intent: "CLOSE";
|
|
6816
7237
|
orderType: "MARKET";
|
|
6817
7238
|
error?: string | undefined;
|
|
7239
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7240
|
+
refusedLegs?: {
|
|
7241
|
+
id: string;
|
|
7242
|
+
ticker: string;
|
|
7243
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7244
|
+
error: string;
|
|
7245
|
+
}[] | undefined;
|
|
6818
7246
|
orders?: {
|
|
6819
7247
|
id: string;
|
|
6820
7248
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -6840,12 +7268,19 @@ declare class Core {
|
|
|
6840
7268
|
} | {
|
|
6841
7269
|
id: string;
|
|
6842
7270
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6843
|
-
status: "ACTIVE" | "
|
|
7271
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6844
7272
|
createdAt: string;
|
|
6845
7273
|
updatedAt: string;
|
|
6846
7274
|
intent: "REVERSE";
|
|
6847
7275
|
orderType: "MARKET";
|
|
6848
7276
|
error?: string | undefined;
|
|
7277
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7278
|
+
refusedLegs?: {
|
|
7279
|
+
id: string;
|
|
7280
|
+
ticker: string;
|
|
7281
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7282
|
+
error: string;
|
|
7283
|
+
}[] | undefined;
|
|
6849
7284
|
orders?: {
|
|
6850
7285
|
id: string;
|
|
6851
7286
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -6874,7 +7309,7 @@ declare class Core {
|
|
|
6874
7309
|
execution: {
|
|
6875
7310
|
id: string;
|
|
6876
7311
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6877
|
-
status: "ACTIVE" | "
|
|
7312
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6878
7313
|
createdAt: string;
|
|
6879
7314
|
updatedAt: string;
|
|
6880
7315
|
intent: "OPEN";
|
|
@@ -6897,6 +7332,13 @@ declare class Core {
|
|
|
6897
7332
|
maxImpactPrice?: string | undefined;
|
|
6898
7333
|
}[]];
|
|
6899
7334
|
error?: string | undefined;
|
|
7335
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7336
|
+
refusedLegs?: {
|
|
7337
|
+
id: string;
|
|
7338
|
+
ticker: string;
|
|
7339
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7340
|
+
error: string;
|
|
7341
|
+
}[] | undefined;
|
|
6900
7342
|
orders?: {
|
|
6901
7343
|
id: string;
|
|
6902
7344
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -6921,7 +7363,7 @@ declare class Core {
|
|
|
6921
7363
|
} | {
|
|
6922
7364
|
id: string;
|
|
6923
7365
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6924
|
-
status: "ACTIVE" | "
|
|
7366
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6925
7367
|
createdAt: string;
|
|
6926
7368
|
updatedAt: string;
|
|
6927
7369
|
intent: "ADJUST";
|
|
@@ -6944,6 +7386,13 @@ declare class Core {
|
|
|
6944
7386
|
maxImpactPrice?: string | undefined;
|
|
6945
7387
|
}[]];
|
|
6946
7388
|
error?: string | undefined;
|
|
7389
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7390
|
+
refusedLegs?: {
|
|
7391
|
+
id: string;
|
|
7392
|
+
ticker: string;
|
|
7393
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7394
|
+
error: string;
|
|
7395
|
+
}[] | undefined;
|
|
6947
7396
|
orders?: {
|
|
6948
7397
|
id: string;
|
|
6949
7398
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -6969,12 +7418,19 @@ declare class Core {
|
|
|
6969
7418
|
} | {
|
|
6970
7419
|
id: string;
|
|
6971
7420
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6972
|
-
status: "ACTIVE" | "
|
|
7421
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6973
7422
|
createdAt: string;
|
|
6974
7423
|
updatedAt: string;
|
|
6975
7424
|
intent: "CLOSE";
|
|
6976
7425
|
orderType: "MARKET";
|
|
6977
7426
|
error?: string | undefined;
|
|
7427
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7428
|
+
refusedLegs?: {
|
|
7429
|
+
id: string;
|
|
7430
|
+
ticker: string;
|
|
7431
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7432
|
+
error: string;
|
|
7433
|
+
}[] | undefined;
|
|
6978
7434
|
orders?: {
|
|
6979
7435
|
id: string;
|
|
6980
7436
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7000,12 +7456,19 @@ declare class Core {
|
|
|
7000
7456
|
} | {
|
|
7001
7457
|
id: string;
|
|
7002
7458
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7003
|
-
status: "ACTIVE" | "
|
|
7459
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7004
7460
|
createdAt: string;
|
|
7005
7461
|
updatedAt: string;
|
|
7006
7462
|
intent: "REVERSE";
|
|
7007
7463
|
orderType: "MARKET";
|
|
7008
7464
|
error?: string | undefined;
|
|
7465
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7466
|
+
refusedLegs?: {
|
|
7467
|
+
id: string;
|
|
7468
|
+
ticker: string;
|
|
7469
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7470
|
+
error: string;
|
|
7471
|
+
}[] | undefined;
|
|
7009
7472
|
orders?: {
|
|
7010
7473
|
id: string;
|
|
7011
7474
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7034,7 +7497,7 @@ declare class Core {
|
|
|
7034
7497
|
execution: {
|
|
7035
7498
|
id: string;
|
|
7036
7499
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7037
|
-
status: "ACTIVE" | "
|
|
7500
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7038
7501
|
createdAt: string;
|
|
7039
7502
|
updatedAt: string;
|
|
7040
7503
|
intent: "OPEN";
|
|
@@ -7057,6 +7520,13 @@ declare class Core {
|
|
|
7057
7520
|
maxImpactPrice?: string | undefined;
|
|
7058
7521
|
}[]];
|
|
7059
7522
|
error?: string | undefined;
|
|
7523
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7524
|
+
refusedLegs?: {
|
|
7525
|
+
id: string;
|
|
7526
|
+
ticker: string;
|
|
7527
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7528
|
+
error: string;
|
|
7529
|
+
}[] | undefined;
|
|
7060
7530
|
orders?: {
|
|
7061
7531
|
id: string;
|
|
7062
7532
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7081,7 +7551,7 @@ declare class Core {
|
|
|
7081
7551
|
} | {
|
|
7082
7552
|
id: string;
|
|
7083
7553
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7084
|
-
status: "ACTIVE" | "
|
|
7554
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7085
7555
|
createdAt: string;
|
|
7086
7556
|
updatedAt: string;
|
|
7087
7557
|
intent: "ADJUST";
|
|
@@ -7104,6 +7574,13 @@ declare class Core {
|
|
|
7104
7574
|
maxImpactPrice?: string | undefined;
|
|
7105
7575
|
}[]];
|
|
7106
7576
|
error?: string | undefined;
|
|
7577
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7578
|
+
refusedLegs?: {
|
|
7579
|
+
id: string;
|
|
7580
|
+
ticker: string;
|
|
7581
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7582
|
+
error: string;
|
|
7583
|
+
}[] | undefined;
|
|
7107
7584
|
orders?: {
|
|
7108
7585
|
id: string;
|
|
7109
7586
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7129,12 +7606,19 @@ declare class Core {
|
|
|
7129
7606
|
} | {
|
|
7130
7607
|
id: string;
|
|
7131
7608
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7132
|
-
status: "ACTIVE" | "
|
|
7609
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7133
7610
|
createdAt: string;
|
|
7134
7611
|
updatedAt: string;
|
|
7135
7612
|
intent: "CLOSE";
|
|
7136
7613
|
orderType: "MARKET";
|
|
7137
7614
|
error?: string | undefined;
|
|
7615
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7616
|
+
refusedLegs?: {
|
|
7617
|
+
id: string;
|
|
7618
|
+
ticker: string;
|
|
7619
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7620
|
+
error: string;
|
|
7621
|
+
}[] | undefined;
|
|
7138
7622
|
orders?: {
|
|
7139
7623
|
id: string;
|
|
7140
7624
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7160,12 +7644,19 @@ declare class Core {
|
|
|
7160
7644
|
} | {
|
|
7161
7645
|
id: string;
|
|
7162
7646
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7163
|
-
status: "ACTIVE" | "
|
|
7647
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7164
7648
|
createdAt: string;
|
|
7165
7649
|
updatedAt: string;
|
|
7166
7650
|
intent: "REVERSE";
|
|
7167
7651
|
orderType: "MARKET";
|
|
7168
7652
|
error?: string | undefined;
|
|
7653
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7654
|
+
refusedLegs?: {
|
|
7655
|
+
id: string;
|
|
7656
|
+
ticker: string;
|
|
7657
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7658
|
+
error: string;
|
|
7659
|
+
}[] | undefined;
|
|
7169
7660
|
orders?: {
|
|
7170
7661
|
id: string;
|
|
7171
7662
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7194,7 +7685,7 @@ declare class Core {
|
|
|
7194
7685
|
execution: {
|
|
7195
7686
|
id: string;
|
|
7196
7687
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7197
|
-
status: "ACTIVE" | "
|
|
7688
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7198
7689
|
createdAt: string;
|
|
7199
7690
|
updatedAt: string;
|
|
7200
7691
|
intent: "OPEN";
|
|
@@ -7217,6 +7708,13 @@ declare class Core {
|
|
|
7217
7708
|
maxImpactPrice?: string | undefined;
|
|
7218
7709
|
}[]];
|
|
7219
7710
|
error?: string | undefined;
|
|
7711
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7712
|
+
refusedLegs?: {
|
|
7713
|
+
id: string;
|
|
7714
|
+
ticker: string;
|
|
7715
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7716
|
+
error: string;
|
|
7717
|
+
}[] | undefined;
|
|
7220
7718
|
orders?: {
|
|
7221
7719
|
id: string;
|
|
7222
7720
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7241,7 +7739,7 @@ declare class Core {
|
|
|
7241
7739
|
} | {
|
|
7242
7740
|
id: string;
|
|
7243
7741
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7244
|
-
status: "ACTIVE" | "
|
|
7742
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7245
7743
|
createdAt: string;
|
|
7246
7744
|
updatedAt: string;
|
|
7247
7745
|
intent: "ADJUST";
|
|
@@ -7264,6 +7762,13 @@ declare class Core {
|
|
|
7264
7762
|
maxImpactPrice?: string | undefined;
|
|
7265
7763
|
}[]];
|
|
7266
7764
|
error?: string | undefined;
|
|
7765
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7766
|
+
refusedLegs?: {
|
|
7767
|
+
id: string;
|
|
7768
|
+
ticker: string;
|
|
7769
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7770
|
+
error: string;
|
|
7771
|
+
}[] | undefined;
|
|
7267
7772
|
orders?: {
|
|
7268
7773
|
id: string;
|
|
7269
7774
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7289,12 +7794,19 @@ declare class Core {
|
|
|
7289
7794
|
} | {
|
|
7290
7795
|
id: string;
|
|
7291
7796
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7292
|
-
status: "ACTIVE" | "
|
|
7797
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7293
7798
|
createdAt: string;
|
|
7294
7799
|
updatedAt: string;
|
|
7295
7800
|
intent: "CLOSE";
|
|
7296
7801
|
orderType: "MARKET";
|
|
7297
7802
|
error?: string | undefined;
|
|
7803
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7804
|
+
refusedLegs?: {
|
|
7805
|
+
id: string;
|
|
7806
|
+
ticker: string;
|
|
7807
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7808
|
+
error: string;
|
|
7809
|
+
}[] | undefined;
|
|
7298
7810
|
orders?: {
|
|
7299
7811
|
id: string;
|
|
7300
7812
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7320,12 +7832,19 @@ declare class Core {
|
|
|
7320
7832
|
} | {
|
|
7321
7833
|
id: string;
|
|
7322
7834
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7323
|
-
status: "ACTIVE" | "
|
|
7835
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7324
7836
|
createdAt: string;
|
|
7325
7837
|
updatedAt: string;
|
|
7326
7838
|
intent: "REVERSE";
|
|
7327
7839
|
orderType: "MARKET";
|
|
7328
7840
|
error?: string | undefined;
|
|
7841
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7842
|
+
refusedLegs?: {
|
|
7843
|
+
id: string;
|
|
7844
|
+
ticker: string;
|
|
7845
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7846
|
+
error: string;
|
|
7847
|
+
}[] | undefined;
|
|
7329
7848
|
orders?: {
|
|
7330
7849
|
id: string;
|
|
7331
7850
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7354,7 +7873,7 @@ declare class Core {
|
|
|
7354
7873
|
executions: ({
|
|
7355
7874
|
id: string;
|
|
7356
7875
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7357
|
-
status: "ACTIVE" | "
|
|
7876
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7358
7877
|
createdAt: string;
|
|
7359
7878
|
updatedAt: string;
|
|
7360
7879
|
intent: "OPEN";
|
|
@@ -7377,6 +7896,13 @@ declare class Core {
|
|
|
7377
7896
|
maxImpactPrice?: string | undefined;
|
|
7378
7897
|
}[]];
|
|
7379
7898
|
error?: string | undefined;
|
|
7899
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7900
|
+
refusedLegs?: {
|
|
7901
|
+
id: string;
|
|
7902
|
+
ticker: string;
|
|
7903
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7904
|
+
error: string;
|
|
7905
|
+
}[] | undefined;
|
|
7380
7906
|
orders?: {
|
|
7381
7907
|
id: string;
|
|
7382
7908
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7401,7 +7927,7 @@ declare class Core {
|
|
|
7401
7927
|
} | {
|
|
7402
7928
|
id: string;
|
|
7403
7929
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7404
|
-
status: "ACTIVE" | "
|
|
7930
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7405
7931
|
createdAt: string;
|
|
7406
7932
|
updatedAt: string;
|
|
7407
7933
|
intent: "ADJUST";
|
|
@@ -7424,6 +7950,13 @@ declare class Core {
|
|
|
7424
7950
|
maxImpactPrice?: string | undefined;
|
|
7425
7951
|
}[]];
|
|
7426
7952
|
error?: string | undefined;
|
|
7953
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7954
|
+
refusedLegs?: {
|
|
7955
|
+
id: string;
|
|
7956
|
+
ticker: string;
|
|
7957
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7958
|
+
error: string;
|
|
7959
|
+
}[] | undefined;
|
|
7427
7960
|
orders?: {
|
|
7428
7961
|
id: string;
|
|
7429
7962
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7449,12 +7982,19 @@ declare class Core {
|
|
|
7449
7982
|
} | {
|
|
7450
7983
|
id: string;
|
|
7451
7984
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7452
|
-
status: "ACTIVE" | "
|
|
7985
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7453
7986
|
createdAt: string;
|
|
7454
7987
|
updatedAt: string;
|
|
7455
7988
|
intent: "CLOSE";
|
|
7456
7989
|
orderType: "MARKET";
|
|
7457
7990
|
error?: string | undefined;
|
|
7991
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7992
|
+
refusedLegs?: {
|
|
7993
|
+
id: string;
|
|
7994
|
+
ticker: string;
|
|
7995
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7996
|
+
error: string;
|
|
7997
|
+
}[] | undefined;
|
|
7458
7998
|
orders?: {
|
|
7459
7999
|
id: string;
|
|
7460
8000
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7480,12 +8020,19 @@ declare class Core {
|
|
|
7480
8020
|
} | {
|
|
7481
8021
|
id: string;
|
|
7482
8022
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7483
|
-
status: "ACTIVE" | "
|
|
8023
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7484
8024
|
createdAt: string;
|
|
7485
8025
|
updatedAt: string;
|
|
7486
8026
|
intent: "REVERSE";
|
|
7487
8027
|
orderType: "MARKET";
|
|
7488
8028
|
error?: string | undefined;
|
|
8029
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8030
|
+
refusedLegs?: {
|
|
8031
|
+
id: string;
|
|
8032
|
+
ticker: string;
|
|
8033
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8034
|
+
error: string;
|
|
8035
|
+
}[] | undefined;
|
|
7489
8036
|
orders?: {
|
|
7490
8037
|
id: string;
|
|
7491
8038
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7510,7 +8057,7 @@ declare class Core {
|
|
|
7510
8057
|
} | undefined;
|
|
7511
8058
|
})[];
|
|
7512
8059
|
}>;
|
|
7513
|
-
setLeverage: (body: HttpTypes.
|
|
8060
|
+
setLeverage: (body: HttpTypes.SetLeverageInput, headers?: ClientHeaders) => Promise<Record<string, never>>;
|
|
7514
8061
|
/** Add or remove margin from an isolated position without changing its size. */
|
|
7515
8062
|
adjustIsolatedMargin: (body: HttpTypes.AdjustIsolatedMargin, headers?: ClientHeaders) => Promise<{
|
|
7516
8063
|
adjustmentId: string;
|
|
@@ -7608,13 +8155,12 @@ declare class Core {
|
|
|
7608
8155
|
parentTriggerId?: string | undefined;
|
|
7609
8156
|
triggeredAt?: string | undefined;
|
|
7610
8157
|
cancelledAt?: string | undefined;
|
|
7611
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
8158
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
7612
8159
|
fills?: {
|
|
7613
8160
|
id: string;
|
|
7614
8161
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
7615
8162
|
tradeAccountId: string;
|
|
7616
8163
|
symbol: string;
|
|
7617
|
-
positionId: string;
|
|
7618
8164
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7619
8165
|
side: "BUY" | "SELL";
|
|
7620
8166
|
reduceOnly: boolean;
|
|
@@ -7624,8 +8170,18 @@ declare class Core {
|
|
|
7624
8170
|
price: string;
|
|
7625
8171
|
usd: string;
|
|
7626
8172
|
timestamp: string;
|
|
8173
|
+
assignments: {
|
|
8174
|
+
positionId: string;
|
|
8175
|
+
quantity: string;
|
|
8176
|
+
usd: string;
|
|
8177
|
+
tradeFee?: string | undefined;
|
|
8178
|
+
pearFee?: string | undefined;
|
|
8179
|
+
}[];
|
|
7627
8180
|
cloid?: string | undefined;
|
|
7628
8181
|
exchangeFillId?: string | undefined;
|
|
8182
|
+
executionId?: string | undefined;
|
|
8183
|
+
scheduleId?: string | undefined;
|
|
8184
|
+
triggerId?: string | undefined;
|
|
7629
8185
|
tradeFee?: string | undefined;
|
|
7630
8186
|
pearFee?: string | undefined;
|
|
7631
8187
|
original?: {
|
|
@@ -7679,6 +8235,7 @@ declare class Core {
|
|
|
7679
8235
|
priceSource: "mid" | "mark";
|
|
7680
8236
|
track: "PEAK" | "TROUGH";
|
|
7681
8237
|
threshold: number;
|
|
8238
|
+
onPositionResize: "cancel" | "keep";
|
|
7682
8239
|
};
|
|
7683
8240
|
} | {
|
|
7684
8241
|
type: "upnl";
|
|
@@ -7686,6 +8243,7 @@ declare class Core {
|
|
|
7686
8243
|
priceSource: "mid" | "mark";
|
|
7687
8244
|
track: "PEAK" | "TROUGH";
|
|
7688
8245
|
threshold: number;
|
|
8246
|
+
onPositionResize: "cancel" | "keep";
|
|
7689
8247
|
};
|
|
7690
8248
|
} | {
|
|
7691
8249
|
type: "upnl_bps";
|
|
@@ -7745,13 +8303,12 @@ declare class Core {
|
|
|
7745
8303
|
parentTriggerId?: string | undefined;
|
|
7746
8304
|
triggeredAt?: string | undefined;
|
|
7747
8305
|
cancelledAt?: string | undefined;
|
|
7748
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
8306
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
7749
8307
|
fills?: {
|
|
7750
8308
|
id: string;
|
|
7751
8309
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
7752
8310
|
tradeAccountId: string;
|
|
7753
8311
|
symbol: string;
|
|
7754
|
-
positionId: string;
|
|
7755
8312
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7756
8313
|
side: "BUY" | "SELL";
|
|
7757
8314
|
reduceOnly: boolean;
|
|
@@ -7761,8 +8318,18 @@ declare class Core {
|
|
|
7761
8318
|
price: string;
|
|
7762
8319
|
usd: string;
|
|
7763
8320
|
timestamp: string;
|
|
8321
|
+
assignments: {
|
|
8322
|
+
positionId: string;
|
|
8323
|
+
quantity: string;
|
|
8324
|
+
usd: string;
|
|
8325
|
+
tradeFee?: string | undefined;
|
|
8326
|
+
pearFee?: string | undefined;
|
|
8327
|
+
}[];
|
|
7764
8328
|
cloid?: string | undefined;
|
|
7765
8329
|
exchangeFillId?: string | undefined;
|
|
8330
|
+
executionId?: string | undefined;
|
|
8331
|
+
scheduleId?: string | undefined;
|
|
8332
|
+
triggerId?: string | undefined;
|
|
7766
8333
|
tradeFee?: string | undefined;
|
|
7767
8334
|
pearFee?: string | undefined;
|
|
7768
8335
|
original?: {
|
|
@@ -7824,6 +8391,7 @@ declare class Core {
|
|
|
7824
8391
|
priceSource: "mid" | "mark";
|
|
7825
8392
|
track: "PEAK" | "TROUGH";
|
|
7826
8393
|
threshold: number;
|
|
8394
|
+
onPositionResize: "cancel" | "keep";
|
|
7827
8395
|
};
|
|
7828
8396
|
} | {
|
|
7829
8397
|
type: "upnl";
|
|
@@ -7831,6 +8399,7 @@ declare class Core {
|
|
|
7831
8399
|
priceSource: "mid" | "mark";
|
|
7832
8400
|
track: "PEAK" | "TROUGH";
|
|
7833
8401
|
threshold: number;
|
|
8402
|
+
onPositionResize: "cancel" | "keep";
|
|
7834
8403
|
};
|
|
7835
8404
|
} | {
|
|
7836
8405
|
type: "upnl_bps";
|
|
@@ -7866,11 +8435,13 @@ declare class Core {
|
|
|
7866
8435
|
type: "notional_trailing";
|
|
7867
8436
|
data: {
|
|
7868
8437
|
priceSource: "mid" | "mark";
|
|
8438
|
+
onPositionResize: "cancel" | "keep";
|
|
7869
8439
|
};
|
|
7870
8440
|
} | {
|
|
7871
8441
|
type: "upnl_trailing";
|
|
7872
8442
|
data: {
|
|
7873
8443
|
priceSource: "mid" | "mark";
|
|
8444
|
+
onPositionResize: "cancel" | "keep";
|
|
7874
8445
|
};
|
|
7875
8446
|
} | {
|
|
7876
8447
|
type: "upnl_bps_trailing";
|
|
@@ -7913,13 +8484,12 @@ declare class Core {
|
|
|
7913
8484
|
parentTriggerId?: string | undefined;
|
|
7914
8485
|
triggeredAt?: string | undefined;
|
|
7915
8486
|
cancelledAt?: string | undefined;
|
|
7916
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
8487
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
7917
8488
|
fills?: {
|
|
7918
8489
|
id: string;
|
|
7919
8490
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
7920
8491
|
tradeAccountId: string;
|
|
7921
8492
|
symbol: string;
|
|
7922
|
-
positionId: string;
|
|
7923
8493
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7924
8494
|
side: "BUY" | "SELL";
|
|
7925
8495
|
reduceOnly: boolean;
|
|
@@ -7929,8 +8499,18 @@ declare class Core {
|
|
|
7929
8499
|
price: string;
|
|
7930
8500
|
usd: string;
|
|
7931
8501
|
timestamp: string;
|
|
8502
|
+
assignments: {
|
|
8503
|
+
positionId: string;
|
|
8504
|
+
quantity: string;
|
|
8505
|
+
usd: string;
|
|
8506
|
+
tradeFee?: string | undefined;
|
|
8507
|
+
pearFee?: string | undefined;
|
|
8508
|
+
}[];
|
|
7932
8509
|
cloid?: string | undefined;
|
|
7933
8510
|
exchangeFillId?: string | undefined;
|
|
8511
|
+
executionId?: string | undefined;
|
|
8512
|
+
scheduleId?: string | undefined;
|
|
8513
|
+
triggerId?: string | undefined;
|
|
7934
8514
|
tradeFee?: string | undefined;
|
|
7935
8515
|
pearFee?: string | undefined;
|
|
7936
8516
|
original?: {
|
|
@@ -7938,6 +8518,7 @@ declare class Core {
|
|
|
7938
8518
|
quantity: string;
|
|
7939
8519
|
} | undefined;
|
|
7940
8520
|
}[] | undefined;
|
|
8521
|
+
closePercent?: number | undefined;
|
|
7941
8522
|
trailing?: {
|
|
7942
8523
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
7943
8524
|
deltaValue: number;
|
|
@@ -7992,6 +8573,7 @@ declare class Core {
|
|
|
7992
8573
|
priceSource: "mid" | "mark";
|
|
7993
8574
|
track: "PEAK" | "TROUGH";
|
|
7994
8575
|
threshold: number;
|
|
8576
|
+
onPositionResize: "cancel" | "keep";
|
|
7995
8577
|
};
|
|
7996
8578
|
} | {
|
|
7997
8579
|
type: "upnl";
|
|
@@ -7999,6 +8581,7 @@ declare class Core {
|
|
|
7999
8581
|
priceSource: "mid" | "mark";
|
|
8000
8582
|
track: "PEAK" | "TROUGH";
|
|
8001
8583
|
threshold: number;
|
|
8584
|
+
onPositionResize: "cancel" | "keep";
|
|
8002
8585
|
};
|
|
8003
8586
|
} | {
|
|
8004
8587
|
type: "upnl_bps";
|
|
@@ -8061,13 +8644,12 @@ declare class Core {
|
|
|
8061
8644
|
parentTriggerId?: string | undefined;
|
|
8062
8645
|
triggeredAt?: string | undefined;
|
|
8063
8646
|
cancelledAt?: string | undefined;
|
|
8064
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
8647
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8065
8648
|
fills?: {
|
|
8066
8649
|
id: string;
|
|
8067
8650
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8068
8651
|
tradeAccountId: string;
|
|
8069
8652
|
symbol: string;
|
|
8070
|
-
positionId: string;
|
|
8071
8653
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8072
8654
|
side: "BUY" | "SELL";
|
|
8073
8655
|
reduceOnly: boolean;
|
|
@@ -8077,8 +8659,18 @@ declare class Core {
|
|
|
8077
8659
|
price: string;
|
|
8078
8660
|
usd: string;
|
|
8079
8661
|
timestamp: string;
|
|
8662
|
+
assignments: {
|
|
8663
|
+
positionId: string;
|
|
8664
|
+
quantity: string;
|
|
8665
|
+
usd: string;
|
|
8666
|
+
tradeFee?: string | undefined;
|
|
8667
|
+
pearFee?: string | undefined;
|
|
8668
|
+
}[];
|
|
8080
8669
|
cloid?: string | undefined;
|
|
8081
8670
|
exchangeFillId?: string | undefined;
|
|
8671
|
+
executionId?: string | undefined;
|
|
8672
|
+
scheduleId?: string | undefined;
|
|
8673
|
+
triggerId?: string | undefined;
|
|
8082
8674
|
tradeFee?: string | undefined;
|
|
8083
8675
|
pearFee?: string | undefined;
|
|
8084
8676
|
original?: {
|
|
@@ -8141,6 +8733,7 @@ declare class Core {
|
|
|
8141
8733
|
priceSource: "mid" | "mark";
|
|
8142
8734
|
track: "PEAK" | "TROUGH";
|
|
8143
8735
|
threshold: number;
|
|
8736
|
+
onPositionResize: "cancel" | "keep";
|
|
8144
8737
|
};
|
|
8145
8738
|
} | {
|
|
8146
8739
|
type: "upnl";
|
|
@@ -8148,6 +8741,7 @@ declare class Core {
|
|
|
8148
8741
|
priceSource: "mid" | "mark";
|
|
8149
8742
|
track: "PEAK" | "TROUGH";
|
|
8150
8743
|
threshold: number;
|
|
8744
|
+
onPositionResize: "cancel" | "keep";
|
|
8151
8745
|
};
|
|
8152
8746
|
} | {
|
|
8153
8747
|
type: "upnl_bps";
|
|
@@ -8183,11 +8777,13 @@ declare class Core {
|
|
|
8183
8777
|
type: "notional_trailing";
|
|
8184
8778
|
data: {
|
|
8185
8779
|
priceSource: "mid" | "mark";
|
|
8780
|
+
onPositionResize: "cancel" | "keep";
|
|
8186
8781
|
};
|
|
8187
8782
|
} | {
|
|
8188
8783
|
type: "upnl_trailing";
|
|
8189
8784
|
data: {
|
|
8190
8785
|
priceSource: "mid" | "mark";
|
|
8786
|
+
onPositionResize: "cancel" | "keep";
|
|
8191
8787
|
};
|
|
8192
8788
|
} | {
|
|
8193
8789
|
type: "upnl_bps_trailing";
|
|
@@ -8236,13 +8832,12 @@ declare class Core {
|
|
|
8236
8832
|
parentTriggerId?: string | undefined;
|
|
8237
8833
|
triggeredAt?: string | undefined;
|
|
8238
8834
|
cancelledAt?: string | undefined;
|
|
8239
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
8835
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8240
8836
|
fills?: {
|
|
8241
8837
|
id: string;
|
|
8242
8838
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8243
8839
|
tradeAccountId: string;
|
|
8244
8840
|
symbol: string;
|
|
8245
|
-
positionId: string;
|
|
8246
8841
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8247
8842
|
side: "BUY" | "SELL";
|
|
8248
8843
|
reduceOnly: boolean;
|
|
@@ -8252,8 +8847,18 @@ declare class Core {
|
|
|
8252
8847
|
price: string;
|
|
8253
8848
|
usd: string;
|
|
8254
8849
|
timestamp: string;
|
|
8850
|
+
assignments: {
|
|
8851
|
+
positionId: string;
|
|
8852
|
+
quantity: string;
|
|
8853
|
+
usd: string;
|
|
8854
|
+
tradeFee?: string | undefined;
|
|
8855
|
+
pearFee?: string | undefined;
|
|
8856
|
+
}[];
|
|
8255
8857
|
cloid?: string | undefined;
|
|
8256
8858
|
exchangeFillId?: string | undefined;
|
|
8859
|
+
executionId?: string | undefined;
|
|
8860
|
+
scheduleId?: string | undefined;
|
|
8861
|
+
triggerId?: string | undefined;
|
|
8257
8862
|
tradeFee?: string | undefined;
|
|
8258
8863
|
pearFee?: string | undefined;
|
|
8259
8864
|
original?: {
|
|
@@ -8363,13 +8968,12 @@ declare class Core {
|
|
|
8363
8968
|
parentTriggerId?: string | undefined;
|
|
8364
8969
|
triggeredAt?: string | undefined;
|
|
8365
8970
|
cancelledAt?: string | undefined;
|
|
8366
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
8971
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8367
8972
|
fills?: {
|
|
8368
8973
|
id: string;
|
|
8369
8974
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8370
8975
|
tradeAccountId: string;
|
|
8371
8976
|
symbol: string;
|
|
8372
|
-
positionId: string;
|
|
8373
8977
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8374
8978
|
side: "BUY" | "SELL";
|
|
8375
8979
|
reduceOnly: boolean;
|
|
@@ -8379,8 +8983,18 @@ declare class Core {
|
|
|
8379
8983
|
price: string;
|
|
8380
8984
|
usd: string;
|
|
8381
8985
|
timestamp: string;
|
|
8986
|
+
assignments: {
|
|
8987
|
+
positionId: string;
|
|
8988
|
+
quantity: string;
|
|
8989
|
+
usd: string;
|
|
8990
|
+
tradeFee?: string | undefined;
|
|
8991
|
+
pearFee?: string | undefined;
|
|
8992
|
+
}[];
|
|
8382
8993
|
cloid?: string | undefined;
|
|
8383
8994
|
exchangeFillId?: string | undefined;
|
|
8995
|
+
executionId?: string | undefined;
|
|
8996
|
+
scheduleId?: string | undefined;
|
|
8997
|
+
triggerId?: string | undefined;
|
|
8384
8998
|
tradeFee?: string | undefined;
|
|
8385
8999
|
pearFee?: string | undefined;
|
|
8386
9000
|
original?: {
|
|
@@ -8434,6 +9048,7 @@ declare class Core {
|
|
|
8434
9048
|
priceSource: "mid" | "mark";
|
|
8435
9049
|
track: "PEAK" | "TROUGH";
|
|
8436
9050
|
threshold: number;
|
|
9051
|
+
onPositionResize: "cancel" | "keep";
|
|
8437
9052
|
};
|
|
8438
9053
|
} | {
|
|
8439
9054
|
type: "upnl";
|
|
@@ -8441,6 +9056,7 @@ declare class Core {
|
|
|
8441
9056
|
priceSource: "mid" | "mark";
|
|
8442
9057
|
track: "PEAK" | "TROUGH";
|
|
8443
9058
|
threshold: number;
|
|
9059
|
+
onPositionResize: "cancel" | "keep";
|
|
8444
9060
|
};
|
|
8445
9061
|
} | {
|
|
8446
9062
|
type: "upnl_bps";
|
|
@@ -8500,13 +9116,12 @@ declare class Core {
|
|
|
8500
9116
|
parentTriggerId?: string | undefined;
|
|
8501
9117
|
triggeredAt?: string | undefined;
|
|
8502
9118
|
cancelledAt?: string | undefined;
|
|
8503
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
9119
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8504
9120
|
fills?: {
|
|
8505
9121
|
id: string;
|
|
8506
9122
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8507
9123
|
tradeAccountId: string;
|
|
8508
9124
|
symbol: string;
|
|
8509
|
-
positionId: string;
|
|
8510
9125
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8511
9126
|
side: "BUY" | "SELL";
|
|
8512
9127
|
reduceOnly: boolean;
|
|
@@ -8516,8 +9131,18 @@ declare class Core {
|
|
|
8516
9131
|
price: string;
|
|
8517
9132
|
usd: string;
|
|
8518
9133
|
timestamp: string;
|
|
9134
|
+
assignments: {
|
|
9135
|
+
positionId: string;
|
|
9136
|
+
quantity: string;
|
|
9137
|
+
usd: string;
|
|
9138
|
+
tradeFee?: string | undefined;
|
|
9139
|
+
pearFee?: string | undefined;
|
|
9140
|
+
}[];
|
|
8519
9141
|
cloid?: string | undefined;
|
|
8520
9142
|
exchangeFillId?: string | undefined;
|
|
9143
|
+
executionId?: string | undefined;
|
|
9144
|
+
scheduleId?: string | undefined;
|
|
9145
|
+
triggerId?: string | undefined;
|
|
8521
9146
|
tradeFee?: string | undefined;
|
|
8522
9147
|
pearFee?: string | undefined;
|
|
8523
9148
|
original?: {
|
|
@@ -8579,6 +9204,7 @@ declare class Core {
|
|
|
8579
9204
|
priceSource: "mid" | "mark";
|
|
8580
9205
|
track: "PEAK" | "TROUGH";
|
|
8581
9206
|
threshold: number;
|
|
9207
|
+
onPositionResize: "cancel" | "keep";
|
|
8582
9208
|
};
|
|
8583
9209
|
} | {
|
|
8584
9210
|
type: "upnl";
|
|
@@ -8586,6 +9212,7 @@ declare class Core {
|
|
|
8586
9212
|
priceSource: "mid" | "mark";
|
|
8587
9213
|
track: "PEAK" | "TROUGH";
|
|
8588
9214
|
threshold: number;
|
|
9215
|
+
onPositionResize: "cancel" | "keep";
|
|
8589
9216
|
};
|
|
8590
9217
|
} | {
|
|
8591
9218
|
type: "upnl_bps";
|
|
@@ -8621,11 +9248,13 @@ declare class Core {
|
|
|
8621
9248
|
type: "notional_trailing";
|
|
8622
9249
|
data: {
|
|
8623
9250
|
priceSource: "mid" | "mark";
|
|
9251
|
+
onPositionResize: "cancel" | "keep";
|
|
8624
9252
|
};
|
|
8625
9253
|
} | {
|
|
8626
9254
|
type: "upnl_trailing";
|
|
8627
9255
|
data: {
|
|
8628
9256
|
priceSource: "mid" | "mark";
|
|
9257
|
+
onPositionResize: "cancel" | "keep";
|
|
8629
9258
|
};
|
|
8630
9259
|
} | {
|
|
8631
9260
|
type: "upnl_bps_trailing";
|
|
@@ -8668,13 +9297,12 @@ declare class Core {
|
|
|
8668
9297
|
parentTriggerId?: string | undefined;
|
|
8669
9298
|
triggeredAt?: string | undefined;
|
|
8670
9299
|
cancelledAt?: string | undefined;
|
|
8671
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
9300
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8672
9301
|
fills?: {
|
|
8673
9302
|
id: string;
|
|
8674
9303
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8675
9304
|
tradeAccountId: string;
|
|
8676
9305
|
symbol: string;
|
|
8677
|
-
positionId: string;
|
|
8678
9306
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8679
9307
|
side: "BUY" | "SELL";
|
|
8680
9308
|
reduceOnly: boolean;
|
|
@@ -8684,8 +9312,18 @@ declare class Core {
|
|
|
8684
9312
|
price: string;
|
|
8685
9313
|
usd: string;
|
|
8686
9314
|
timestamp: string;
|
|
9315
|
+
assignments: {
|
|
9316
|
+
positionId: string;
|
|
9317
|
+
quantity: string;
|
|
9318
|
+
usd: string;
|
|
9319
|
+
tradeFee?: string | undefined;
|
|
9320
|
+
pearFee?: string | undefined;
|
|
9321
|
+
}[];
|
|
8687
9322
|
cloid?: string | undefined;
|
|
8688
9323
|
exchangeFillId?: string | undefined;
|
|
9324
|
+
executionId?: string | undefined;
|
|
9325
|
+
scheduleId?: string | undefined;
|
|
9326
|
+
triggerId?: string | undefined;
|
|
8689
9327
|
tradeFee?: string | undefined;
|
|
8690
9328
|
pearFee?: string | undefined;
|
|
8691
9329
|
original?: {
|
|
@@ -8693,6 +9331,7 @@ declare class Core {
|
|
|
8693
9331
|
quantity: string;
|
|
8694
9332
|
} | undefined;
|
|
8695
9333
|
}[] | undefined;
|
|
9334
|
+
closePercent?: number | undefined;
|
|
8696
9335
|
trailing?: {
|
|
8697
9336
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
8698
9337
|
deltaValue: number;
|
|
@@ -8747,6 +9386,7 @@ declare class Core {
|
|
|
8747
9386
|
priceSource: "mid" | "mark";
|
|
8748
9387
|
track: "PEAK" | "TROUGH";
|
|
8749
9388
|
threshold: number;
|
|
9389
|
+
onPositionResize: "cancel" | "keep";
|
|
8750
9390
|
};
|
|
8751
9391
|
} | {
|
|
8752
9392
|
type: "upnl";
|
|
@@ -8754,6 +9394,7 @@ declare class Core {
|
|
|
8754
9394
|
priceSource: "mid" | "mark";
|
|
8755
9395
|
track: "PEAK" | "TROUGH";
|
|
8756
9396
|
threshold: number;
|
|
9397
|
+
onPositionResize: "cancel" | "keep";
|
|
8757
9398
|
};
|
|
8758
9399
|
} | {
|
|
8759
9400
|
type: "upnl_bps";
|
|
@@ -8816,13 +9457,12 @@ declare class Core {
|
|
|
8816
9457
|
parentTriggerId?: string | undefined;
|
|
8817
9458
|
triggeredAt?: string | undefined;
|
|
8818
9459
|
cancelledAt?: string | undefined;
|
|
8819
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
9460
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8820
9461
|
fills?: {
|
|
8821
9462
|
id: string;
|
|
8822
9463
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8823
9464
|
tradeAccountId: string;
|
|
8824
9465
|
symbol: string;
|
|
8825
|
-
positionId: string;
|
|
8826
9466
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8827
9467
|
side: "BUY" | "SELL";
|
|
8828
9468
|
reduceOnly: boolean;
|
|
@@ -8832,8 +9472,18 @@ declare class Core {
|
|
|
8832
9472
|
price: string;
|
|
8833
9473
|
usd: string;
|
|
8834
9474
|
timestamp: string;
|
|
9475
|
+
assignments: {
|
|
9476
|
+
positionId: string;
|
|
9477
|
+
quantity: string;
|
|
9478
|
+
usd: string;
|
|
9479
|
+
tradeFee?: string | undefined;
|
|
9480
|
+
pearFee?: string | undefined;
|
|
9481
|
+
}[];
|
|
8835
9482
|
cloid?: string | undefined;
|
|
8836
9483
|
exchangeFillId?: string | undefined;
|
|
9484
|
+
executionId?: string | undefined;
|
|
9485
|
+
scheduleId?: string | undefined;
|
|
9486
|
+
triggerId?: string | undefined;
|
|
8837
9487
|
tradeFee?: string | undefined;
|
|
8838
9488
|
pearFee?: string | undefined;
|
|
8839
9489
|
original?: {
|
|
@@ -8896,6 +9546,7 @@ declare class Core {
|
|
|
8896
9546
|
priceSource: "mid" | "mark";
|
|
8897
9547
|
track: "PEAK" | "TROUGH";
|
|
8898
9548
|
threshold: number;
|
|
9549
|
+
onPositionResize: "cancel" | "keep";
|
|
8899
9550
|
};
|
|
8900
9551
|
} | {
|
|
8901
9552
|
type: "upnl";
|
|
@@ -8903,6 +9554,7 @@ declare class Core {
|
|
|
8903
9554
|
priceSource: "mid" | "mark";
|
|
8904
9555
|
track: "PEAK" | "TROUGH";
|
|
8905
9556
|
threshold: number;
|
|
9557
|
+
onPositionResize: "cancel" | "keep";
|
|
8906
9558
|
};
|
|
8907
9559
|
} | {
|
|
8908
9560
|
type: "upnl_bps";
|
|
@@ -8938,11 +9590,13 @@ declare class Core {
|
|
|
8938
9590
|
type: "notional_trailing";
|
|
8939
9591
|
data: {
|
|
8940
9592
|
priceSource: "mid" | "mark";
|
|
9593
|
+
onPositionResize: "cancel" | "keep";
|
|
8941
9594
|
};
|
|
8942
9595
|
} | {
|
|
8943
9596
|
type: "upnl_trailing";
|
|
8944
9597
|
data: {
|
|
8945
9598
|
priceSource: "mid" | "mark";
|
|
9599
|
+
onPositionResize: "cancel" | "keep";
|
|
8946
9600
|
};
|
|
8947
9601
|
} | {
|
|
8948
9602
|
type: "upnl_bps_trailing";
|
|
@@ -8991,13 +9645,12 @@ declare class Core {
|
|
|
8991
9645
|
parentTriggerId?: string | undefined;
|
|
8992
9646
|
triggeredAt?: string | undefined;
|
|
8993
9647
|
cancelledAt?: string | undefined;
|
|
8994
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
9648
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
8995
9649
|
fills?: {
|
|
8996
9650
|
id: string;
|
|
8997
9651
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8998
9652
|
tradeAccountId: string;
|
|
8999
9653
|
symbol: string;
|
|
9000
|
-
positionId: string;
|
|
9001
9654
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9002
9655
|
side: "BUY" | "SELL";
|
|
9003
9656
|
reduceOnly: boolean;
|
|
@@ -9007,8 +9660,18 @@ declare class Core {
|
|
|
9007
9660
|
price: string;
|
|
9008
9661
|
usd: string;
|
|
9009
9662
|
timestamp: string;
|
|
9663
|
+
assignments: {
|
|
9664
|
+
positionId: string;
|
|
9665
|
+
quantity: string;
|
|
9666
|
+
usd: string;
|
|
9667
|
+
tradeFee?: string | undefined;
|
|
9668
|
+
pearFee?: string | undefined;
|
|
9669
|
+
}[];
|
|
9010
9670
|
cloid?: string | undefined;
|
|
9011
9671
|
exchangeFillId?: string | undefined;
|
|
9672
|
+
executionId?: string | undefined;
|
|
9673
|
+
scheduleId?: string | undefined;
|
|
9674
|
+
triggerId?: string | undefined;
|
|
9012
9675
|
tradeFee?: string | undefined;
|
|
9013
9676
|
pearFee?: string | undefined;
|
|
9014
9677
|
original?: {
|
|
@@ -9117,13 +9780,12 @@ declare class Core {
|
|
|
9117
9780
|
parentTriggerId?: string | undefined;
|
|
9118
9781
|
triggeredAt?: string | undefined;
|
|
9119
9782
|
cancelledAt?: string | undefined;
|
|
9120
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
9783
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
9121
9784
|
fills?: {
|
|
9122
9785
|
id: string;
|
|
9123
9786
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9124
9787
|
tradeAccountId: string;
|
|
9125
9788
|
symbol: string;
|
|
9126
|
-
positionId: string;
|
|
9127
9789
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9128
9790
|
side: "BUY" | "SELL";
|
|
9129
9791
|
reduceOnly: boolean;
|
|
@@ -9133,8 +9795,18 @@ declare class Core {
|
|
|
9133
9795
|
price: string;
|
|
9134
9796
|
usd: string;
|
|
9135
9797
|
timestamp: string;
|
|
9798
|
+
assignments: {
|
|
9799
|
+
positionId: string;
|
|
9800
|
+
quantity: string;
|
|
9801
|
+
usd: string;
|
|
9802
|
+
tradeFee?: string | undefined;
|
|
9803
|
+
pearFee?: string | undefined;
|
|
9804
|
+
}[];
|
|
9136
9805
|
cloid?: string | undefined;
|
|
9137
9806
|
exchangeFillId?: string | undefined;
|
|
9807
|
+
executionId?: string | undefined;
|
|
9808
|
+
scheduleId?: string | undefined;
|
|
9809
|
+
triggerId?: string | undefined;
|
|
9138
9810
|
tradeFee?: string | undefined;
|
|
9139
9811
|
pearFee?: string | undefined;
|
|
9140
9812
|
original?: {
|
|
@@ -9188,6 +9860,7 @@ declare class Core {
|
|
|
9188
9860
|
priceSource: "mid" | "mark";
|
|
9189
9861
|
track: "PEAK" | "TROUGH";
|
|
9190
9862
|
threshold: number;
|
|
9863
|
+
onPositionResize: "cancel" | "keep";
|
|
9191
9864
|
};
|
|
9192
9865
|
} | {
|
|
9193
9866
|
type: "upnl";
|
|
@@ -9195,6 +9868,7 @@ declare class Core {
|
|
|
9195
9868
|
priceSource: "mid" | "mark";
|
|
9196
9869
|
track: "PEAK" | "TROUGH";
|
|
9197
9870
|
threshold: number;
|
|
9871
|
+
onPositionResize: "cancel" | "keep";
|
|
9198
9872
|
};
|
|
9199
9873
|
} | {
|
|
9200
9874
|
type: "upnl_bps";
|
|
@@ -9254,13 +9928,12 @@ declare class Core {
|
|
|
9254
9928
|
parentTriggerId?: string | undefined;
|
|
9255
9929
|
triggeredAt?: string | undefined;
|
|
9256
9930
|
cancelledAt?: string | undefined;
|
|
9257
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
9931
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
9258
9932
|
fills?: {
|
|
9259
9933
|
id: string;
|
|
9260
9934
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9261
9935
|
tradeAccountId: string;
|
|
9262
9936
|
symbol: string;
|
|
9263
|
-
positionId: string;
|
|
9264
9937
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9265
9938
|
side: "BUY" | "SELL";
|
|
9266
9939
|
reduceOnly: boolean;
|
|
@@ -9270,8 +9943,18 @@ declare class Core {
|
|
|
9270
9943
|
price: string;
|
|
9271
9944
|
usd: string;
|
|
9272
9945
|
timestamp: string;
|
|
9946
|
+
assignments: {
|
|
9947
|
+
positionId: string;
|
|
9948
|
+
quantity: string;
|
|
9949
|
+
usd: string;
|
|
9950
|
+
tradeFee?: string | undefined;
|
|
9951
|
+
pearFee?: string | undefined;
|
|
9952
|
+
}[];
|
|
9273
9953
|
cloid?: string | undefined;
|
|
9274
9954
|
exchangeFillId?: string | undefined;
|
|
9955
|
+
executionId?: string | undefined;
|
|
9956
|
+
scheduleId?: string | undefined;
|
|
9957
|
+
triggerId?: string | undefined;
|
|
9275
9958
|
tradeFee?: string | undefined;
|
|
9276
9959
|
pearFee?: string | undefined;
|
|
9277
9960
|
original?: {
|
|
@@ -9333,6 +10016,7 @@ declare class Core {
|
|
|
9333
10016
|
priceSource: "mid" | "mark";
|
|
9334
10017
|
track: "PEAK" | "TROUGH";
|
|
9335
10018
|
threshold: number;
|
|
10019
|
+
onPositionResize: "cancel" | "keep";
|
|
9336
10020
|
};
|
|
9337
10021
|
} | {
|
|
9338
10022
|
type: "upnl";
|
|
@@ -9340,6 +10024,7 @@ declare class Core {
|
|
|
9340
10024
|
priceSource: "mid" | "mark";
|
|
9341
10025
|
track: "PEAK" | "TROUGH";
|
|
9342
10026
|
threshold: number;
|
|
10027
|
+
onPositionResize: "cancel" | "keep";
|
|
9343
10028
|
};
|
|
9344
10029
|
} | {
|
|
9345
10030
|
type: "upnl_bps";
|
|
@@ -9375,11 +10060,13 @@ declare class Core {
|
|
|
9375
10060
|
type: "notional_trailing";
|
|
9376
10061
|
data: {
|
|
9377
10062
|
priceSource: "mid" | "mark";
|
|
10063
|
+
onPositionResize: "cancel" | "keep";
|
|
9378
10064
|
};
|
|
9379
10065
|
} | {
|
|
9380
10066
|
type: "upnl_trailing";
|
|
9381
10067
|
data: {
|
|
9382
10068
|
priceSource: "mid" | "mark";
|
|
10069
|
+
onPositionResize: "cancel" | "keep";
|
|
9383
10070
|
};
|
|
9384
10071
|
} | {
|
|
9385
10072
|
type: "upnl_bps_trailing";
|
|
@@ -9422,13 +10109,12 @@ declare class Core {
|
|
|
9422
10109
|
parentTriggerId?: string | undefined;
|
|
9423
10110
|
triggeredAt?: string | undefined;
|
|
9424
10111
|
cancelledAt?: string | undefined;
|
|
9425
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
10112
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
9426
10113
|
fills?: {
|
|
9427
10114
|
id: string;
|
|
9428
10115
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9429
10116
|
tradeAccountId: string;
|
|
9430
10117
|
symbol: string;
|
|
9431
|
-
positionId: string;
|
|
9432
10118
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9433
10119
|
side: "BUY" | "SELL";
|
|
9434
10120
|
reduceOnly: boolean;
|
|
@@ -9438,8 +10124,18 @@ declare class Core {
|
|
|
9438
10124
|
price: string;
|
|
9439
10125
|
usd: string;
|
|
9440
10126
|
timestamp: string;
|
|
10127
|
+
assignments: {
|
|
10128
|
+
positionId: string;
|
|
10129
|
+
quantity: string;
|
|
10130
|
+
usd: string;
|
|
10131
|
+
tradeFee?: string | undefined;
|
|
10132
|
+
pearFee?: string | undefined;
|
|
10133
|
+
}[];
|
|
9441
10134
|
cloid?: string | undefined;
|
|
9442
10135
|
exchangeFillId?: string | undefined;
|
|
10136
|
+
executionId?: string | undefined;
|
|
10137
|
+
scheduleId?: string | undefined;
|
|
10138
|
+
triggerId?: string | undefined;
|
|
9443
10139
|
tradeFee?: string | undefined;
|
|
9444
10140
|
pearFee?: string | undefined;
|
|
9445
10141
|
original?: {
|
|
@@ -9447,6 +10143,7 @@ declare class Core {
|
|
|
9447
10143
|
quantity: string;
|
|
9448
10144
|
} | undefined;
|
|
9449
10145
|
}[] | undefined;
|
|
10146
|
+
closePercent?: number | undefined;
|
|
9450
10147
|
trailing?: {
|
|
9451
10148
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
9452
10149
|
deltaValue: number;
|
|
@@ -9501,6 +10198,7 @@ declare class Core {
|
|
|
9501
10198
|
priceSource: "mid" | "mark";
|
|
9502
10199
|
track: "PEAK" | "TROUGH";
|
|
9503
10200
|
threshold: number;
|
|
10201
|
+
onPositionResize: "cancel" | "keep";
|
|
9504
10202
|
};
|
|
9505
10203
|
} | {
|
|
9506
10204
|
type: "upnl";
|
|
@@ -9508,6 +10206,7 @@ declare class Core {
|
|
|
9508
10206
|
priceSource: "mid" | "mark";
|
|
9509
10207
|
track: "PEAK" | "TROUGH";
|
|
9510
10208
|
threshold: number;
|
|
10209
|
+
onPositionResize: "cancel" | "keep";
|
|
9511
10210
|
};
|
|
9512
10211
|
} | {
|
|
9513
10212
|
type: "upnl_bps";
|
|
@@ -9570,13 +10269,12 @@ declare class Core {
|
|
|
9570
10269
|
parentTriggerId?: string | undefined;
|
|
9571
10270
|
triggeredAt?: string | undefined;
|
|
9572
10271
|
cancelledAt?: string | undefined;
|
|
9573
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
10272
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
9574
10273
|
fills?: {
|
|
9575
10274
|
id: string;
|
|
9576
10275
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9577
10276
|
tradeAccountId: string;
|
|
9578
10277
|
symbol: string;
|
|
9579
|
-
positionId: string;
|
|
9580
10278
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9581
10279
|
side: "BUY" | "SELL";
|
|
9582
10280
|
reduceOnly: boolean;
|
|
@@ -9586,8 +10284,18 @@ declare class Core {
|
|
|
9586
10284
|
price: string;
|
|
9587
10285
|
usd: string;
|
|
9588
10286
|
timestamp: string;
|
|
10287
|
+
assignments: {
|
|
10288
|
+
positionId: string;
|
|
10289
|
+
quantity: string;
|
|
10290
|
+
usd: string;
|
|
10291
|
+
tradeFee?: string | undefined;
|
|
10292
|
+
pearFee?: string | undefined;
|
|
10293
|
+
}[];
|
|
9589
10294
|
cloid?: string | undefined;
|
|
9590
10295
|
exchangeFillId?: string | undefined;
|
|
10296
|
+
executionId?: string | undefined;
|
|
10297
|
+
scheduleId?: string | undefined;
|
|
10298
|
+
triggerId?: string | undefined;
|
|
9591
10299
|
tradeFee?: string | undefined;
|
|
9592
10300
|
pearFee?: string | undefined;
|
|
9593
10301
|
original?: {
|
|
@@ -9650,6 +10358,7 @@ declare class Core {
|
|
|
9650
10358
|
priceSource: "mid" | "mark";
|
|
9651
10359
|
track: "PEAK" | "TROUGH";
|
|
9652
10360
|
threshold: number;
|
|
10361
|
+
onPositionResize: "cancel" | "keep";
|
|
9653
10362
|
};
|
|
9654
10363
|
} | {
|
|
9655
10364
|
type: "upnl";
|
|
@@ -9657,6 +10366,7 @@ declare class Core {
|
|
|
9657
10366
|
priceSource: "mid" | "mark";
|
|
9658
10367
|
track: "PEAK" | "TROUGH";
|
|
9659
10368
|
threshold: number;
|
|
10369
|
+
onPositionResize: "cancel" | "keep";
|
|
9660
10370
|
};
|
|
9661
10371
|
} | {
|
|
9662
10372
|
type: "upnl_bps";
|
|
@@ -9692,11 +10402,13 @@ declare class Core {
|
|
|
9692
10402
|
type: "notional_trailing";
|
|
9693
10403
|
data: {
|
|
9694
10404
|
priceSource: "mid" | "mark";
|
|
10405
|
+
onPositionResize: "cancel" | "keep";
|
|
9695
10406
|
};
|
|
9696
10407
|
} | {
|
|
9697
10408
|
type: "upnl_trailing";
|
|
9698
10409
|
data: {
|
|
9699
10410
|
priceSource: "mid" | "mark";
|
|
10411
|
+
onPositionResize: "cancel" | "keep";
|
|
9700
10412
|
};
|
|
9701
10413
|
} | {
|
|
9702
10414
|
type: "upnl_bps_trailing";
|
|
@@ -9745,13 +10457,12 @@ declare class Core {
|
|
|
9745
10457
|
parentTriggerId?: string | undefined;
|
|
9746
10458
|
triggeredAt?: string | undefined;
|
|
9747
10459
|
cancelledAt?: string | undefined;
|
|
9748
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
10460
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
9749
10461
|
fills?: {
|
|
9750
10462
|
id: string;
|
|
9751
10463
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9752
10464
|
tradeAccountId: string;
|
|
9753
10465
|
symbol: string;
|
|
9754
|
-
positionId: string;
|
|
9755
10466
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9756
10467
|
side: "BUY" | "SELL";
|
|
9757
10468
|
reduceOnly: boolean;
|
|
@@ -9761,8 +10472,18 @@ declare class Core {
|
|
|
9761
10472
|
price: string;
|
|
9762
10473
|
usd: string;
|
|
9763
10474
|
timestamp: string;
|
|
10475
|
+
assignments: {
|
|
10476
|
+
positionId: string;
|
|
10477
|
+
quantity: string;
|
|
10478
|
+
usd: string;
|
|
10479
|
+
tradeFee?: string | undefined;
|
|
10480
|
+
pearFee?: string | undefined;
|
|
10481
|
+
}[];
|
|
9764
10482
|
cloid?: string | undefined;
|
|
9765
10483
|
exchangeFillId?: string | undefined;
|
|
10484
|
+
executionId?: string | undefined;
|
|
10485
|
+
scheduleId?: string | undefined;
|
|
10486
|
+
triggerId?: string | undefined;
|
|
9766
10487
|
tradeFee?: string | undefined;
|
|
9767
10488
|
pearFee?: string | undefined;
|
|
9768
10489
|
original?: {
|
|
@@ -9804,6 +10525,7 @@ declare class Core {
|
|
|
9804
10525
|
};
|
|
9805
10526
|
preferences: {
|
|
9806
10527
|
slippageToleranceBps: number;
|
|
10528
|
+
copySlippageToleranceBps: number;
|
|
9807
10529
|
};
|
|
9808
10530
|
}>;
|
|
9809
10531
|
updateDisplayName: (body: HttpTypes.UpdateUserDisplayName, headers?: ClientHeaders) => Promise<{
|
|
@@ -9812,6 +10534,7 @@ declare class Core {
|
|
|
9812
10534
|
updatePreferences: (body: HttpTypes.UpdateUserPreferences, headers?: ClientHeaders) => Promise<{
|
|
9813
10535
|
preferences: {
|
|
9814
10536
|
slippageToleranceBps: number;
|
|
10537
|
+
copySlippageToleranceBps: number;
|
|
9815
10538
|
};
|
|
9816
10539
|
}>;
|
|
9817
10540
|
};
|
|
@@ -9957,6 +10680,12 @@ declare class Core {
|
|
|
9957
10680
|
* own client, but a failure means the copy service is down rather than core.
|
|
9958
10681
|
*/
|
|
9959
10682
|
copy: {
|
|
10683
|
+
/**
|
|
10684
|
+
* Read the copy service's consumer and outbox health.
|
|
10685
|
+
*
|
|
10686
|
+
* @deprecated The gateway no longer serves `/copy/health` to public callers, so this call fails with a 404.
|
|
10687
|
+
* Copy health is read on the private network instead. This method will be removed in a later release.
|
|
10688
|
+
*/
|
|
9960
10689
|
health: (headers?: ClientHeaders) => Promise<{
|
|
9961
10690
|
status: "ok" | "degraded";
|
|
9962
10691
|
consumerRunning: boolean;
|
|
@@ -10100,6 +10829,24 @@ declare class Core {
|
|
|
10100
10829
|
} | undefined;
|
|
10101
10830
|
} | undefined;
|
|
10102
10831
|
};
|
|
10832
|
+
coverage: "FULLY_COPY" | "PARTIALLY_COPY";
|
|
10833
|
+
unmanagedPositions: ({
|
|
10834
|
+
kind: "FOLLOWER_POSITION";
|
|
10835
|
+
positionId: string;
|
|
10836
|
+
reason: "LIQUIDATED" | "LEADER_EXTERNAL_ACTIVITY" | "ASSET_CONFLICT" | "FOLLOWER_INTERVENTION" | "EXTERNAL_SYNC" | "EXISTING_AT_ADMISSION" | "MANUAL_POSITION";
|
|
10837
|
+
detectedAt: string;
|
|
10838
|
+
instrumentIds: string[];
|
|
10839
|
+
} | {
|
|
10840
|
+
kind: "LEADER_POSITION";
|
|
10841
|
+
positionId: string;
|
|
10842
|
+
reason: "LIQUIDATED" | "LEADER_EXTERNAL_ACTIVITY" | "ASSET_CONFLICT" | "FOLLOWER_INTERVENTION" | "EXTERNAL_SYNC";
|
|
10843
|
+
detectedAt: string;
|
|
10844
|
+
instrumentIds: string[];
|
|
10845
|
+
})[];
|
|
10846
|
+
managedPositions: {
|
|
10847
|
+
positionId: string;
|
|
10848
|
+
instrumentIds: string[];
|
|
10849
|
+
}[];
|
|
10103
10850
|
}>;
|
|
10104
10851
|
/** Read all active followers of an owned leader account. */
|
|
10105
10852
|
followers: (headers?: ClientHeaders) => Promise<{
|
|
@@ -10120,11 +10867,13 @@ declare class Core {
|
|
|
10120
10867
|
lifetimeFollowerCount: number;
|
|
10121
10868
|
copiedTrades: number;
|
|
10122
10869
|
copiedVolumeUsd: string;
|
|
10870
|
+
rewardsEarnedUsd: string;
|
|
10123
10871
|
followers: {
|
|
10124
10872
|
tradeAccountId: string;
|
|
10125
10873
|
status: "ACTIVE" | "ENDED";
|
|
10126
10874
|
copiedTrades: number;
|
|
10127
10875
|
copiedVolumeUsd: string;
|
|
10876
|
+
rewardsEarnedUsd: string;
|
|
10128
10877
|
xUserId?: string | undefined;
|
|
10129
10878
|
xHandle?: string | undefined;
|
|
10130
10879
|
xName?: string | undefined;
|
|
@@ -10276,11 +11025,11 @@ declare class Core {
|
|
|
10276
11025
|
provisional?: true | undefined;
|
|
10277
11026
|
latestFillAt?: string | undefined;
|
|
10278
11027
|
endedAt?: string | undefined;
|
|
11028
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
11029
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10279
11030
|
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10280
11031
|
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10281
11032
|
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10282
|
-
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10283
|
-
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10284
11033
|
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10285
11034
|
startSnapshot?: {
|
|
10286
11035
|
leader: {
|
|
@@ -10407,11 +11156,11 @@ declare class Core {
|
|
|
10407
11156
|
provisional?: true | undefined;
|
|
10408
11157
|
latestFillAt?: string | undefined;
|
|
10409
11158
|
endedAt?: string | undefined;
|
|
11159
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
11160
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10410
11161
|
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10411
11162
|
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10412
11163
|
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10413
|
-
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10414
|
-
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10415
11164
|
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10416
11165
|
startSnapshot?: {
|
|
10417
11166
|
leader: {
|
|
@@ -10533,7 +11282,7 @@ declare class Core {
|
|
|
10533
11282
|
} | {
|
|
10534
11283
|
leaderPositionId: string;
|
|
10535
11284
|
outcome: "SKIPPED";
|
|
10536
|
-
reason: "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED";
|
|
11285
|
+
reason: "ASSET_CONFLICT" | "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | "FOLLOWER_TWAP_NOT_ACTIVE" | "FOLLOWER_TWAP_ALREADY_ACTIVE" | "TRUE_UP_STALE";
|
|
10537
11286
|
} | {
|
|
10538
11287
|
leaderPositionId: string;
|
|
10539
11288
|
outcome: "FAILED";
|
|
@@ -10559,11 +11308,11 @@ declare class Core {
|
|
|
10559
11308
|
provisional?: true | undefined;
|
|
10560
11309
|
latestFillAt?: string | undefined;
|
|
10561
11310
|
endedAt?: string | undefined;
|
|
11311
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
11312
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10562
11313
|
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10563
11314
|
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10564
11315
|
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10565
|
-
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10566
|
-
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10567
11316
|
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10568
11317
|
startSnapshot?: {
|
|
10569
11318
|
leader: {
|
|
@@ -10677,7 +11426,7 @@ declare class Core {
|
|
|
10677
11426
|
activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
|
|
10678
11427
|
activities: {
|
|
10679
11428
|
id: string;
|
|
10680
|
-
leaderAction: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
11429
|
+
leaderAction: "TWAP" | "OPEN" | "CLOSE" | "ADJUST" | "REVERSE" | "TWAP_END" | "LEVERAGE_CHANGED";
|
|
10681
11430
|
state: "RECORDED" | "DISPATCHED" | "SETTLED";
|
|
10682
11431
|
followerLegs: {
|
|
10683
11432
|
symbol: string;
|
|
@@ -10701,9 +11450,33 @@ declare class Core {
|
|
|
10701
11450
|
configId: string;
|
|
10702
11451
|
} | undefined;
|
|
10703
11452
|
outcome?: "FAILED" | "COPIED" | "PARTIAL" | "SKIPPED" | undefined;
|
|
10704
|
-
skipReason?: "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | undefined;
|
|
11453
|
+
skipReason?: "ASSET_CONFLICT" | "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | "FOLLOWER_TWAP_NOT_ACTIVE" | "FOLLOWER_TWAP_ALREADY_ACTIVE" | "TRUE_UP_STALE" | undefined;
|
|
10705
11454
|
failureReason?: string | undefined;
|
|
10706
11455
|
leaderEquityFraction?: string | undefined;
|
|
11456
|
+
twap?: {
|
|
11457
|
+
intent: "OPEN" | "CLOSE";
|
|
11458
|
+
totalNotional: string;
|
|
11459
|
+
startAt: string;
|
|
11460
|
+
endAt: string;
|
|
11461
|
+
sliceCount: number;
|
|
11462
|
+
sliceIntervalSec: number;
|
|
11463
|
+
leaderSliceCount: number;
|
|
11464
|
+
reduction: {
|
|
11465
|
+
kind: "NONE";
|
|
11466
|
+
} | {
|
|
11467
|
+
kind: "MINIMUM";
|
|
11468
|
+
limitingLegs: {
|
|
11469
|
+
symbol: string;
|
|
11470
|
+
minimumNotional: string;
|
|
11471
|
+
}[];
|
|
11472
|
+
};
|
|
11473
|
+
progress?: {
|
|
11474
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
11475
|
+
filledNotional: string;
|
|
11476
|
+
executedSliceCount: number;
|
|
11477
|
+
partiallyFilled: boolean;
|
|
11478
|
+
} | undefined;
|
|
11479
|
+
} | undefined;
|
|
10707
11480
|
}[];
|
|
10708
11481
|
}>;
|
|
10709
11482
|
};
|
|
@@ -10919,7 +11692,7 @@ declare class Core {
|
|
|
10919
11692
|
executionContext?: {
|
|
10920
11693
|
intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
10921
11694
|
orderType: "MARKET";
|
|
10922
|
-
executionStatus: "ACTIVE" | "
|
|
11695
|
+
executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
10923
11696
|
legs: {
|
|
10924
11697
|
symbol: string;
|
|
10925
11698
|
side: "BUY" | "SELL";
|
|
@@ -11010,7 +11783,7 @@ declare class Core {
|
|
|
11010
11783
|
executionContext?: {
|
|
11011
11784
|
intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
11012
11785
|
orderType: "MARKET";
|
|
11013
|
-
executionStatus: "ACTIVE" | "
|
|
11786
|
+
executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
11014
11787
|
legs: {
|
|
11015
11788
|
symbol: string;
|
|
11016
11789
|
side: "BUY" | "SELL";
|