@pear-protocol/core-sdk 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -421,6 +421,1306 @@ declare class Core {
421
421
  }>;
422
422
  }>;
423
423
  };
424
+ ladders: {
425
+ list: (query: HttpTypes.LadderListParamsInput, headers?: ClientHeaders) => Promise<{
426
+ limit: number;
427
+ nextCursor: string | undefined;
428
+ ladders: {
429
+ id: string;
430
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
431
+ positionKey: string;
432
+ config: {
433
+ thresholdStart: number;
434
+ thresholdEnd: number;
435
+ levels: number;
436
+ weighting: "EQUAL";
437
+ };
438
+ status: "CANCELLED" | "ACTIVE" | "COMPLETED";
439
+ triggers: ({
440
+ id: string;
441
+ tradeAccountId: string;
442
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
443
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
444
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
445
+ createdAt: string;
446
+ updatedAt: string;
447
+ intent: "OPEN";
448
+ type: "MARKET";
449
+ condition: {
450
+ type: "ratio";
451
+ data: {
452
+ priceSource: "mark" | "mid";
453
+ symbol_a: string;
454
+ symbol_b: string;
455
+ track: "PEAK" | "TROUGH";
456
+ threshold: number;
457
+ };
458
+ } | {
459
+ type: "price";
460
+ data: {
461
+ priceSource: "mark" | "mid";
462
+ symbol: string;
463
+ track: "PEAK" | "TROUGH";
464
+ threshold: number;
465
+ };
466
+ } | {
467
+ type: "weighted_ratio";
468
+ data: {
469
+ priceSource: "mark" | "mid";
470
+ basket: {
471
+ symbol: string;
472
+ side: "BUY" | "SELL";
473
+ weight: number;
474
+ }[];
475
+ track: "PEAK" | "TROUGH";
476
+ threshold: number;
477
+ };
478
+ } | {
479
+ type: "funding_rate";
480
+ data: {
481
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
482
+ symbol: string;
483
+ track: "PEAK" | "TROUGH";
484
+ threshold: number;
485
+ };
486
+ } | {
487
+ type: "prediction_market";
488
+ data: {
489
+ source: "kalshi" | "polymarket";
490
+ marketKey: string;
491
+ track: "PEAK" | "TROUGH";
492
+ threshold: number;
493
+ };
494
+ } | {
495
+ type: "btc_dominance";
496
+ data: {
497
+ source: "coingecko";
498
+ track: "PEAK" | "TROUGH";
499
+ threshold: number;
500
+ };
501
+ };
502
+ context: {
503
+ type: "MARKET";
504
+ legs: [{
505
+ symbol: string;
506
+ side: "BUY" | "SELL";
507
+ mode: "QUANTITY" | "USD";
508
+ amount: string;
509
+ }, ...{
510
+ symbol: string;
511
+ side: "BUY" | "SELL";
512
+ mode: "QUANTITY" | "USD";
513
+ amount: string;
514
+ }[]];
515
+ attachedTriggers: {
516
+ kind: "STATIC" | "TRAILING";
517
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT";
518
+ }[];
519
+ };
520
+ ladderId?: string | undefined;
521
+ ladderIndex?: number | undefined;
522
+ triggeredAt?: string | undefined;
523
+ cancelledAt?: string | undefined;
524
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
525
+ fills?: {
526
+ id: string;
527
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
528
+ tradeAccountId: string;
529
+ symbol: string;
530
+ positionId: string;
531
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
532
+ side: "BUY" | "SELL";
533
+ reduceOnly: boolean;
534
+ isExternal: boolean;
535
+ quantity: string;
536
+ price: string;
537
+ usd: string;
538
+ timestamp: string;
539
+ cloid?: string | undefined;
540
+ exchangeFillId?: string | undefined;
541
+ tradeFee?: string | undefined;
542
+ pearFee?: string | undefined;
543
+ original?: {
544
+ exchangeFillId: string;
545
+ quantity: string;
546
+ } | undefined;
547
+ }[] | undefined;
548
+ } | {
549
+ id: string;
550
+ tradeAccountId: string;
551
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
552
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
553
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
554
+ createdAt: string;
555
+ updatedAt: string;
556
+ intent: "ADJUST";
557
+ type: "MARKET";
558
+ condition: {
559
+ type: "ratio";
560
+ data: {
561
+ priceSource: "mark" | "mid";
562
+ symbol_a: string;
563
+ symbol_b: string;
564
+ track: "PEAK" | "TROUGH";
565
+ threshold: number;
566
+ };
567
+ } | {
568
+ type: "price";
569
+ data: {
570
+ priceSource: "mark" | "mid";
571
+ symbol: string;
572
+ track: "PEAK" | "TROUGH";
573
+ threshold: number;
574
+ };
575
+ } | {
576
+ type: "weighted_ratio";
577
+ data: {
578
+ priceSource: "mark" | "mid";
579
+ basket: {
580
+ symbol: string;
581
+ side: "BUY" | "SELL";
582
+ weight: number;
583
+ }[];
584
+ track: "PEAK" | "TROUGH";
585
+ threshold: number;
586
+ };
587
+ } | {
588
+ type: "notional";
589
+ data: {
590
+ priceSource: "mark" | "mid";
591
+ track: "PEAK" | "TROUGH";
592
+ threshold: number;
593
+ };
594
+ } | {
595
+ type: "upnl";
596
+ data: {
597
+ priceSource: "mark" | "mid";
598
+ track: "PEAK" | "TROUGH";
599
+ threshold: number;
600
+ };
601
+ } | {
602
+ type: "upnl_bps";
603
+ data: {
604
+ priceSource: "mark" | "mid";
605
+ track: "PEAK" | "TROUGH";
606
+ threshold: number;
607
+ };
608
+ } | {
609
+ type: "funding_rate";
610
+ data: {
611
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
612
+ symbol: string;
613
+ track: "PEAK" | "TROUGH";
614
+ threshold: number;
615
+ };
616
+ } | {
617
+ type: "prediction_market";
618
+ data: {
619
+ source: "kalshi" | "polymarket";
620
+ marketKey: string;
621
+ track: "PEAK" | "TROUGH";
622
+ threshold: number;
623
+ };
624
+ } | {
625
+ type: "btc_dominance";
626
+ data: {
627
+ source: "coingecko";
628
+ track: "PEAK" | "TROUGH";
629
+ threshold: number;
630
+ };
631
+ };
632
+ context: {
633
+ type: "MARKET";
634
+ position: {
635
+ id: string;
636
+ initialExposure: Record<string, `-${string}` | `+${string}`>;
637
+ };
638
+ legs: [{
639
+ symbol: string;
640
+ side: "BUY" | "SELL";
641
+ mode: "QUANTITY" | "USD";
642
+ amount: string;
643
+ reduceOnly: boolean;
644
+ }, ...{
645
+ symbol: string;
646
+ side: "BUY" | "SELL";
647
+ mode: "QUANTITY" | "USD";
648
+ amount: string;
649
+ reduceOnly: boolean;
650
+ }[]];
651
+ };
652
+ ladderId?: string | undefined;
653
+ ladderIndex?: number | undefined;
654
+ triggeredAt?: string | undefined;
655
+ cancelledAt?: string | undefined;
656
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
657
+ fills?: {
658
+ id: string;
659
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
660
+ tradeAccountId: string;
661
+ symbol: string;
662
+ positionId: string;
663
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
664
+ side: "BUY" | "SELL";
665
+ reduceOnly: boolean;
666
+ isExternal: boolean;
667
+ quantity: string;
668
+ price: string;
669
+ usd: string;
670
+ timestamp: string;
671
+ cloid?: string | undefined;
672
+ exchangeFillId?: string | undefined;
673
+ tradeFee?: string | undefined;
674
+ pearFee?: string | undefined;
675
+ original?: {
676
+ exchangeFillId: string;
677
+ quantity: string;
678
+ } | undefined;
679
+ }[] | undefined;
680
+ trailing?: {
681
+ mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
682
+ deltaValue: number;
683
+ activationValue?: number | undefined;
684
+ bestMetricSeen?: number | undefined;
685
+ currentStopValue?: number | undefined;
686
+ stopBreachedAt?: number | undefined;
687
+ } | undefined;
688
+ } | {
689
+ id: string;
690
+ tradeAccountId: string;
691
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
692
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
693
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
694
+ createdAt: string;
695
+ updatedAt: string;
696
+ intent: "CLOSE";
697
+ type: "MARKET";
698
+ condition: {
699
+ type: "ratio";
700
+ data: {
701
+ priceSource: "mark" | "mid";
702
+ symbol_a: string;
703
+ symbol_b: string;
704
+ track: "PEAK" | "TROUGH";
705
+ threshold: number;
706
+ };
707
+ } | {
708
+ type: "price";
709
+ data: {
710
+ priceSource: "mark" | "mid";
711
+ symbol: string;
712
+ track: "PEAK" | "TROUGH";
713
+ threshold: number;
714
+ };
715
+ } | {
716
+ type: "weighted_ratio";
717
+ data: {
718
+ priceSource: "mark" | "mid";
719
+ basket: {
720
+ symbol: string;
721
+ side: "BUY" | "SELL";
722
+ weight: number;
723
+ }[];
724
+ track: "PEAK" | "TROUGH";
725
+ threshold: number;
726
+ };
727
+ } | {
728
+ type: "notional";
729
+ data: {
730
+ priceSource: "mark" | "mid";
731
+ track: "PEAK" | "TROUGH";
732
+ threshold: number;
733
+ };
734
+ } | {
735
+ type: "upnl";
736
+ data: {
737
+ priceSource: "mark" | "mid";
738
+ track: "PEAK" | "TROUGH";
739
+ threshold: number;
740
+ };
741
+ } | {
742
+ type: "upnl_bps";
743
+ data: {
744
+ priceSource: "mark" | "mid";
745
+ track: "PEAK" | "TROUGH";
746
+ threshold: number;
747
+ };
748
+ } | {
749
+ type: "ratio_trailing";
750
+ data: {
751
+ priceSource: "mark" | "mid";
752
+ symbol_a: string;
753
+ symbol_b: string;
754
+ };
755
+ } | {
756
+ type: "price_trailing";
757
+ data: {
758
+ priceSource: "mark" | "mid";
759
+ symbol: string;
760
+ };
761
+ } | {
762
+ type: "weighted_ratio_trailing";
763
+ data: {
764
+ priceSource: "mark" | "mid";
765
+ basket: {
766
+ symbol: string;
767
+ side: "BUY" | "SELL";
768
+ weight: number;
769
+ }[];
770
+ };
771
+ } | {
772
+ type: "notional_trailing";
773
+ data: {
774
+ priceSource: "mark" | "mid";
775
+ };
776
+ } | {
777
+ type: "upnl_trailing";
778
+ data: {
779
+ priceSource: "mark" | "mid";
780
+ };
781
+ } | {
782
+ type: "upnl_bps_trailing";
783
+ data: {
784
+ priceSource: "mark" | "mid";
785
+ };
786
+ } | {
787
+ type: "funding_rate";
788
+ data: {
789
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
790
+ symbol: string;
791
+ track: "PEAK" | "TROUGH";
792
+ threshold: number;
793
+ };
794
+ } | {
795
+ type: "prediction_market";
796
+ data: {
797
+ source: "kalshi" | "polymarket";
798
+ marketKey: string;
799
+ track: "PEAK" | "TROUGH";
800
+ threshold: number;
801
+ };
802
+ } | {
803
+ type: "btc_dominance";
804
+ data: {
805
+ source: "coingecko";
806
+ track: "PEAK" | "TROUGH";
807
+ threshold: number;
808
+ };
809
+ };
810
+ context: {
811
+ type: "MARKET";
812
+ position: {
813
+ id: string;
814
+ initialExposure: Record<string, `-${string}` | `+${string}`>;
815
+ };
816
+ };
817
+ ladderId?: string | undefined;
818
+ ladderIndex?: number | undefined;
819
+ triggeredAt?: string | undefined;
820
+ cancelledAt?: string | undefined;
821
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
822
+ fills?: {
823
+ id: string;
824
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
825
+ tradeAccountId: string;
826
+ symbol: string;
827
+ positionId: string;
828
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
829
+ side: "BUY" | "SELL";
830
+ reduceOnly: boolean;
831
+ isExternal: boolean;
832
+ quantity: string;
833
+ price: string;
834
+ usd: string;
835
+ timestamp: string;
836
+ cloid?: string | undefined;
837
+ exchangeFillId?: string | undefined;
838
+ tradeFee?: string | undefined;
839
+ pearFee?: string | undefined;
840
+ original?: {
841
+ exchangeFillId: string;
842
+ quantity: string;
843
+ } | undefined;
844
+ }[] | undefined;
845
+ trailing?: {
846
+ mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
847
+ deltaValue: number;
848
+ activationValue?: number | undefined;
849
+ bestMetricSeen?: number | undefined;
850
+ currentStopValue?: number | undefined;
851
+ stopBreachedAt?: number | undefined;
852
+ } | undefined;
853
+ })[];
854
+ createdAt: string;
855
+ updatedAt: string;
856
+ }[];
857
+ }>;
858
+ create: (body: HttpTypes.CreateLadder, headers?: ClientHeaders) => Promise<{
859
+ ladder: {
860
+ id: string;
861
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
862
+ positionKey: string;
863
+ config: {
864
+ thresholdStart: number;
865
+ thresholdEnd: number;
866
+ levels: number;
867
+ weighting: "EQUAL";
868
+ };
869
+ status: "CANCELLED" | "ACTIVE" | "COMPLETED";
870
+ triggers: ({
871
+ id: string;
872
+ tradeAccountId: string;
873
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
874
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
875
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
876
+ createdAt: string;
877
+ updatedAt: string;
878
+ intent: "OPEN";
879
+ type: "MARKET";
880
+ condition: {
881
+ type: "ratio";
882
+ data: {
883
+ priceSource: "mark" | "mid";
884
+ symbol_a: string;
885
+ symbol_b: string;
886
+ track: "PEAK" | "TROUGH";
887
+ threshold: number;
888
+ };
889
+ } | {
890
+ type: "price";
891
+ data: {
892
+ priceSource: "mark" | "mid";
893
+ symbol: string;
894
+ track: "PEAK" | "TROUGH";
895
+ threshold: number;
896
+ };
897
+ } | {
898
+ type: "weighted_ratio";
899
+ data: {
900
+ priceSource: "mark" | "mid";
901
+ basket: {
902
+ symbol: string;
903
+ side: "BUY" | "SELL";
904
+ weight: number;
905
+ }[];
906
+ track: "PEAK" | "TROUGH";
907
+ threshold: number;
908
+ };
909
+ } | {
910
+ type: "funding_rate";
911
+ data: {
912
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
913
+ symbol: string;
914
+ track: "PEAK" | "TROUGH";
915
+ threshold: number;
916
+ };
917
+ } | {
918
+ type: "prediction_market";
919
+ data: {
920
+ source: "kalshi" | "polymarket";
921
+ marketKey: string;
922
+ track: "PEAK" | "TROUGH";
923
+ threshold: number;
924
+ };
925
+ } | {
926
+ type: "btc_dominance";
927
+ data: {
928
+ source: "coingecko";
929
+ track: "PEAK" | "TROUGH";
930
+ threshold: number;
931
+ };
932
+ };
933
+ context: {
934
+ type: "MARKET";
935
+ legs: [{
936
+ symbol: string;
937
+ side: "BUY" | "SELL";
938
+ mode: "QUANTITY" | "USD";
939
+ amount: string;
940
+ }, ...{
941
+ symbol: string;
942
+ side: "BUY" | "SELL";
943
+ mode: "QUANTITY" | "USD";
944
+ amount: string;
945
+ }[]];
946
+ attachedTriggers: {
947
+ kind: "STATIC" | "TRAILING";
948
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT";
949
+ }[];
950
+ };
951
+ ladderId?: string | undefined;
952
+ ladderIndex?: number | undefined;
953
+ triggeredAt?: string | undefined;
954
+ cancelledAt?: string | undefined;
955
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
956
+ fills?: {
957
+ id: string;
958
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
959
+ tradeAccountId: string;
960
+ symbol: string;
961
+ positionId: string;
962
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
963
+ side: "BUY" | "SELL";
964
+ reduceOnly: boolean;
965
+ isExternal: boolean;
966
+ quantity: string;
967
+ price: string;
968
+ usd: string;
969
+ timestamp: string;
970
+ cloid?: string | undefined;
971
+ exchangeFillId?: string | undefined;
972
+ tradeFee?: string | undefined;
973
+ pearFee?: string | undefined;
974
+ original?: {
975
+ exchangeFillId: string;
976
+ quantity: string;
977
+ } | undefined;
978
+ }[] | undefined;
979
+ } | {
980
+ id: string;
981
+ tradeAccountId: string;
982
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
983
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
984
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
985
+ createdAt: string;
986
+ updatedAt: string;
987
+ intent: "ADJUST";
988
+ type: "MARKET";
989
+ condition: {
990
+ type: "ratio";
991
+ data: {
992
+ priceSource: "mark" | "mid";
993
+ symbol_a: string;
994
+ symbol_b: string;
995
+ track: "PEAK" | "TROUGH";
996
+ threshold: number;
997
+ };
998
+ } | {
999
+ type: "price";
1000
+ data: {
1001
+ priceSource: "mark" | "mid";
1002
+ symbol: string;
1003
+ track: "PEAK" | "TROUGH";
1004
+ threshold: number;
1005
+ };
1006
+ } | {
1007
+ type: "weighted_ratio";
1008
+ data: {
1009
+ priceSource: "mark" | "mid";
1010
+ basket: {
1011
+ symbol: string;
1012
+ side: "BUY" | "SELL";
1013
+ weight: number;
1014
+ }[];
1015
+ track: "PEAK" | "TROUGH";
1016
+ threshold: number;
1017
+ };
1018
+ } | {
1019
+ type: "notional";
1020
+ data: {
1021
+ priceSource: "mark" | "mid";
1022
+ track: "PEAK" | "TROUGH";
1023
+ threshold: number;
1024
+ };
1025
+ } | {
1026
+ type: "upnl";
1027
+ data: {
1028
+ priceSource: "mark" | "mid";
1029
+ track: "PEAK" | "TROUGH";
1030
+ threshold: number;
1031
+ };
1032
+ } | {
1033
+ type: "upnl_bps";
1034
+ data: {
1035
+ priceSource: "mark" | "mid";
1036
+ track: "PEAK" | "TROUGH";
1037
+ threshold: number;
1038
+ };
1039
+ } | {
1040
+ type: "funding_rate";
1041
+ data: {
1042
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1043
+ symbol: string;
1044
+ track: "PEAK" | "TROUGH";
1045
+ threshold: number;
1046
+ };
1047
+ } | {
1048
+ type: "prediction_market";
1049
+ data: {
1050
+ source: "kalshi" | "polymarket";
1051
+ marketKey: string;
1052
+ track: "PEAK" | "TROUGH";
1053
+ threshold: number;
1054
+ };
1055
+ } | {
1056
+ type: "btc_dominance";
1057
+ data: {
1058
+ source: "coingecko";
1059
+ track: "PEAK" | "TROUGH";
1060
+ threshold: number;
1061
+ };
1062
+ };
1063
+ context: {
1064
+ type: "MARKET";
1065
+ position: {
1066
+ id: string;
1067
+ initialExposure: Record<string, `-${string}` | `+${string}`>;
1068
+ };
1069
+ legs: [{
1070
+ symbol: string;
1071
+ side: "BUY" | "SELL";
1072
+ mode: "QUANTITY" | "USD";
1073
+ amount: string;
1074
+ reduceOnly: boolean;
1075
+ }, ...{
1076
+ symbol: string;
1077
+ side: "BUY" | "SELL";
1078
+ mode: "QUANTITY" | "USD";
1079
+ amount: string;
1080
+ reduceOnly: boolean;
1081
+ }[]];
1082
+ };
1083
+ ladderId?: string | undefined;
1084
+ ladderIndex?: number | undefined;
1085
+ triggeredAt?: string | undefined;
1086
+ cancelledAt?: string | undefined;
1087
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
1088
+ fills?: {
1089
+ id: string;
1090
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
1091
+ tradeAccountId: string;
1092
+ symbol: string;
1093
+ positionId: string;
1094
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1095
+ side: "BUY" | "SELL";
1096
+ reduceOnly: boolean;
1097
+ isExternal: boolean;
1098
+ quantity: string;
1099
+ price: string;
1100
+ usd: string;
1101
+ timestamp: string;
1102
+ cloid?: string | undefined;
1103
+ exchangeFillId?: string | undefined;
1104
+ tradeFee?: string | undefined;
1105
+ pearFee?: string | undefined;
1106
+ original?: {
1107
+ exchangeFillId: string;
1108
+ quantity: string;
1109
+ } | undefined;
1110
+ }[] | undefined;
1111
+ trailing?: {
1112
+ mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
1113
+ deltaValue: number;
1114
+ activationValue?: number | undefined;
1115
+ bestMetricSeen?: number | undefined;
1116
+ currentStopValue?: number | undefined;
1117
+ stopBreachedAt?: number | undefined;
1118
+ } | undefined;
1119
+ } | {
1120
+ id: string;
1121
+ tradeAccountId: string;
1122
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1123
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
1124
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
1125
+ createdAt: string;
1126
+ updatedAt: string;
1127
+ intent: "CLOSE";
1128
+ type: "MARKET";
1129
+ condition: {
1130
+ type: "ratio";
1131
+ data: {
1132
+ priceSource: "mark" | "mid";
1133
+ symbol_a: string;
1134
+ symbol_b: string;
1135
+ track: "PEAK" | "TROUGH";
1136
+ threshold: number;
1137
+ };
1138
+ } | {
1139
+ type: "price";
1140
+ data: {
1141
+ priceSource: "mark" | "mid";
1142
+ symbol: string;
1143
+ track: "PEAK" | "TROUGH";
1144
+ threshold: number;
1145
+ };
1146
+ } | {
1147
+ type: "weighted_ratio";
1148
+ data: {
1149
+ priceSource: "mark" | "mid";
1150
+ basket: {
1151
+ symbol: string;
1152
+ side: "BUY" | "SELL";
1153
+ weight: number;
1154
+ }[];
1155
+ track: "PEAK" | "TROUGH";
1156
+ threshold: number;
1157
+ };
1158
+ } | {
1159
+ type: "notional";
1160
+ data: {
1161
+ priceSource: "mark" | "mid";
1162
+ track: "PEAK" | "TROUGH";
1163
+ threshold: number;
1164
+ };
1165
+ } | {
1166
+ type: "upnl";
1167
+ data: {
1168
+ priceSource: "mark" | "mid";
1169
+ track: "PEAK" | "TROUGH";
1170
+ threshold: number;
1171
+ };
1172
+ } | {
1173
+ type: "upnl_bps";
1174
+ data: {
1175
+ priceSource: "mark" | "mid";
1176
+ track: "PEAK" | "TROUGH";
1177
+ threshold: number;
1178
+ };
1179
+ } | {
1180
+ type: "ratio_trailing";
1181
+ data: {
1182
+ priceSource: "mark" | "mid";
1183
+ symbol_a: string;
1184
+ symbol_b: string;
1185
+ };
1186
+ } | {
1187
+ type: "price_trailing";
1188
+ data: {
1189
+ priceSource: "mark" | "mid";
1190
+ symbol: string;
1191
+ };
1192
+ } | {
1193
+ type: "weighted_ratio_trailing";
1194
+ data: {
1195
+ priceSource: "mark" | "mid";
1196
+ basket: {
1197
+ symbol: string;
1198
+ side: "BUY" | "SELL";
1199
+ weight: number;
1200
+ }[];
1201
+ };
1202
+ } | {
1203
+ type: "notional_trailing";
1204
+ data: {
1205
+ priceSource: "mark" | "mid";
1206
+ };
1207
+ } | {
1208
+ type: "upnl_trailing";
1209
+ data: {
1210
+ priceSource: "mark" | "mid";
1211
+ };
1212
+ } | {
1213
+ type: "upnl_bps_trailing";
1214
+ data: {
1215
+ priceSource: "mark" | "mid";
1216
+ };
1217
+ } | {
1218
+ type: "funding_rate";
1219
+ data: {
1220
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1221
+ symbol: string;
1222
+ track: "PEAK" | "TROUGH";
1223
+ threshold: number;
1224
+ };
1225
+ } | {
1226
+ type: "prediction_market";
1227
+ data: {
1228
+ source: "kalshi" | "polymarket";
1229
+ marketKey: string;
1230
+ track: "PEAK" | "TROUGH";
1231
+ threshold: number;
1232
+ };
1233
+ } | {
1234
+ type: "btc_dominance";
1235
+ data: {
1236
+ source: "coingecko";
1237
+ track: "PEAK" | "TROUGH";
1238
+ threshold: number;
1239
+ };
1240
+ };
1241
+ context: {
1242
+ type: "MARKET";
1243
+ position: {
1244
+ id: string;
1245
+ initialExposure: Record<string, `-${string}` | `+${string}`>;
1246
+ };
1247
+ };
1248
+ ladderId?: string | undefined;
1249
+ ladderIndex?: number | undefined;
1250
+ triggeredAt?: string | undefined;
1251
+ cancelledAt?: string | undefined;
1252
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
1253
+ fills?: {
1254
+ id: string;
1255
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
1256
+ tradeAccountId: string;
1257
+ symbol: string;
1258
+ positionId: string;
1259
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1260
+ side: "BUY" | "SELL";
1261
+ reduceOnly: boolean;
1262
+ isExternal: boolean;
1263
+ quantity: string;
1264
+ price: string;
1265
+ usd: string;
1266
+ timestamp: string;
1267
+ cloid?: string | undefined;
1268
+ exchangeFillId?: string | undefined;
1269
+ tradeFee?: string | undefined;
1270
+ pearFee?: string | undefined;
1271
+ original?: {
1272
+ exchangeFillId: string;
1273
+ quantity: string;
1274
+ } | undefined;
1275
+ }[] | undefined;
1276
+ trailing?: {
1277
+ mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
1278
+ deltaValue: number;
1279
+ activationValue?: number | undefined;
1280
+ bestMetricSeen?: number | undefined;
1281
+ currentStopValue?: number | undefined;
1282
+ stopBreachedAt?: number | undefined;
1283
+ } | undefined;
1284
+ })[];
1285
+ createdAt: string;
1286
+ updatedAt: string;
1287
+ };
1288
+ }>;
1289
+ get: (ladderId: string, headers?: ClientHeaders) => Promise<{
1290
+ ladder: {
1291
+ id: string;
1292
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1293
+ positionKey: string;
1294
+ config: {
1295
+ thresholdStart: number;
1296
+ thresholdEnd: number;
1297
+ levels: number;
1298
+ weighting: "EQUAL";
1299
+ };
1300
+ status: "CANCELLED" | "ACTIVE" | "COMPLETED";
1301
+ triggers: ({
1302
+ id: string;
1303
+ tradeAccountId: string;
1304
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1305
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
1306
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
1307
+ createdAt: string;
1308
+ updatedAt: string;
1309
+ intent: "OPEN";
1310
+ type: "MARKET";
1311
+ condition: {
1312
+ type: "ratio";
1313
+ data: {
1314
+ priceSource: "mark" | "mid";
1315
+ symbol_a: string;
1316
+ symbol_b: string;
1317
+ track: "PEAK" | "TROUGH";
1318
+ threshold: number;
1319
+ };
1320
+ } | {
1321
+ type: "price";
1322
+ data: {
1323
+ priceSource: "mark" | "mid";
1324
+ symbol: string;
1325
+ track: "PEAK" | "TROUGH";
1326
+ threshold: number;
1327
+ };
1328
+ } | {
1329
+ type: "weighted_ratio";
1330
+ data: {
1331
+ priceSource: "mark" | "mid";
1332
+ basket: {
1333
+ symbol: string;
1334
+ side: "BUY" | "SELL";
1335
+ weight: number;
1336
+ }[];
1337
+ track: "PEAK" | "TROUGH";
1338
+ threshold: number;
1339
+ };
1340
+ } | {
1341
+ type: "funding_rate";
1342
+ data: {
1343
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1344
+ symbol: string;
1345
+ track: "PEAK" | "TROUGH";
1346
+ threshold: number;
1347
+ };
1348
+ } | {
1349
+ type: "prediction_market";
1350
+ data: {
1351
+ source: "kalshi" | "polymarket";
1352
+ marketKey: string;
1353
+ track: "PEAK" | "TROUGH";
1354
+ threshold: number;
1355
+ };
1356
+ } | {
1357
+ type: "btc_dominance";
1358
+ data: {
1359
+ source: "coingecko";
1360
+ track: "PEAK" | "TROUGH";
1361
+ threshold: number;
1362
+ };
1363
+ };
1364
+ context: {
1365
+ type: "MARKET";
1366
+ legs: [{
1367
+ symbol: string;
1368
+ side: "BUY" | "SELL";
1369
+ mode: "QUANTITY" | "USD";
1370
+ amount: string;
1371
+ }, ...{
1372
+ symbol: string;
1373
+ side: "BUY" | "SELL";
1374
+ mode: "QUANTITY" | "USD";
1375
+ amount: string;
1376
+ }[]];
1377
+ attachedTriggers: {
1378
+ kind: "STATIC" | "TRAILING";
1379
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT";
1380
+ }[];
1381
+ };
1382
+ ladderId?: string | undefined;
1383
+ ladderIndex?: number | undefined;
1384
+ triggeredAt?: string | undefined;
1385
+ cancelledAt?: string | undefined;
1386
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
1387
+ fills?: {
1388
+ id: string;
1389
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
1390
+ tradeAccountId: string;
1391
+ symbol: string;
1392
+ positionId: string;
1393
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1394
+ side: "BUY" | "SELL";
1395
+ reduceOnly: boolean;
1396
+ isExternal: boolean;
1397
+ quantity: string;
1398
+ price: string;
1399
+ usd: string;
1400
+ timestamp: string;
1401
+ cloid?: string | undefined;
1402
+ exchangeFillId?: string | undefined;
1403
+ tradeFee?: string | undefined;
1404
+ pearFee?: string | undefined;
1405
+ original?: {
1406
+ exchangeFillId: string;
1407
+ quantity: string;
1408
+ } | undefined;
1409
+ }[] | undefined;
1410
+ } | {
1411
+ id: string;
1412
+ tradeAccountId: string;
1413
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1414
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
1415
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
1416
+ createdAt: string;
1417
+ updatedAt: string;
1418
+ intent: "ADJUST";
1419
+ type: "MARKET";
1420
+ condition: {
1421
+ type: "ratio";
1422
+ data: {
1423
+ priceSource: "mark" | "mid";
1424
+ symbol_a: string;
1425
+ symbol_b: string;
1426
+ track: "PEAK" | "TROUGH";
1427
+ threshold: number;
1428
+ };
1429
+ } | {
1430
+ type: "price";
1431
+ data: {
1432
+ priceSource: "mark" | "mid";
1433
+ symbol: string;
1434
+ track: "PEAK" | "TROUGH";
1435
+ threshold: number;
1436
+ };
1437
+ } | {
1438
+ type: "weighted_ratio";
1439
+ data: {
1440
+ priceSource: "mark" | "mid";
1441
+ basket: {
1442
+ symbol: string;
1443
+ side: "BUY" | "SELL";
1444
+ weight: number;
1445
+ }[];
1446
+ track: "PEAK" | "TROUGH";
1447
+ threshold: number;
1448
+ };
1449
+ } | {
1450
+ type: "notional";
1451
+ data: {
1452
+ priceSource: "mark" | "mid";
1453
+ track: "PEAK" | "TROUGH";
1454
+ threshold: number;
1455
+ };
1456
+ } | {
1457
+ type: "upnl";
1458
+ data: {
1459
+ priceSource: "mark" | "mid";
1460
+ track: "PEAK" | "TROUGH";
1461
+ threshold: number;
1462
+ };
1463
+ } | {
1464
+ type: "upnl_bps";
1465
+ data: {
1466
+ priceSource: "mark" | "mid";
1467
+ track: "PEAK" | "TROUGH";
1468
+ threshold: number;
1469
+ };
1470
+ } | {
1471
+ type: "funding_rate";
1472
+ data: {
1473
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1474
+ symbol: string;
1475
+ track: "PEAK" | "TROUGH";
1476
+ threshold: number;
1477
+ };
1478
+ } | {
1479
+ type: "prediction_market";
1480
+ data: {
1481
+ source: "kalshi" | "polymarket";
1482
+ marketKey: string;
1483
+ track: "PEAK" | "TROUGH";
1484
+ threshold: number;
1485
+ };
1486
+ } | {
1487
+ type: "btc_dominance";
1488
+ data: {
1489
+ source: "coingecko";
1490
+ track: "PEAK" | "TROUGH";
1491
+ threshold: number;
1492
+ };
1493
+ };
1494
+ context: {
1495
+ type: "MARKET";
1496
+ position: {
1497
+ id: string;
1498
+ initialExposure: Record<string, `-${string}` | `+${string}`>;
1499
+ };
1500
+ legs: [{
1501
+ symbol: string;
1502
+ side: "BUY" | "SELL";
1503
+ mode: "QUANTITY" | "USD";
1504
+ amount: string;
1505
+ reduceOnly: boolean;
1506
+ }, ...{
1507
+ symbol: string;
1508
+ side: "BUY" | "SELL";
1509
+ mode: "QUANTITY" | "USD";
1510
+ amount: string;
1511
+ reduceOnly: boolean;
1512
+ }[]];
1513
+ };
1514
+ ladderId?: string | undefined;
1515
+ ladderIndex?: number | undefined;
1516
+ triggeredAt?: string | undefined;
1517
+ cancelledAt?: string | undefined;
1518
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
1519
+ fills?: {
1520
+ id: string;
1521
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
1522
+ tradeAccountId: string;
1523
+ symbol: string;
1524
+ positionId: string;
1525
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1526
+ side: "BUY" | "SELL";
1527
+ reduceOnly: boolean;
1528
+ isExternal: boolean;
1529
+ quantity: string;
1530
+ price: string;
1531
+ usd: string;
1532
+ timestamp: string;
1533
+ cloid?: string | undefined;
1534
+ exchangeFillId?: string | undefined;
1535
+ tradeFee?: string | undefined;
1536
+ pearFee?: string | undefined;
1537
+ original?: {
1538
+ exchangeFillId: string;
1539
+ quantity: string;
1540
+ } | undefined;
1541
+ }[] | undefined;
1542
+ trailing?: {
1543
+ mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
1544
+ deltaValue: number;
1545
+ activationValue?: number | undefined;
1546
+ bestMetricSeen?: number | undefined;
1547
+ currentStopValue?: number | undefined;
1548
+ stopBreachedAt?: number | undefined;
1549
+ } | undefined;
1550
+ } | {
1551
+ id: string;
1552
+ tradeAccountId: string;
1553
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1554
+ status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
1555
+ bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
1556
+ createdAt: string;
1557
+ updatedAt: string;
1558
+ intent: "CLOSE";
1559
+ type: "MARKET";
1560
+ condition: {
1561
+ type: "ratio";
1562
+ data: {
1563
+ priceSource: "mark" | "mid";
1564
+ symbol_a: string;
1565
+ symbol_b: string;
1566
+ track: "PEAK" | "TROUGH";
1567
+ threshold: number;
1568
+ };
1569
+ } | {
1570
+ type: "price";
1571
+ data: {
1572
+ priceSource: "mark" | "mid";
1573
+ symbol: string;
1574
+ track: "PEAK" | "TROUGH";
1575
+ threshold: number;
1576
+ };
1577
+ } | {
1578
+ type: "weighted_ratio";
1579
+ data: {
1580
+ priceSource: "mark" | "mid";
1581
+ basket: {
1582
+ symbol: string;
1583
+ side: "BUY" | "SELL";
1584
+ weight: number;
1585
+ }[];
1586
+ track: "PEAK" | "TROUGH";
1587
+ threshold: number;
1588
+ };
1589
+ } | {
1590
+ type: "notional";
1591
+ data: {
1592
+ priceSource: "mark" | "mid";
1593
+ track: "PEAK" | "TROUGH";
1594
+ threshold: number;
1595
+ };
1596
+ } | {
1597
+ type: "upnl";
1598
+ data: {
1599
+ priceSource: "mark" | "mid";
1600
+ track: "PEAK" | "TROUGH";
1601
+ threshold: number;
1602
+ };
1603
+ } | {
1604
+ type: "upnl_bps";
1605
+ data: {
1606
+ priceSource: "mark" | "mid";
1607
+ track: "PEAK" | "TROUGH";
1608
+ threshold: number;
1609
+ };
1610
+ } | {
1611
+ type: "ratio_trailing";
1612
+ data: {
1613
+ priceSource: "mark" | "mid";
1614
+ symbol_a: string;
1615
+ symbol_b: string;
1616
+ };
1617
+ } | {
1618
+ type: "price_trailing";
1619
+ data: {
1620
+ priceSource: "mark" | "mid";
1621
+ symbol: string;
1622
+ };
1623
+ } | {
1624
+ type: "weighted_ratio_trailing";
1625
+ data: {
1626
+ priceSource: "mark" | "mid";
1627
+ basket: {
1628
+ symbol: string;
1629
+ side: "BUY" | "SELL";
1630
+ weight: number;
1631
+ }[];
1632
+ };
1633
+ } | {
1634
+ type: "notional_trailing";
1635
+ data: {
1636
+ priceSource: "mark" | "mid";
1637
+ };
1638
+ } | {
1639
+ type: "upnl_trailing";
1640
+ data: {
1641
+ priceSource: "mark" | "mid";
1642
+ };
1643
+ } | {
1644
+ type: "upnl_bps_trailing";
1645
+ data: {
1646
+ priceSource: "mark" | "mid";
1647
+ };
1648
+ } | {
1649
+ type: "funding_rate";
1650
+ data: {
1651
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1652
+ symbol: string;
1653
+ track: "PEAK" | "TROUGH";
1654
+ threshold: number;
1655
+ };
1656
+ } | {
1657
+ type: "prediction_market";
1658
+ data: {
1659
+ source: "kalshi" | "polymarket";
1660
+ marketKey: string;
1661
+ track: "PEAK" | "TROUGH";
1662
+ threshold: number;
1663
+ };
1664
+ } | {
1665
+ type: "btc_dominance";
1666
+ data: {
1667
+ source: "coingecko";
1668
+ track: "PEAK" | "TROUGH";
1669
+ threshold: number;
1670
+ };
1671
+ };
1672
+ context: {
1673
+ type: "MARKET";
1674
+ position: {
1675
+ id: string;
1676
+ initialExposure: Record<string, `-${string}` | `+${string}`>;
1677
+ };
1678
+ };
1679
+ ladderId?: string | undefined;
1680
+ ladderIndex?: number | undefined;
1681
+ triggeredAt?: string | undefined;
1682
+ cancelledAt?: string | undefined;
1683
+ cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
1684
+ fills?: {
1685
+ id: string;
1686
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
1687
+ tradeAccountId: string;
1688
+ symbol: string;
1689
+ positionId: string;
1690
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
1691
+ side: "BUY" | "SELL";
1692
+ reduceOnly: boolean;
1693
+ isExternal: boolean;
1694
+ quantity: string;
1695
+ price: string;
1696
+ usd: string;
1697
+ timestamp: string;
1698
+ cloid?: string | undefined;
1699
+ exchangeFillId?: string | undefined;
1700
+ tradeFee?: string | undefined;
1701
+ pearFee?: string | undefined;
1702
+ original?: {
1703
+ exchangeFillId: string;
1704
+ quantity: string;
1705
+ } | undefined;
1706
+ }[] | undefined;
1707
+ trailing?: {
1708
+ mode: "RELATIVE_BPS" | "ABSOLUTE_POINTS";
1709
+ deltaValue: number;
1710
+ activationValue?: number | undefined;
1711
+ bestMetricSeen?: number | undefined;
1712
+ currentStopValue?: number | undefined;
1713
+ stopBreachedAt?: number | undefined;
1714
+ } | undefined;
1715
+ })[];
1716
+ createdAt: string;
1717
+ updatedAt: string;
1718
+ };
1719
+ }>;
1720
+ cancel: (ladderId: string, headers?: ClientHeaders) => Promise<{
1721
+ id: string;
1722
+ }>;
1723
+ };
424
1724
  instruments: {
425
1725
  list: (query: HttpTypes.InstrumentListParamsInput, headers?: ClientHeaders) => Promise<{
426
1726
  instruments: {
@@ -566,7 +1866,7 @@ declare class Core {
566
1866
  initialExposureUSD: Record<string, `-${string}` | `+${string}`>;
567
1867
  createdAt: string;
568
1868
  updatedAt: string;
569
- closedReason?: "NETTED" | "USER" | "LIQUIDATED" | null | undefined;
1869
+ closedReason?: "USER" | "NETTED" | "LIQUIDATED" | null | undefined;
570
1870
  closedAt?: string | null | undefined;
571
1871
  }[];
572
1872
  }>;
@@ -767,6 +2067,60 @@ declare class Core {
767
2067
  };
768
2068
  }>;
769
2069
  };
