@pear-protocol/core-sdk 2.15.0 → 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.
- package/dist/core/index.d.ts +701 -167
- package/dist/core/index.js +3 -0
- package/dist/vaults/index.d.ts +2 -2
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare class Core {
|
|
|
13
13
|
performance: (tradeAccountId: string, query?: HttpTypes.TraderPerformanceQueryInput, headers?: ClientHeaders) => Promise<{
|
|
14
14
|
points: {
|
|
15
15
|
at: string;
|
|
16
|
+
hasGap: boolean;
|
|
16
17
|
equityUsd?: `-${string}` | `+${string}` | undefined;
|
|
17
18
|
pnlUsd?: `-${string}` | `+${string}` | undefined;
|
|
18
19
|
roiPercent?: `-${string}` | `+${string}` | undefined;
|
|
@@ -24,8 +25,8 @@ declare class Core {
|
|
|
24
25
|
positions: {
|
|
25
26
|
status: "CLOSED";
|
|
26
27
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
27
|
-
netPnl: `-${string}` | `+${string}`;
|
|
28
28
|
positionId: string;
|
|
29
|
+
netPnl: `-${string}` | `+${string}`;
|
|
29
30
|
closedAt: string;
|
|
30
31
|
grossPnl: `-${string}` | `+${string}`;
|
|
31
32
|
openedAt: string;
|
|
@@ -39,7 +40,7 @@ declare class Core {
|
|
|
39
40
|
entryVwap?: string | undefined;
|
|
40
41
|
exitVwap?: string | undefined;
|
|
41
42
|
}[];
|
|
42
|
-
closedReason?: "
|
|
43
|
+
closedReason?: "USER" | "LIQUIDATED" | "NETTED" | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
nextCursor?: string | undefined;
|
|
45
46
|
}>;
|
|
@@ -90,8 +91,8 @@ declare class Core {
|
|
|
90
91
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
91
92
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
92
93
|
updatedAt: string;
|
|
93
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
94
94
|
intent: "OPEN";
|
|
95
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
95
96
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
96
97
|
condition: {
|
|
97
98
|
type: "ratio";
|
|
@@ -166,12 +167,12 @@ declare class Core {
|
|
|
166
167
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT";
|
|
167
168
|
}[];
|
|
168
169
|
};
|
|
170
|
+
cancelledAt?: string | undefined;
|
|
171
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
169
172
|
ladderId?: string | undefined;
|
|
170
173
|
ladderIndex?: number | undefined;
|
|
171
174
|
parentTriggerId?: string | undefined;
|
|
172
175
|
triggeredAt?: string | undefined;
|
|
173
|
-
cancelledAt?: string | undefined;
|
|
174
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
175
176
|
} | {
|
|
176
177
|
type: "MARKET";
|
|
177
178
|
id: string;
|
|
@@ -179,8 +180,8 @@ declare class Core {
|
|
|
179
180
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
180
181
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
181
182
|
updatedAt: string;
|
|
182
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
183
183
|
intent: "ADJUST";
|
|
184
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
184
185
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
185
186
|
condition: {
|
|
186
187
|
type: "ratio";
|
|
@@ -217,6 +218,7 @@ declare class Core {
|
|
|
217
218
|
priceSource: "mid" | "mark";
|
|
218
219
|
track: "PEAK" | "TROUGH";
|
|
219
220
|
threshold: number;
|
|
221
|
+
onPositionResize: "cancel" | "keep";
|
|
220
222
|
};
|
|
221
223
|
} | {
|
|
222
224
|
type: "upnl";
|
|
@@ -224,6 +226,7 @@ declare class Core {
|
|
|
224
226
|
priceSource: "mid" | "mark";
|
|
225
227
|
track: "PEAK" | "TROUGH";
|
|
226
228
|
threshold: number;
|
|
229
|
+
onPositionResize: "cancel" | "keep";
|
|
227
230
|
};
|
|
228
231
|
} | {
|
|
229
232
|
type: "upnl_bps";
|
|
@@ -278,12 +281,12 @@ declare class Core {
|
|
|
278
281
|
id?: string | undefined;
|
|
279
282
|
}[]];
|
|
280
283
|
};
|
|
284
|
+
cancelledAt?: string | undefined;
|
|
285
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
281
286
|
ladderId?: string | undefined;
|
|
282
287
|
ladderIndex?: number | undefined;
|
|
283
288
|
parentTriggerId?: string | undefined;
|
|
284
289
|
triggeredAt?: string | undefined;
|
|
285
|
-
cancelledAt?: string | undefined;
|
|
286
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
287
290
|
trailing?: {
|
|
288
291
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
289
292
|
deltaValue: number;
|
|
@@ -299,8 +302,8 @@ declare class Core {
|
|
|
299
302
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
300
303
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
301
304
|
updatedAt: string;
|
|
302
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
303
305
|
intent: "CLOSE";
|
|
306
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
304
307
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
305
308
|
condition: {
|
|
306
309
|
type: "ratio";
|
|
@@ -337,6 +340,7 @@ declare class Core {
|
|
|
337
340
|
priceSource: "mid" | "mark";
|
|
338
341
|
track: "PEAK" | "TROUGH";
|
|
339
342
|
threshold: number;
|
|
343
|
+
onPositionResize: "cancel" | "keep";
|
|
340
344
|
};
|
|
341
345
|
} | {
|
|
342
346
|
type: "upnl";
|
|
@@ -344,6 +348,7 @@ declare class Core {
|
|
|
344
348
|
priceSource: "mid" | "mark";
|
|
345
349
|
track: "PEAK" | "TROUGH";
|
|
346
350
|
threshold: number;
|
|
351
|
+
onPositionResize: "cancel" | "keep";
|
|
347
352
|
};
|
|
348
353
|
} | {
|
|
349
354
|
type: "upnl_bps";
|
|
@@ -379,11 +384,13 @@ declare class Core {
|
|
|
379
384
|
type: "notional_trailing";
|
|
380
385
|
data: {
|
|
381
386
|
priceSource: "mid" | "mark";
|
|
387
|
+
onPositionResize: "cancel" | "keep";
|
|
382
388
|
};
|
|
383
389
|
} | {
|
|
384
390
|
type: "upnl_trailing";
|
|
385
391
|
data: {
|
|
386
392
|
priceSource: "mid" | "mark";
|
|
393
|
+
onPositionResize: "cancel" | "keep";
|
|
387
394
|
};
|
|
388
395
|
} | {
|
|
389
396
|
type: "upnl_bps_trailing";
|
|
@@ -421,12 +428,12 @@ declare class Core {
|
|
|
421
428
|
initialExposure: Record<string, `-${string}` | `+${string}`>;
|
|
422
429
|
};
|
|
423
430
|
};
|
|
431
|
+
cancelledAt?: string | undefined;
|
|
432
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
424
433
|
ladderId?: string | undefined;
|
|
425
434
|
ladderIndex?: number | undefined;
|
|
426
435
|
parentTriggerId?: string | undefined;
|
|
427
436
|
triggeredAt?: string | undefined;
|
|
428
|
-
cancelledAt?: string | undefined;
|
|
429
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
430
437
|
trailing?: {
|
|
431
438
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
432
439
|
deltaValue: number;
|
|
@@ -442,8 +449,8 @@ declare class Core {
|
|
|
442
449
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
443
450
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
444
451
|
updatedAt: string;
|
|
445
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
446
452
|
intent: "ADJUST";
|
|
453
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
447
454
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
448
455
|
condition: {
|
|
449
456
|
type: "ratio";
|
|
@@ -480,6 +487,7 @@ declare class Core {
|
|
|
480
487
|
priceSource: "mid" | "mark";
|
|
481
488
|
track: "PEAK" | "TROUGH";
|
|
482
489
|
threshold: number;
|
|
490
|
+
onPositionResize: "cancel" | "keep";
|
|
483
491
|
};
|
|
484
492
|
} | {
|
|
485
493
|
type: "upnl";
|
|
@@ -487,6 +495,7 @@ declare class Core {
|
|
|
487
495
|
priceSource: "mid" | "mark";
|
|
488
496
|
track: "PEAK" | "TROUGH";
|
|
489
497
|
threshold: number;
|
|
498
|
+
onPositionResize: "cancel" | "keep";
|
|
490
499
|
};
|
|
491
500
|
} | {
|
|
492
501
|
type: "upnl_bps";
|
|
@@ -545,12 +554,12 @@ declare class Core {
|
|
|
545
554
|
targetNotional: string;
|
|
546
555
|
};
|
|
547
556
|
scheduleId?: string | undefined;
|
|
557
|
+
cancelledAt?: string | undefined;
|
|
558
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
548
559
|
ladderId?: string | undefined;
|
|
549
560
|
ladderIndex?: number | undefined;
|
|
550
561
|
parentTriggerId?: string | undefined;
|
|
551
562
|
triggeredAt?: string | undefined;
|
|
552
|
-
cancelledAt?: string | undefined;
|
|
553
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
554
563
|
trailing?: {
|
|
555
564
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
556
565
|
deltaValue: number;
|
|
@@ -566,8 +575,8 @@ declare class Core {
|
|
|
566
575
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
567
576
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
568
577
|
updatedAt: string;
|
|
569
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
570
578
|
intent: "CLOSE";
|
|
579
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
571
580
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
572
581
|
condition: {
|
|
573
582
|
type: "ratio";
|
|
@@ -604,6 +613,7 @@ declare class Core {
|
|
|
604
613
|
priceSource: "mid" | "mark";
|
|
605
614
|
track: "PEAK" | "TROUGH";
|
|
606
615
|
threshold: number;
|
|
616
|
+
onPositionResize: "cancel" | "keep";
|
|
607
617
|
};
|
|
608
618
|
} | {
|
|
609
619
|
type: "upnl";
|
|
@@ -611,6 +621,7 @@ declare class Core {
|
|
|
611
621
|
priceSource: "mid" | "mark";
|
|
612
622
|
track: "PEAK" | "TROUGH";
|
|
613
623
|
threshold: number;
|
|
624
|
+
onPositionResize: "cancel" | "keep";
|
|
614
625
|
};
|
|
615
626
|
} | {
|
|
616
627
|
type: "upnl_bps";
|
|
@@ -646,11 +657,13 @@ declare class Core {
|
|
|
646
657
|
type: "notional_trailing";
|
|
647
658
|
data: {
|
|
648
659
|
priceSource: "mid" | "mark";
|
|
660
|
+
onPositionResize: "cancel" | "keep";
|
|
649
661
|
};
|
|
650
662
|
} | {
|
|
651
663
|
type: "upnl_trailing";
|
|
652
664
|
data: {
|
|
653
665
|
priceSource: "mid" | "mark";
|
|
666
|
+
onPositionResize: "cancel" | "keep";
|
|
654
667
|
};
|
|
655
668
|
} | {
|
|
656
669
|
type: "upnl_bps_trailing";
|
|
@@ -695,12 +708,12 @@ declare class Core {
|
|
|
695
708
|
};
|
|
696
709
|
};
|
|
697
710
|
scheduleId?: string | undefined;
|
|
711
|
+
cancelledAt?: string | undefined;
|
|
712
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
698
713
|
ladderId?: string | undefined;
|
|
699
714
|
ladderIndex?: number | undefined;
|
|
700
715
|
parentTriggerId?: string | undefined;
|
|
701
716
|
triggeredAt?: string | undefined;
|
|
702
|
-
cancelledAt?: string | undefined;
|
|
703
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
704
717
|
trailing?: {
|
|
705
718
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
706
719
|
deltaValue: number;
|
|
@@ -713,7 +726,7 @@ declare class Core {
|
|
|
713
726
|
schedules: ({
|
|
714
727
|
id: string;
|
|
715
728
|
createdAt: string;
|
|
716
|
-
status: "ACTIVE" | "
|
|
729
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
717
730
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
718
731
|
legs: {
|
|
719
732
|
symbol: string;
|
|
@@ -722,51 +735,53 @@ declare class Core {
|
|
|
722
735
|
id?: string | undefined;
|
|
723
736
|
}[];
|
|
724
737
|
updatedAt: string;
|
|
725
|
-
|
|
738
|
+
strategy: "TWAP";
|
|
726
739
|
intent: "OPEN";
|
|
740
|
+
executionType: "MARKET";
|
|
741
|
+
positionKey: string;
|
|
742
|
+
startAt: string;
|
|
743
|
+
endAt: string;
|
|
727
744
|
sliceIntervalSec: number;
|
|
745
|
+
sliceCount: number;
|
|
728
746
|
randomization: {
|
|
729
747
|
timingJitterBps: number;
|
|
730
748
|
sizeJitterBps: number;
|
|
731
749
|
};
|
|
732
750
|
targetNotional: string;
|
|
733
|
-
strategy: "TWAP";
|
|
734
|
-
executionType: "MARKET";
|
|
735
|
-
startAt: string;
|
|
736
|
-
endAt: string;
|
|
737
|
-
sliceCount: number;
|
|
738
751
|
remainingNotional: string;
|
|
752
|
+
lastSliceAt?: string | undefined;
|
|
739
753
|
cancelledAt?: string | undefined;
|
|
740
754
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
741
|
-
|
|
755
|
+
failedAt?: string | undefined;
|
|
742
756
|
} | {
|
|
743
757
|
id: string;
|
|
744
758
|
createdAt: string;
|
|
745
|
-
status: "ACTIVE" | "
|
|
759
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
746
760
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
747
761
|
updatedAt: string;
|
|
748
762
|
positionId: string;
|
|
749
|
-
|
|
763
|
+
strategy: "TWAP";
|
|
750
764
|
intent: "CLOSE";
|
|
751
|
-
|
|
765
|
+
executionType: "MARKET";
|
|
766
|
+
positionKey: string;
|
|
767
|
+
startAt: string;
|
|
768
|
+
endAt: string;
|
|
752
769
|
sliceIntervalSec: number;
|
|
770
|
+
sliceCount: number;
|
|
753
771
|
randomization: {
|
|
754
772
|
timingJitterBps: number;
|
|
755
773
|
sizeJitterBps: number;
|
|
756
774
|
};
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
startAt: string;
|
|
760
|
-
endAt: string;
|
|
761
|
-
sliceCount: number;
|
|
775
|
+
initialExposure: Record<string, `-${string}` | `+${string}`>;
|
|
776
|
+
lastSliceAt?: string | undefined;
|
|
762
777
|
cancelledAt?: string | undefined;
|
|
763
778
|
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
764
|
-
|
|
779
|
+
failedAt?: string | undefined;
|
|
765
780
|
})[];
|
|
766
781
|
ladders: {
|
|
767
782
|
id: string;
|
|
768
783
|
createdAt: string;
|
|
769
|
-
status: "ACTIVE" | "
|
|
784
|
+
status: "ACTIVE" | "COMPLETED" | "CANCELLED";
|
|
770
785
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
771
786
|
updatedAt: string;
|
|
772
787
|
positionKey: string;
|
|
@@ -783,8 +798,8 @@ declare class Core {
|
|
|
783
798
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
784
799
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
785
800
|
updatedAt: string;
|
|
786
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
787
801
|
intent: "OPEN";
|
|
802
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
788
803
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
789
804
|
condition: {
|
|
790
805
|
type: "ratio";
|
|
@@ -859,12 +874,12 @@ declare class Core {
|
|
|
859
874
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT";
|
|
860
875
|
}[];
|
|
861
876
|
};
|
|
877
|
+
cancelledAt?: string | undefined;
|
|
878
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
862
879
|
ladderId?: string | undefined;
|
|
863
880
|
ladderIndex?: number | undefined;
|
|
864
881
|
parentTriggerId?: string | undefined;
|
|
865
882
|
triggeredAt?: string | undefined;
|
|
866
|
-
cancelledAt?: string | undefined;
|
|
867
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
868
883
|
} | {
|
|
869
884
|
type: "MARKET";
|
|
870
885
|
id: string;
|
|
@@ -872,8 +887,8 @@ declare class Core {
|
|
|
872
887
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
873
888
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
874
889
|
updatedAt: string;
|
|
875
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
876
890
|
intent: "ADJUST";
|
|
891
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
877
892
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
878
893
|
condition: {
|
|
879
894
|
type: "ratio";
|
|
@@ -910,6 +925,7 @@ declare class Core {
|
|
|
910
925
|
priceSource: "mid" | "mark";
|
|
911
926
|
track: "PEAK" | "TROUGH";
|
|
912
927
|
threshold: number;
|
|
928
|
+
onPositionResize: "cancel" | "keep";
|
|
913
929
|
};
|
|
914
930
|
} | {
|
|
915
931
|
type: "upnl";
|
|
@@ -917,6 +933,7 @@ declare class Core {
|
|
|
917
933
|
priceSource: "mid" | "mark";
|
|
918
934
|
track: "PEAK" | "TROUGH";
|
|
919
935
|
threshold: number;
|
|
936
|
+
onPositionResize: "cancel" | "keep";
|
|
920
937
|
};
|
|
921
938
|
} | {
|
|
922
939
|
type: "upnl_bps";
|
|
@@ -971,12 +988,12 @@ declare class Core {
|
|
|
971
988
|
id?: string | undefined;
|
|
972
989
|
}[]];
|
|
973
990
|
};
|
|
991
|
+
cancelledAt?: string | undefined;
|
|
992
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
974
993
|
ladderId?: string | undefined;
|
|
975
994
|
ladderIndex?: number | undefined;
|
|
976
995
|
parentTriggerId?: string | undefined;
|
|
977
996
|
triggeredAt?: string | undefined;
|
|
978
|
-
cancelledAt?: string | undefined;
|
|
979
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
980
997
|
trailing?: {
|
|
981
998
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
982
999
|
deltaValue: number;
|
|
@@ -992,8 +1009,8 @@ declare class Core {
|
|
|
992
1009
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
993
1010
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
994
1011
|
updatedAt: string;
|
|
995
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
996
1012
|
intent: "CLOSE";
|
|
1013
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
997
1014
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
998
1015
|
condition: {
|
|
999
1016
|
type: "ratio";
|
|
@@ -1030,6 +1047,7 @@ declare class Core {
|
|
|
1030
1047
|
priceSource: "mid" | "mark";
|
|
1031
1048
|
track: "PEAK" | "TROUGH";
|
|
1032
1049
|
threshold: number;
|
|
1050
|
+
onPositionResize: "cancel" | "keep";
|
|
1033
1051
|
};
|
|
1034
1052
|
} | {
|
|
1035
1053
|
type: "upnl";
|
|
@@ -1037,6 +1055,7 @@ declare class Core {
|
|
|
1037
1055
|
priceSource: "mid" | "mark";
|
|
1038
1056
|
track: "PEAK" | "TROUGH";
|
|
1039
1057
|
threshold: number;
|
|
1058
|
+
onPositionResize: "cancel" | "keep";
|
|
1040
1059
|
};
|
|
1041
1060
|
} | {
|
|
1042
1061
|
type: "upnl_bps";
|
|
@@ -1072,11 +1091,13 @@ declare class Core {
|
|
|
1072
1091
|
type: "notional_trailing";
|
|
1073
1092
|
data: {
|
|
1074
1093
|
priceSource: "mid" | "mark";
|
|
1094
|
+
onPositionResize: "cancel" | "keep";
|
|
1075
1095
|
};
|
|
1076
1096
|
} | {
|
|
1077
1097
|
type: "upnl_trailing";
|
|
1078
1098
|
data: {
|
|
1079
1099
|
priceSource: "mid" | "mark";
|
|
1100
|
+
onPositionResize: "cancel" | "keep";
|
|
1080
1101
|
};
|
|
1081
1102
|
} | {
|
|
1082
1103
|
type: "upnl_bps_trailing";
|
|
@@ -1114,12 +1135,12 @@ declare class Core {
|
|
|
1114
1135
|
initialExposure: Record<string, `-${string}` | `+${string}`>;
|
|
1115
1136
|
};
|
|
1116
1137
|
};
|
|
1138
|
+
cancelledAt?: string | undefined;
|
|
1139
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
1117
1140
|
ladderId?: string | undefined;
|
|
1118
1141
|
ladderIndex?: number | undefined;
|
|
1119
1142
|
parentTriggerId?: string | undefined;
|
|
1120
1143
|
triggeredAt?: string | undefined;
|
|
1121
|
-
cancelledAt?: string | undefined;
|
|
1122
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
1123
1144
|
trailing?: {
|
|
1124
1145
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
1125
1146
|
deltaValue: number;
|
|
@@ -1135,8 +1156,8 @@ declare class Core {
|
|
|
1135
1156
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
1136
1157
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1137
1158
|
updatedAt: string;
|
|
1138
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1139
1159
|
intent: "ADJUST";
|
|
1160
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1140
1161
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1141
1162
|
condition: {
|
|
1142
1163
|
type: "ratio";
|
|
@@ -1173,6 +1194,7 @@ declare class Core {
|
|
|
1173
1194
|
priceSource: "mid" | "mark";
|
|
1174
1195
|
track: "PEAK" | "TROUGH";
|
|
1175
1196
|
threshold: number;
|
|
1197
|
+
onPositionResize: "cancel" | "keep";
|
|
1176
1198
|
};
|
|
1177
1199
|
} | {
|
|
1178
1200
|
type: "upnl";
|
|
@@ -1180,6 +1202,7 @@ declare class Core {
|
|
|
1180
1202
|
priceSource: "mid" | "mark";
|
|
1181
1203
|
track: "PEAK" | "TROUGH";
|
|
1182
1204
|
threshold: number;
|
|
1205
|
+
onPositionResize: "cancel" | "keep";
|
|
1183
1206
|
};
|
|
1184
1207
|
} | {
|
|
1185
1208
|
type: "upnl_bps";
|
|
@@ -1238,12 +1261,12 @@ declare class Core {
|
|
|
1238
1261
|
targetNotional: string;
|
|
1239
1262
|
};
|
|
1240
1263
|
scheduleId?: string | undefined;
|
|
1264
|
+
cancelledAt?: string | undefined;
|
|
1265
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
1241
1266
|
ladderId?: string | undefined;
|
|
1242
1267
|
ladderIndex?: number | undefined;
|
|
1243
1268
|
parentTriggerId?: string | undefined;
|
|
1244
1269
|
triggeredAt?: string | undefined;
|
|
1245
|
-
cancelledAt?: string | undefined;
|
|
1246
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
1247
1270
|
trailing?: {
|
|
1248
1271
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
1249
1272
|
deltaValue: number;
|
|
@@ -1259,8 +1282,8 @@ declare class Core {
|
|
|
1259
1282
|
status: "ACTIVE" | "CANCELLED" | "TRIGGERED";
|
|
1260
1283
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1261
1284
|
updatedAt: string;
|
|
1262
|
-
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1263
1285
|
intent: "CLOSE";
|
|
1286
|
+
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1264
1287
|
semanticBracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1265
1288
|
condition: {
|
|
1266
1289
|
type: "ratio";
|
|
@@ -1297,6 +1320,7 @@ declare class Core {
|
|
|
1297
1320
|
priceSource: "mid" | "mark";
|
|
1298
1321
|
track: "PEAK" | "TROUGH";
|
|
1299
1322
|
threshold: number;
|
|
1323
|
+
onPositionResize: "cancel" | "keep";
|
|
1300
1324
|
};
|
|
1301
1325
|
} | {
|
|
1302
1326
|
type: "upnl";
|
|
@@ -1304,6 +1328,7 @@ declare class Core {
|
|
|
1304
1328
|
priceSource: "mid" | "mark";
|
|
1305
1329
|
track: "PEAK" | "TROUGH";
|
|
1306
1330
|
threshold: number;
|
|
1331
|
+
onPositionResize: "cancel" | "keep";
|
|
1307
1332
|
};
|
|
1308
1333
|
} | {
|
|
1309
1334
|
type: "upnl_bps";
|
|
@@ -1339,11 +1364,13 @@ declare class Core {
|
|
|
1339
1364
|
type: "notional_trailing";
|
|
1340
1365
|
data: {
|
|
1341
1366
|
priceSource: "mid" | "mark";
|
|
1367
|
+
onPositionResize: "cancel" | "keep";
|
|
1342
1368
|
};
|
|
1343
1369
|
} | {
|
|
1344
1370
|
type: "upnl_trailing";
|
|
1345
1371
|
data: {
|
|
1346
1372
|
priceSource: "mid" | "mark";
|
|
1373
|
+
onPositionResize: "cancel" | "keep";
|
|
1347
1374
|
};
|
|
1348
1375
|
} | {
|
|
1349
1376
|
type: "upnl_bps_trailing";
|
|
@@ -1388,12 +1415,12 @@ declare class Core {
|
|
|
1388
1415
|
};
|
|
1389
1416
|
};
|
|
1390
1417
|
scheduleId?: string | undefined;
|
|
1418
|
+
cancelledAt?: string | undefined;
|
|
1419
|
+
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | "POSITION_RESIZED" | undefined;
|
|
1391
1420
|
ladderId?: string | undefined;
|
|
1392
1421
|
ladderIndex?: number | undefined;
|
|
1393
1422
|
parentTriggerId?: string | undefined;
|
|
1394
1423
|
triggeredAt?: string | undefined;
|
|
1395
|
-
cancelledAt?: string | undefined;
|
|
1396
|
-
cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_LIQUIDATED" | "POSITION_REVERSED" | undefined;
|
|
1397
1424
|
trailing?: {
|
|
1398
1425
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
1399
1426
|
deltaValue: number;
|
|
@@ -1412,12 +1439,14 @@ declare class Core {
|
|
|
1412
1439
|
data: {
|
|
1413
1440
|
priceSource: "mid" | "mark";
|
|
1414
1441
|
threshold: number;
|
|
1442
|
+
onPositionResize: "cancel" | "keep";
|
|
1415
1443
|
};
|
|
1416
1444
|
} | {
|
|
1417
1445
|
type: "upnl";
|
|
1418
1446
|
data: {
|
|
1419
1447
|
priceSource: "mid" | "mark";
|
|
1420
1448
|
threshold: number;
|
|
1449
|
+
onPositionResize: "cancel" | "keep";
|
|
1421
1450
|
};
|
|
1422
1451
|
} | {
|
|
1423
1452
|
type: "upnl_bps";
|
|
@@ -1426,6 +1455,7 @@ declare class Core {
|
|
|
1426
1455
|
threshold: number;
|
|
1427
1456
|
};
|
|
1428
1457
|
};
|
|
1458
|
+
closePercent?: number | undefined;
|
|
1429
1459
|
} | {
|
|
1430
1460
|
intent: "CLOSE";
|
|
1431
1461
|
type: "MARKET";
|
|
@@ -1433,11 +1463,13 @@ declare class Core {
|
|
|
1433
1463
|
type: "notional_trailing";
|
|
1434
1464
|
data: {
|
|
1435
1465
|
priceSource: "mid" | "mark";
|
|
1466
|
+
onPositionResize: "cancel" | "keep";
|
|
1436
1467
|
};
|
|
1437
1468
|
} | {
|
|
1438
1469
|
type: "upnl_trailing";
|
|
1439
1470
|
data: {
|
|
1440
1471
|
priceSource: "mid" | "mark";
|
|
1472
|
+
onPositionResize: "cancel" | "keep";
|
|
1441
1473
|
};
|
|
1442
1474
|
} | {
|
|
1443
1475
|
type: "upnl_bps_trailing";
|
|
@@ -1450,6 +1482,7 @@ declare class Core {
|
|
|
1450
1482
|
deltaValue: number;
|
|
1451
1483
|
activationValue?: number | undefined;
|
|
1452
1484
|
};
|
|
1485
|
+
closePercent?: number | undefined;
|
|
1453
1486
|
})[] | undefined;
|
|
1454
1487
|
}[];
|
|
1455
1488
|
xHandle?: string | undefined;
|
|
@@ -2379,7 +2412,7 @@ declare class Core {
|
|
|
2379
2412
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
2380
2413
|
baseBps: string;
|
|
2381
2414
|
discounts: {
|
|
2382
|
-
scope: "user" | "
|
|
2415
|
+
scope: "user" | "all" | "connector" | "client_id" | "referral";
|
|
2383
2416
|
rate: string;
|
|
2384
2417
|
}[];
|
|
2385
2418
|
finalBps: string;
|
|
@@ -2512,7 +2545,7 @@ declare class Core {
|
|
|
2512
2545
|
executions: ({
|
|
2513
2546
|
id: string;
|
|
2514
2547
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2515
|
-
status: "ACTIVE" | "
|
|
2548
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2516
2549
|
createdAt: string;
|
|
2517
2550
|
updatedAt: string;
|
|
2518
2551
|
intent: "OPEN";
|
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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
|
-
|
|
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
|
-
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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?: "
|
|
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?: "
|
|
6036
|
+
closedReason?: "USER" | "LIQUIDATED" | "NETTED" | undefined;
|
|
5786
6037
|
copySubscriptionId?: string | undefined;
|
|
5787
6038
|
isCopying?: false | undefined;
|
|
5788
6039
|
steps?: {
|
|
@@ -6414,6 +6665,18 @@ declare class Core {
|
|
|
6414
6665
|
pendingFunding: string;
|
|
6415
6666
|
claimable: string;
|
|
6416
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
|
+
};
|
|
6417
6680
|
};
|
|
6418
6681
|
};
|
|
6419
6682
|
payout: {
|
|
@@ -6426,6 +6689,7 @@ declare class Core {
|
|
|
6426
6689
|
claim: (body: HttpTypes.CreateRewardClaim, headers?: ClientHeaders) => Promise<{
|
|
6427
6690
|
status: "TRANSFER_INTENT_READY" | "PAYOUT_PENDING" | "PAID" | "RELEASED" | "NO_CLAIMABLE_BALANCE" | "CLAIMABILITY_DISABLED" | "NO_CAPACITY" | "MISSING_BALANCE" | "STALE_BALANCE" | "PAYOUT_DISABLED";
|
|
6428
6691
|
claimId?: string | undefined;
|
|
6692
|
+
transactionHash?: `0x${string}` | undefined;
|
|
6429
6693
|
}>;
|
|
6430
6694
|
/** Return the lifecycle of one reward claim owned by the authenticated referrer. */
|
|
6431
6695
|
claimStatus: (claimId: string, headers?: ClientHeaders) => Promise<{
|
|
@@ -6438,6 +6702,7 @@ declare class Core {
|
|
|
6438
6702
|
reservedAmount?: string | undefined;
|
|
6439
6703
|
transferIntentCreatedAt?: string | undefined;
|
|
6440
6704
|
verifiedAt?: string | undefined;
|
|
6705
|
+
transactionHash?: `0x${string}` | undefined;
|
|
6441
6706
|
}>;
|
|
6442
6707
|
};
|
|
6443
6708
|
schedules: {
|
|
@@ -6446,7 +6711,7 @@ declare class Core {
|
|
|
6446
6711
|
schedules: ({
|
|
6447
6712
|
id: string;
|
|
6448
6713
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6449
|
-
status: "ACTIVE" | "
|
|
6714
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6450
6715
|
positionKey: string;
|
|
6451
6716
|
executionType: "MARKET";
|
|
6452
6717
|
startAt: string;
|
|
@@ -6477,10 +6742,17 @@ declare class Core {
|
|
|
6477
6742
|
lastSliceAt?: string | undefined;
|
|
6478
6743
|
cancelledAt?: string | undefined;
|
|
6479
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;
|
|
6480
6752
|
} | {
|
|
6481
6753
|
id: string;
|
|
6482
6754
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6483
|
-
status: "ACTIVE" | "
|
|
6755
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6484
6756
|
positionKey: string;
|
|
6485
6757
|
executionType: "MARKET";
|
|
6486
6758
|
startAt: string;
|
|
@@ -6505,6 +6777,13 @@ declare class Core {
|
|
|
6505
6777
|
lastSliceAt?: string | undefined;
|
|
6506
6778
|
cancelledAt?: string | undefined;
|
|
6507
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;
|
|
6508
6787
|
})[];
|
|
6509
6788
|
nextCursor?: string | undefined;
|
|
6510
6789
|
}>;
|
|
@@ -6512,7 +6791,7 @@ declare class Core {
|
|
|
6512
6791
|
schedule: {
|
|
6513
6792
|
id: string;
|
|
6514
6793
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6515
|
-
status: "ACTIVE" | "
|
|
6794
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6516
6795
|
positionKey: string;
|
|
6517
6796
|
executionType: "MARKET";
|
|
6518
6797
|
startAt: string;
|
|
@@ -6543,10 +6822,17 @@ declare class Core {
|
|
|
6543
6822
|
lastSliceAt?: string | undefined;
|
|
6544
6823
|
cancelledAt?: string | undefined;
|
|
6545
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;
|
|
6546
6832
|
} | {
|
|
6547
6833
|
id: string;
|
|
6548
6834
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6549
|
-
status: "ACTIVE" | "
|
|
6835
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6550
6836
|
positionKey: string;
|
|
6551
6837
|
executionType: "MARKET";
|
|
6552
6838
|
startAt: string;
|
|
@@ -6571,6 +6857,13 @@ declare class Core {
|
|
|
6571
6857
|
lastSliceAt?: string | undefined;
|
|
6572
6858
|
cancelledAt?: string | undefined;
|
|
6573
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;
|
|
6574
6867
|
};
|
|
6575
6868
|
}>;
|
|
6576
6869
|
get: (scheduleId: string, query: HttpTypes.ScheduleDetailParamsInput, headers?: ClientHeaders) => Promise<{
|
|
@@ -6578,7 +6871,7 @@ declare class Core {
|
|
|
6578
6871
|
schedule: {
|
|
6579
6872
|
id: string;
|
|
6580
6873
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6581
|
-
status: "ACTIVE" | "
|
|
6874
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6582
6875
|
positionKey: string;
|
|
6583
6876
|
executionType: "MARKET";
|
|
6584
6877
|
startAt: string;
|
|
@@ -6609,10 +6902,17 @@ declare class Core {
|
|
|
6609
6902
|
lastSliceAt?: string | undefined;
|
|
6610
6903
|
cancelledAt?: string | undefined;
|
|
6611
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;
|
|
6612
6912
|
} | {
|
|
6613
6913
|
id: string;
|
|
6614
6914
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6615
|
-
status: "ACTIVE" | "
|
|
6915
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED";
|
|
6616
6916
|
positionKey: string;
|
|
6617
6917
|
executionType: "MARKET";
|
|
6618
6918
|
startAt: string;
|
|
@@ -6637,6 +6937,13 @@ declare class Core {
|
|
|
6637
6937
|
lastSliceAt?: string | undefined;
|
|
6638
6938
|
cancelledAt?: string | undefined;
|
|
6639
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;
|
|
6640
6947
|
};
|
|
6641
6948
|
slices: ({
|
|
6642
6949
|
index: number;
|
|
@@ -6650,7 +6957,6 @@ declare class Core {
|
|
|
6650
6957
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
6651
6958
|
tradeAccountId: string;
|
|
6652
6959
|
symbol: string;
|
|
6653
|
-
positionId: string;
|
|
6654
6960
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6655
6961
|
side: "BUY" | "SELL";
|
|
6656
6962
|
reduceOnly: boolean;
|
|
@@ -6660,8 +6966,18 @@ declare class Core {
|
|
|
6660
6966
|
price: string;
|
|
6661
6967
|
usd: string;
|
|
6662
6968
|
timestamp: string;
|
|
6969
|
+
assignments: {
|
|
6970
|
+
positionId: string;
|
|
6971
|
+
quantity: string;
|
|
6972
|
+
usd: string;
|
|
6973
|
+
tradeFee?: string | undefined;
|
|
6974
|
+
pearFee?: string | undefined;
|
|
6975
|
+
}[];
|
|
6663
6976
|
cloid?: string | undefined;
|
|
6664
6977
|
exchangeFillId?: string | undefined;
|
|
6978
|
+
executionId?: string | undefined;
|
|
6979
|
+
scheduleId?: string | undefined;
|
|
6980
|
+
triggerId?: string | undefined;
|
|
6665
6981
|
tradeFee?: string | undefined;
|
|
6666
6982
|
pearFee?: string | undefined;
|
|
6667
6983
|
original?: {
|
|
@@ -6714,7 +7030,7 @@ declare class Core {
|
|
|
6714
7030
|
execution: {
|
|
6715
7031
|
id: string;
|
|
6716
7032
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6717
|
-
status: "ACTIVE" | "
|
|
7033
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6718
7034
|
createdAt: string;
|
|
6719
7035
|
updatedAt: string;
|
|
6720
7036
|
intent: "OPEN";
|
|
@@ -6761,7 +7077,7 @@ declare class Core {
|
|
|
6761
7077
|
} | {
|
|
6762
7078
|
id: string;
|
|
6763
7079
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6764
|
-
status: "ACTIVE" | "
|
|
7080
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6765
7081
|
createdAt: string;
|
|
6766
7082
|
updatedAt: string;
|
|
6767
7083
|
intent: "ADJUST";
|
|
@@ -6809,7 +7125,7 @@ declare class Core {
|
|
|
6809
7125
|
} | {
|
|
6810
7126
|
id: string;
|
|
6811
7127
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6812
|
-
status: "ACTIVE" | "
|
|
7128
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6813
7129
|
createdAt: string;
|
|
6814
7130
|
updatedAt: string;
|
|
6815
7131
|
intent: "CLOSE";
|
|
@@ -6840,7 +7156,7 @@ declare class Core {
|
|
|
6840
7156
|
} | {
|
|
6841
7157
|
id: string;
|
|
6842
7158
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6843
|
-
status: "ACTIVE" | "
|
|
7159
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6844
7160
|
createdAt: string;
|
|
6845
7161
|
updatedAt: string;
|
|
6846
7162
|
intent: "REVERSE";
|
|
@@ -6874,7 +7190,7 @@ declare class Core {
|
|
|
6874
7190
|
execution: {
|
|
6875
7191
|
id: string;
|
|
6876
7192
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6877
|
-
status: "ACTIVE" | "
|
|
7193
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6878
7194
|
createdAt: string;
|
|
6879
7195
|
updatedAt: string;
|
|
6880
7196
|
intent: "OPEN";
|
|
@@ -6921,7 +7237,7 @@ declare class Core {
|
|
|
6921
7237
|
} | {
|
|
6922
7238
|
id: string;
|
|
6923
7239
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6924
|
-
status: "ACTIVE" | "
|
|
7240
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6925
7241
|
createdAt: string;
|
|
6926
7242
|
updatedAt: string;
|
|
6927
7243
|
intent: "ADJUST";
|
|
@@ -6969,7 +7285,7 @@ declare class Core {
|
|
|
6969
7285
|
} | {
|
|
6970
7286
|
id: string;
|
|
6971
7287
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6972
|
-
status: "ACTIVE" | "
|
|
7288
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
6973
7289
|
createdAt: string;
|
|
6974
7290
|
updatedAt: string;
|
|
6975
7291
|
intent: "CLOSE";
|
|
@@ -7000,7 +7316,7 @@ declare class Core {
|
|
|
7000
7316
|
} | {
|
|
7001
7317
|
id: string;
|
|
7002
7318
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7003
|
-
status: "ACTIVE" | "
|
|
7319
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7004
7320
|
createdAt: string;
|
|
7005
7321
|
updatedAt: string;
|
|
7006
7322
|
intent: "REVERSE";
|
|
@@ -7034,7 +7350,7 @@ declare class Core {
|
|
|
7034
7350
|
execution: {
|
|
7035
7351
|
id: string;
|
|
7036
7352
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7037
|
-
status: "ACTIVE" | "
|
|
7353
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7038
7354
|
createdAt: string;
|
|
7039
7355
|
updatedAt: string;
|
|
7040
7356
|
intent: "OPEN";
|
|
@@ -7081,7 +7397,7 @@ declare class Core {
|
|
|
7081
7397
|
} | {
|
|
7082
7398
|
id: string;
|
|
7083
7399
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7084
|
-
status: "ACTIVE" | "
|
|
7400
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7085
7401
|
createdAt: string;
|
|
7086
7402
|
updatedAt: string;
|
|
7087
7403
|
intent: "ADJUST";
|
|
@@ -7129,7 +7445,7 @@ declare class Core {
|
|
|
7129
7445
|
} | {
|
|
7130
7446
|
id: string;
|
|
7131
7447
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7132
|
-
status: "ACTIVE" | "
|
|
7448
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7133
7449
|
createdAt: string;
|
|
7134
7450
|
updatedAt: string;
|
|
7135
7451
|
intent: "CLOSE";
|
|
@@ -7160,7 +7476,7 @@ declare class Core {
|
|
|
7160
7476
|
} | {
|
|
7161
7477
|
id: string;
|
|
7162
7478
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7163
|
-
status: "ACTIVE" | "
|
|
7479
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7164
7480
|
createdAt: string;
|
|
7165
7481
|
updatedAt: string;
|
|
7166
7482
|
intent: "REVERSE";
|
|
@@ -7194,7 +7510,7 @@ declare class Core {
|
|
|
7194
7510
|
execution: {
|
|
7195
7511
|
id: string;
|
|
7196
7512
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7197
|
-
status: "ACTIVE" | "
|
|
7513
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7198
7514
|
createdAt: string;
|
|
7199
7515
|
updatedAt: string;
|
|
7200
7516
|
intent: "OPEN";
|
|
@@ -7241,7 +7557,7 @@ declare class Core {
|
|
|
7241
7557
|
} | {
|
|
7242
7558
|
id: string;
|
|
7243
7559
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7244
|
-
status: "ACTIVE" | "
|
|
7560
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7245
7561
|
createdAt: string;
|
|
7246
7562
|
updatedAt: string;
|
|
7247
7563
|
intent: "ADJUST";
|
|
@@ -7289,7 +7605,7 @@ declare class Core {
|
|
|
7289
7605
|
} | {
|
|
7290
7606
|
id: string;
|
|
7291
7607
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7292
|
-
status: "ACTIVE" | "
|
|
7608
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7293
7609
|
createdAt: string;
|
|
7294
7610
|
updatedAt: string;
|
|
7295
7611
|
intent: "CLOSE";
|
|
@@ -7320,7 +7636,7 @@ declare class Core {
|
|
|
7320
7636
|
} | {
|
|
7321
7637
|
id: string;
|
|
7322
7638
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7323
|
-
status: "ACTIVE" | "
|
|
7639
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7324
7640
|
createdAt: string;
|
|
7325
7641
|
updatedAt: string;
|
|
7326
7642
|
intent: "REVERSE";
|
|
@@ -7354,7 +7670,7 @@ declare class Core {
|
|
|
7354
7670
|
executions: ({
|
|
7355
7671
|
id: string;
|
|
7356
7672
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7357
|
-
status: "ACTIVE" | "
|
|
7673
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7358
7674
|
createdAt: string;
|
|
7359
7675
|
updatedAt: string;
|
|
7360
7676
|
intent: "OPEN";
|
|
@@ -7401,7 +7717,7 @@ declare class Core {
|
|
|
7401
7717
|
} | {
|
|
7402
7718
|
id: string;
|
|
7403
7719
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7404
|
-
status: "ACTIVE" | "
|
|
7720
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7405
7721
|
createdAt: string;
|
|
7406
7722
|
updatedAt: string;
|
|
7407
7723
|
intent: "ADJUST";
|
|
@@ -7449,7 +7765,7 @@ declare class Core {
|
|
|
7449
7765
|
} | {
|
|
7450
7766
|
id: string;
|
|
7451
7767
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7452
|
-
status: "ACTIVE" | "
|
|
7768
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7453
7769
|
createdAt: string;
|
|
7454
7770
|
updatedAt: string;
|
|
7455
7771
|
intent: "CLOSE";
|
|
@@ -7480,7 +7796,7 @@ declare class Core {
|
|
|
7480
7796
|
} | {
|
|
7481
7797
|
id: string;
|
|
7482
7798
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7483
|
-
status: "ACTIVE" | "
|
|
7799
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7484
7800
|
createdAt: string;
|
|
7485
7801
|
updatedAt: string;
|
|
7486
7802
|
intent: "REVERSE";
|
|
@@ -7608,13 +7924,12 @@ declare class Core {
|
|
|
7608
7924
|
parentTriggerId?: string | undefined;
|
|
7609
7925
|
triggeredAt?: string | undefined;
|
|
7610
7926
|
cancelledAt?: string | undefined;
|
|
7611
|
-
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;
|
|
7612
7928
|
fills?: {
|
|
7613
7929
|
id: string;
|
|
7614
7930
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
7615
7931
|
tradeAccountId: string;
|
|
7616
7932
|
symbol: string;
|
|
7617
|
-
positionId: string;
|
|
7618
7933
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7619
7934
|
side: "BUY" | "SELL";
|
|
7620
7935
|
reduceOnly: boolean;
|
|
@@ -7624,8 +7939,18 @@ declare class Core {
|
|
|
7624
7939
|
price: string;
|
|
7625
7940
|
usd: string;
|
|
7626
7941
|
timestamp: string;
|
|
7942
|
+
assignments: {
|
|
7943
|
+
positionId: string;
|
|
7944
|
+
quantity: string;
|
|
7945
|
+
usd: string;
|
|
7946
|
+
tradeFee?: string | undefined;
|
|
7947
|
+
pearFee?: string | undefined;
|
|
7948
|
+
}[];
|
|
7627
7949
|
cloid?: string | undefined;
|
|
7628
7950
|
exchangeFillId?: string | undefined;
|
|
7951
|
+
executionId?: string | undefined;
|
|
7952
|
+
scheduleId?: string | undefined;
|
|
7953
|
+
triggerId?: string | undefined;
|
|
7629
7954
|
tradeFee?: string | undefined;
|
|
7630
7955
|
pearFee?: string | undefined;
|
|
7631
7956
|
original?: {
|
|
@@ -7679,6 +8004,7 @@ declare class Core {
|
|
|
7679
8004
|
priceSource: "mid" | "mark";
|
|
7680
8005
|
track: "PEAK" | "TROUGH";
|
|
7681
8006
|
threshold: number;
|
|
8007
|
+
onPositionResize: "cancel" | "keep";
|
|
7682
8008
|
};
|
|
7683
8009
|
} | {
|
|
7684
8010
|
type: "upnl";
|
|
@@ -7686,6 +8012,7 @@ declare class Core {
|
|
|
7686
8012
|
priceSource: "mid" | "mark";
|
|
7687
8013
|
track: "PEAK" | "TROUGH";
|
|
7688
8014
|
threshold: number;
|
|
8015
|
+
onPositionResize: "cancel" | "keep";
|
|
7689
8016
|
};
|
|
7690
8017
|
} | {
|
|
7691
8018
|
type: "upnl_bps";
|
|
@@ -7745,13 +8072,12 @@ declare class Core {
|
|
|
7745
8072
|
parentTriggerId?: string | undefined;
|
|
7746
8073
|
triggeredAt?: string | undefined;
|
|
7747
8074
|
cancelledAt?: string | undefined;
|
|
7748
|
-
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;
|
|
7749
8076
|
fills?: {
|
|
7750
8077
|
id: string;
|
|
7751
8078
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
7752
8079
|
tradeAccountId: string;
|
|
7753
8080
|
symbol: string;
|
|
7754
|
-
positionId: string;
|
|
7755
8081
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7756
8082
|
side: "BUY" | "SELL";
|
|
7757
8083
|
reduceOnly: boolean;
|
|
@@ -7761,8 +8087,18 @@ declare class Core {
|
|
|
7761
8087
|
price: string;
|
|
7762
8088
|
usd: string;
|
|
7763
8089
|
timestamp: string;
|
|
8090
|
+
assignments: {
|
|
8091
|
+
positionId: string;
|
|
8092
|
+
quantity: string;
|
|
8093
|
+
usd: string;
|
|
8094
|
+
tradeFee?: string | undefined;
|
|
8095
|
+
pearFee?: string | undefined;
|
|
8096
|
+
}[];
|
|
7764
8097
|
cloid?: string | undefined;
|
|
7765
8098
|
exchangeFillId?: string | undefined;
|
|
8099
|
+
executionId?: string | undefined;
|
|
8100
|
+
scheduleId?: string | undefined;
|
|
8101
|
+
triggerId?: string | undefined;
|
|
7766
8102
|
tradeFee?: string | undefined;
|
|
7767
8103
|
pearFee?: string | undefined;
|
|
7768
8104
|
original?: {
|
|
@@ -7824,6 +8160,7 @@ declare class Core {
|
|
|
7824
8160
|
priceSource: "mid" | "mark";
|
|
7825
8161
|
track: "PEAK" | "TROUGH";
|
|
7826
8162
|
threshold: number;
|
|
8163
|
+
onPositionResize: "cancel" | "keep";
|
|
7827
8164
|
};
|
|
7828
8165
|
} | {
|
|
7829
8166
|
type: "upnl";
|
|
@@ -7831,6 +8168,7 @@ declare class Core {
|
|
|
7831
8168
|
priceSource: "mid" | "mark";
|
|
7832
8169
|
track: "PEAK" | "TROUGH";
|
|
7833
8170
|
threshold: number;
|
|
8171
|
+
onPositionResize: "cancel" | "keep";
|
|
7834
8172
|
};
|
|
7835
8173
|
} | {
|
|
7836
8174
|
type: "upnl_bps";
|
|
@@ -7866,11 +8204,13 @@ declare class Core {
|
|
|
7866
8204
|
type: "notional_trailing";
|
|
7867
8205
|
data: {
|
|
7868
8206
|
priceSource: "mid" | "mark";
|
|
8207
|
+
onPositionResize: "cancel" | "keep";
|
|
7869
8208
|
};
|
|
7870
8209
|
} | {
|
|
7871
8210
|
type: "upnl_trailing";
|
|
7872
8211
|
data: {
|
|
7873
8212
|
priceSource: "mid" | "mark";
|
|
8213
|
+
onPositionResize: "cancel" | "keep";
|
|
7874
8214
|
};
|
|
7875
8215
|
} | {
|
|
7876
8216
|
type: "upnl_bps_trailing";
|
|
@@ -7913,13 +8253,12 @@ declare class Core {
|
|
|
7913
8253
|
parentTriggerId?: string | undefined;
|
|
7914
8254
|
triggeredAt?: string | undefined;
|
|
7915
8255
|
cancelledAt?: string | undefined;
|
|
7916
|
-
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;
|
|
7917
8257
|
fills?: {
|
|
7918
8258
|
id: string;
|
|
7919
8259
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
7920
8260
|
tradeAccountId: string;
|
|
7921
8261
|
symbol: string;
|
|
7922
|
-
positionId: string;
|
|
7923
8262
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7924
8263
|
side: "BUY" | "SELL";
|
|
7925
8264
|
reduceOnly: boolean;
|
|
@@ -7929,8 +8268,18 @@ declare class Core {
|
|
|
7929
8268
|
price: string;
|
|
7930
8269
|
usd: string;
|
|
7931
8270
|
timestamp: string;
|
|
8271
|
+
assignments: {
|
|
8272
|
+
positionId: string;
|
|
8273
|
+
quantity: string;
|
|
8274
|
+
usd: string;
|
|
8275
|
+
tradeFee?: string | undefined;
|
|
8276
|
+
pearFee?: string | undefined;
|
|
8277
|
+
}[];
|
|
7932
8278
|
cloid?: string | undefined;
|
|
7933
8279
|
exchangeFillId?: string | undefined;
|
|
8280
|
+
executionId?: string | undefined;
|
|
8281
|
+
scheduleId?: string | undefined;
|
|
8282
|
+
triggerId?: string | undefined;
|
|
7934
8283
|
tradeFee?: string | undefined;
|
|
7935
8284
|
pearFee?: string | undefined;
|
|
7936
8285
|
original?: {
|
|
@@ -7938,6 +8287,7 @@ declare class Core {
|
|
|
7938
8287
|
quantity: string;
|
|
7939
8288
|
} | undefined;
|
|
7940
8289
|
}[] | undefined;
|
|
8290
|
+
closePercent?: number | undefined;
|
|
7941
8291
|
trailing?: {
|
|
7942
8292
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
7943
8293
|
deltaValue: number;
|
|
@@ -7992,6 +8342,7 @@ declare class Core {
|
|
|
7992
8342
|
priceSource: "mid" | "mark";
|
|
7993
8343
|
track: "PEAK" | "TROUGH";
|
|
7994
8344
|
threshold: number;
|
|
8345
|
+
onPositionResize: "cancel" | "keep";
|
|
7995
8346
|
};
|
|
7996
8347
|
} | {
|
|
7997
8348
|
type: "upnl";
|
|
@@ -7999,6 +8350,7 @@ declare class Core {
|
|
|
7999
8350
|
priceSource: "mid" | "mark";
|
|
8000
8351
|
track: "PEAK" | "TROUGH";
|
|
8001
8352
|
threshold: number;
|
|
8353
|
+
onPositionResize: "cancel" | "keep";
|
|
8002
8354
|
};
|
|
8003
8355
|
} | {
|
|
8004
8356
|
type: "upnl_bps";
|
|
@@ -8061,13 +8413,12 @@ declare class Core {
|
|
|
8061
8413
|
parentTriggerId?: string | undefined;
|
|
8062
8414
|
triggeredAt?: string | undefined;
|
|
8063
8415
|
cancelledAt?: string | undefined;
|
|
8064
|
-
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;
|
|
8065
8417
|
fills?: {
|
|
8066
8418
|
id: string;
|
|
8067
8419
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8068
8420
|
tradeAccountId: string;
|
|
8069
8421
|
symbol: string;
|
|
8070
|
-
positionId: string;
|
|
8071
8422
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8072
8423
|
side: "BUY" | "SELL";
|
|
8073
8424
|
reduceOnly: boolean;
|
|
@@ -8077,8 +8428,18 @@ declare class Core {
|
|
|
8077
8428
|
price: string;
|
|
8078
8429
|
usd: string;
|
|
8079
8430
|
timestamp: string;
|
|
8431
|
+
assignments: {
|
|
8432
|
+
positionId: string;
|
|
8433
|
+
quantity: string;
|
|
8434
|
+
usd: string;
|
|
8435
|
+
tradeFee?: string | undefined;
|
|
8436
|
+
pearFee?: string | undefined;
|
|
8437
|
+
}[];
|
|
8080
8438
|
cloid?: string | undefined;
|
|
8081
8439
|
exchangeFillId?: string | undefined;
|
|
8440
|
+
executionId?: string | undefined;
|
|
8441
|
+
scheduleId?: string | undefined;
|
|
8442
|
+
triggerId?: string | undefined;
|
|
8082
8443
|
tradeFee?: string | undefined;
|
|
8083
8444
|
pearFee?: string | undefined;
|
|
8084
8445
|
original?: {
|
|
@@ -8141,6 +8502,7 @@ declare class Core {
|
|
|
8141
8502
|
priceSource: "mid" | "mark";
|
|
8142
8503
|
track: "PEAK" | "TROUGH";
|
|
8143
8504
|
threshold: number;
|
|
8505
|
+
onPositionResize: "cancel" | "keep";
|
|
8144
8506
|
};
|
|
8145
8507
|
} | {
|
|
8146
8508
|
type: "upnl";
|
|
@@ -8148,6 +8510,7 @@ declare class Core {
|
|
|
8148
8510
|
priceSource: "mid" | "mark";
|
|
8149
8511
|
track: "PEAK" | "TROUGH";
|
|
8150
8512
|
threshold: number;
|
|
8513
|
+
onPositionResize: "cancel" | "keep";
|
|
8151
8514
|
};
|
|
8152
8515
|
} | {
|
|
8153
8516
|
type: "upnl_bps";
|
|
@@ -8183,11 +8546,13 @@ declare class Core {
|
|
|
8183
8546
|
type: "notional_trailing";
|
|
8184
8547
|
data: {
|
|
8185
8548
|
priceSource: "mid" | "mark";
|
|
8549
|
+
onPositionResize: "cancel" | "keep";
|
|
8186
8550
|
};
|
|
8187
8551
|
} | {
|
|
8188
8552
|
type: "upnl_trailing";
|
|
8189
8553
|
data: {
|
|
8190
8554
|
priceSource: "mid" | "mark";
|
|
8555
|
+
onPositionResize: "cancel" | "keep";
|
|
8191
8556
|
};
|
|
8192
8557
|
} | {
|
|
8193
8558
|
type: "upnl_bps_trailing";
|
|
@@ -8236,13 +8601,12 @@ declare class Core {
|
|
|
8236
8601
|
parentTriggerId?: string | undefined;
|
|
8237
8602
|
triggeredAt?: string | undefined;
|
|
8238
8603
|
cancelledAt?: string | undefined;
|
|
8239
|
-
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;
|
|
8240
8605
|
fills?: {
|
|
8241
8606
|
id: string;
|
|
8242
8607
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8243
8608
|
tradeAccountId: string;
|
|
8244
8609
|
symbol: string;
|
|
8245
|
-
positionId: string;
|
|
8246
8610
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8247
8611
|
side: "BUY" | "SELL";
|
|
8248
8612
|
reduceOnly: boolean;
|
|
@@ -8252,8 +8616,18 @@ declare class Core {
|
|
|
8252
8616
|
price: string;
|
|
8253
8617
|
usd: string;
|
|
8254
8618
|
timestamp: string;
|
|
8619
|
+
assignments: {
|
|
8620
|
+
positionId: string;
|
|
8621
|
+
quantity: string;
|
|
8622
|
+
usd: string;
|
|
8623
|
+
tradeFee?: string | undefined;
|
|
8624
|
+
pearFee?: string | undefined;
|
|
8625
|
+
}[];
|
|
8255
8626
|
cloid?: string | undefined;
|
|
8256
8627
|
exchangeFillId?: string | undefined;
|
|
8628
|
+
executionId?: string | undefined;
|
|
8629
|
+
scheduleId?: string | undefined;
|
|
8630
|
+
triggerId?: string | undefined;
|
|
8257
8631
|
tradeFee?: string | undefined;
|
|
8258
8632
|
pearFee?: string | undefined;
|
|
8259
8633
|
original?: {
|
|
@@ -8363,13 +8737,12 @@ declare class Core {
|
|
|
8363
8737
|
parentTriggerId?: string | undefined;
|
|
8364
8738
|
triggeredAt?: string | undefined;
|
|
8365
8739
|
cancelledAt?: string | undefined;
|
|
8366
|
-
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;
|
|
8367
8741
|
fills?: {
|
|
8368
8742
|
id: string;
|
|
8369
8743
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8370
8744
|
tradeAccountId: string;
|
|
8371
8745
|
symbol: string;
|
|
8372
|
-
positionId: string;
|
|
8373
8746
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8374
8747
|
side: "BUY" | "SELL";
|
|
8375
8748
|
reduceOnly: boolean;
|
|
@@ -8379,8 +8752,18 @@ declare class Core {
|
|
|
8379
8752
|
price: string;
|
|
8380
8753
|
usd: string;
|
|
8381
8754
|
timestamp: string;
|
|
8755
|
+
assignments: {
|
|
8756
|
+
positionId: string;
|
|
8757
|
+
quantity: string;
|
|
8758
|
+
usd: string;
|
|
8759
|
+
tradeFee?: string | undefined;
|
|
8760
|
+
pearFee?: string | undefined;
|
|
8761
|
+
}[];
|
|
8382
8762
|
cloid?: string | undefined;
|
|
8383
8763
|
exchangeFillId?: string | undefined;
|
|
8764
|
+
executionId?: string | undefined;
|
|
8765
|
+
scheduleId?: string | undefined;
|
|
8766
|
+
triggerId?: string | undefined;
|
|
8384
8767
|
tradeFee?: string | undefined;
|
|
8385
8768
|
pearFee?: string | undefined;
|
|
8386
8769
|
original?: {
|
|
@@ -8434,6 +8817,7 @@ declare class Core {
|
|
|
8434
8817
|
priceSource: "mid" | "mark";
|
|
8435
8818
|
track: "PEAK" | "TROUGH";
|
|
8436
8819
|
threshold: number;
|
|
8820
|
+
onPositionResize: "cancel" | "keep";
|
|
8437
8821
|
};
|
|
8438
8822
|
} | {
|
|
8439
8823
|
type: "upnl";
|
|
@@ -8441,6 +8825,7 @@ declare class Core {
|
|
|
8441
8825
|
priceSource: "mid" | "mark";
|
|
8442
8826
|
track: "PEAK" | "TROUGH";
|
|
8443
8827
|
threshold: number;
|
|
8828
|
+
onPositionResize: "cancel" | "keep";
|
|
8444
8829
|
};
|
|
8445
8830
|
} | {
|
|
8446
8831
|
type: "upnl_bps";
|
|
@@ -8500,13 +8885,12 @@ declare class Core {
|
|
|
8500
8885
|
parentTriggerId?: string | undefined;
|
|
8501
8886
|
triggeredAt?: string | undefined;
|
|
8502
8887
|
cancelledAt?: string | undefined;
|
|
8503
|
-
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;
|
|
8504
8889
|
fills?: {
|
|
8505
8890
|
id: string;
|
|
8506
8891
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8507
8892
|
tradeAccountId: string;
|
|
8508
8893
|
symbol: string;
|
|
8509
|
-
positionId: string;
|
|
8510
8894
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8511
8895
|
side: "BUY" | "SELL";
|
|
8512
8896
|
reduceOnly: boolean;
|
|
@@ -8516,8 +8900,18 @@ declare class Core {
|
|
|
8516
8900
|
price: string;
|
|
8517
8901
|
usd: string;
|
|
8518
8902
|
timestamp: string;
|
|
8903
|
+
assignments: {
|
|
8904
|
+
positionId: string;
|
|
8905
|
+
quantity: string;
|
|
8906
|
+
usd: string;
|
|
8907
|
+
tradeFee?: string | undefined;
|
|
8908
|
+
pearFee?: string | undefined;
|
|
8909
|
+
}[];
|
|
8519
8910
|
cloid?: string | undefined;
|
|
8520
8911
|
exchangeFillId?: string | undefined;
|
|
8912
|
+
executionId?: string | undefined;
|
|
8913
|
+
scheduleId?: string | undefined;
|
|
8914
|
+
triggerId?: string | undefined;
|
|
8521
8915
|
tradeFee?: string | undefined;
|
|
8522
8916
|
pearFee?: string | undefined;
|
|
8523
8917
|
original?: {
|
|
@@ -8579,6 +8973,7 @@ declare class Core {
|
|
|
8579
8973
|
priceSource: "mid" | "mark";
|
|
8580
8974
|
track: "PEAK" | "TROUGH";
|
|
8581
8975
|
threshold: number;
|
|
8976
|
+
onPositionResize: "cancel" | "keep";
|
|
8582
8977
|
};
|
|
8583
8978
|
} | {
|
|
8584
8979
|
type: "upnl";
|
|
@@ -8586,6 +8981,7 @@ declare class Core {
|
|
|
8586
8981
|
priceSource: "mid" | "mark";
|
|
8587
8982
|
track: "PEAK" | "TROUGH";
|
|
8588
8983
|
threshold: number;
|
|
8984
|
+
onPositionResize: "cancel" | "keep";
|
|
8589
8985
|
};
|
|
8590
8986
|
} | {
|
|
8591
8987
|
type: "upnl_bps";
|
|
@@ -8621,11 +9017,13 @@ declare class Core {
|
|
|
8621
9017
|
type: "notional_trailing";
|
|
8622
9018
|
data: {
|
|
8623
9019
|
priceSource: "mid" | "mark";
|
|
9020
|
+
onPositionResize: "cancel" | "keep";
|
|
8624
9021
|
};
|
|
8625
9022
|
} | {
|
|
8626
9023
|
type: "upnl_trailing";
|
|
8627
9024
|
data: {
|
|
8628
9025
|
priceSource: "mid" | "mark";
|
|
9026
|
+
onPositionResize: "cancel" | "keep";
|
|
8629
9027
|
};
|
|
8630
9028
|
} | {
|
|
8631
9029
|
type: "upnl_bps_trailing";
|
|
@@ -8668,13 +9066,12 @@ declare class Core {
|
|
|
8668
9066
|
parentTriggerId?: string | undefined;
|
|
8669
9067
|
triggeredAt?: string | undefined;
|
|
8670
9068
|
cancelledAt?: string | undefined;
|
|
8671
|
-
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;
|
|
8672
9070
|
fills?: {
|
|
8673
9071
|
id: string;
|
|
8674
9072
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8675
9073
|
tradeAccountId: string;
|
|
8676
9074
|
symbol: string;
|
|
8677
|
-
positionId: string;
|
|
8678
9075
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8679
9076
|
side: "BUY" | "SELL";
|
|
8680
9077
|
reduceOnly: boolean;
|
|
@@ -8684,8 +9081,18 @@ declare class Core {
|
|
|
8684
9081
|
price: string;
|
|
8685
9082
|
usd: string;
|
|
8686
9083
|
timestamp: string;
|
|
9084
|
+
assignments: {
|
|
9085
|
+
positionId: string;
|
|
9086
|
+
quantity: string;
|
|
9087
|
+
usd: string;
|
|
9088
|
+
tradeFee?: string | undefined;
|
|
9089
|
+
pearFee?: string | undefined;
|
|
9090
|
+
}[];
|
|
8687
9091
|
cloid?: string | undefined;
|
|
8688
9092
|
exchangeFillId?: string | undefined;
|
|
9093
|
+
executionId?: string | undefined;
|
|
9094
|
+
scheduleId?: string | undefined;
|
|
9095
|
+
triggerId?: string | undefined;
|
|
8689
9096
|
tradeFee?: string | undefined;
|
|
8690
9097
|
pearFee?: string | undefined;
|
|
8691
9098
|
original?: {
|
|
@@ -8693,6 +9100,7 @@ declare class Core {
|
|
|
8693
9100
|
quantity: string;
|
|
8694
9101
|
} | undefined;
|
|
8695
9102
|
}[] | undefined;
|
|
9103
|
+
closePercent?: number | undefined;
|
|
8696
9104
|
trailing?: {
|
|
8697
9105
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
8698
9106
|
deltaValue: number;
|
|
@@ -8747,6 +9155,7 @@ declare class Core {
|
|
|
8747
9155
|
priceSource: "mid" | "mark";
|
|
8748
9156
|
track: "PEAK" | "TROUGH";
|
|
8749
9157
|
threshold: number;
|
|
9158
|
+
onPositionResize: "cancel" | "keep";
|
|
8750
9159
|
};
|
|
8751
9160
|
} | {
|
|
8752
9161
|
type: "upnl";
|
|
@@ -8754,6 +9163,7 @@ declare class Core {
|
|
|
8754
9163
|
priceSource: "mid" | "mark";
|
|
8755
9164
|
track: "PEAK" | "TROUGH";
|
|
8756
9165
|
threshold: number;
|
|
9166
|
+
onPositionResize: "cancel" | "keep";
|
|
8757
9167
|
};
|
|
8758
9168
|
} | {
|
|
8759
9169
|
type: "upnl_bps";
|
|
@@ -8816,13 +9226,12 @@ declare class Core {
|
|
|
8816
9226
|
parentTriggerId?: string | undefined;
|
|
8817
9227
|
triggeredAt?: string | undefined;
|
|
8818
9228
|
cancelledAt?: string | undefined;
|
|
8819
|
-
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;
|
|
8820
9230
|
fills?: {
|
|
8821
9231
|
id: string;
|
|
8822
9232
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8823
9233
|
tradeAccountId: string;
|
|
8824
9234
|
symbol: string;
|
|
8825
|
-
positionId: string;
|
|
8826
9235
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8827
9236
|
side: "BUY" | "SELL";
|
|
8828
9237
|
reduceOnly: boolean;
|
|
@@ -8832,8 +9241,18 @@ declare class Core {
|
|
|
8832
9241
|
price: string;
|
|
8833
9242
|
usd: string;
|
|
8834
9243
|
timestamp: string;
|
|
9244
|
+
assignments: {
|
|
9245
|
+
positionId: string;
|
|
9246
|
+
quantity: string;
|
|
9247
|
+
usd: string;
|
|
9248
|
+
tradeFee?: string | undefined;
|
|
9249
|
+
pearFee?: string | undefined;
|
|
9250
|
+
}[];
|
|
8835
9251
|
cloid?: string | undefined;
|
|
8836
9252
|
exchangeFillId?: string | undefined;
|
|
9253
|
+
executionId?: string | undefined;
|
|
9254
|
+
scheduleId?: string | undefined;
|
|
9255
|
+
triggerId?: string | undefined;
|
|
8837
9256
|
tradeFee?: string | undefined;
|
|
8838
9257
|
pearFee?: string | undefined;
|
|
8839
9258
|
original?: {
|
|
@@ -8896,6 +9315,7 @@ declare class Core {
|
|
|
8896
9315
|
priceSource: "mid" | "mark";
|
|
8897
9316
|
track: "PEAK" | "TROUGH";
|
|
8898
9317
|
threshold: number;
|
|
9318
|
+
onPositionResize: "cancel" | "keep";
|
|
8899
9319
|
};
|
|
8900
9320
|
} | {
|
|
8901
9321
|
type: "upnl";
|
|
@@ -8903,6 +9323,7 @@ declare class Core {
|
|
|
8903
9323
|
priceSource: "mid" | "mark";
|
|
8904
9324
|
track: "PEAK" | "TROUGH";
|
|
8905
9325
|
threshold: number;
|
|
9326
|
+
onPositionResize: "cancel" | "keep";
|
|
8906
9327
|
};
|
|
8907
9328
|
} | {
|
|
8908
9329
|
type: "upnl_bps";
|
|
@@ -8938,11 +9359,13 @@ declare class Core {
|
|
|
8938
9359
|
type: "notional_trailing";
|
|
8939
9360
|
data: {
|
|
8940
9361
|
priceSource: "mid" | "mark";
|
|
9362
|
+
onPositionResize: "cancel" | "keep";
|
|
8941
9363
|
};
|
|
8942
9364
|
} | {
|
|
8943
9365
|
type: "upnl_trailing";
|
|
8944
9366
|
data: {
|
|
8945
9367
|
priceSource: "mid" | "mark";
|
|
9368
|
+
onPositionResize: "cancel" | "keep";
|
|
8946
9369
|
};
|
|
8947
9370
|
} | {
|
|
8948
9371
|
type: "upnl_bps_trailing";
|
|
@@ -8991,13 +9414,12 @@ declare class Core {
|
|
|
8991
9414
|
parentTriggerId?: string | undefined;
|
|
8992
9415
|
triggeredAt?: string | undefined;
|
|
8993
9416
|
cancelledAt?: string | undefined;
|
|
8994
|
-
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;
|
|
8995
9418
|
fills?: {
|
|
8996
9419
|
id: string;
|
|
8997
9420
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
8998
9421
|
tradeAccountId: string;
|
|
8999
9422
|
symbol: string;
|
|
9000
|
-
positionId: string;
|
|
9001
9423
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9002
9424
|
side: "BUY" | "SELL";
|
|
9003
9425
|
reduceOnly: boolean;
|
|
@@ -9007,8 +9429,18 @@ declare class Core {
|
|
|
9007
9429
|
price: string;
|
|
9008
9430
|
usd: string;
|
|
9009
9431
|
timestamp: string;
|
|
9432
|
+
assignments: {
|
|
9433
|
+
positionId: string;
|
|
9434
|
+
quantity: string;
|
|
9435
|
+
usd: string;
|
|
9436
|
+
tradeFee?: string | undefined;
|
|
9437
|
+
pearFee?: string | undefined;
|
|
9438
|
+
}[];
|
|
9010
9439
|
cloid?: string | undefined;
|
|
9011
9440
|
exchangeFillId?: string | undefined;
|
|
9441
|
+
executionId?: string | undefined;
|
|
9442
|
+
scheduleId?: string | undefined;
|
|
9443
|
+
triggerId?: string | undefined;
|
|
9012
9444
|
tradeFee?: string | undefined;
|
|
9013
9445
|
pearFee?: string | undefined;
|
|
9014
9446
|
original?: {
|
|
@@ -9117,13 +9549,12 @@ declare class Core {
|
|
|
9117
9549
|
parentTriggerId?: string | undefined;
|
|
9118
9550
|
triggeredAt?: string | undefined;
|
|
9119
9551
|
cancelledAt?: string | undefined;
|
|
9120
|
-
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;
|
|
9121
9553
|
fills?: {
|
|
9122
9554
|
id: string;
|
|
9123
9555
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9124
9556
|
tradeAccountId: string;
|
|
9125
9557
|
symbol: string;
|
|
9126
|
-
positionId: string;
|
|
9127
9558
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9128
9559
|
side: "BUY" | "SELL";
|
|
9129
9560
|
reduceOnly: boolean;
|
|
@@ -9133,8 +9564,18 @@ declare class Core {
|
|
|
9133
9564
|
price: string;
|
|
9134
9565
|
usd: string;
|
|
9135
9566
|
timestamp: string;
|
|
9567
|
+
assignments: {
|
|
9568
|
+
positionId: string;
|
|
9569
|
+
quantity: string;
|
|
9570
|
+
usd: string;
|
|
9571
|
+
tradeFee?: string | undefined;
|
|
9572
|
+
pearFee?: string | undefined;
|
|
9573
|
+
}[];
|
|
9136
9574
|
cloid?: string | undefined;
|
|
9137
9575
|
exchangeFillId?: string | undefined;
|
|
9576
|
+
executionId?: string | undefined;
|
|
9577
|
+
scheduleId?: string | undefined;
|
|
9578
|
+
triggerId?: string | undefined;
|
|
9138
9579
|
tradeFee?: string | undefined;
|
|
9139
9580
|
pearFee?: string | undefined;
|
|
9140
9581
|
original?: {
|
|
@@ -9188,6 +9629,7 @@ declare class Core {
|
|
|
9188
9629
|
priceSource: "mid" | "mark";
|
|
9189
9630
|
track: "PEAK" | "TROUGH";
|
|
9190
9631
|
threshold: number;
|
|
9632
|
+
onPositionResize: "cancel" | "keep";
|
|
9191
9633
|
};
|
|
9192
9634
|
} | {
|
|
9193
9635
|
type: "upnl";
|
|
@@ -9195,6 +9637,7 @@ declare class Core {
|
|
|
9195
9637
|
priceSource: "mid" | "mark";
|
|
9196
9638
|
track: "PEAK" | "TROUGH";
|
|
9197
9639
|
threshold: number;
|
|
9640
|
+
onPositionResize: "cancel" | "keep";
|
|
9198
9641
|
};
|
|
9199
9642
|
} | {
|
|
9200
9643
|
type: "upnl_bps";
|
|
@@ -9254,13 +9697,12 @@ declare class Core {
|
|
|
9254
9697
|
parentTriggerId?: string | undefined;
|
|
9255
9698
|
triggeredAt?: string | undefined;
|
|
9256
9699
|
cancelledAt?: string | undefined;
|
|
9257
|
-
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;
|
|
9258
9701
|
fills?: {
|
|
9259
9702
|
id: string;
|
|
9260
9703
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9261
9704
|
tradeAccountId: string;
|
|
9262
9705
|
symbol: string;
|
|
9263
|
-
positionId: string;
|
|
9264
9706
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9265
9707
|
side: "BUY" | "SELL";
|
|
9266
9708
|
reduceOnly: boolean;
|
|
@@ -9270,8 +9712,18 @@ declare class Core {
|
|
|
9270
9712
|
price: string;
|
|
9271
9713
|
usd: string;
|
|
9272
9714
|
timestamp: string;
|
|
9715
|
+
assignments: {
|
|
9716
|
+
positionId: string;
|
|
9717
|
+
quantity: string;
|
|
9718
|
+
usd: string;
|
|
9719
|
+
tradeFee?: string | undefined;
|
|
9720
|
+
pearFee?: string | undefined;
|
|
9721
|
+
}[];
|
|
9273
9722
|
cloid?: string | undefined;
|
|
9274
9723
|
exchangeFillId?: string | undefined;
|
|
9724
|
+
executionId?: string | undefined;
|
|
9725
|
+
scheduleId?: string | undefined;
|
|
9726
|
+
triggerId?: string | undefined;
|
|
9275
9727
|
tradeFee?: string | undefined;
|
|
9276
9728
|
pearFee?: string | undefined;
|
|
9277
9729
|
original?: {
|
|
@@ -9333,6 +9785,7 @@ declare class Core {
|
|
|
9333
9785
|
priceSource: "mid" | "mark";
|
|
9334
9786
|
track: "PEAK" | "TROUGH";
|
|
9335
9787
|
threshold: number;
|
|
9788
|
+
onPositionResize: "cancel" | "keep";
|
|
9336
9789
|
};
|
|
9337
9790
|
} | {
|
|
9338
9791
|
type: "upnl";
|
|
@@ -9340,6 +9793,7 @@ declare class Core {
|
|
|
9340
9793
|
priceSource: "mid" | "mark";
|
|
9341
9794
|
track: "PEAK" | "TROUGH";
|
|
9342
9795
|
threshold: number;
|
|
9796
|
+
onPositionResize: "cancel" | "keep";
|
|
9343
9797
|
};
|
|
9344
9798
|
} | {
|
|
9345
9799
|
type: "upnl_bps";
|
|
@@ -9375,11 +9829,13 @@ declare class Core {
|
|
|
9375
9829
|
type: "notional_trailing";
|
|
9376
9830
|
data: {
|
|
9377
9831
|
priceSource: "mid" | "mark";
|
|
9832
|
+
onPositionResize: "cancel" | "keep";
|
|
9378
9833
|
};
|
|
9379
9834
|
} | {
|
|
9380
9835
|
type: "upnl_trailing";
|
|
9381
9836
|
data: {
|
|
9382
9837
|
priceSource: "mid" | "mark";
|
|
9838
|
+
onPositionResize: "cancel" | "keep";
|
|
9383
9839
|
};
|
|
9384
9840
|
} | {
|
|
9385
9841
|
type: "upnl_bps_trailing";
|
|
@@ -9422,13 +9878,12 @@ declare class Core {
|
|
|
9422
9878
|
parentTriggerId?: string | undefined;
|
|
9423
9879
|
triggeredAt?: string | undefined;
|
|
9424
9880
|
cancelledAt?: string | undefined;
|
|
9425
|
-
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;
|
|
9426
9882
|
fills?: {
|
|
9427
9883
|
id: string;
|
|
9428
9884
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9429
9885
|
tradeAccountId: string;
|
|
9430
9886
|
symbol: string;
|
|
9431
|
-
positionId: string;
|
|
9432
9887
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9433
9888
|
side: "BUY" | "SELL";
|
|
9434
9889
|
reduceOnly: boolean;
|
|
@@ -9438,8 +9893,18 @@ declare class Core {
|
|
|
9438
9893
|
price: string;
|
|
9439
9894
|
usd: string;
|
|
9440
9895
|
timestamp: string;
|
|
9896
|
+
assignments: {
|
|
9897
|
+
positionId: string;
|
|
9898
|
+
quantity: string;
|
|
9899
|
+
usd: string;
|
|
9900
|
+
tradeFee?: string | undefined;
|
|
9901
|
+
pearFee?: string | undefined;
|
|
9902
|
+
}[];
|
|
9441
9903
|
cloid?: string | undefined;
|
|
9442
9904
|
exchangeFillId?: string | undefined;
|
|
9905
|
+
executionId?: string | undefined;
|
|
9906
|
+
scheduleId?: string | undefined;
|
|
9907
|
+
triggerId?: string | undefined;
|
|
9443
9908
|
tradeFee?: string | undefined;
|
|
9444
9909
|
pearFee?: string | undefined;
|
|
9445
9910
|
original?: {
|
|
@@ -9447,6 +9912,7 @@ declare class Core {
|
|
|
9447
9912
|
quantity: string;
|
|
9448
9913
|
} | undefined;
|
|
9449
9914
|
}[] | undefined;
|
|
9915
|
+
closePercent?: number | undefined;
|
|
9450
9916
|
trailing?: {
|
|
9451
9917
|
mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
|
|
9452
9918
|
deltaValue: number;
|
|
@@ -9501,6 +9967,7 @@ declare class Core {
|
|
|
9501
9967
|
priceSource: "mid" | "mark";
|
|
9502
9968
|
track: "PEAK" | "TROUGH";
|
|
9503
9969
|
threshold: number;
|
|
9970
|
+
onPositionResize: "cancel" | "keep";
|
|
9504
9971
|
};
|
|
9505
9972
|
} | {
|
|
9506
9973
|
type: "upnl";
|
|
@@ -9508,6 +9975,7 @@ declare class Core {
|
|
|
9508
9975
|
priceSource: "mid" | "mark";
|
|
9509
9976
|
track: "PEAK" | "TROUGH";
|
|
9510
9977
|
threshold: number;
|
|
9978
|
+
onPositionResize: "cancel" | "keep";
|
|
9511
9979
|
};
|
|
9512
9980
|
} | {
|
|
9513
9981
|
type: "upnl_bps";
|
|
@@ -9570,13 +10038,12 @@ declare class Core {
|
|
|
9570
10038
|
parentTriggerId?: string | undefined;
|
|
9571
10039
|
triggeredAt?: string | undefined;
|
|
9572
10040
|
cancelledAt?: string | undefined;
|
|
9573
|
-
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;
|
|
9574
10042
|
fills?: {
|
|
9575
10043
|
id: string;
|
|
9576
10044
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9577
10045
|
tradeAccountId: string;
|
|
9578
10046
|
symbol: string;
|
|
9579
|
-
positionId: string;
|
|
9580
10047
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9581
10048
|
side: "BUY" | "SELL";
|
|
9582
10049
|
reduceOnly: boolean;
|
|
@@ -9586,8 +10053,18 @@ declare class Core {
|
|
|
9586
10053
|
price: string;
|
|
9587
10054
|
usd: string;
|
|
9588
10055
|
timestamp: string;
|
|
10056
|
+
assignments: {
|
|
10057
|
+
positionId: string;
|
|
10058
|
+
quantity: string;
|
|
10059
|
+
usd: string;
|
|
10060
|
+
tradeFee?: string | undefined;
|
|
10061
|
+
pearFee?: string | undefined;
|
|
10062
|
+
}[];
|
|
9589
10063
|
cloid?: string | undefined;
|
|
9590
10064
|
exchangeFillId?: string | undefined;
|
|
10065
|
+
executionId?: string | undefined;
|
|
10066
|
+
scheduleId?: string | undefined;
|
|
10067
|
+
triggerId?: string | undefined;
|
|
9591
10068
|
tradeFee?: string | undefined;
|
|
9592
10069
|
pearFee?: string | undefined;
|
|
9593
10070
|
original?: {
|
|
@@ -9650,6 +10127,7 @@ declare class Core {
|
|
|
9650
10127
|
priceSource: "mid" | "mark";
|
|
9651
10128
|
track: "PEAK" | "TROUGH";
|
|
9652
10129
|
threshold: number;
|
|
10130
|
+
onPositionResize: "cancel" | "keep";
|
|
9653
10131
|
};
|
|
9654
10132
|
} | {
|
|
9655
10133
|
type: "upnl";
|
|
@@ -9657,6 +10135,7 @@ declare class Core {
|
|
|
9657
10135
|
priceSource: "mid" | "mark";
|
|
9658
10136
|
track: "PEAK" | "TROUGH";
|
|
9659
10137
|
threshold: number;
|
|
10138
|
+
onPositionResize: "cancel" | "keep";
|
|
9660
10139
|
};
|
|
9661
10140
|
} | {
|
|
9662
10141
|
type: "upnl_bps";
|
|
@@ -9692,11 +10171,13 @@ declare class Core {
|
|
|
9692
10171
|
type: "notional_trailing";
|
|
9693
10172
|
data: {
|
|
9694
10173
|
priceSource: "mid" | "mark";
|
|
10174
|
+
onPositionResize: "cancel" | "keep";
|
|
9695
10175
|
};
|
|
9696
10176
|
} | {
|
|
9697
10177
|
type: "upnl_trailing";
|
|
9698
10178
|
data: {
|
|
9699
10179
|
priceSource: "mid" | "mark";
|
|
10180
|
+
onPositionResize: "cancel" | "keep";
|
|
9700
10181
|
};
|
|
9701
10182
|
} | {
|
|
9702
10183
|
type: "upnl_bps_trailing";
|
|
@@ -9745,13 +10226,12 @@ declare class Core {
|
|
|
9745
10226
|
parentTriggerId?: string | undefined;
|
|
9746
10227
|
triggeredAt?: string | undefined;
|
|
9747
10228
|
cancelledAt?: string | undefined;
|
|
9748
|
-
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;
|
|
9749
10230
|
fills?: {
|
|
9750
10231
|
id: string;
|
|
9751
10232
|
status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
|
|
9752
10233
|
tradeAccountId: string;
|
|
9753
10234
|
symbol: string;
|
|
9754
|
-
positionId: string;
|
|
9755
10235
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9756
10236
|
side: "BUY" | "SELL";
|
|
9757
10237
|
reduceOnly: boolean;
|
|
@@ -9761,8 +10241,18 @@ declare class Core {
|
|
|
9761
10241
|
price: string;
|
|
9762
10242
|
usd: string;
|
|
9763
10243
|
timestamp: string;
|
|
10244
|
+
assignments: {
|
|
10245
|
+
positionId: string;
|
|
10246
|
+
quantity: string;
|
|
10247
|
+
usd: string;
|
|
10248
|
+
tradeFee?: string | undefined;
|
|
10249
|
+
pearFee?: string | undefined;
|
|
10250
|
+
}[];
|
|
9764
10251
|
cloid?: string | undefined;
|
|
9765
10252
|
exchangeFillId?: string | undefined;
|
|
10253
|
+
executionId?: string | undefined;
|
|
10254
|
+
scheduleId?: string | undefined;
|
|
10255
|
+
triggerId?: string | undefined;
|
|
9766
10256
|
tradeFee?: string | undefined;
|
|
9767
10257
|
pearFee?: string | undefined;
|
|
9768
10258
|
original?: {
|
|
@@ -10100,6 +10590,24 @@ declare class Core {
|
|
|
10100
10590
|
} | undefined;
|
|
10101
10591
|
} | undefined;
|
|
10102
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
|
+
}[];
|
|
10103
10611
|
}>;
|
|
10104
10612
|
/** Read all active followers of an owned leader account. */
|
|
10105
10613
|
followers: (headers?: ClientHeaders) => Promise<{
|
|
@@ -10120,11 +10628,13 @@ declare class Core {
|
|
|
10120
10628
|
lifetimeFollowerCount: number;
|
|
10121
10629
|
copiedTrades: number;
|
|
10122
10630
|
copiedVolumeUsd: string;
|
|
10631
|
+
rewardsEarnedUsd: string;
|
|
10123
10632
|
followers: {
|
|
10124
10633
|
tradeAccountId: string;
|
|
10125
10634
|
status: "ACTIVE" | "ENDED";
|
|
10126
10635
|
copiedTrades: number;
|
|
10127
10636
|
copiedVolumeUsd: string;
|
|
10637
|
+
rewardsEarnedUsd: string;
|
|
10128
10638
|
xUserId?: string | undefined;
|
|
10129
10639
|
xHandle?: string | undefined;
|
|
10130
10640
|
xName?: string | undefined;
|
|
@@ -10276,11 +10786,11 @@ declare class Core {
|
|
|
10276
10786
|
provisional?: true | undefined;
|
|
10277
10787
|
latestFillAt?: string | undefined;
|
|
10278
10788
|
endedAt?: string | undefined;
|
|
10789
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10790
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10279
10791
|
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10280
10792
|
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10281
10793
|
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10282
|
-
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10283
|
-
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10284
10794
|
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10285
10795
|
startSnapshot?: {
|
|
10286
10796
|
leader: {
|
|
@@ -10407,11 +10917,11 @@ declare class Core {
|
|
|
10407
10917
|
provisional?: true | undefined;
|
|
10408
10918
|
latestFillAt?: string | undefined;
|
|
10409
10919
|
endedAt?: string | undefined;
|
|
10920
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10921
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10410
10922
|
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10411
10923
|
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10412
10924
|
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10413
|
-
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10414
|
-
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10415
10925
|
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10416
10926
|
startSnapshot?: {
|
|
10417
10927
|
leader: {
|
|
@@ -10533,7 +11043,7 @@ declare class Core {
|
|
|
10533
11043
|
} | {
|
|
10534
11044
|
leaderPositionId: string;
|
|
10535
11045
|
outcome: "SKIPPED";
|
|
10536
|
-
reason: "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED";
|
|
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";
|
|
10537
11047
|
} | {
|
|
10538
11048
|
leaderPositionId: string;
|
|
10539
11049
|
outcome: "FAILED";
|
|
@@ -10559,11 +11069,11 @@ declare class Core {
|
|
|
10559
11069
|
provisional?: true | undefined;
|
|
10560
11070
|
latestFillAt?: string | undefined;
|
|
10561
11071
|
endedAt?: string | undefined;
|
|
11072
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
11073
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10562
11074
|
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10563
11075
|
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10564
11076
|
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10565
|
-
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10566
|
-
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10567
11077
|
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10568
11078
|
startSnapshot?: {
|
|
10569
11079
|
leader: {
|
|
@@ -10677,7 +11187,7 @@ declare class Core {
|
|
|
10677
11187
|
activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
|
|
10678
11188
|
activities: {
|
|
10679
11189
|
id: string;
|
|
10680
|
-
leaderAction: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
11190
|
+
leaderAction: "TWAP" | "OPEN" | "CLOSE" | "ADJUST" | "REVERSE" | "TWAP_END";
|
|
10681
11191
|
state: "RECORDED" | "DISPATCHED" | "SETTLED";
|
|
10682
11192
|
followerLegs: {
|
|
10683
11193
|
symbol: string;
|
|
@@ -10701,9 +11211,33 @@ declare class Core {
|
|
|
10701
11211
|
configId: string;
|
|
10702
11212
|
} | undefined;
|
|
10703
11213
|
outcome?: "FAILED" | "COPIED" | "PARTIAL" | "SKIPPED" | undefined;
|
|
10704
|
-
skipReason?: "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | undefined;
|
|
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;
|
|
10705
11215
|
failureReason?: string | undefined;
|
|
10706
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;
|
|
10707
11241
|
}[];
|
|
10708
11242
|
}>;
|
|
10709
11243
|
};
|
|
@@ -10919,7 +11453,7 @@ declare class Core {
|
|
|
10919
11453
|
executionContext?: {
|
|
10920
11454
|
intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
10921
11455
|
orderType: "MARKET";
|
|
10922
|
-
executionStatus: "ACTIVE" | "
|
|
11456
|
+
executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
10923
11457
|
legs: {
|
|
10924
11458
|
symbol: string;
|
|
10925
11459
|
side: "BUY" | "SELL";
|
|
@@ -11010,7 +11544,7 @@ declare class Core {
|
|
|
11010
11544
|
executionContext?: {
|
|
11011
11545
|
intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
11012
11546
|
orderType: "MARKET";
|
|
11013
|
-
executionStatus: "ACTIVE" | "
|
|
11547
|
+
executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
11014
11548
|
legs: {
|
|
11015
11549
|
symbol: string;
|
|
11016
11550
|
side: "BUY" | "SELL";
|