@pear-protocol/core-sdk 2.14.1 → 2.16.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.
@@ -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?: "NETTED" | "USER" | "LIQUIDATED" | undefined;
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" | "CANCELLED" | "COMPLETED" | "FAILED";
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
- positionKey: string;
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
- lastSliceAt?: string | undefined;
755
+ failedAt?: string | undefined;
742
756
  } | {
743
757
  id: string;
744
758
  createdAt: string;
745
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
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
- positionKey: string;
763
+ strategy: "TWAP";
750
764
  intent: "CLOSE";
751
- initialExposure: Record<string, `-${string}` | `+${string}`>;
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
- strategy: "TWAP";
758
- executionType: "MARKET";
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
- lastSliceAt?: string | undefined;
779
+ failedAt?: string | undefined;
765
780
  })[];
766
781
  ladders: {
767
782
  id: string;
768
783
  createdAt: string;
769
- status: "ACTIVE" | "CANCELLED" | "COMPLETED";
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" | "connector" | "all" | "client_id" | "referral";
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" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2548
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2516
2549
  createdAt: string;
2517
2550
  updatedAt: string;
2518
2551
  intent: "OPEN";
@@ -2559,7 +2592,7 @@ declare class Core {
2559
2592
  } | {
2560
2593
  id: string;
2561
2594
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2562
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2595
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2563
2596
  createdAt: string;
2564
2597
  updatedAt: string;
2565
2598
  intent: "ADJUST";
@@ -2607,7 +2640,7 @@ declare class Core {
2607
2640
  } | {
2608
2641
  id: string;
2609
2642
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2610
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2643
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2611
2644
  createdAt: string;
2612
2645
  updatedAt: string;
2613
2646
  intent: "CLOSE";
@@ -2638,7 +2671,7 @@ declare class Core {
2638
2671
  } | {
2639
2672
  id: string;
2640
2673
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2641
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2674
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2642
2675
  createdAt: string;
2643
2676
  updatedAt: string;
2644
2677
  intent: "REVERSE";
@@ -2673,7 +2706,7 @@ declare class Core {
2673
2706
  execution: {
2674
2707
  id: string;
2675
2708
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2676
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2709
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2677
2710
  createdAt: string;
2678
2711
  updatedAt: string;
2679
2712
  intent: "OPEN";
@@ -2720,7 +2753,7 @@ declare class Core {
2720
2753
  } | {
2721
2754
  id: string;
2722
2755
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2723
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2756
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2724
2757
  createdAt: string;
2725
2758
  updatedAt: string;
2726
2759
  intent: "ADJUST";
@@ -2768,7 +2801,7 @@ declare class Core {
2768
2801
  } | {
2769
2802
  id: string;
2770
2803
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2771
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2804
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2772
2805
  createdAt: string;
2773
2806
  updatedAt: string;
2774
2807
  intent: "CLOSE";
@@ -2799,7 +2832,7 @@ declare class Core {
2799
2832
  } | {
2800
2833
  id: string;
2801
2834
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2802
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
2835
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2803
2836
  createdAt: string;
2804
2837
  updatedAt: string;
2805
2838
  intent: "REVERSE";
@@ -2831,13 +2864,13 @@ declare class Core {
2831
2864
  }>;
2832
2865
  };
2833
2866
  fills: {
2867
+ /** Read one position's assigned quantities and fees at the original receipt price. */
2834
2868
  details: (positionId: string, headers?: ClientHeaders) => Promise<{
2835
2869
  fills: {
2836
2870
  id: string;
2837
2871
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
2838
2872
  tradeAccountId: string;
2839
2873
  symbol: string;
2840
- positionId: string;
2841
2874
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2842
2875
  side: "BUY" | "SELL";
2843
2876
  reduceOnly: boolean;
@@ -2847,8 +2880,12 @@ declare class Core {
2847
2880
  price: string;
2848
2881
  usd: string;
2849
2882
  timestamp: string;
2883
+ positionId: string;
2850
2884
  cloid?: string | undefined;
2851
2885
  exchangeFillId?: string | undefined;
2886
+ executionId?: string | undefined;
2887
+ scheduleId?: string | undefined;
2888
+ triggerId?: string | undefined;
2852
2889
  tradeFee?: string | undefined;
2853
2890
  pearFee?: string | undefined;
2854
2891
  original?: {
@@ -2857,14 +2894,14 @@ declare class Core {
2857
2894
  } | undefined;
2858
2895
  }[];
2859
2896
  }>;
2860
- list: (query: HttpTypes.FillListParams, headers?: ClientHeaders) => Promise<{
2897
+ /** Page raw receipts with all position assignments, leaving query defaults to the server. */
2898
+ list: (query: HttpTypes.FillListParamsInput, headers?: ClientHeaders) => Promise<{
2861
2899
  limit: number;
2862
2900
  fills: {
2863
2901
  id: string;
2864
2902
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
2865
2903
  tradeAccountId: string;
2866
2904
  symbol: string;
2867
- positionId: string;
2868
2905
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2869
2906
  side: "BUY" | "SELL";
2870
2907
  reduceOnly: boolean;
@@ -2874,8 +2911,18 @@ declare class Core {
2874
2911
  price: string;
2875
2912
  usd: string;
2876
2913
  timestamp: string;
2914
+ assignments: {
2915
+ positionId: string;
2916
+ quantity: string;
2917
+ usd: string;
2918
+ tradeFee?: string | undefined;
2919
+ pearFee?: string | undefined;
2920
+ }[];
2877
2921
  cloid?: string | undefined;
2878
2922
  exchangeFillId?: string | undefined;
2923
+ executionId?: string | undefined;
2924
+ scheduleId?: string | undefined;
2925
+ triggerId?: string | undefined;
2879
2926
  tradeFee?: string | undefined;
2880
2927
  pearFee?: string | undefined;
2881
2928
  original?: {
@@ -2885,12 +2932,15 @@ declare class Core {
2885
2932
  }[];
2886
2933
  nextCursor?: string | undefined;
2887
2934
  }>;
2935
+ /** Read account-owned provisional receipts awaiting fee collection. */
2888
2936
  provisionals: (headers?: ClientHeaders) => Promise<{
2889
2937
  fills: {
2890
2938
  id: string;
2891
- positionId: string;
2939
+ tradeAccountId: string;
2940
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2892
2941
  symbol: string;
2893
2942
  status: "PROVISIONAL";
2943
+ executionId?: string | undefined;
2894
2944
  cloid?: string | undefined;
2895
2945
  }[];
2896
2946
  }>;
@@ -2916,7 +2966,7 @@ declare class Core {
2916
2966
  levels: number;
2917
2967
  weighting: "EQUAL";
2918
2968
  };
2919
- status: "ACTIVE" | "CANCELLED" | "COMPLETED";
2969
+ status: "ACTIVE" | "COMPLETED" | "CANCELLED";
2920
2970
  triggers: ({
2921
2971
  id: string;
2922
2972
  tradeAccountId: string;
@@ -3006,13 +3056,12 @@ declare class Core {
3006
3056
  parentTriggerId?: string | undefined;
3007
3057
  triggeredAt?: string | undefined;
3008
3058
  cancelledAt?: string | undefined;
3009
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
3059
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3010
3060
  fills?: {
3011
3061
  id: string;
3012
3062
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3013
3063
  tradeAccountId: string;
3014
3064
  symbol: string;
3015
- positionId: string;
3016
3065
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3017
3066
  side: "BUY" | "SELL";
3018
3067
  reduceOnly: boolean;
@@ -3022,8 +3071,18 @@ declare class Core {
3022
3071
  price: string;
3023
3072
  usd: string;
3024
3073
  timestamp: string;
3074
+ assignments: {
3075
+ positionId: string;
3076
+ quantity: string;
3077
+ usd: string;
3078
+ tradeFee?: string | undefined;
3079
+ pearFee?: string | undefined;
3080
+ }[];
3025
3081
  cloid?: string | undefined;
3026
3082
  exchangeFillId?: string | undefined;
3083
+ executionId?: string | undefined;
3084
+ scheduleId?: string | undefined;
3085
+ triggerId?: string | undefined;
3027
3086
  tradeFee?: string | undefined;
3028
3087
  pearFee?: string | undefined;
3029
3088
  original?: {
@@ -3077,6 +3136,7 @@ declare class Core {
3077
3136
  priceSource: "mid" | "mark";
3078
3137
  track: "PEAK" | "TROUGH";
3079
3138
  threshold: number;
3139
+ onPositionResize: "cancel" | "keep";
3080
3140
  };
3081
3141
  } | {
3082
3142
  type: "upnl";
@@ -3084,6 +3144,7 @@ declare class Core {
3084
3144
  priceSource: "mid" | "mark";
3085
3145
  track: "PEAK" | "TROUGH";
3086
3146
  threshold: number;
3147
+ onPositionResize: "cancel" | "keep";
3087
3148
  };
3088
3149
  } | {
3089
3150
  type: "upnl_bps";
@@ -3143,13 +3204,12 @@ declare class Core {
3143
3204
  parentTriggerId?: string | undefined;
3144
3205
  triggeredAt?: string | undefined;
3145
3206
  cancelledAt?: string | undefined;
3146
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
3207
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3147
3208
  fills?: {
3148
3209
  id: string;
3149
3210
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3150
3211
  tradeAccountId: string;
3151
3212
  symbol: string;
3152
- positionId: string;
3153
3213
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3154
3214
  side: "BUY" | "SELL";
3155
3215
  reduceOnly: boolean;
@@ -3159,8 +3219,18 @@ declare class Core {
3159
3219
  price: string;
3160
3220
  usd: string;
3161
3221
  timestamp: string;
3222
+ assignments: {
3223
+ positionId: string;
3224
+ quantity: string;
3225
+ usd: string;
3226
+ tradeFee?: string | undefined;
3227
+ pearFee?: string | undefined;
3228
+ }[];
3162
3229
  cloid?: string | undefined;
3163
3230
  exchangeFillId?: string | undefined;
3231
+ executionId?: string | undefined;
3232
+ scheduleId?: string | undefined;
3233
+ triggerId?: string | undefined;
3164
3234
  tradeFee?: string | undefined;
3165
3235
  pearFee?: string | undefined;
3166
3236
  original?: {
@@ -3222,6 +3292,7 @@ declare class Core {
3222
3292
  priceSource: "mid" | "mark";
3223
3293
  track: "PEAK" | "TROUGH";
3224
3294
  threshold: number;
3295
+ onPositionResize: "cancel" | "keep";
3225
3296
  };
3226
3297
  } | {
3227
3298
  type: "upnl";
@@ -3229,6 +3300,7 @@ declare class Core {
3229
3300
  priceSource: "mid" | "mark";
3230
3301
  track: "PEAK" | "TROUGH";
3231
3302
  threshold: number;
3303
+ onPositionResize: "cancel" | "keep";
3232
3304
  };
3233
3305
  } | {
3234
3306
  type: "upnl_bps";
@@ -3264,11 +3336,13 @@ declare class Core {
3264
3336
  type: "notional_trailing";
3265
3337
  data: {
3266
3338
  priceSource: "mid" | "mark";
3339
+ onPositionResize: "cancel" | "keep";
3267
3340
  };
3268
3341
  } | {
3269
3342
  type: "upnl_trailing";
3270
3343
  data: {
3271
3344
  priceSource: "mid" | "mark";
3345
+ onPositionResize: "cancel" | "keep";
3272
3346
  };
3273
3347
  } | {
3274
3348
  type: "upnl_bps_trailing";
@@ -3311,13 +3385,12 @@ declare class Core {
3311
3385
  parentTriggerId?: string | undefined;
3312
3386
  triggeredAt?: string | undefined;
3313
3387
  cancelledAt?: string | undefined;
3314
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
3388
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3315
3389
  fills?: {
3316
3390
  id: string;
3317
3391
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3318
3392
  tradeAccountId: string;
3319
3393
  symbol: string;
3320
- positionId: string;
3321
3394
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3322
3395
  side: "BUY" | "SELL";
3323
3396
  reduceOnly: boolean;
@@ -3327,8 +3400,18 @@ declare class Core {
3327
3400
  price: string;
3328
3401
  usd: string;
3329
3402
  timestamp: string;
3403
+ assignments: {
3404
+ positionId: string;
3405
+ quantity: string;
3406
+ usd: string;
3407
+ tradeFee?: string | undefined;
3408
+ pearFee?: string | undefined;
3409
+ }[];
3330
3410
  cloid?: string | undefined;
3331
3411
  exchangeFillId?: string | undefined;
3412
+ executionId?: string | undefined;
3413
+ scheduleId?: string | undefined;
3414
+ triggerId?: string | undefined;
3332
3415
  tradeFee?: string | undefined;
3333
3416
  pearFee?: string | undefined;
3334
3417
  original?: {
@@ -3336,6 +3419,7 @@ declare class Core {
3336
3419
  quantity: string;
3337
3420
  } | undefined;
3338
3421
  }[] | undefined;
3422
+ closePercent?: number | undefined;
3339
3423
  trailing?: {
3340
3424
  mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
3341
3425
  deltaValue: number;
@@ -3390,6 +3474,7 @@ declare class Core {
3390
3474
  priceSource: "mid" | "mark";
3391
3475
  track: "PEAK" | "TROUGH";
3392
3476
  threshold: number;
3477
+ onPositionResize: "cancel" | "keep";
3393
3478
  };
3394
3479
  } | {
3395
3480
  type: "upnl";
@@ -3397,6 +3482,7 @@ declare class Core {
3397
3482
  priceSource: "mid" | "mark";
3398
3483
  track: "PEAK" | "TROUGH";
3399
3484
  threshold: number;
3485
+ onPositionResize: "cancel" | "keep";
3400
3486
  };
3401
3487
  } | {
3402
3488
  type: "upnl_bps";
@@ -3459,13 +3545,12 @@ declare class Core {
3459
3545
  parentTriggerId?: string | undefined;
3460
3546
  triggeredAt?: string | undefined;
3461
3547
  cancelledAt?: string | undefined;
3462
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
3548
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3463
3549
  fills?: {
3464
3550
  id: string;
3465
3551
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3466
3552
  tradeAccountId: string;
3467
3553
  symbol: string;
3468
- positionId: string;
3469
3554
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3470
3555
  side: "BUY" | "SELL";
3471
3556
  reduceOnly: boolean;
@@ -3475,8 +3560,18 @@ declare class Core {
3475
3560
  price: string;
3476
3561
  usd: string;
3477
3562
  timestamp: string;
3563
+ assignments: {
3564
+ positionId: string;
3565
+ quantity: string;
3566
+ usd: string;
3567
+ tradeFee?: string | undefined;
3568
+ pearFee?: string | undefined;
3569
+ }[];
3478
3570
  cloid?: string | undefined;
3479
3571
  exchangeFillId?: string | undefined;
3572
+ executionId?: string | undefined;
3573
+ scheduleId?: string | undefined;
3574
+ triggerId?: string | undefined;
3480
3575
  tradeFee?: string | undefined;
3481
3576
  pearFee?: string | undefined;
3482
3577
  original?: {
@@ -3539,6 +3634,7 @@ declare class Core {
3539
3634
  priceSource: "mid" | "mark";
3540
3635
  track: "PEAK" | "TROUGH";
3541
3636
  threshold: number;
3637
+ onPositionResize: "cancel" | "keep";
3542
3638
  };
3543
3639
  } | {
3544
3640
  type: "upnl";
@@ -3546,6 +3642,7 @@ declare class Core {
3546
3642
  priceSource: "mid" | "mark";
3547
3643
  track: "PEAK" | "TROUGH";
3548
3644
  threshold: number;
3645
+ onPositionResize: "cancel" | "keep";
3549
3646
  };
3550
3647
  } | {
3551
3648
  type: "upnl_bps";
@@ -3581,11 +3678,13 @@ declare class Core {
3581
3678
  type: "notional_trailing";
3582
3679
  data: {
3583
3680
  priceSource: "mid" | "mark";
3681
+ onPositionResize: "cancel" | "keep";
3584
3682
  };
3585
3683
  } | {
3586
3684
  type: "upnl_trailing";
3587
3685
  data: {
3588
3686
  priceSource: "mid" | "mark";
3687
+ onPositionResize: "cancel" | "keep";
3589
3688
  };
3590
3689
  } | {
3591
3690
  type: "upnl_bps_trailing";
@@ -3634,13 +3733,12 @@ declare class Core {
3634
3733
  parentTriggerId?: string | undefined;
3635
3734
  triggeredAt?: string | undefined;
3636
3735
  cancelledAt?: string | undefined;
3637
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
3736
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3638
3737
  fills?: {
3639
3738
  id: string;
3640
3739
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3641
3740
  tradeAccountId: string;
3642
3741
  symbol: string;
3643
- positionId: string;
3644
3742
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3645
3743
  side: "BUY" | "SELL";
3646
3744
  reduceOnly: boolean;
@@ -3650,8 +3748,18 @@ declare class Core {
3650
3748
  price: string;
3651
3749
  usd: string;
3652
3750
  timestamp: string;
3751
+ assignments: {
3752
+ positionId: string;
3753
+ quantity: string;
3754
+ usd: string;
3755
+ tradeFee?: string | undefined;
3756
+ pearFee?: string | undefined;
3757
+ }[];
3653
3758
  cloid?: string | undefined;
3654
3759
  exchangeFillId?: string | undefined;
3760
+ executionId?: string | undefined;
3761
+ scheduleId?: string | undefined;
3762
+ triggerId?: string | undefined;
3655
3763
  tradeFee?: string | undefined;
3656
3764
  pearFee?: string | undefined;
3657
3765
  original?: {
@@ -3680,12 +3788,14 @@ declare class Core {
3680
3788
  data: {
3681
3789
  priceSource: "mid" | "mark";
3682
3790
  threshold: number;
3791
+ onPositionResize: "cancel" | "keep";
3683
3792
  };
3684
3793
  } | {
3685
3794
  type: "upnl";
3686
3795
  data: {
3687
3796
  priceSource: "mid" | "mark";
3688
3797
  threshold: number;
3798
+ onPositionResize: "cancel" | "keep";
3689
3799
  };
3690
3800
  } | {
3691
3801
  type: "upnl_bps";
@@ -3694,6 +3804,7 @@ declare class Core {
3694
3804
  threshold: number;
3695
3805
  };
3696
3806
  };
3807
+ closePercent?: number | undefined;
3697
3808
  } | {
3698
3809
  intent: "CLOSE";
3699
3810
  type: "MARKET";
@@ -3701,11 +3812,13 @@ declare class Core {
3701
3812
  type: "notional_trailing";
3702
3813
  data: {
3703
3814
  priceSource: "mid" | "mark";
3815
+ onPositionResize: "cancel" | "keep";
3704
3816
  };
3705
3817
  } | {
3706
3818
  type: "upnl_trailing";
3707
3819
  data: {
3708
3820
  priceSource: "mid" | "mark";
3821
+ onPositionResize: "cancel" | "keep";
3709
3822
  };
3710
3823
  } | {
3711
3824
  type: "upnl_bps_trailing";
@@ -3718,6 +3831,7 @@ declare class Core {
3718
3831
  deltaValue: number;
3719
3832
  activationValue?: number | undefined;
3720
3833
  };
3834
+ closePercent?: number | undefined;
3721
3835
  })[] | undefined;
3722
3836
  }[];
3723
3837
  nextCursor?: string | undefined;
@@ -3733,7 +3847,7 @@ declare class Core {
3733
3847
  levels: number;
3734
3848
  weighting: "EQUAL";
3735
3849
  };
3736
- status: "ACTIVE" | "CANCELLED" | "COMPLETED";
3850
+ status: "ACTIVE" | "COMPLETED" | "CANCELLED";
3737
3851
  triggers: ({
3738
3852
  id: string;
3739
3853
  tradeAccountId: string;
@@ -3823,13 +3937,12 @@ declare class Core {
3823
3937
  parentTriggerId?: string | undefined;
3824
3938
  triggeredAt?: string | undefined;
3825
3939
  cancelledAt?: string | undefined;
3826
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
3940
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3827
3941
  fills?: {
3828
3942
  id: string;
3829
3943
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3830
3944
  tradeAccountId: string;
3831
3945
  symbol: string;
3832
- positionId: string;
3833
3946
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3834
3947
  side: "BUY" | "SELL";
3835
3948
  reduceOnly: boolean;
@@ -3839,8 +3952,18 @@ declare class Core {
3839
3952
  price: string;
3840
3953
  usd: string;
3841
3954
  timestamp: string;
3955
+ assignments: {
3956
+ positionId: string;
3957
+ quantity: string;
3958
+ usd: string;
3959
+ tradeFee?: string | undefined;
3960
+ pearFee?: string | undefined;
3961
+ }[];
3842
3962
  cloid?: string | undefined;
3843
3963
  exchangeFillId?: string | undefined;
3964
+ executionId?: string | undefined;
3965
+ scheduleId?: string | undefined;
3966
+ triggerId?: string | undefined;
3844
3967
  tradeFee?: string | undefined;
3845
3968
  pearFee?: string | undefined;
3846
3969
  original?: {
@@ -3894,6 +4017,7 @@ declare class Core {
3894
4017
  priceSource: "mid" | "mark";
3895
4018
  track: "PEAK" | "TROUGH";
3896
4019
  threshold: number;
4020
+ onPositionResize: "cancel" | "keep";
3897
4021
  };
3898
4022
  } | {
3899
4023
  type: "upnl";
@@ -3901,6 +4025,7 @@ declare class Core {
3901
4025
  priceSource: "mid" | "mark";
3902
4026
  track: "PEAK" | "TROUGH";
3903
4027
  threshold: number;
4028
+ onPositionResize: "cancel" | "keep";
3904
4029
  };
3905
4030
  } | {
3906
4031
  type: "upnl_bps";
@@ -3960,13 +4085,12 @@ declare class Core {
3960
4085
  parentTriggerId?: string | undefined;
3961
4086
  triggeredAt?: string | undefined;
3962
4087
  cancelledAt?: string | undefined;
3963
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
4088
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
3964
4089
  fills?: {
3965
4090
  id: string;
3966
4091
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3967
4092
  tradeAccountId: string;
3968
4093
  symbol: string;
3969
- positionId: string;
3970
4094
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3971
4095
  side: "BUY" | "SELL";
3972
4096
  reduceOnly: boolean;
@@ -3976,8 +4100,18 @@ declare class Core {
3976
4100
  price: string;
3977
4101
  usd: string;
3978
4102
  timestamp: string;
4103
+ assignments: {
4104
+ positionId: string;
4105
+ quantity: string;
4106
+ usd: string;
4107
+ tradeFee?: string | undefined;
4108
+ pearFee?: string | undefined;
4109
+ }[];
3979
4110
  cloid?: string | undefined;
3980
4111
  exchangeFillId?: string | undefined;
4112
+ executionId?: string | undefined;
4113
+ scheduleId?: string | undefined;
4114
+ triggerId?: string | undefined;
3981
4115
  tradeFee?: string | undefined;
3982
4116
  pearFee?: string | undefined;
3983
4117
  original?: {
@@ -4039,6 +4173,7 @@ declare class Core {
4039
4173
  priceSource: "mid" | "mark";
4040
4174
  track: "PEAK" | "TROUGH";
4041
4175
  threshold: number;
4176
+ onPositionResize: "cancel" | "keep";
4042
4177
  };
4043
4178
  } | {
4044
4179
  type: "upnl";
@@ -4046,6 +4181,7 @@ declare class Core {
4046
4181
  priceSource: "mid" | "mark";
4047
4182
  track: "PEAK" | "TROUGH";
4048
4183
  threshold: number;
4184
+ onPositionResize: "cancel" | "keep";
4049
4185
  };
4050
4186
  } | {
4051
4187
  type: "upnl_bps";
@@ -4081,11 +4217,13 @@ declare class Core {
4081
4217
  type: "notional_trailing";
4082
4218
  data: {
4083
4219
  priceSource: "mid" | "mark";
4220
+ onPositionResize: "cancel" | "keep";
4084
4221
  };
4085
4222
  } | {
4086
4223
  type: "upnl_trailing";
4087
4224
  data: {
4088
4225
  priceSource: "mid" | "mark";
4226
+ onPositionResize: "cancel" | "keep";
4089
4227
  };
4090
4228
  } | {
4091
4229
  type: "upnl_bps_trailing";
@@ -4128,13 +4266,12 @@ declare class Core {
4128
4266
  parentTriggerId?: string | undefined;
4129
4267
  triggeredAt?: string | undefined;
4130
4268
  cancelledAt?: string | undefined;
4131
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
4269
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
4132
4270
  fills?: {
4133
4271
  id: string;
4134
4272
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
4135
4273
  tradeAccountId: string;
4136
4274
  symbol: string;
4137
- positionId: string;
4138
4275
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
4139
4276
  side: "BUY" | "SELL";
4140
4277
  reduceOnly: boolean;
@@ -4144,8 +4281,18 @@ declare class Core {
4144
4281
  price: string;
4145
4282
  usd: string;
4146
4283
  timestamp: string;
4284
+ assignments: {
4285
+ positionId: string;
4286
+ quantity: string;
4287
+ usd: string;
4288
+ tradeFee?: string | undefined;
4289
+ pearFee?: string | undefined;
4290
+ }[];
4147
4291
  cloid?: string | undefined;
4148
4292
  exchangeFillId?: string | undefined;
4293
+ executionId?: string | undefined;
4294
+ scheduleId?: string | undefined;
4295
+ triggerId?: string | undefined;
4149
4296
  tradeFee?: string | undefined;
4150
4297
  pearFee?: string | undefined;
4151
4298
  original?: {
@@ -4153,6 +4300,7 @@ declare class Core {
4153
4300
  quantity: string;
4154
4301
  } | undefined;
4155
4302
  }[] | undefined;
4303
+ closePercent?: number | undefined;
4156
4304
  trailing?: {
4157
4305
  mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
4158
4306
  deltaValue: number;
@@ -4207,6 +4355,7 @@ declare class Core {
4207
4355
  priceSource: "mid" | "mark";
4208
4356
  track: "PEAK" | "TROUGH";
4209
4357
  threshold: number;
4358
+ onPositionResize: "cancel" | "keep";
4210
4359
  };
4211
4360
  } | {
4212
4361
  type: "upnl";
@@ -4214,6 +4363,7 @@ declare class Core {
4214
4363
  priceSource: "mid" | "mark";
4215
4364
  track: "PEAK" | "TROUGH";
4216
4365
  threshold: number;
4366
+ onPositionResize: "cancel" | "keep";
4217
4367
  };
4218
4368
  } | {
4219
4369
  type: "upnl_bps";
@@ -4276,13 +4426,12 @@ declare class Core {
4276
4426
  parentTriggerId?: string | undefined;
4277
4427
  triggeredAt?: string | undefined;
4278
4428
  cancelledAt?: string | undefined;
4279
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
4429
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
4280
4430
  fills?: {
4281
4431
  id: string;
4282
4432
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
4283
4433
  tradeAccountId: string;
4284
4434
  symbol: string;
4285
- positionId: string;
4286
4435
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
4287
4436
  side: "BUY" | "SELL";
4288
4437
  reduceOnly: boolean;
@@ -4292,8 +4441,18 @@ declare class Core {
4292
4441
  price: string;
4293
4442
  usd: string;
4294
4443
  timestamp: string;
4444
+ assignments: {
4445
+ positionId: string;
4446
+ quantity: string;
4447
+ usd: string;
4448
+ tradeFee?: string | undefined;
4449
+ pearFee?: string | undefined;
4450
+ }[];
4295
4451
  cloid?: string | undefined;
4296
4452
  exchangeFillId?: string | undefined;
4453
+ executionId?: string | undefined;
4454
+ scheduleId?: string | undefined;
4455
+ triggerId?: string | undefined;
4297
4456
  tradeFee?: string | undefined;
4298
4457
  pearFee?: string | undefined;
4299
4458
  original?: {
@@ -4356,6 +4515,7 @@ declare class Core {
4356
4515
  priceSource: "mid" | "mark";
4357
4516
  track: "PEAK" | "TROUGH";
4358
4517
  threshold: number;
4518
+ onPositionResize: "cancel" | "keep";
4359
4519
  };
4360
4520
  } | {
4361
4521
  type: "upnl";
@@ -4363,6 +4523,7 @@ declare class Core {
4363
4523
  priceSource: "mid" | "mark";
4364
4524
  track: "PEAK" | "TROUGH";
4365
4525
  threshold: number;
4526
+ onPositionResize: "cancel" | "keep";
4366
4527
  };
4367
4528
  } | {
4368
4529
  type: "upnl_bps";
@@ -4398,11 +4559,13 @@ declare class Core {
4398
4559
  type: "notional_trailing";
4399
4560
  data: {
4400
4561
  priceSource: "mid" | "mark";
4562
+ onPositionResize: "cancel" | "keep";
4401
4563
  };
4402
4564
  } | {
4403
4565
  type: "upnl_trailing";
4404
4566
  data: {
4405
4567
  priceSource: "mid" | "mark";
4568
+ onPositionResize: "cancel" | "keep";
4406
4569
  };
4407
4570
  } | {
4408
4571
  type: "upnl_bps_trailing";
@@ -4451,13 +4614,12 @@ declare class Core {
4451
4614
  parentTriggerId?: string | undefined;
4452
4615
  triggeredAt?: string | undefined;
4453
4616
  cancelledAt?: string | undefined;
4454
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
4617
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
4455
4618
  fills?: {
4456
4619
  id: string;
4457
4620
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
4458
4621
  tradeAccountId: string;
4459
4622
  symbol: string;
4460
- positionId: string;
4461
4623
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
4462
4624
  side: "BUY" | "SELL";
4463
4625
  reduceOnly: boolean;
@@ -4467,8 +4629,18 @@ declare class Core {
4467
4629
  price: string;
4468
4630
  usd: string;
4469
4631
  timestamp: string;
4632
+ assignments: {
4633
+ positionId: string;
4634
+ quantity: string;
4635
+ usd: string;
4636
+ tradeFee?: string | undefined;
4637
+ pearFee?: string | undefined;
4638
+ }[];
4470
4639
  cloid?: string | undefined;
4471
4640
  exchangeFillId?: string | undefined;
4641
+ executionId?: string | undefined;
4642
+ scheduleId?: string | undefined;
4643
+ triggerId?: string | undefined;
4472
4644
  tradeFee?: string | undefined;
4473
4645
  pearFee?: string | undefined;
4474
4646
  original?: {
@@ -4497,12 +4669,14 @@ declare class Core {
4497
4669
  data: {
4498
4670
  priceSource: "mid" | "mark";
4499
4671
  threshold: number;
4672
+ onPositionResize: "cancel" | "keep";
4500
4673
  };
4501
4674
  } | {
4502
4675
  type: "upnl";
4503
4676
  data: {
4504
4677
  priceSource: "mid" | "mark";
4505
4678
  threshold: number;
4679
+ onPositionResize: "cancel" | "keep";
4506
4680
  };
4507
4681
  } | {
4508
4682
  type: "upnl_bps";
@@ -4511,6 +4685,7 @@ declare class Core {
4511
4685
  threshold: number;
4512
4686
  };
4513
4687
  };
4688
+ closePercent?: number | undefined;
4514
4689
  } | {
4515
4690
  intent: "CLOSE";
4516
4691
  type: "MARKET";
@@ -4518,11 +4693,13 @@ declare class Core {
4518
4693
  type: "notional_trailing";
4519
4694
  data: {
4520
4695
  priceSource: "mid" | "mark";
4696
+ onPositionResize: "cancel" | "keep";
4521
4697
  };
4522
4698
  } | {
4523
4699
  type: "upnl_trailing";
4524
4700
  data: {
4525
4701
  priceSource: "mid" | "mark";
4702
+ onPositionResize: "cancel" | "keep";
4526
4703
  };
4527
4704
  } | {
4528
4705
  type: "upnl_bps_trailing";
@@ -4535,6 +4712,7 @@ declare class Core {
4535
4712
  deltaValue: number;
4536
4713
  activationValue?: number | undefined;
4537
4714
  };
4715
+ closePercent?: number | undefined;
4538
4716
  })[] | undefined;
4539
4717
  };
4540
4718
  }>;
@@ -4549,7 +4727,7 @@ declare class Core {
4549
4727
  levels: number;
4550
4728
  weighting: "EQUAL";
4551
4729
  };
4552
- status: "ACTIVE" | "CANCELLED" | "COMPLETED";
4730
+ status: "ACTIVE" | "COMPLETED" | "CANCELLED";
4553
4731
  triggers: ({
4554
4732
  id: string;
4555
4733
  tradeAccountId: string;
@@ -4639,13 +4817,12 @@ declare class Core {
4639
4817
  parentTriggerId?: string | undefined;
4640
4818
  triggeredAt?: string | undefined;
4641
4819
  cancelledAt?: string | undefined;
4642
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
4820
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
4643
4821
  fills?: {
4644
4822
  id: string;
4645
4823
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
4646
4824
  tradeAccountId: string;
4647
4825
  symbol: string;
4648
- positionId: string;
4649
4826
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
4650
4827
  side: "BUY" | "SELL";
4651
4828
  reduceOnly: boolean;
@@ -4655,8 +4832,18 @@ declare class Core {
4655
4832
  price: string;
4656
4833
  usd: string;
4657
4834
  timestamp: string;
4835
+ assignments: {
4836
+ positionId: string;
4837
+ quantity: string;
4838
+ usd: string;
4839
+ tradeFee?: string | undefined;
4840
+ pearFee?: string | undefined;
4841
+ }[];
4658
4842
  cloid?: string | undefined;
4659
4843
  exchangeFillId?: string | undefined;
4844
+ executionId?: string | undefined;
4845
+ scheduleId?: string | undefined;
4846
+ triggerId?: string | undefined;
4660
4847
  tradeFee?: string | undefined;
4661
4848
  pearFee?: string | undefined;
4662
4849
  original?: {
@@ -4710,6 +4897,7 @@ declare class Core {
4710
4897
  priceSource: "mid" | "mark";
4711
4898
  track: "PEAK" | "TROUGH";
4712
4899
  threshold: number;
4900
+ onPositionResize: "cancel" | "keep";
4713
4901
  };
4714
4902
  } | {
4715
4903
  type: "upnl";
@@ -4717,6 +4905,7 @@ declare class Core {
4717
4905
  priceSource: "mid" | "mark";
4718
4906
  track: "PEAK" | "TROUGH";
4719
4907
  threshold: number;
4908
+ onPositionResize: "cancel" | "keep";
4720
4909
  };
4721
4910
  } | {
4722
4911
  type: "upnl_bps";
@@ -4776,13 +4965,12 @@ declare class Core {
4776
4965
  parentTriggerId?: string | undefined;
4777
4966
  triggeredAt?: string | undefined;
4778
4967
  cancelledAt?: string | undefined;
4779
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
4968
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
4780
4969
  fills?: {
4781
4970
  id: string;
4782
4971
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
4783
4972
  tradeAccountId: string;
4784
4973
  symbol: string;
4785
- positionId: string;
4786
4974
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
4787
4975
  side: "BUY" | "SELL";
4788
4976
  reduceOnly: boolean;
@@ -4792,8 +4980,18 @@ declare class Core {
4792
4980
  price: string;
4793
4981
  usd: string;
4794
4982
  timestamp: string;
4983
+ assignments: {
4984
+ positionId: string;
4985
+ quantity: string;
4986
+ usd: string;
4987
+ tradeFee?: string | undefined;
4988
+ pearFee?: string | undefined;
4989
+ }[];
4795
4990
  cloid?: string | undefined;
4796
4991
  exchangeFillId?: string | undefined;
4992
+ executionId?: string | undefined;
4993
+ scheduleId?: string | undefined;
4994
+ triggerId?: string | undefined;
4797
4995
  tradeFee?: string | undefined;
4798
4996
  pearFee?: string | undefined;
4799
4997
  original?: {
@@ -4855,6 +5053,7 @@ declare class Core {
4855
5053
  priceSource: "mid" | "mark";
4856
5054
  track: "PEAK" | "TROUGH";
4857
5055
  threshold: number;
5056
+ onPositionResize: "cancel" | "keep";
4858
5057
  };
4859
5058
  } | {
4860
5059
  type: "upnl";
@@ -4862,6 +5061,7 @@ declare class Core {
4862
5061
  priceSource: "mid" | "mark";
4863
5062
  track: "PEAK" | "TROUGH";
4864
5063
  threshold: number;
5064
+ onPositionResize: "cancel" | "keep";
4865
5065
  };
4866
5066
  } | {
4867
5067
  type: "upnl_bps";
@@ -4897,11 +5097,13 @@ declare class Core {
4897
5097
  type: "notional_trailing";
4898
5098
  data: {
4899
5099
  priceSource: "mid" | "mark";
5100
+ onPositionResize: "cancel" | "keep";
4900
5101
  };
4901
5102
  } | {
4902
5103
  type: "upnl_trailing";
4903
5104
  data: {
4904
5105
  priceSource: "mid" | "mark";
5106
+ onPositionResize: "cancel" | "keep";
4905
5107
  };
4906
5108
  } | {
4907
5109
  type: "upnl_bps_trailing";
@@ -4944,13 +5146,12 @@ declare class Core {
4944
5146
  parentTriggerId?: string | undefined;
4945
5147
  triggeredAt?: string | undefined;
4946
5148
  cancelledAt?: string | undefined;
4947
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
5149
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
4948
5150
  fills?: {
4949
5151
  id: string;
4950
5152
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
4951
5153
  tradeAccountId: string;
4952
5154
  symbol: string;
4953
- positionId: string;
4954
5155
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
4955
5156
  side: "BUY" | "SELL";
4956
5157
  reduceOnly: boolean;
@@ -4960,8 +5161,18 @@ declare class Core {
4960
5161
  price: string;
4961
5162
  usd: string;
4962
5163
  timestamp: string;
5164
+ assignments: {
5165
+ positionId: string;
5166
+ quantity: string;
5167
+ usd: string;
5168
+ tradeFee?: string | undefined;
5169
+ pearFee?: string | undefined;
5170
+ }[];
4963
5171
  cloid?: string | undefined;
4964
5172
  exchangeFillId?: string | undefined;
5173
+ executionId?: string | undefined;
5174
+ scheduleId?: string | undefined;
5175
+ triggerId?: string | undefined;
4965
5176
  tradeFee?: string | undefined;
4966
5177
  pearFee?: string | undefined;
4967
5178
  original?: {
@@ -4969,6 +5180,7 @@ declare class Core {
4969
5180
  quantity: string;
4970
5181
  } | undefined;
4971
5182
  }[] | undefined;
5183
+ closePercent?: number | undefined;
4972
5184
  trailing?: {
4973
5185
  mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
4974
5186
  deltaValue: number;
@@ -5023,6 +5235,7 @@ declare class Core {
5023
5235
  priceSource: "mid" | "mark";
5024
5236
  track: "PEAK" | "TROUGH";
5025
5237
  threshold: number;
5238
+ onPositionResize: "cancel" | "keep";
5026
5239
  };
5027
5240
  } | {
5028
5241
  type: "upnl";
@@ -5030,6 +5243,7 @@ declare class Core {
5030
5243
  priceSource: "mid" | "mark";
5031
5244
  track: "PEAK" | "TROUGH";
5032
5245
  threshold: number;
5246
+ onPositionResize: "cancel" | "keep";
5033
5247
  };
5034
5248
  } | {
5035
5249
  type: "upnl_bps";
@@ -5092,13 +5306,12 @@ declare class Core {
5092
5306
  parentTriggerId?: string | undefined;
5093
5307
  triggeredAt?: string | undefined;
5094
5308
  cancelledAt?: string | undefined;
5095
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
5309
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
5096
5310
  fills?: {
5097
5311
  id: string;
5098
5312
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
5099
5313
  tradeAccountId: string;
5100
5314
  symbol: string;
5101
- positionId: string;
5102
5315
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
5103
5316
  side: "BUY" | "SELL";
5104
5317
  reduceOnly: boolean;
@@ -5108,8 +5321,18 @@ declare class Core {
5108
5321
  price: string;
5109
5322
  usd: string;
5110
5323
  timestamp: string;
5324
+ assignments: {
5325
+ positionId: string;
5326
+ quantity: string;
5327
+ usd: string;
5328
+ tradeFee?: string | undefined;
5329
+ pearFee?: string | undefined;
5330
+ }[];
5111
5331
  cloid?: string | undefined;
5112
5332
  exchangeFillId?: string | undefined;
5333
+ executionId?: string | undefined;
5334
+ scheduleId?: string | undefined;
5335
+ triggerId?: string | undefined;
5113
5336
  tradeFee?: string | undefined;
5114
5337
  pearFee?: string | undefined;
5115
5338
  original?: {
@@ -5172,6 +5395,7 @@ declare class Core {
5172
5395
  priceSource: "mid" | "mark";
5173
5396
  track: "PEAK" | "TROUGH";
5174
5397
  threshold: number;
5398
+ onPositionResize: "cancel" | "keep";
5175
5399
  };
5176
5400
  } | {
5177
5401
  type: "upnl";
@@ -5179,6 +5403,7 @@ declare class Core {
5179
5403
  priceSource: "mid" | "mark";
5180
5404
  track: "PEAK" | "TROUGH";
5181
5405
  threshold: number;
5406
+ onPositionResize: "cancel" | "keep";
5182
5407
  };
5183
5408
  } | {
5184
5409
  type: "upnl_bps";
@@ -5214,11 +5439,13 @@ declare class Core {
5214
5439
  type: "notional_trailing";
5215
5440
  data: {
5216
5441
  priceSource: "mid" | "mark";
5442
+ onPositionResize: "cancel" | "keep";
5217
5443
  };
5218
5444
  } | {
5219
5445
  type: "upnl_trailing";
5220
5446
  data: {
5221
5447
  priceSource: "mid" | "mark";
5448
+ onPositionResize: "cancel" | "keep";
5222
5449
  };
5223
5450
  } | {
5224
5451
  type: "upnl_bps_trailing";
@@ -5267,13 +5494,12 @@ declare class Core {
5267
5494
  parentTriggerId?: string | undefined;
5268
5495
  triggeredAt?: string | undefined;
5269
5496
  cancelledAt?: string | undefined;
5270
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
5497
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
5271
5498
  fills?: {
5272
5499
  id: string;
5273
5500
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
5274
5501
  tradeAccountId: string;
5275
5502
  symbol: string;
5276
- positionId: string;
5277
5503
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
5278
5504
  side: "BUY" | "SELL";
5279
5505
  reduceOnly: boolean;
@@ -5283,8 +5509,18 @@ declare class Core {
5283
5509
  price: string;
5284
5510
  usd: string;
5285
5511
  timestamp: string;
5512
+ assignments: {
5513
+ positionId: string;
5514
+ quantity: string;
5515
+ usd: string;
5516
+ tradeFee?: string | undefined;
5517
+ pearFee?: string | undefined;
5518
+ }[];
5286
5519
  cloid?: string | undefined;
5287
5520
  exchangeFillId?: string | undefined;
5521
+ executionId?: string | undefined;
5522
+ scheduleId?: string | undefined;
5523
+ triggerId?: string | undefined;
5288
5524
  tradeFee?: string | undefined;
5289
5525
  pearFee?: string | undefined;
5290
5526
  original?: {
@@ -5313,12 +5549,14 @@ declare class Core {
5313
5549
  data: {
5314
5550
  priceSource: "mid" | "mark";
5315
5551
  threshold: number;
5552
+ onPositionResize: "cancel" | "keep";
5316
5553
  };
5317
5554
  } | {
5318
5555
  type: "upnl";
5319
5556
  data: {
5320
5557
  priceSource: "mid" | "mark";
5321
5558
  threshold: number;
5559
+ onPositionResize: "cancel" | "keep";
5322
5560
  };
5323
5561
  } | {
5324
5562
  type: "upnl_bps";
@@ -5327,6 +5565,7 @@ declare class Core {
5327
5565
  threshold: number;
5328
5566
  };
5329
5567
  };
5568
+ closePercent?: number | undefined;
5330
5569
  } | {
5331
5570
  intent: "CLOSE";
5332
5571
  type: "MARKET";
@@ -5334,11 +5573,13 @@ declare class Core {
5334
5573
  type: "notional_trailing";
5335
5574
  data: {
5336
5575
  priceSource: "mid" | "mark";
5576
+ onPositionResize: "cancel" | "keep";
5337
5577
  };
5338
5578
  } | {
5339
5579
  type: "upnl_trailing";
5340
5580
  data: {
5341
5581
  priceSource: "mid" | "mark";
5582
+ onPositionResize: "cancel" | "keep";
5342
5583
  };
5343
5584
  } | {
5344
5585
  type: "upnl_bps_trailing";
@@ -5351,6 +5592,7 @@ declare class Core {
5351
5592
  deltaValue: number;
5352
5593
  activationValue?: number | undefined;
5353
5594
  };
5595
+ closePercent?: number | undefined;
5354
5596
  })[] | undefined;
5355
5597
  };
5356
5598
  }>;
@@ -5472,7 +5714,7 @@ declare class Core {
5472
5714
  list: (query?: HttpTypes.NotificationListParamsInput, headers?: ClientHeaders) => Promise<{
5473
5715
  notifications: {
5474
5716
  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";
5717
+ 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";
5476
5718
  parameters: {
5477
5719
  type: "position_liquidation";
5478
5720
  positionId: string;
@@ -5662,6 +5904,9 @@ declare class Core {
5662
5904
  resource: {
5663
5905
  kind: "POSITION";
5664
5906
  id: string;
5907
+ } | {
5908
+ kind: "SCHEDULE";
5909
+ id: string;
5665
5910
  };
5666
5911
  leaderTradeAccountId: string;
5667
5912
  } | {
@@ -5677,6 +5922,12 @@ declare class Core {
5677
5922
  type: "copy_leverage_not_applied";
5678
5923
  subscriptionId: string;
5679
5924
  activityId: string;
5925
+ } | {
5926
+ type: "trigger_cancelled_position_resized";
5927
+ triggerId: string;
5928
+ positionId: string;
5929
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
5930
+ metric: "notional" | "upnl" | "notional_trailing" | "upnl_trailing";
5680
5931
  };
5681
5932
  isRead: boolean;
5682
5933
  createdAt: string;
@@ -5717,7 +5968,7 @@ declare class Core {
5717
5968
  entryPrices: Record<string, string>;
5718
5969
  createdAt: string;
5719
5970
  updatedAt: string;
5720
- closedReason?: "NETTED" | "USER" | "LIQUIDATED" | null | undefined;
5971
+ closedReason?: "USER" | "LIQUIDATED" | "NETTED" | null | undefined;
5721
5972
  copySubscriptionId?: string | undefined;
5722
5973
  isCopying?: boolean | undefined;
5723
5974
  closedAt?: string | null | undefined;
@@ -5782,7 +6033,7 @@ declare class Core {
5782
6033
  entryVwap?: string | undefined;
5783
6034
  exitVwap?: string | undefined;
5784
6035
  }[];
5785
- closedReason?: "NETTED" | "USER" | "LIQUIDATED" | undefined;
6036
+ closedReason?: "USER" | "LIQUIDATED" | "NETTED" | undefined;
5786
6037
  copySubscriptionId?: string | undefined;
5787
6038
  isCopying?: false | undefined;
5788
6039
  steps?: {
@@ -6401,13 +6652,66 @@ declare class Core {
6401
6652
  nextCursor?: string | undefined;
6402
6653
  }>;
6403
6654
  };
6655
+ rewards: {
6656
+ /** Return the authenticated referrer's reward accrual and payout availability. */
6657
+ summary: (headers?: ClientHeaders) => Promise<{
6658
+ accrual: {
6659
+ status: "DISABLED";
6660
+ } | {
6661
+ status: "AVAILABLE";
6662
+ accrual: {
6663
+ earned: string;
6664
+ pendingMaturity: string;
6665
+ pendingFunding: string;
6666
+ claimable: string;
6667
+ paid: string;
6668
+ sources: {
6669
+ referral: {
6670
+ earned: string;
6671
+ pendingMaturity: string;
6672
+ pendingFunding: string;
6673
+ };
6674
+ copy: {
6675
+ earned: string;
6676
+ pendingMaturity: string;
6677
+ pendingFunding: string;
6678
+ };
6679
+ };
6680
+ };
6681
+ };
6682
+ payout: {
6683
+ status: "DISABLED";
6684
+ } | {
6685
+ status: "AVAILABLE";
6686
+ };
6687
+ }>;
6688
+ /** Create or resume the referrer's reward claim (session login only); an in-flight claim keeps its stored destination. */
6689
+ claim: (body: HttpTypes.CreateRewardClaim, headers?: ClientHeaders) => Promise<{
6690
+ status: "TRANSFER_INTENT_READY" | "PAYOUT_PENDING" | "PAID" | "RELEASED" | "NO_CLAIMABLE_BALANCE" | "CLAIMABILITY_DISABLED" | "NO_CAPACITY" | "MISSING_BALANCE" | "STALE_BALANCE" | "PAYOUT_DISABLED";
6691
+ claimId?: string | undefined;
6692
+ transactionHash?: `0x${string}` | undefined;
6693
+ }>;
6694
+ /** Return the lifecycle of one reward claim owned by the authenticated referrer. */
6695
+ claimStatus: (claimId: string, headers?: ClientHeaders) => Promise<{
6696
+ claimId: string;
6697
+ status: "TRANSFER_INTENT_READY" | "PAYOUT_PENDING" | "PAID" | "RELEASED" | "NO_CLAIMABLE_BALANCE" | "CLAIMABILITY_DISABLED" | "NO_CAPACITY" | "MISSING_BALANCE" | "STALE_BALANCE" | "PAYOUT_DISABLED";
6698
+ payoutDestination: string;
6699
+ entitledAmount: string;
6700
+ createdAt: string;
6701
+ updatedAt: string;
6702
+ reservedAmount?: string | undefined;
6703
+ transferIntentCreatedAt?: string | undefined;
6704
+ verifiedAt?: string | undefined;
6705
+ transactionHash?: `0x${string}` | undefined;
6706
+ }>;
6707
+ };
6404
6708
  schedules: {
6405
6709
  list: (query: HttpTypes.ScheduleListParamsInput, headers?: ClientHeaders) => Promise<{
6406
6710
  limit: number;
6407
6711
  schedules: ({
6408
6712
  id: string;
6409
6713
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6410
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
6714
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
6411
6715
  positionKey: string;
6412
6716
  executionType: "MARKET";
6413
6717
  startAt: string;
@@ -6438,10 +6742,17 @@ declare class Core {
6438
6742
  lastSliceAt?: string | undefined;
6439
6743
  cancelledAt?: string | undefined;
6440
6744
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
6745
+ failure?: {
6746
+ reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
6747
+ } | {
6748
+ reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
6749
+ executionId?: string | undefined;
6750
+ } | undefined;
6751
+ failedAt?: string | undefined;
6441
6752
  } | {
6442
6753
  id: string;
6443
6754
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6444
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
6755
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
6445
6756
  positionKey: string;
6446
6757
  executionType: "MARKET";
6447
6758
  startAt: string;
@@ -6466,6 +6777,13 @@ declare class Core {
6466
6777
  lastSliceAt?: string | undefined;
6467
6778
  cancelledAt?: string | undefined;
6468
6779
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
6780
+ failure?: {
6781
+ reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
6782
+ } | {
6783
+ reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
6784
+ executionId?: string | undefined;
6785
+ } | undefined;
6786
+ failedAt?: string | undefined;
6469
6787
  })[];
6470
6788
  nextCursor?: string | undefined;
6471
6789
  }>;
@@ -6473,7 +6791,7 @@ declare class Core {
6473
6791
  schedule: {
6474
6792
  id: string;
6475
6793
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6476
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
6794
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
6477
6795
  positionKey: string;
6478
6796
  executionType: "MARKET";
6479
6797
  startAt: string;
@@ -6504,10 +6822,17 @@ declare class Core {
6504
6822
  lastSliceAt?: string | undefined;
6505
6823
  cancelledAt?: string | undefined;
6506
6824
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
6825
+ failure?: {
6826
+ reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
6827
+ } | {
6828
+ reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
6829
+ executionId?: string | undefined;
6830
+ } | undefined;
6831
+ failedAt?: string | undefined;
6507
6832
  } | {
6508
6833
  id: string;
6509
6834
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6510
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
6835
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
6511
6836
  positionKey: string;
6512
6837
  executionType: "MARKET";
6513
6838
  startAt: string;
@@ -6532,6 +6857,13 @@ declare class Core {
6532
6857
  lastSliceAt?: string | undefined;
6533
6858
  cancelledAt?: string | undefined;
6534
6859
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
6860
+ failure?: {
6861
+ reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
6862
+ } | {
6863
+ reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
6864
+ executionId?: string | undefined;
6865
+ } | undefined;
6866
+ failedAt?: string | undefined;
6535
6867
  };
6536
6868
  }>;
6537
6869
  get: (scheduleId: string, query: HttpTypes.ScheduleDetailParamsInput, headers?: ClientHeaders) => Promise<{
@@ -6539,7 +6871,7 @@ declare class Core {
6539
6871
  schedule: {
6540
6872
  id: string;
6541
6873
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6542
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
6874
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
6543
6875
  positionKey: string;
6544
6876
  executionType: "MARKET";
6545
6877
  startAt: string;
@@ -6570,10 +6902,17 @@ declare class Core {
6570
6902
  lastSliceAt?: string | undefined;
6571
6903
  cancelledAt?: string | undefined;
6572
6904
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
6905
+ failure?: {
6906
+ reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
6907
+ } | {
6908
+ reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
6909
+ executionId?: string | undefined;
6910
+ } | undefined;
6911
+ failedAt?: string | undefined;
6573
6912
  } | {
6574
6913
  id: string;
6575
6914
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6576
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED";
6915
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
6577
6916
  positionKey: string;
6578
6917
  executionType: "MARKET";
6579
6918
  startAt: string;
@@ -6598,6 +6937,13 @@ declare class Core {
6598
6937
  lastSliceAt?: string | undefined;
6599
6938
  cancelledAt?: string | undefined;
6600
6939
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
6940
+ failure?: {
6941
+ reason: "EXPIRED" | "INVALID_SCHEDULE" | "POSITION_UNAVAILABLE" | "MARKET_DATA_UNAVAILABLE" | "NO_PLACEABLE_LEG" | "LEG_BELOW_VENUE_MINIMUM";
6942
+ } | {
6943
+ reason: "SLICE_ERRORED" | "LEG_FAILED" | "REMAINDER_UNFILLED" | "REPEATED_SLICE_FAILURES";
6944
+ executionId?: string | undefined;
6945
+ } | undefined;
6946
+ failedAt?: string | undefined;
6601
6947
  };
6602
6948
  slices: ({
6603
6949
  index: number;
@@ -6611,7 +6957,6 @@ declare class Core {
6611
6957
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
6612
6958
  tradeAccountId: string;
6613
6959
  symbol: string;
6614
- positionId: string;
6615
6960
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6616
6961
  side: "BUY" | "SELL";
6617
6962
  reduceOnly: boolean;
@@ -6621,8 +6966,18 @@ declare class Core {
6621
6966
  price: string;
6622
6967
  usd: string;
6623
6968
  timestamp: string;
6969
+ assignments: {
6970
+ positionId: string;
6971
+ quantity: string;
6972
+ usd: string;
6973
+ tradeFee?: string | undefined;
6974
+ pearFee?: string | undefined;
6975
+ }[];
6624
6976
  cloid?: string | undefined;
6625
6977
  exchangeFillId?: string | undefined;
6978
+ executionId?: string | undefined;
6979
+ scheduleId?: string | undefined;
6980
+ triggerId?: string | undefined;
6626
6981
  tradeFee?: string | undefined;
6627
6982
  pearFee?: string | undefined;
6628
6983
  original?: {
@@ -6675,7 +7030,7 @@ declare class Core {
6675
7030
  execution: {
6676
7031
  id: string;
6677
7032
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6678
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7033
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6679
7034
  createdAt: string;
6680
7035
  updatedAt: string;
6681
7036
  intent: "OPEN";
@@ -6722,7 +7077,7 @@ declare class Core {
6722
7077
  } | {
6723
7078
  id: string;
6724
7079
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6725
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7080
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6726
7081
  createdAt: string;
6727
7082
  updatedAt: string;
6728
7083
  intent: "ADJUST";
@@ -6770,7 +7125,7 @@ declare class Core {
6770
7125
  } | {
6771
7126
  id: string;
6772
7127
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6773
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7128
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6774
7129
  createdAt: string;
6775
7130
  updatedAt: string;
6776
7131
  intent: "CLOSE";
@@ -6801,7 +7156,7 @@ declare class Core {
6801
7156
  } | {
6802
7157
  id: string;
6803
7158
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6804
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7159
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6805
7160
  createdAt: string;
6806
7161
  updatedAt: string;
6807
7162
  intent: "REVERSE";
@@ -6835,7 +7190,7 @@ declare class Core {
6835
7190
  execution: {
6836
7191
  id: string;
6837
7192
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6838
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7193
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6839
7194
  createdAt: string;
6840
7195
  updatedAt: string;
6841
7196
  intent: "OPEN";
@@ -6882,7 +7237,7 @@ declare class Core {
6882
7237
  } | {
6883
7238
  id: string;
6884
7239
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6885
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7240
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6886
7241
  createdAt: string;
6887
7242
  updatedAt: string;
6888
7243
  intent: "ADJUST";
@@ -6930,7 +7285,7 @@ declare class Core {
6930
7285
  } | {
6931
7286
  id: string;
6932
7287
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6933
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7288
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6934
7289
  createdAt: string;
6935
7290
  updatedAt: string;
6936
7291
  intent: "CLOSE";
@@ -6961,7 +7316,7 @@ declare class Core {
6961
7316
  } | {
6962
7317
  id: string;
6963
7318
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6964
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7319
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6965
7320
  createdAt: string;
6966
7321
  updatedAt: string;
6967
7322
  intent: "REVERSE";
@@ -6995,7 +7350,7 @@ declare class Core {
6995
7350
  execution: {
6996
7351
  id: string;
6997
7352
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6998
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7353
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
6999
7354
  createdAt: string;
7000
7355
  updatedAt: string;
7001
7356
  intent: "OPEN";
@@ -7042,7 +7397,7 @@ declare class Core {
7042
7397
  } | {
7043
7398
  id: string;
7044
7399
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7045
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7400
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7046
7401
  createdAt: string;
7047
7402
  updatedAt: string;
7048
7403
  intent: "ADJUST";
@@ -7090,7 +7445,7 @@ declare class Core {
7090
7445
  } | {
7091
7446
  id: string;
7092
7447
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7093
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7448
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7094
7449
  createdAt: string;
7095
7450
  updatedAt: string;
7096
7451
  intent: "CLOSE";
@@ -7121,7 +7476,7 @@ declare class Core {
7121
7476
  } | {
7122
7477
  id: string;
7123
7478
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7124
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7479
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7125
7480
  createdAt: string;
7126
7481
  updatedAt: string;
7127
7482
  intent: "REVERSE";
@@ -7155,7 +7510,7 @@ declare class Core {
7155
7510
  execution: {
7156
7511
  id: string;
7157
7512
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7158
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7513
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7159
7514
  createdAt: string;
7160
7515
  updatedAt: string;
7161
7516
  intent: "OPEN";
@@ -7202,7 +7557,7 @@ declare class Core {
7202
7557
  } | {
7203
7558
  id: string;
7204
7559
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7205
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7560
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7206
7561
  createdAt: string;
7207
7562
  updatedAt: string;
7208
7563
  intent: "ADJUST";
@@ -7250,7 +7605,7 @@ declare class Core {
7250
7605
  } | {
7251
7606
  id: string;
7252
7607
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7253
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7608
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7254
7609
  createdAt: string;
7255
7610
  updatedAt: string;
7256
7611
  intent: "CLOSE";
@@ -7281,7 +7636,7 @@ declare class Core {
7281
7636
  } | {
7282
7637
  id: string;
7283
7638
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7284
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7639
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7285
7640
  createdAt: string;
7286
7641
  updatedAt: string;
7287
7642
  intent: "REVERSE";
@@ -7315,7 +7670,7 @@ declare class Core {
7315
7670
  executions: ({
7316
7671
  id: string;
7317
7672
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7318
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7673
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7319
7674
  createdAt: string;
7320
7675
  updatedAt: string;
7321
7676
  intent: "OPEN";
@@ -7362,7 +7717,7 @@ declare class Core {
7362
7717
  } | {
7363
7718
  id: string;
7364
7719
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7365
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7720
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7366
7721
  createdAt: string;
7367
7722
  updatedAt: string;
7368
7723
  intent: "ADJUST";
@@ -7410,7 +7765,7 @@ declare class Core {
7410
7765
  } | {
7411
7766
  id: string;
7412
7767
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7413
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7768
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7414
7769
  createdAt: string;
7415
7770
  updatedAt: string;
7416
7771
  intent: "CLOSE";
@@ -7441,7 +7796,7 @@ declare class Core {
7441
7796
  } | {
7442
7797
  id: string;
7443
7798
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7444
- status: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
7799
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7445
7800
  createdAt: string;
7446
7801
  updatedAt: string;
7447
7802
  intent: "REVERSE";
@@ -7569,13 +7924,12 @@ declare class Core {
7569
7924
  parentTriggerId?: string | undefined;
7570
7925
  triggeredAt?: string | undefined;
7571
7926
  cancelledAt?: string | undefined;
7572
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
7927
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
7573
7928
  fills?: {
7574
7929
  id: string;
7575
7930
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
7576
7931
  tradeAccountId: string;
7577
7932
  symbol: string;
7578
- positionId: string;
7579
7933
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7580
7934
  side: "BUY" | "SELL";
7581
7935
  reduceOnly: boolean;
@@ -7585,8 +7939,18 @@ declare class Core {
7585
7939
  price: string;
7586
7940
  usd: string;
7587
7941
  timestamp: string;
7942
+ assignments: {
7943
+ positionId: string;
7944
+ quantity: string;
7945
+ usd: string;
7946
+ tradeFee?: string | undefined;
7947
+ pearFee?: string | undefined;
7948
+ }[];
7588
7949
  cloid?: string | undefined;
7589
7950
  exchangeFillId?: string | undefined;
7951
+ executionId?: string | undefined;
7952
+ scheduleId?: string | undefined;
7953
+ triggerId?: string | undefined;
7590
7954
  tradeFee?: string | undefined;
7591
7955
  pearFee?: string | undefined;
7592
7956
  original?: {
@@ -7640,6 +8004,7 @@ declare class Core {
7640
8004
  priceSource: "mid" | "mark";
7641
8005
  track: "PEAK" | "TROUGH";
7642
8006
  threshold: number;
8007
+ onPositionResize: "cancel" | "keep";
7643
8008
  };
7644
8009
  } | {
7645
8010
  type: "upnl";
@@ -7647,6 +8012,7 @@ declare class Core {
7647
8012
  priceSource: "mid" | "mark";
7648
8013
  track: "PEAK" | "TROUGH";
7649
8014
  threshold: number;
8015
+ onPositionResize: "cancel" | "keep";
7650
8016
  };
7651
8017
  } | {
7652
8018
  type: "upnl_bps";
@@ -7706,13 +8072,12 @@ declare class Core {
7706
8072
  parentTriggerId?: string | undefined;
7707
8073
  triggeredAt?: string | undefined;
7708
8074
  cancelledAt?: string | undefined;
7709
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
8075
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
7710
8076
  fills?: {
7711
8077
  id: string;
7712
8078
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
7713
8079
  tradeAccountId: string;
7714
8080
  symbol: string;
7715
- positionId: string;
7716
8081
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7717
8082
  side: "BUY" | "SELL";
7718
8083
  reduceOnly: boolean;
@@ -7722,8 +8087,18 @@ declare class Core {
7722
8087
  price: string;
7723
8088
  usd: string;
7724
8089
  timestamp: string;
8090
+ assignments: {
8091
+ positionId: string;
8092
+ quantity: string;
8093
+ usd: string;
8094
+ tradeFee?: string | undefined;
8095
+ pearFee?: string | undefined;
8096
+ }[];
7725
8097
  cloid?: string | undefined;
7726
8098
  exchangeFillId?: string | undefined;
8099
+ executionId?: string | undefined;
8100
+ scheduleId?: string | undefined;
8101
+ triggerId?: string | undefined;
7727
8102
  tradeFee?: string | undefined;
7728
8103
  pearFee?: string | undefined;
7729
8104
  original?: {
@@ -7785,6 +8160,7 @@ declare class Core {
7785
8160
  priceSource: "mid" | "mark";
7786
8161
  track: "PEAK" | "TROUGH";
7787
8162
  threshold: number;
8163
+ onPositionResize: "cancel" | "keep";
7788
8164
  };
7789
8165
  } | {
7790
8166
  type: "upnl";
@@ -7792,6 +8168,7 @@ declare class Core {
7792
8168
  priceSource: "mid" | "mark";
7793
8169
  track: "PEAK" | "TROUGH";
7794
8170
  threshold: number;
8171
+ onPositionResize: "cancel" | "keep";
7795
8172
  };
7796
8173
  } | {
7797
8174
  type: "upnl_bps";
@@ -7827,11 +8204,13 @@ declare class Core {
7827
8204
  type: "notional_trailing";
7828
8205
  data: {
7829
8206
  priceSource: "mid" | "mark";
8207
+ onPositionResize: "cancel" | "keep";
7830
8208
  };
7831
8209
  } | {
7832
8210
  type: "upnl_trailing";
7833
8211
  data: {
7834
8212
  priceSource: "mid" | "mark";
8213
+ onPositionResize: "cancel" | "keep";
7835
8214
  };
7836
8215
  } | {
7837
8216
  type: "upnl_bps_trailing";
@@ -7874,13 +8253,12 @@ declare class Core {
7874
8253
  parentTriggerId?: string | undefined;
7875
8254
  triggeredAt?: string | undefined;
7876
8255
  cancelledAt?: string | undefined;
7877
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
8256
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
7878
8257
  fills?: {
7879
8258
  id: string;
7880
8259
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
7881
8260
  tradeAccountId: string;
7882
8261
  symbol: string;
7883
- positionId: string;
7884
8262
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7885
8263
  side: "BUY" | "SELL";
7886
8264
  reduceOnly: boolean;
@@ -7890,8 +8268,18 @@ declare class Core {
7890
8268
  price: string;
7891
8269
  usd: string;
7892
8270
  timestamp: string;
8271
+ assignments: {
8272
+ positionId: string;
8273
+ quantity: string;
8274
+ usd: string;
8275
+ tradeFee?: string | undefined;
8276
+ pearFee?: string | undefined;
8277
+ }[];
7893
8278
  cloid?: string | undefined;
7894
8279
  exchangeFillId?: string | undefined;
8280
+ executionId?: string | undefined;
8281
+ scheduleId?: string | undefined;
8282
+ triggerId?: string | undefined;
7895
8283
  tradeFee?: string | undefined;
7896
8284
  pearFee?: string | undefined;
7897
8285
  original?: {
@@ -7899,6 +8287,7 @@ declare class Core {
7899
8287
  quantity: string;
7900
8288
  } | undefined;
7901
8289
  }[] | undefined;
8290
+ closePercent?: number | undefined;
7902
8291
  trailing?: {
7903
8292
  mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
7904
8293
  deltaValue: number;
@@ -7953,6 +8342,7 @@ declare class Core {
7953
8342
  priceSource: "mid" | "mark";
7954
8343
  track: "PEAK" | "TROUGH";
7955
8344
  threshold: number;
8345
+ onPositionResize: "cancel" | "keep";
7956
8346
  };
7957
8347
  } | {
7958
8348
  type: "upnl";
@@ -7960,6 +8350,7 @@ declare class Core {
7960
8350
  priceSource: "mid" | "mark";
7961
8351
  track: "PEAK" | "TROUGH";
7962
8352
  threshold: number;
8353
+ onPositionResize: "cancel" | "keep";
7963
8354
  };
7964
8355
  } | {
7965
8356
  type: "upnl_bps";
@@ -8022,13 +8413,12 @@ declare class Core {
8022
8413
  parentTriggerId?: string | undefined;
8023
8414
  triggeredAt?: string | undefined;
8024
8415
  cancelledAt?: string | undefined;
8025
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
8416
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8026
8417
  fills?: {
8027
8418
  id: string;
8028
8419
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8029
8420
  tradeAccountId: string;
8030
8421
  symbol: string;
8031
- positionId: string;
8032
8422
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8033
8423
  side: "BUY" | "SELL";
8034
8424
  reduceOnly: boolean;
@@ -8038,8 +8428,18 @@ declare class Core {
8038
8428
  price: string;
8039
8429
  usd: string;
8040
8430
  timestamp: string;
8431
+ assignments: {
8432
+ positionId: string;
8433
+ quantity: string;
8434
+ usd: string;
8435
+ tradeFee?: string | undefined;
8436
+ pearFee?: string | undefined;
8437
+ }[];
8041
8438
  cloid?: string | undefined;
8042
8439
  exchangeFillId?: string | undefined;
8440
+ executionId?: string | undefined;
8441
+ scheduleId?: string | undefined;
8442
+ triggerId?: string | undefined;
8043
8443
  tradeFee?: string | undefined;
8044
8444
  pearFee?: string | undefined;
8045
8445
  original?: {
@@ -8102,6 +8502,7 @@ declare class Core {
8102
8502
  priceSource: "mid" | "mark";
8103
8503
  track: "PEAK" | "TROUGH";
8104
8504
  threshold: number;
8505
+ onPositionResize: "cancel" | "keep";
8105
8506
  };
8106
8507
  } | {
8107
8508
  type: "upnl";
@@ -8109,6 +8510,7 @@ declare class Core {
8109
8510
  priceSource: "mid" | "mark";
8110
8511
  track: "PEAK" | "TROUGH";
8111
8512
  threshold: number;
8513
+ onPositionResize: "cancel" | "keep";
8112
8514
  };
8113
8515
  } | {
8114
8516
  type: "upnl_bps";
@@ -8144,11 +8546,13 @@ declare class Core {
8144
8546
  type: "notional_trailing";
8145
8547
  data: {
8146
8548
  priceSource: "mid" | "mark";
8549
+ onPositionResize: "cancel" | "keep";
8147
8550
  };
8148
8551
  } | {
8149
8552
  type: "upnl_trailing";
8150
8553
  data: {
8151
8554
  priceSource: "mid" | "mark";
8555
+ onPositionResize: "cancel" | "keep";
8152
8556
  };
8153
8557
  } | {
8154
8558
  type: "upnl_bps_trailing";
@@ -8197,13 +8601,12 @@ declare class Core {
8197
8601
  parentTriggerId?: string | undefined;
8198
8602
  triggeredAt?: string | undefined;
8199
8603
  cancelledAt?: string | undefined;
8200
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
8604
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8201
8605
  fills?: {
8202
8606
  id: string;
8203
8607
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8204
8608
  tradeAccountId: string;
8205
8609
  symbol: string;
8206
- positionId: string;
8207
8610
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8208
8611
  side: "BUY" | "SELL";
8209
8612
  reduceOnly: boolean;
@@ -8213,8 +8616,18 @@ declare class Core {
8213
8616
  price: string;
8214
8617
  usd: string;
8215
8618
  timestamp: string;
8619
+ assignments: {
8620
+ positionId: string;
8621
+ quantity: string;
8622
+ usd: string;
8623
+ tradeFee?: string | undefined;
8624
+ pearFee?: string | undefined;
8625
+ }[];
8216
8626
  cloid?: string | undefined;
8217
8627
  exchangeFillId?: string | undefined;
8628
+ executionId?: string | undefined;
8629
+ scheduleId?: string | undefined;
8630
+ triggerId?: string | undefined;
8218
8631
  tradeFee?: string | undefined;
8219
8632
  pearFee?: string | undefined;
8220
8633
  original?: {
@@ -8324,13 +8737,12 @@ declare class Core {
8324
8737
  parentTriggerId?: string | undefined;
8325
8738
  triggeredAt?: string | undefined;
8326
8739
  cancelledAt?: string | undefined;
8327
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
8740
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8328
8741
  fills?: {
8329
8742
  id: string;
8330
8743
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8331
8744
  tradeAccountId: string;
8332
8745
  symbol: string;
8333
- positionId: string;
8334
8746
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8335
8747
  side: "BUY" | "SELL";
8336
8748
  reduceOnly: boolean;
@@ -8340,8 +8752,18 @@ declare class Core {
8340
8752
  price: string;
8341
8753
  usd: string;
8342
8754
  timestamp: string;
8755
+ assignments: {
8756
+ positionId: string;
8757
+ quantity: string;
8758
+ usd: string;
8759
+ tradeFee?: string | undefined;
8760
+ pearFee?: string | undefined;
8761
+ }[];
8343
8762
  cloid?: string | undefined;
8344
8763
  exchangeFillId?: string | undefined;
8764
+ executionId?: string | undefined;
8765
+ scheduleId?: string | undefined;
8766
+ triggerId?: string | undefined;
8345
8767
  tradeFee?: string | undefined;
8346
8768
  pearFee?: string | undefined;
8347
8769
  original?: {
@@ -8395,6 +8817,7 @@ declare class Core {
8395
8817
  priceSource: "mid" | "mark";
8396
8818
  track: "PEAK" | "TROUGH";
8397
8819
  threshold: number;
8820
+ onPositionResize: "cancel" | "keep";
8398
8821
  };
8399
8822
  } | {
8400
8823
  type: "upnl";
@@ -8402,6 +8825,7 @@ declare class Core {
8402
8825
  priceSource: "mid" | "mark";
8403
8826
  track: "PEAK" | "TROUGH";
8404
8827
  threshold: number;
8828
+ onPositionResize: "cancel" | "keep";
8405
8829
  };
8406
8830
  } | {
8407
8831
  type: "upnl_bps";
@@ -8461,13 +8885,12 @@ declare class Core {
8461
8885
  parentTriggerId?: string | undefined;
8462
8886
  triggeredAt?: string | undefined;
8463
8887
  cancelledAt?: string | undefined;
8464
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
8888
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8465
8889
  fills?: {
8466
8890
  id: string;
8467
8891
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8468
8892
  tradeAccountId: string;
8469
8893
  symbol: string;
8470
- positionId: string;
8471
8894
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8472
8895
  side: "BUY" | "SELL";
8473
8896
  reduceOnly: boolean;
@@ -8477,8 +8900,18 @@ declare class Core {
8477
8900
  price: string;
8478
8901
  usd: string;
8479
8902
  timestamp: string;
8903
+ assignments: {
8904
+ positionId: string;
8905
+ quantity: string;
8906
+ usd: string;
8907
+ tradeFee?: string | undefined;
8908
+ pearFee?: string | undefined;
8909
+ }[];
8480
8910
  cloid?: string | undefined;
8481
8911
  exchangeFillId?: string | undefined;
8912
+ executionId?: string | undefined;
8913
+ scheduleId?: string | undefined;
8914
+ triggerId?: string | undefined;
8482
8915
  tradeFee?: string | undefined;
8483
8916
  pearFee?: string | undefined;
8484
8917
  original?: {
@@ -8540,6 +8973,7 @@ declare class Core {
8540
8973
  priceSource: "mid" | "mark";
8541
8974
  track: "PEAK" | "TROUGH";
8542
8975
  threshold: number;
8976
+ onPositionResize: "cancel" | "keep";
8543
8977
  };
8544
8978
  } | {
8545
8979
  type: "upnl";
@@ -8547,6 +8981,7 @@ declare class Core {
8547
8981
  priceSource: "mid" | "mark";
8548
8982
  track: "PEAK" | "TROUGH";
8549
8983
  threshold: number;
8984
+ onPositionResize: "cancel" | "keep";
8550
8985
  };
8551
8986
  } | {
8552
8987
  type: "upnl_bps";
@@ -8582,11 +9017,13 @@ declare class Core {
8582
9017
  type: "notional_trailing";
8583
9018
  data: {
8584
9019
  priceSource: "mid" | "mark";
9020
+ onPositionResize: "cancel" | "keep";
8585
9021
  };
8586
9022
  } | {
8587
9023
  type: "upnl_trailing";
8588
9024
  data: {
8589
9025
  priceSource: "mid" | "mark";
9026
+ onPositionResize: "cancel" | "keep";
8590
9027
  };
8591
9028
  } | {
8592
9029
  type: "upnl_bps_trailing";
@@ -8629,13 +9066,12 @@ declare class Core {
8629
9066
  parentTriggerId?: string | undefined;
8630
9067
  triggeredAt?: string | undefined;
8631
9068
  cancelledAt?: string | undefined;
8632
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
9069
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8633
9070
  fills?: {
8634
9071
  id: string;
8635
9072
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8636
9073
  tradeAccountId: string;
8637
9074
  symbol: string;
8638
- positionId: string;
8639
9075
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8640
9076
  side: "BUY" | "SELL";
8641
9077
  reduceOnly: boolean;
@@ -8645,8 +9081,18 @@ declare class Core {
8645
9081
  price: string;
8646
9082
  usd: string;
8647
9083
  timestamp: string;
9084
+ assignments: {
9085
+ positionId: string;
9086
+ quantity: string;
9087
+ usd: string;
9088
+ tradeFee?: string | undefined;
9089
+ pearFee?: string | undefined;
9090
+ }[];
8648
9091
  cloid?: string | undefined;
8649
9092
  exchangeFillId?: string | undefined;
9093
+ executionId?: string | undefined;
9094
+ scheduleId?: string | undefined;
9095
+ triggerId?: string | undefined;
8650
9096
  tradeFee?: string | undefined;
8651
9097
  pearFee?: string | undefined;
8652
9098
  original?: {
@@ -8654,6 +9100,7 @@ declare class Core {
8654
9100
  quantity: string;
8655
9101
  } | undefined;
8656
9102
  }[] | undefined;
9103
+ closePercent?: number | undefined;
8657
9104
  trailing?: {
8658
9105
  mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
8659
9106
  deltaValue: number;
@@ -8708,6 +9155,7 @@ declare class Core {
8708
9155
  priceSource: "mid" | "mark";
8709
9156
  track: "PEAK" | "TROUGH";
8710
9157
  threshold: number;
9158
+ onPositionResize: "cancel" | "keep";
8711
9159
  };
8712
9160
  } | {
8713
9161
  type: "upnl";
@@ -8715,6 +9163,7 @@ declare class Core {
8715
9163
  priceSource: "mid" | "mark";
8716
9164
  track: "PEAK" | "TROUGH";
8717
9165
  threshold: number;
9166
+ onPositionResize: "cancel" | "keep";
8718
9167
  };
8719
9168
  } | {
8720
9169
  type: "upnl_bps";
@@ -8777,13 +9226,12 @@ declare class Core {
8777
9226
  parentTriggerId?: string | undefined;
8778
9227
  triggeredAt?: string | undefined;
8779
9228
  cancelledAt?: string | undefined;
8780
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
9229
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8781
9230
  fills?: {
8782
9231
  id: string;
8783
9232
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8784
9233
  tradeAccountId: string;
8785
9234
  symbol: string;
8786
- positionId: string;
8787
9235
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8788
9236
  side: "BUY" | "SELL";
8789
9237
  reduceOnly: boolean;
@@ -8793,8 +9241,18 @@ declare class Core {
8793
9241
  price: string;
8794
9242
  usd: string;
8795
9243
  timestamp: string;
9244
+ assignments: {
9245
+ positionId: string;
9246
+ quantity: string;
9247
+ usd: string;
9248
+ tradeFee?: string | undefined;
9249
+ pearFee?: string | undefined;
9250
+ }[];
8796
9251
  cloid?: string | undefined;
8797
9252
  exchangeFillId?: string | undefined;
9253
+ executionId?: string | undefined;
9254
+ scheduleId?: string | undefined;
9255
+ triggerId?: string | undefined;
8798
9256
  tradeFee?: string | undefined;
8799
9257
  pearFee?: string | undefined;
8800
9258
  original?: {
@@ -8857,6 +9315,7 @@ declare class Core {
8857
9315
  priceSource: "mid" | "mark";
8858
9316
  track: "PEAK" | "TROUGH";
8859
9317
  threshold: number;
9318
+ onPositionResize: "cancel" | "keep";
8860
9319
  };
8861
9320
  } | {
8862
9321
  type: "upnl";
@@ -8864,6 +9323,7 @@ declare class Core {
8864
9323
  priceSource: "mid" | "mark";
8865
9324
  track: "PEAK" | "TROUGH";
8866
9325
  threshold: number;
9326
+ onPositionResize: "cancel" | "keep";
8867
9327
  };
8868
9328
  } | {
8869
9329
  type: "upnl_bps";
@@ -8899,11 +9359,13 @@ declare class Core {
8899
9359
  type: "notional_trailing";
8900
9360
  data: {
8901
9361
  priceSource: "mid" | "mark";
9362
+ onPositionResize: "cancel" | "keep";
8902
9363
  };
8903
9364
  } | {
8904
9365
  type: "upnl_trailing";
8905
9366
  data: {
8906
9367
  priceSource: "mid" | "mark";
9368
+ onPositionResize: "cancel" | "keep";
8907
9369
  };
8908
9370
  } | {
8909
9371
  type: "upnl_bps_trailing";
@@ -8952,13 +9414,12 @@ declare class Core {
8952
9414
  parentTriggerId?: string | undefined;
8953
9415
  triggeredAt?: string | undefined;
8954
9416
  cancelledAt?: string | undefined;
8955
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
9417
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
8956
9418
  fills?: {
8957
9419
  id: string;
8958
9420
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
8959
9421
  tradeAccountId: string;
8960
9422
  symbol: string;
8961
- positionId: string;
8962
9423
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8963
9424
  side: "BUY" | "SELL";
8964
9425
  reduceOnly: boolean;
@@ -8968,8 +9429,18 @@ declare class Core {
8968
9429
  price: string;
8969
9430
  usd: string;
8970
9431
  timestamp: string;
9432
+ assignments: {
9433
+ positionId: string;
9434
+ quantity: string;
9435
+ usd: string;
9436
+ tradeFee?: string | undefined;
9437
+ pearFee?: string | undefined;
9438
+ }[];
8971
9439
  cloid?: string | undefined;
8972
9440
  exchangeFillId?: string | undefined;
9441
+ executionId?: string | undefined;
9442
+ scheduleId?: string | undefined;
9443
+ triggerId?: string | undefined;
8973
9444
  tradeFee?: string | undefined;
8974
9445
  pearFee?: string | undefined;
8975
9446
  original?: {
@@ -9078,13 +9549,12 @@ declare class Core {
9078
9549
  parentTriggerId?: string | undefined;
9079
9550
  triggeredAt?: string | undefined;
9080
9551
  cancelledAt?: string | undefined;
9081
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
9552
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
9082
9553
  fills?: {
9083
9554
  id: string;
9084
9555
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
9085
9556
  tradeAccountId: string;
9086
9557
  symbol: string;
9087
- positionId: string;
9088
9558
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9089
9559
  side: "BUY" | "SELL";
9090
9560
  reduceOnly: boolean;
@@ -9094,8 +9564,18 @@ declare class Core {
9094
9564
  price: string;
9095
9565
  usd: string;
9096
9566
  timestamp: string;
9567
+ assignments: {
9568
+ positionId: string;
9569
+ quantity: string;
9570
+ usd: string;
9571
+ tradeFee?: string | undefined;
9572
+ pearFee?: string | undefined;
9573
+ }[];
9097
9574
  cloid?: string | undefined;
9098
9575
  exchangeFillId?: string | undefined;
9576
+ executionId?: string | undefined;
9577
+ scheduleId?: string | undefined;
9578
+ triggerId?: string | undefined;
9099
9579
  tradeFee?: string | undefined;
9100
9580
  pearFee?: string | undefined;
9101
9581
  original?: {
@@ -9149,6 +9629,7 @@ declare class Core {
9149
9629
  priceSource: "mid" | "mark";
9150
9630
  track: "PEAK" | "TROUGH";
9151
9631
  threshold: number;
9632
+ onPositionResize: "cancel" | "keep";
9152
9633
  };
9153
9634
  } | {
9154
9635
  type: "upnl";
@@ -9156,6 +9637,7 @@ declare class Core {
9156
9637
  priceSource: "mid" | "mark";
9157
9638
  track: "PEAK" | "TROUGH";
9158
9639
  threshold: number;
9640
+ onPositionResize: "cancel" | "keep";
9159
9641
  };
9160
9642
  } | {
9161
9643
  type: "upnl_bps";
@@ -9215,13 +9697,12 @@ declare class Core {
9215
9697
  parentTriggerId?: string | undefined;
9216
9698
  triggeredAt?: string | undefined;
9217
9699
  cancelledAt?: string | undefined;
9218
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
9700
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
9219
9701
  fills?: {
9220
9702
  id: string;
9221
9703
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
9222
9704
  tradeAccountId: string;
9223
9705
  symbol: string;
9224
- positionId: string;
9225
9706
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9226
9707
  side: "BUY" | "SELL";
9227
9708
  reduceOnly: boolean;
@@ -9231,8 +9712,18 @@ declare class Core {
9231
9712
  price: string;
9232
9713
  usd: string;
9233
9714
  timestamp: string;
9715
+ assignments: {
9716
+ positionId: string;
9717
+ quantity: string;
9718
+ usd: string;
9719
+ tradeFee?: string | undefined;
9720
+ pearFee?: string | undefined;
9721
+ }[];
9234
9722
  cloid?: string | undefined;
9235
9723
  exchangeFillId?: string | undefined;
9724
+ executionId?: string | undefined;
9725
+ scheduleId?: string | undefined;
9726
+ triggerId?: string | undefined;
9236
9727
  tradeFee?: string | undefined;
9237
9728
  pearFee?: string | undefined;
9238
9729
  original?: {
@@ -9294,6 +9785,7 @@ declare class Core {
9294
9785
  priceSource: "mid" | "mark";
9295
9786
  track: "PEAK" | "TROUGH";
9296
9787
  threshold: number;
9788
+ onPositionResize: "cancel" | "keep";
9297
9789
  };
9298
9790
  } | {
9299
9791
  type: "upnl";
@@ -9301,6 +9793,7 @@ declare class Core {
9301
9793
  priceSource: "mid" | "mark";
9302
9794
  track: "PEAK" | "TROUGH";
9303
9795
  threshold: number;
9796
+ onPositionResize: "cancel" | "keep";
9304
9797
  };
9305
9798
  } | {
9306
9799
  type: "upnl_bps";
@@ -9336,11 +9829,13 @@ declare class Core {
9336
9829
  type: "notional_trailing";
9337
9830
  data: {
9338
9831
  priceSource: "mid" | "mark";
9832
+ onPositionResize: "cancel" | "keep";
9339
9833
  };
9340
9834
  } | {
9341
9835
  type: "upnl_trailing";
9342
9836
  data: {
9343
9837
  priceSource: "mid" | "mark";
9838
+ onPositionResize: "cancel" | "keep";
9344
9839
  };
9345
9840
  } | {
9346
9841
  type: "upnl_bps_trailing";
@@ -9383,13 +9878,12 @@ declare class Core {
9383
9878
  parentTriggerId?: string | undefined;
9384
9879
  triggeredAt?: string | undefined;
9385
9880
  cancelledAt?: string | undefined;
9386
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
9881
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
9387
9882
  fills?: {
9388
9883
  id: string;
9389
9884
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
9390
9885
  tradeAccountId: string;
9391
9886
  symbol: string;
9392
- positionId: string;
9393
9887
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9394
9888
  side: "BUY" | "SELL";
9395
9889
  reduceOnly: boolean;
@@ -9399,8 +9893,18 @@ declare class Core {
9399
9893
  price: string;
9400
9894
  usd: string;
9401
9895
  timestamp: string;
9896
+ assignments: {
9897
+ positionId: string;
9898
+ quantity: string;
9899
+ usd: string;
9900
+ tradeFee?: string | undefined;
9901
+ pearFee?: string | undefined;
9902
+ }[];
9402
9903
  cloid?: string | undefined;
9403
9904
  exchangeFillId?: string | undefined;
9905
+ executionId?: string | undefined;
9906
+ scheduleId?: string | undefined;
9907
+ triggerId?: string | undefined;
9404
9908
  tradeFee?: string | undefined;
9405
9909
  pearFee?: string | undefined;
9406
9910
  original?: {
@@ -9408,6 +9912,7 @@ declare class Core {
9408
9912
  quantity: string;
9409
9913
  } | undefined;
9410
9914
  }[] | undefined;
9915
+ closePercent?: number | undefined;
9411
9916
  trailing?: {
9412
9917
  mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
9413
9918
  deltaValue: number;
@@ -9462,6 +9967,7 @@ declare class Core {
9462
9967
  priceSource: "mid" | "mark";
9463
9968
  track: "PEAK" | "TROUGH";
9464
9969
  threshold: number;
9970
+ onPositionResize: "cancel" | "keep";
9465
9971
  };
9466
9972
  } | {
9467
9973
  type: "upnl";
@@ -9469,6 +9975,7 @@ declare class Core {
9469
9975
  priceSource: "mid" | "mark";
9470
9976
  track: "PEAK" | "TROUGH";
9471
9977
  threshold: number;
9978
+ onPositionResize: "cancel" | "keep";
9472
9979
  };
9473
9980
  } | {
9474
9981
  type: "upnl_bps";
@@ -9531,13 +10038,12 @@ declare class Core {
9531
10038
  parentTriggerId?: string | undefined;
9532
10039
  triggeredAt?: string | undefined;
9533
10040
  cancelledAt?: string | undefined;
9534
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
10041
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
9535
10042
  fills?: {
9536
10043
  id: string;
9537
10044
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
9538
10045
  tradeAccountId: string;
9539
10046
  symbol: string;
9540
- positionId: string;
9541
10047
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9542
10048
  side: "BUY" | "SELL";
9543
10049
  reduceOnly: boolean;
@@ -9547,8 +10053,18 @@ declare class Core {
9547
10053
  price: string;
9548
10054
  usd: string;
9549
10055
  timestamp: string;
10056
+ assignments: {
10057
+ positionId: string;
10058
+ quantity: string;
10059
+ usd: string;
10060
+ tradeFee?: string | undefined;
10061
+ pearFee?: string | undefined;
10062
+ }[];
9550
10063
  cloid?: string | undefined;
9551
10064
  exchangeFillId?: string | undefined;
10065
+ executionId?: string | undefined;
10066
+ scheduleId?: string | undefined;
10067
+ triggerId?: string | undefined;
9552
10068
  tradeFee?: string | undefined;
9553
10069
  pearFee?: string | undefined;
9554
10070
  original?: {
@@ -9611,6 +10127,7 @@ declare class Core {
9611
10127
  priceSource: "mid" | "mark";
9612
10128
  track: "PEAK" | "TROUGH";
9613
10129
  threshold: number;
10130
+ onPositionResize: "cancel" | "keep";
9614
10131
  };
9615
10132
  } | {
9616
10133
  type: "upnl";
@@ -9618,6 +10135,7 @@ declare class Core {
9618
10135
  priceSource: "mid" | "mark";
9619
10136
  track: "PEAK" | "TROUGH";
9620
10137
  threshold: number;
10138
+ onPositionResize: "cancel" | "keep";
9621
10139
  };
9622
10140
  } | {
9623
10141
  type: "upnl_bps";
@@ -9653,11 +10171,13 @@ declare class Core {
9653
10171
  type: "notional_trailing";
9654
10172
  data: {
9655
10173
  priceSource: "mid" | "mark";
10174
+ onPositionResize: "cancel" | "keep";
9656
10175
  };
9657
10176
  } | {
9658
10177
  type: "upnl_trailing";
9659
10178
  data: {
9660
10179
  priceSource: "mid" | "mark";
10180
+ onPositionResize: "cancel" | "keep";
9661
10181
  };
9662
10182
  } | {
9663
10183
  type: "upnl_bps_trailing";
@@ -9706,13 +10226,12 @@ declare class Core {
9706
10226
  parentTriggerId?: string | undefined;
9707
10227
  triggeredAt?: string | undefined;
9708
10228
  cancelledAt?: string | undefined;
9709
- cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
10229
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
9710
10230
  fills?: {
9711
10231
  id: string;
9712
10232
  status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
9713
10233
  tradeAccountId: string;
9714
10234
  symbol: string;
9715
- positionId: string;
9716
10235
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9717
10236
  side: "BUY" | "SELL";
9718
10237
  reduceOnly: boolean;
@@ -9722,8 +10241,18 @@ declare class Core {
9722
10241
  price: string;
9723
10242
  usd: string;
9724
10243
  timestamp: string;
10244
+ assignments: {
10245
+ positionId: string;
10246
+ quantity: string;
10247
+ usd: string;
10248
+ tradeFee?: string | undefined;
10249
+ pearFee?: string | undefined;
10250
+ }[];
9725
10251
  cloid?: string | undefined;
9726
10252
  exchangeFillId?: string | undefined;
10253
+ executionId?: string | undefined;
10254
+ scheduleId?: string | undefined;
10255
+ triggerId?: string | undefined;
9727
10256
  tradeFee?: string | undefined;
9728
10257
  pearFee?: string | undefined;
9729
10258
  original?: {
@@ -10061,6 +10590,24 @@ declare class Core {
10061
10590
  } | undefined;
10062
10591
  } | undefined;
10063
10592
  };
10593
+ coverage: "FULLY_COPY" | "PARTIALLY_COPY";
10594
+ unmanagedPositions: ({
10595
+ kind: "FOLLOWER_POSITION";
10596
+ positionId: string;
10597
+ reason: "LIQUIDATED" | "LEADER_EXTERNAL_ACTIVITY" | "ASSET_CONFLICT" | "FOLLOWER_INTERVENTION" | "EXTERNAL_SYNC" | "EXISTING_AT_ADMISSION" | "MANUAL_POSITION";
10598
+ detectedAt: string;
10599
+ instrumentIds: string[];
10600
+ } | {
10601
+ kind: "LEADER_POSITION";
10602
+ positionId: string;
10603
+ reason: "LIQUIDATED" | "LEADER_EXTERNAL_ACTIVITY" | "ASSET_CONFLICT" | "FOLLOWER_INTERVENTION" | "EXTERNAL_SYNC";
10604
+ detectedAt: string;
10605
+ instrumentIds: string[];
10606
+ })[];
10607
+ managedPositions: {
10608
+ positionId: string;
10609
+ instrumentIds: string[];
10610
+ }[];
10064
10611
  }>;
10065
10612
  /** Read all active followers of an owned leader account. */
10066
10613
  followers: (headers?: ClientHeaders) => Promise<{
@@ -10081,11 +10628,13 @@ declare class Core {
10081
10628
  lifetimeFollowerCount: number;
10082
10629
  copiedTrades: number;
10083
10630
  copiedVolumeUsd: string;
10631
+ rewardsEarnedUsd: string;
10084
10632
  followers: {
10085
10633
  tradeAccountId: string;
10086
10634
  status: "ACTIVE" | "ENDED";
10087
10635
  copiedTrades: number;
10088
10636
  copiedVolumeUsd: string;
10637
+ rewardsEarnedUsd: string;
10089
10638
  xUserId?: string | undefined;
10090
10639
  xHandle?: string | undefined;
10091
10640
  xName?: string | undefined;
@@ -10237,11 +10786,11 @@ declare class Core {
10237
10786
  provisional?: true | undefined;
10238
10787
  latestFillAt?: string | undefined;
10239
10788
  endedAt?: string | undefined;
10789
+ tradeFee?: `-${string}` | `+${string}` | undefined;
10790
+ pearFee?: `-${string}` | `+${string}` | undefined;
10240
10791
  grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
10241
10792
  grossUpnl?: `-${string}` | `+${string}` | undefined;
10242
10793
  fundingPayment?: `-${string}` | `+${string}` | undefined;
10243
- tradeFee?: `-${string}` | `+${string}` | undefined;
10244
- pearFee?: `-${string}` | `+${string}` | undefined;
10245
10794
  totalNetPnl?: `-${string}` | `+${string}` | undefined;
10246
10795
  startSnapshot?: {
10247
10796
  leader: {
@@ -10368,11 +10917,11 @@ declare class Core {
10368
10917
  provisional?: true | undefined;
10369
10918
  latestFillAt?: string | undefined;
10370
10919
  endedAt?: string | undefined;
10920
+ tradeFee?: `-${string}` | `+${string}` | undefined;
10921
+ pearFee?: `-${string}` | `+${string}` | undefined;
10371
10922
  grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
10372
10923
  grossUpnl?: `-${string}` | `+${string}` | undefined;
10373
10924
  fundingPayment?: `-${string}` | `+${string}` | undefined;
10374
- tradeFee?: `-${string}` | `+${string}` | undefined;
10375
- pearFee?: `-${string}` | `+${string}` | undefined;
10376
10925
  totalNetPnl?: `-${string}` | `+${string}` | undefined;
10377
10926
  startSnapshot?: {
10378
10927
  leader: {
@@ -10494,7 +11043,7 @@ declare class Core {
10494
11043
  } | {
10495
11044
  leaderPositionId: string;
10496
11045
  outcome: "SKIPPED";
10497
- 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";
11046
+ 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";
10498
11047
  } | {
10499
11048
  leaderPositionId: string;
10500
11049
  outcome: "FAILED";
@@ -10520,11 +11069,11 @@ declare class Core {
10520
11069
  provisional?: true | undefined;
10521
11070
  latestFillAt?: string | undefined;
10522
11071
  endedAt?: string | undefined;
11072
+ tradeFee?: `-${string}` | `+${string}` | undefined;
11073
+ pearFee?: `-${string}` | `+${string}` | undefined;
10523
11074
  grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
10524
11075
  grossUpnl?: `-${string}` | `+${string}` | undefined;
10525
11076
  fundingPayment?: `-${string}` | `+${string}` | undefined;
10526
- tradeFee?: `-${string}` | `+${string}` | undefined;
10527
- pearFee?: `-${string}` | `+${string}` | undefined;
10528
11077
  totalNetPnl?: `-${string}` | `+${string}` | undefined;
10529
11078
  startSnapshot?: {
10530
11079
  leader: {
@@ -10638,7 +11187,7 @@ declare class Core {
10638
11187
  activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
10639
11188
  activities: {
10640
11189
  id: string;
10641
- leaderAction: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
11190
+ leaderAction: "TWAP" | "OPEN" | "CLOSE" | "ADJUST" | "REVERSE" | "TWAP_END";
10642
11191
  state: "RECORDED" | "DISPATCHED" | "SETTLED";
10643
11192
  followerLegs: {
10644
11193
  symbol: string;
@@ -10662,9 +11211,33 @@ declare class Core {
10662
11211
  configId: string;
10663
11212
  } | undefined;
10664
11213
  outcome?: "FAILED" | "COPIED" | "PARTIAL" | "SKIPPED" | undefined;
10665
- 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;
11214
+ 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;
10666
11215
  failureReason?: string | undefined;
10667
11216
  leaderEquityFraction?: string | undefined;
11217
+ twap?: {
11218
+ intent: "OPEN" | "CLOSE";
11219
+ totalNotional: string;
11220
+ startAt: string;
11221
+ endAt: string;
11222
+ sliceCount: number;
11223
+ sliceIntervalSec: number;
11224
+ leaderSliceCount: number;
11225
+ reduction: {
11226
+ kind: "NONE";
11227
+ } | {
11228
+ kind: "MINIMUM";
11229
+ limitingLegs: {
11230
+ symbol: string;
11231
+ minimumNotional: string;
11232
+ }[];
11233
+ };
11234
+ progress?: {
11235
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
11236
+ filledNotional: string;
11237
+ executedSliceCount: number;
11238
+ partiallyFilled: boolean;
11239
+ } | undefined;
11240
+ } | undefined;
10668
11241
  }[];
10669
11242
  }>;
10670
11243
  };
@@ -10880,7 +11453,7 @@ declare class Core {
10880
11453
  executionContext?: {
10881
11454
  intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
10882
11455
  orderType: "MARKET";
10883
- executionStatus: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
11456
+ executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
10884
11457
  legs: {
10885
11458
  symbol: string;
10886
11459
  side: "BUY" | "SELL";
@@ -10971,7 +11544,7 @@ declare class Core {
10971
11544
  executionContext?: {
10972
11545
  intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
10973
11546
  orderType: "MARKET";
10974
- executionStatus: "ACTIVE" | "CANCELLED" | "COMPLETED" | "FAILED" | "IDLE";
11547
+ executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
10975
11548
  legs: {
10976
11549
  symbol: string;
10977
11550
  side: "BUY" | "SELL";