2070
+ savedBaskets: {
2071
+ list: (headers?: ClientHeaders) => Promise<{
2072
+ baskets: {
2073
+ id: string;
2074
+ name: string;
2075
+ legs: [{
2076
+ symbol: string;
2077
+ side: "BUY" | "SELL";
2078
+ weight: number;
2079
+ }, ...{
2080
+ symbol: string;
2081
+ side: "BUY" | "SELL";
2082
+ weight: number;
2083
+ }[]];
2084
+ createdAt: string;
2085
+ updatedAt: string;
2086
+ }[];
2087
+ }>;
2088
+ create: (body: HttpTypes.CreateSavedBasketPayload, headers?: ClientHeaders) => Promise<{
2089
+ basket: {
2090
+ id: string;
2091
+ name: string;
2092
+ legs: [{
2093
+ symbol: string;
2094
+ side: "BUY" | "SELL";
2095
+ weight: number;
2096
+ }, ...{
2097
+ symbol: string;
2098
+ side: "BUY" | "SELL";
2099
+ weight: number;
2100
+ }[]];
2101
+ createdAt: string;
2102
+ updatedAt: string;
2103
+ };
2104
+ }>;
2105
+ update: (id: string, body: HttpTypes.UpdateSavedBasketPayload, headers?: ClientHeaders) => Promise<{
2106
+ basket: {
2107
+ id: string;
2108
+ name: string;
2109
+ legs: [{
2110
+ symbol: string;
2111
+ side: "BUY" | "SELL";
2112
+ weight: number;
2113
+ }, ...{
2114
+ symbol: string;
2115
+ side: "BUY" | "SELL";
2116
+ weight: number;
2117
+ }[]];
2118
+ createdAt: string;
2119
+ updatedAt: string;
2120
+ };
2121
+ }>;
2122
+ delete: (id: string, headers?: ClientHeaders) => Promise<void>;
2123
+ };
770
2124
  schedules: {
771
2125
  list: (query: HttpTypes.ScheduleListParamsInput, headers?: ClientHeaders) => Promise<{
772
2126
  limit: number;
@@ -1791,6 +3145,8 @@ declare class Core {
1791
3145
  bracketType: "STOP_LOSS" | "TAKE_PROFIT";
1792
3146
  }[];
1793
3147
  };
3148
+ ladderId?: string | undefined;
3149
+ ladderIndex?: number | undefined;
1794
3150
  triggeredAt?: string | undefined;
1795
3151
  cancelledAt?: string | undefined;
1796
3152
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -1921,6 +3277,8 @@ declare class Core {
1921
3277
  reduceOnly: boolean;
1922
3278
  }[]];
1923
3279
  };
3280
+ ladderId?: string | undefined;
3281
+ ladderIndex?: number | undefined;
1924
3282
  triggeredAt?: string | undefined;
1925
3283
  cancelledAt?: string | undefined;
1926
3284
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2084,6 +3442,8 @@ declare class Core {
2084
3442
  initialExposure: Record<string, `-${string}` | `+${string}`>;
2085
3443
  };
2086
3444
  };
3445
+ ladderId?: string | undefined;
3446
+ ladderIndex?: number | undefined;
2087
3447
  triggeredAt?: string | undefined;
2088
3448
  cancelledAt?: string | undefined;
2089
3449
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2202,6 +3562,8 @@ declare class Core {
2202
3562
  bracketType: "STOP_LOSS" | "TAKE_PROFIT";
2203
3563
  }[];
2204
3564
  };
3565
+ ladderId?: string | undefined;
3566
+ ladderIndex?: number | undefined;
2205
3567
  triggeredAt?: string | undefined;
2206
3568
  cancelledAt?: string | undefined;
2207
3569
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2332,6 +3694,8 @@ declare class Core {
2332
3694
  reduceOnly: boolean;
2333
3695
  }[]];
2334
3696
  };
3697
+ ladderId?: string | undefined;
3698
+ ladderIndex?: number | undefined;
2335
3699
  triggeredAt?: string | undefined;
2336
3700
  cancelledAt?: string | undefined;
2337
3701
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2495,6 +3859,8 @@ declare class Core {
2495
3859
  initialExposure: Record<string, `-${string}` | `+${string}`>;
2496
3860
  };
2497
3861
  };
3862
+ ladderId?: string | undefined;
3863
+ ladderIndex?: number | undefined;
2498
3864
  triggeredAt?: string | undefined;
2499
3865
  cancelledAt?: string | undefined;
2500
3866
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2613,6 +3979,8 @@ declare class Core {
2613
3979
  bracketType: "STOP_LOSS" | "TAKE_PROFIT";
2614
3980
  }[];
2615
3981
  };
3982
+ ladderId?: string | undefined;
3983
+ ladderIndex?: number | undefined;
2616
3984
  triggeredAt?: string | undefined;
2617
3985
  cancelledAt?: string | undefined;
2618
3986
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2743,6 +4111,8 @@ declare class Core {
2743
4111
  reduceOnly: boolean;
2744
4112
  }[]];
2745
4113
  };
4114
+ ladderId?: string | undefined;
4115
+ ladderIndex?: number | undefined;
2746
4116
  triggeredAt?: string | undefined;
2747
4117
  cancelledAt?: string | undefined;
2748
4118
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;
@@ -2906,6 +4276,8 @@ declare class Core {
2906
4276
  initialExposure: Record<string, `-${string}` | `+${string}`>;
2907
4277
  };
2908
4278
  };
4279
+ ladderId?: string | undefined;
4280
+ ladderIndex?: number | undefined;
2909
4281
  triggeredAt?: string | undefined;
2910
4282
  cancelledAt?: string | undefined;
2911
4283
  cancelledReason?: "USER" | "POSITION_CLOSED" | "SYSTEM" | "POSITION_NETTED" | "POSITION_REVERSED" | undefined;