@pear-protocol/core-sdk 2.17.0 → 2.19.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.
@@ -2568,14 +2568,14 @@ declare class Core {
2568
2568
  maxImpactPrice?: string | undefined;
2569
2569
  }[]];
2570
2570
  error?: string | undefined;
2571
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
2571
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2572
2572
  refusedLegs?: {
2573
2573
  id: string;
2574
2574
  ticker: string;
2575
2575
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2576
2576
  error: string;
2577
2577
  }[] | undefined;
2578
- orders?: {
2578
+ orders?: ({
2579
2579
  id: string;
2580
2580
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2581
2581
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2591,7 +2591,22 @@ declare class Core {
2591
2591
  error?: string | undefined;
2592
2592
  errorCode?: string | undefined;
2593
2593
  filledPrice?: string | undefined;
2594
- }[] | undefined;
2594
+ } | {
2595
+ id: string;
2596
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2597
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2598
+ createdAt: string;
2599
+ updatedAt: string;
2600
+ type: "RESTING";
2601
+ symbol: string;
2602
+ side: "BUY" | "SELL";
2603
+ reduceOnly: boolean;
2604
+ quantity: string;
2605
+ price: string;
2606
+ filledQuantity: string;
2607
+ error?: string | undefined;
2608
+ errorCode?: string | undefined;
2609
+ })[] | undefined;
2595
2610
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2596
2611
  position?: {
2597
2612
  id: string;
@@ -2622,14 +2637,14 @@ declare class Core {
2622
2637
  maxImpactPrice?: string | undefined;
2623
2638
  }[]];
2624
2639
  error?: string | undefined;
2625
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
2640
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2626
2641
  refusedLegs?: {
2627
2642
  id: string;
2628
2643
  ticker: string;
2629
2644
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2630
2645
  error: string;
2631
2646
  }[] | undefined;
2632
- orders?: {
2647
+ orders?: ({
2633
2648
  id: string;
2634
2649
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2635
2650
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2645,7 +2660,22 @@ declare class Core {
2645
2660
  error?: string | undefined;
2646
2661
  errorCode?: string | undefined;
2647
2662
  filledPrice?: string | undefined;
2648
- }[] | undefined;
2663
+ } | {
2664
+ id: string;
2665
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2666
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2667
+ createdAt: string;
2668
+ updatedAt: string;
2669
+ type: "RESTING";
2670
+ symbol: string;
2671
+ side: "BUY" | "SELL";
2672
+ reduceOnly: boolean;
2673
+ quantity: string;
2674
+ price: string;
2675
+ filledQuantity: string;
2676
+ error?: string | undefined;
2677
+ errorCode?: string | undefined;
2678
+ })[] | undefined;
2649
2679
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2650
2680
  position?: {
2651
2681
  id: string;
@@ -2660,14 +2690,14 @@ declare class Core {
2660
2690
  intent: "CLOSE";
2661
2691
  orderType: "MARKET";
2662
2692
  error?: string | undefined;
2663
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
2693
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2664
2694
  refusedLegs?: {
2665
2695
  id: string;
2666
2696
  ticker: string;
2667
2697
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2668
2698
  error: string;
2669
2699
  }[] | undefined;
2670
- orders?: {
2700
+ orders?: ({
2671
2701
  id: string;
2672
2702
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2673
2703
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2683,7 +2713,22 @@ declare class Core {
2683
2713
  error?: string | undefined;
2684
2714
  errorCode?: string | undefined;
2685
2715
  filledPrice?: string | undefined;
2686
- }[] | undefined;
2716
+ } | {
2717
+ id: string;
2718
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2719
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2720
+ createdAt: string;
2721
+ updatedAt: string;
2722
+ type: "RESTING";
2723
+ symbol: string;
2724
+ side: "BUY" | "SELL";
2725
+ reduceOnly: boolean;
2726
+ quantity: string;
2727
+ price: string;
2728
+ filledQuantity: string;
2729
+ error?: string | undefined;
2730
+ errorCode?: string | undefined;
2731
+ })[] | undefined;
2687
2732
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2688
2733
  position?: {
2689
2734
  id: string;
@@ -2698,14 +2743,14 @@ declare class Core {
2698
2743
  intent: "REVERSE";
2699
2744
  orderType: "MARKET";
2700
2745
  error?: string | undefined;
2701
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
2746
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2702
2747
  refusedLegs?: {
2703
2748
  id: string;
2704
2749
  ticker: string;
2705
2750
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2706
2751
  error: string;
2707
2752
  }[] | undefined;
2708
- orders?: {
2753
+ orders?: ({
2709
2754
  id: string;
2710
2755
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2711
2756
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2721,12 +2766,141 @@ declare class Core {
2721
2766
  error?: string | undefined;
2722
2767
  errorCode?: string | undefined;
2723
2768
  filledPrice?: string | undefined;
2724
- }[] | undefined;
2769
+ } | {
2770
+ id: string;
2771
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2772
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2773
+ createdAt: string;
2774
+ updatedAt: string;
2775
+ type: "RESTING";
2776
+ symbol: string;
2777
+ side: "BUY" | "SELL";
2778
+ reduceOnly: boolean;
2779
+ quantity: string;
2780
+ price: string;
2781
+ filledQuantity: string;
2782
+ error?: string | undefined;
2783
+ errorCode?: string | undefined;
2784
+ })[] | undefined;
2725
2785
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2726
2786
  position?: {
2727
2787
  id: string;
2728
2788
  exposure: Record<string, `-${string}` | `+${string}`>;
2729
2789
  } | undefined;
2790
+ } | {
2791
+ id: string;
2792
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2793
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
2794
+ createdAt: string;
2795
+ updatedAt: string;
2796
+ intent: "OPEN";
2797
+ orderType: "CHASE_LIMIT";
2798
+ legs: [{
2799
+ symbol: string;
2800
+ side: "BUY" | "SELL";
2801
+ mode: "QUANTITY" | "USD";
2802
+ amount: string;
2803
+ reduceOnly: boolean;
2804
+ id?: string | undefined;
2805
+ maxImpactPrice?: string | undefined;
2806
+ }, ...{
2807
+ symbol: string;
2808
+ side: "BUY" | "SELL";
2809
+ mode: "QUANTITY" | "USD";
2810
+ amount: string;
2811
+ reduceOnly: boolean;
2812
+ id?: string | undefined;
2813
+ maxImpactPrice?: string | undefined;
2814
+ }[]];
2815
+ error?: string | undefined;
2816
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2817
+ refusedLegs?: {
2818
+ id: string;
2819
+ ticker: string;
2820
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2821
+ error: string;
2822
+ }[] | undefined;
2823
+ orders?: ({
2824
+ id: string;
2825
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2826
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2827
+ createdAt: string;
2828
+ updatedAt: string;
2829
+ type: "MARKET";
2830
+ symbol: string;
2831
+ side: "BUY" | "SELL";
2832
+ reduceOnly: boolean;
2833
+ quantity: string;
2834
+ price: string;
2835
+ filledQuantity: string;
2836
+ error?: string | undefined;
2837
+ errorCode?: string | undefined;
2838
+ filledPrice?: string | undefined;
2839
+ } | {
2840
+ id: string;
2841
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2842
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2843
+ createdAt: string;
2844
+ updatedAt: string;
2845
+ type: "RESTING";
2846
+ symbol: string;
2847
+ side: "BUY" | "SELL";
2848
+ reduceOnly: boolean;
2849
+ quantity: string;
2850
+ price: string;
2851
+ filledQuantity: string;
2852
+ error?: string | undefined;
2853
+ errorCode?: string | undefined;
2854
+ })[] | undefined;
2855
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2856
+ position?: {
2857
+ id: string;
2858
+ } | undefined;
2859
+ deadlineAt?: string | undefined;
2860
+ chaseOrders?: {
2861
+ id: string;
2862
+ executionId: string;
2863
+ instrumentId: string;
2864
+ side: "BUY" | "SELL";
2865
+ quantity: string;
2866
+ filledQuantity: string;
2867
+ makerFilledQuantity: string;
2868
+ takerFilledQuantity: string;
2869
+ attempts: ({
2870
+ id: string;
2871
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2872
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2873
+ createdAt: string;
2874
+ updatedAt: string;
2875
+ type: "MARKET";
2876
+ symbol: string;
2877
+ side: "BUY" | "SELL";
2878
+ reduceOnly: boolean;
2879
+ quantity: string;
2880
+ price: string;
2881
+ filledQuantity: string;
2882
+ error?: string | undefined;
2883
+ errorCode?: string | undefined;
2884
+ filledPrice?: string | undefined;
2885
+ } | {
2886
+ id: string;
2887
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2888
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2889
+ createdAt: string;
2890
+ updatedAt: string;
2891
+ type: "RESTING";
2892
+ symbol: string;
2893
+ side: "BUY" | "SELL";
2894
+ reduceOnly: boolean;
2895
+ quantity: string;
2896
+ price: string;
2897
+ filledQuantity: string;
2898
+ error?: string | undefined;
2899
+ errorCode?: string | undefined;
2900
+ })[];
2901
+ averageFillPrice?: string | undefined;
2902
+ }[] | undefined;
2903
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
2730
2904
  })[];
2731
2905
  nextCursor?: string | undefined;
2732
2906
  }>;
@@ -2757,14 +2931,14 @@ declare class Core {
2757
2931
  maxImpactPrice?: string | undefined;
2758
2932
  }[]];
2759
2933
  error?: string | undefined;
2760
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
2934
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2761
2935
  refusedLegs?: {
2762
2936
  id: string;
2763
2937
  ticker: string;
2764
2938
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2765
2939
  error: string;
2766
2940
  }[] | undefined;
2767
- orders?: {
2941
+ orders?: ({
2768
2942
  id: string;
2769
2943
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2770
2944
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2780,7 +2954,22 @@ declare class Core {
2780
2954
  error?: string | undefined;
2781
2955
  errorCode?: string | undefined;
2782
2956
  filledPrice?: string | undefined;
2783
- }[] | undefined;
2957
+ } | {
2958
+ id: string;
2959
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2960
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
2961
+ createdAt: string;
2962
+ updatedAt: string;
2963
+ type: "RESTING";
2964
+ symbol: string;
2965
+ side: "BUY" | "SELL";
2966
+ reduceOnly: boolean;
2967
+ quantity: string;
2968
+ price: string;
2969
+ filledQuantity: string;
2970
+ error?: string | undefined;
2971
+ errorCode?: string | undefined;
2972
+ })[] | undefined;
2784
2973
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2785
2974
  position?: {
2786
2975
  id: string;
@@ -2811,14 +3000,14 @@ declare class Core {
2811
3000
  maxImpactPrice?: string | undefined;
2812
3001
  }[]];
2813
3002
  error?: string | undefined;
2814
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
3003
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2815
3004
  refusedLegs?: {
2816
3005
  id: string;
2817
3006
  ticker: string;
2818
3007
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2819
3008
  error: string;
2820
3009
  }[] | undefined;
2821
- orders?: {
3010
+ orders?: ({
2822
3011
  id: string;
2823
3012
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2824
3013
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2834,7 +3023,22 @@ declare class Core {
2834
3023
  error?: string | undefined;
2835
3024
  errorCode?: string | undefined;
2836
3025
  filledPrice?: string | undefined;
2837
- }[] | undefined;
3026
+ } | {
3027
+ id: string;
3028
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3029
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3030
+ createdAt: string;
3031
+ updatedAt: string;
3032
+ type: "RESTING";
3033
+ symbol: string;
3034
+ side: "BUY" | "SELL";
3035
+ reduceOnly: boolean;
3036
+ quantity: string;
3037
+ price: string;
3038
+ filledQuantity: string;
3039
+ error?: string | undefined;
3040
+ errorCode?: string | undefined;
3041
+ })[] | undefined;
2838
3042
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2839
3043
  position?: {
2840
3044
  id: string;
@@ -2849,14 +3053,14 @@ declare class Core {
2849
3053
  intent: "CLOSE";
2850
3054
  orderType: "MARKET";
2851
3055
  error?: string | undefined;
2852
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
3056
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2853
3057
  refusedLegs?: {
2854
3058
  id: string;
2855
3059
  ticker: string;
2856
3060
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2857
3061
  error: string;
2858
3062
  }[] | undefined;
2859
- orders?: {
3063
+ orders?: ({
2860
3064
  id: string;
2861
3065
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2862
3066
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2872,7 +3076,22 @@ declare class Core {
2872
3076
  error?: string | undefined;
2873
3077
  errorCode?: string | undefined;
2874
3078
  filledPrice?: string | undefined;
2875
- }[] | undefined;
3079
+ } | {
3080
+ id: string;
3081
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3082
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3083
+ createdAt: string;
3084
+ updatedAt: string;
3085
+ type: "RESTING";
3086
+ symbol: string;
3087
+ side: "BUY" | "SELL";
3088
+ reduceOnly: boolean;
3089
+ quantity: string;
3090
+ price: string;
3091
+ filledQuantity: string;
3092
+ error?: string | undefined;
3093
+ errorCode?: string | undefined;
3094
+ })[] | undefined;
2876
3095
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2877
3096
  position?: {
2878
3097
  id: string;
@@ -2887,14 +3106,14 @@ declare class Core {
2887
3106
  intent: "REVERSE";
2888
3107
  orderType: "MARKET";
2889
3108
  error?: string | undefined;
2890
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
3109
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
2891
3110
  refusedLegs?: {
2892
3111
  id: string;
2893
3112
  ticker: string;
2894
3113
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
2895
3114
  error: string;
2896
3115
  }[] | undefined;
2897
- orders?: {
3116
+ orders?: ({
2898
3117
  id: string;
2899
3118
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2900
3119
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -2910,58 +3129,195 @@ declare class Core {
2910
3129
  error?: string | undefined;
2911
3130
  errorCode?: string | undefined;
2912
3131
  filledPrice?: string | undefined;
2913
- }[] | undefined;
3132
+ } | {
3133
+ id: string;
3134
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3135
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3136
+ createdAt: string;
3137
+ updatedAt: string;
3138
+ type: "RESTING";
3139
+ symbol: string;
3140
+ side: "BUY" | "SELL";
3141
+ reduceOnly: boolean;
3142
+ quantity: string;
3143
+ price: string;
3144
+ filledQuantity: string;
3145
+ error?: string | undefined;
3146
+ errorCode?: string | undefined;
3147
+ })[] | undefined;
2914
3148
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
2915
3149
  position?: {
2916
3150
  id: string;
2917
3151
  exposure: Record<string, `-${string}` | `+${string}`>;
2918
3152
  } | undefined;
2919
- };
2920
- }>;
2921
- };
2922
- fills: {
2923
- /** Read one position's assigned quantities and fees at the original receipt price. */
2924
- details: (positionId: string, headers?: ClientHeaders) => Promise<{
2925
- fills: {
3153
+ } | {
2926
3154
  id: string;
2927
- status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
2928
- tradeAccountId: string;
2929
- symbol: string;
2930
3155
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2931
- side: "BUY" | "SELL";
2932
- reduceOnly: boolean;
2933
- isExternal: boolean;
2934
- synthetic: boolean;
2935
- quantity: string;
2936
- price: string;
2937
- usd: string;
2938
- timestamp: string;
2939
- positionId: string;
2940
- cloid?: string | undefined;
2941
- exchangeFillId?: string | undefined;
2942
- executionId?: string | undefined;
2943
- scheduleId?: string | undefined;
2944
- triggerId?: string | undefined;
2945
- tradeFee?: string | undefined;
2946
- pearFee?: string | undefined;
2947
- original?: {
2948
- exchangeFillId: string;
2949
- quantity: string;
2950
- } | undefined;
2951
- }[];
2952
- }>;
2953
- /** Page raw receipts with all position assignments, leaving query defaults to the server. */
2954
- list: (query: HttpTypes.FillListParamsInput, headers?: ClientHeaders) => Promise<{
2955
- limit: number;
2956
- fills: {
2957
- id: string;
2958
- status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
2959
- tradeAccountId: string;
3156
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
3157
+ createdAt: string;
3158
+ updatedAt: string;
3159
+ intent: "OPEN";
3160
+ orderType: "CHASE_LIMIT";
3161
+ legs: [{
3162
+ symbol: string;
3163
+ side: "BUY" | "SELL";
3164
+ mode: "QUANTITY" | "USD";
3165
+ amount: string;
3166
+ reduceOnly: boolean;
3167
+ id?: string | undefined;
3168
+ maxImpactPrice?: string | undefined;
3169
+ }, ...{
3170
+ symbol: string;
3171
+ side: "BUY" | "SELL";
3172
+ mode: "QUANTITY" | "USD";
3173
+ amount: string;
3174
+ reduceOnly: boolean;
3175
+ id?: string | undefined;
3176
+ maxImpactPrice?: string | undefined;
3177
+ }[]];
3178
+ error?: string | undefined;
3179
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
3180
+ refusedLegs?: {
3181
+ id: string;
3182
+ ticker: string;
3183
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
3184
+ error: string;
3185
+ }[] | undefined;
3186
+ orders?: ({
3187
+ id: string;
3188
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3189
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3190
+ createdAt: string;
3191
+ updatedAt: string;
3192
+ type: "MARKET";
3193
+ symbol: string;
3194
+ side: "BUY" | "SELL";
3195
+ reduceOnly: boolean;
3196
+ quantity: string;
3197
+ price: string;
3198
+ filledQuantity: string;
3199
+ error?: string | undefined;
3200
+ errorCode?: string | undefined;
3201
+ filledPrice?: string | undefined;
3202
+ } | {
3203
+ id: string;
3204
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3205
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3206
+ createdAt: string;
3207
+ updatedAt: string;
3208
+ type: "RESTING";
3209
+ symbol: string;
3210
+ side: "BUY" | "SELL";
3211
+ reduceOnly: boolean;
3212
+ quantity: string;
3213
+ price: string;
3214
+ filledQuantity: string;
3215
+ error?: string | undefined;
3216
+ errorCode?: string | undefined;
3217
+ })[] | undefined;
3218
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
3219
+ position?: {
3220
+ id: string;
3221
+ } | undefined;
3222
+ deadlineAt?: string | undefined;
3223
+ chaseOrders?: {
3224
+ id: string;
3225
+ executionId: string;
3226
+ instrumentId: string;
3227
+ side: "BUY" | "SELL";
3228
+ quantity: string;
3229
+ filledQuantity: string;
3230
+ makerFilledQuantity: string;
3231
+ takerFilledQuantity: string;
3232
+ attempts: ({
3233
+ id: string;
3234
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3235
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3236
+ createdAt: string;
3237
+ updatedAt: string;
3238
+ type: "MARKET";
3239
+ symbol: string;
3240
+ side: "BUY" | "SELL";
3241
+ reduceOnly: boolean;
3242
+ quantity: string;
3243
+ price: string;
3244
+ filledQuantity: string;
3245
+ error?: string | undefined;
3246
+ errorCode?: string | undefined;
3247
+ filledPrice?: string | undefined;
3248
+ } | {
3249
+ id: string;
3250
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3251
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
3252
+ createdAt: string;
3253
+ updatedAt: string;
3254
+ type: "RESTING";
3255
+ symbol: string;
3256
+ side: "BUY" | "SELL";
3257
+ reduceOnly: boolean;
3258
+ quantity: string;
3259
+ price: string;
3260
+ filledQuantity: string;
3261
+ error?: string | undefined;
3262
+ errorCode?: string | undefined;
3263
+ })[];
3264
+ averageFillPrice?: string | undefined;
3265
+ }[] | undefined;
3266
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
3267
+ };
3268
+ }>;
3269
+ cancel: (id: string, headers?: ClientHeaders) => Promise<{
3270
+ outcome: "SKIPPED" | "CROSSING" | "CANCELLING";
3271
+ }>;
3272
+ complete: (id: string, headers?: ClientHeaders) => Promise<{
3273
+ outcome: "SKIPPED" | "CROSSING" | "CANCELLING";
3274
+ }>;
3275
+ };
3276
+ fills: {
3277
+ /** Read one position's assigned quantities and fees at the original receipt price. */
3278
+ details: (positionId: string, headers?: ClientHeaders) => Promise<{
3279
+ fills: {
3280
+ id: string;
3281
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3282
+ tradeAccountId: string;
3283
+ symbol: string;
3284
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
3285
+ side: "BUY" | "SELL";
3286
+ reduceOnly: boolean;
3287
+ isExternal: boolean;
3288
+ isMaker: boolean;
3289
+ synthetic: boolean;
3290
+ quantity: string;
3291
+ price: string;
3292
+ usd: string;
3293
+ timestamp: string;
3294
+ positionId: string;
3295
+ cloid?: string | undefined;
3296
+ exchangeFillId?: string | undefined;
3297
+ executionId?: string | undefined;
3298
+ scheduleId?: string | undefined;
3299
+ triggerId?: string | undefined;
3300
+ tradeFee?: string | undefined;
3301
+ pearFee?: string | undefined;
3302
+ original?: {
3303
+ exchangeFillId: string;
3304
+ quantity: string;
3305
+ } | undefined;
3306
+ }[];
3307
+ }>;
3308
+ /** Page raw receipts with all position assignments, leaving query defaults to the server. */
3309
+ list: (query: HttpTypes.FillListParamsInput, headers?: ClientHeaders) => Promise<{
3310
+ limit: number;
3311
+ fills: {
3312
+ id: string;
3313
+ status: "PROVISIONAL" | "CONFIRMED" | "RECONCILED";
3314
+ tradeAccountId: string;
2960
3315
  symbol: string;
2961
3316
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2962
3317
  side: "BUY" | "SELL";
2963
3318
  reduceOnly: boolean;
2964
3319
  isExternal: boolean;
3320
+ isMaker: boolean;
2965
3321
  synthetic: boolean;
2966
3322
  quantity: string;
2967
3323
  price: string;
@@ -2988,18 +3344,6 @@ declare class Core {
2988
3344
  }[];
2989
3345
  nextCursor?: string | undefined;
2990
3346
  }>;
2991
- /** Read account-owned provisional receipts awaiting fee collection. */
2992
- provisionals: (headers?: ClientHeaders) => Promise<{
2993
- fills: {
2994
- id: string;
2995
- tradeAccountId: string;
2996
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
2997
- symbol: string;
2998
- status: "PROVISIONAL";
2999
- executionId?: string | undefined;
3000
- cloid?: string | undefined;
3001
- }[];
3002
- }>;
3003
3347
  };
3004
3348
  funding: {
3005
3349
  list: (query: HttpTypes.FundingQueryParams, headers?: ClientHeaders) => Promise<{
@@ -3122,6 +3466,7 @@ declare class Core {
3122
3466
  side: "BUY" | "SELL";
3123
3467
  reduceOnly: boolean;
3124
3468
  isExternal: boolean;
3469
+ isMaker: boolean;
3125
3470
  synthetic: boolean;
3126
3471
  quantity: string;
3127
3472
  price: string;
@@ -3270,6 +3615,7 @@ declare class Core {
3270
3615
  side: "BUY" | "SELL";
3271
3616
  reduceOnly: boolean;
3272
3617
  isExternal: boolean;
3618
+ isMaker: boolean;
3273
3619
  synthetic: boolean;
3274
3620
  quantity: string;
3275
3621
  price: string;
@@ -3451,6 +3797,7 @@ declare class Core {
3451
3797
  side: "BUY" | "SELL";
3452
3798
  reduceOnly: boolean;
3453
3799
  isExternal: boolean;
3800
+ isMaker: boolean;
3454
3801
  synthetic: boolean;
3455
3802
  quantity: string;
3456
3803
  price: string;
@@ -3611,6 +3958,7 @@ declare class Core {
3611
3958
  side: "BUY" | "SELL";
3612
3959
  reduceOnly: boolean;
3613
3960
  isExternal: boolean;
3961
+ isMaker: boolean;
3614
3962
  synthetic: boolean;
3615
3963
  quantity: string;
3616
3964
  price: string;
@@ -3799,6 +4147,7 @@ declare class Core {
3799
4147
  side: "BUY" | "SELL";
3800
4148
  reduceOnly: boolean;
3801
4149
  isExternal: boolean;
4150
+ isMaker: boolean;
3802
4151
  synthetic: boolean;
3803
4152
  quantity: string;
3804
4153
  price: string;
@@ -4003,6 +4352,7 @@ declare class Core {
4003
4352
  side: "BUY" | "SELL";
4004
4353
  reduceOnly: boolean;
4005
4354
  isExternal: boolean;
4355
+ isMaker: boolean;
4006
4356
  synthetic: boolean;
4007
4357
  quantity: string;
4008
4358
  price: string;
@@ -4151,6 +4501,7 @@ declare class Core {
4151
4501
  side: "BUY" | "SELL";
4152
4502
  reduceOnly: boolean;
4153
4503
  isExternal: boolean;
4504
+ isMaker: boolean;
4154
4505
  synthetic: boolean;
4155
4506
  quantity: string;
4156
4507
  price: string;
@@ -4332,6 +4683,7 @@ declare class Core {
4332
4683
  side: "BUY" | "SELL";
4333
4684
  reduceOnly: boolean;
4334
4685
  isExternal: boolean;
4686
+ isMaker: boolean;
4335
4687
  synthetic: boolean;
4336
4688
  quantity: string;
4337
4689
  price: string;
@@ -4492,6 +4844,7 @@ declare class Core {
4492
4844
  side: "BUY" | "SELL";
4493
4845
  reduceOnly: boolean;
4494
4846
  isExternal: boolean;
4847
+ isMaker: boolean;
4495
4848
  synthetic: boolean;
4496
4849
  quantity: string;
4497
4850
  price: string;
@@ -4680,6 +5033,7 @@ declare class Core {
4680
5033
  side: "BUY" | "SELL";
4681
5034
  reduceOnly: boolean;
4682
5035
  isExternal: boolean;
5036
+ isMaker: boolean;
4683
5037
  synthetic: boolean;
4684
5038
  quantity: string;
4685
5039
  price: string;
@@ -4883,6 +5237,7 @@ declare class Core {
4883
5237
  side: "BUY" | "SELL";
4884
5238
  reduceOnly: boolean;
4885
5239
  isExternal: boolean;
5240
+ isMaker: boolean;
4886
5241
  synthetic: boolean;
4887
5242
  quantity: string;
4888
5243
  price: string;
@@ -5031,6 +5386,7 @@ declare class Core {
5031
5386
  side: "BUY" | "SELL";
5032
5387
  reduceOnly: boolean;
5033
5388
  isExternal: boolean;
5389
+ isMaker: boolean;
5034
5390
  synthetic: boolean;
5035
5391
  quantity: string;
5036
5392
  price: string;
@@ -5212,6 +5568,7 @@ declare class Core {
5212
5568
  side: "BUY" | "SELL";
5213
5569
  reduceOnly: boolean;
5214
5570
  isExternal: boolean;
5571
+ isMaker: boolean;
5215
5572
  synthetic: boolean;
5216
5573
  quantity: string;
5217
5574
  price: string;
@@ -5372,6 +5729,7 @@ declare class Core {
5372
5729
  side: "BUY" | "SELL";
5373
5730
  reduceOnly: boolean;
5374
5731
  isExternal: boolean;
5732
+ isMaker: boolean;
5375
5733
  synthetic: boolean;
5376
5734
  quantity: string;
5377
5735
  price: string;
@@ -5560,6 +5918,7 @@ declare class Core {
5560
5918
  side: "BUY" | "SELL";
5561
5919
  reduceOnly: boolean;
5562
5920
  isExternal: boolean;
5921
+ isMaker: boolean;
5563
5922
  synthetic: boolean;
5564
5923
  quantity: string;
5565
5924
  price: string;
@@ -5681,6 +6040,7 @@ declare class Core {
5681
6040
  notional?: {
5682
6041
  min?: number | null | undefined;
5683
6042
  max?: number | null | undefined;
6043
+ minBuffer?: number | undefined;
5684
6044
  } | undefined;
5685
6045
  };
5686
6046
  tradeability: {
@@ -5770,7 +6130,7 @@ declare class Core {
5770
6130
  list: (query?: HttpTypes.NotificationListParamsInput, headers?: ClientHeaders) => Promise<{
5771
6131
  notifications: {
5772
6132
  id: string;
5773
- category: "TAKE_PROFIT_HIT" | "STOP_LOSS_HIT" | "TRIGGER_ORDER_HIT" | "TAKE_PROFIT_FAILED" | "STOP_LOSS_FAILED" | "TRIGGER_ORDER_FAILED" | "ATTACHED_TRIGGER_DISCARDED" | "AUTO_REBALANCE_EXECUTED" | "AUTO_REBALANCE_FAILED" | "AUTO_REBALANCE_PAUSED" | "TRIGGER_TWAP_STARTED" | "TRIGGER_TWAP_SKIPPED" | "TRIGGER_TWAP_FAILED" | "TRIGGER_TWAP_POSITION_CHANGED" | "TRIGGER_CANCELLED_MIS_SCALED" | "COPY_PLACED" | "COPY_FAILED" | "COPY_SUBSCRIPTION_STOPPED" | "COPY_LEVERAGE_NOT_APPLIED" | "POSITION_LIQUIDATION" | "TRIGGER_CANCELLED_POSITION_RESIZED" | "TAKE_PROFIT_PARTIAL" | "STOP_LOSS_PARTIAL" | "TRIGGER_ORDER_PARTIAL" | "TRIGGER_CANCELLED_BY_OPERATOR" | "LADDER_CANCELLED_BY_OPERATOR" | "AUTO_REBALANCE_STOPPED_BY_OPERATOR";
6133
+ 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" | "COPY_MARGIN_NOT_APPLIED" | "POSITION_LIQUIDATION" | "TRIGGER_CANCELLED_POSITION_RESIZED" | "TAKE_PROFIT_PARTIAL" | "STOP_LOSS_PARTIAL" | "TRIGGER_ORDER_PARTIAL" | "TRIGGER_CANCELLED_BY_OPERATOR" | "LADDER_CANCELLED_BY_OPERATOR" | "AUTO_REBALANCE_STOPPED_BY_OPERATOR";
5774
6134
  parameters: {
5775
6135
  type: "position_liquidation";
5776
6136
  positionId: string;
@@ -5982,6 +6342,10 @@ declare class Core {
5982
6342
  type: "copy_leverage_not_applied";
5983
6343
  subscriptionId: string;
5984
6344
  activityId: string;
6345
+ } | {
6346
+ type: "copy_margin_not_applied";
6347
+ subscriptionId: string;
6348
+ activityId: string;
5985
6349
  } | {
5986
6350
  type: "trigger_cancelled_position_resized";
5987
6351
  triggerId: string;
@@ -6050,7 +6414,7 @@ declare class Core {
6050
6414
  id: string;
6051
6415
  tradeAccountId: string;
6052
6416
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6053
- status: "OPEN" | "CLOSED";
6417
+ status: "OPEN" | "OPENING" | "CLOSED";
6054
6418
  origin: "PARTIAL" | "PEAR" | "EXTERNAL";
6055
6419
  exposure: Record<string, `-${string}` | `+${string}`>;
6056
6420
  unstableHistoricalData: boolean;
@@ -6066,18 +6430,6 @@ declare class Core {
6066
6430
  }[];
6067
6431
  nextCursor?: string | undefined;
6068
6432
  }>;
6069
- openLite: (headers?: ClientHeaders) => Promise<{
6070
- positions: {
6071
- id: string;
6072
- positionKey: string;
6073
- createdAt: string;
6074
- exposure: Record<string, `-${string}` | `+${string}`>;
6075
- status: "OPEN";
6076
- origin: "PARTIAL" | "PEAR" | "EXTERNAL";
6077
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
6078
- copySubscriptionId?: string | undefined;
6079
- }[];
6080
- }>;
6081
6433
  /**
6082
6434
  * Closed-position history, newest close first, composed server-side.
6083
6435
  *
@@ -7052,6 +7404,7 @@ declare class Core {
7052
7404
  side: "BUY" | "SELL";
7053
7405
  reduceOnly: boolean;
7054
7406
  isExternal: boolean;
7407
+ isMaker: boolean;
7055
7408
  synthetic: boolean;
7056
7409
  quantity: string;
7057
7410
  price: string;
@@ -7093,31 +7446,741 @@ declare class Core {
7093
7446
  cancelAll: (headers?: ClientHeaders) => Promise<{
7094
7447
  ids: string[];
7095
7448
  }>;
7096
- };
7097
- sync: {
7098
- fills: {
7099
- since: (body: HttpTypes.SyncFillsSinceRequest, headers?: ClientHeaders) => Promise<{
7100
- sinceMs: number;
7101
- neverSynced: boolean;
7102
- executionsUpdatedAtEpochMs: number;
7103
- firstSyncStartedAt?: number | undefined;
7104
- confirmedExchangeFillIds?: string[] | undefined;
7105
- hasPendingSynthetics?: boolean | undefined;
7106
- }>;
7107
- create: (body: HttpTypes.CreateApplicablesRequest, headers?: ClientHeaders) => Promise<Record<string, never>>;
7108
- createBulk: (body: HttpTypes.CreateApplicablesRequest, headers?: ClientHeaders) => Promise<Record<string, never>>;
7109
- };
7110
- funding: {
7111
- since: (body: HttpTypes.SyncFundingSinceRequest, headers?: ClientHeaders) => Promise<{
7112
- sinceMs: number;
7113
- }>;
7114
- create: (body: HttpTypes.CreateFundingPaymentsRequest, headers?: ClientHeaders) => Promise<Record<string, never>>;
7115
- createBulk: (body: HttpTypes.CreateFundingPaymentsRequest, headers?: ClientHeaders) => Promise<Record<string, never>>;
7116
- };
7117
- };
7118
- /** Basket commands; executed-fill history lives under the plural `trades` namespace. */
7119
- trade: {
7120
- open: (body: HttpTypes.CreateTradeOpen, headers?: ClientHeaders) => Promise<{
7449
+ };
7450
+ sync: {
7451
+ /** Ask the server to sync the active account now; neverSynced says whether its first import is still pending. */
7452
+ refresh: (headers?: ClientHeaders) => Promise<{
7453
+ neverSynced: boolean;
7454
+ credentialsRejection?: "venue-account-missing" | "credentials-invalid" | undefined;
7455
+ }>;
7456
+ };
7457
+ /** Basket commands; executed-fill history lives under the plural `trades` namespace. */
7458
+ trade: {
7459
+ open: (body: HttpTypes.CreateTradeOpenInput, headers?: ClientHeaders) => Promise<{
7460
+ execution: {
7461
+ id: string;
7462
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7463
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7464
+ createdAt: string;
7465
+ updatedAt: string;
7466
+ intent: "OPEN";
7467
+ orderType: "MARKET";
7468
+ legs: [{
7469
+ symbol: string;
7470
+ side: "BUY" | "SELL";
7471
+ mode: "QUANTITY" | "USD";
7472
+ amount: string;
7473
+ reduceOnly: boolean;
7474
+ id?: string | undefined;
7475
+ maxImpactPrice?: string | undefined;
7476
+ }, ...{
7477
+ symbol: string;
7478
+ side: "BUY" | "SELL";
7479
+ mode: "QUANTITY" | "USD";
7480
+ amount: string;
7481
+ reduceOnly: boolean;
7482
+ id?: string | undefined;
7483
+ maxImpactPrice?: string | undefined;
7484
+ }[]];
7485
+ error?: string | undefined;
7486
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7487
+ refusedLegs?: {
7488
+ id: string;
7489
+ ticker: string;
7490
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7491
+ error: string;
7492
+ }[] | undefined;
7493
+ orders?: ({
7494
+ id: string;
7495
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7496
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7497
+ createdAt: string;
7498
+ updatedAt: string;
7499
+ type: "MARKET";
7500
+ symbol: string;
7501
+ side: "BUY" | "SELL";
7502
+ reduceOnly: boolean;
7503
+ quantity: string;
7504
+ price: string;
7505
+ filledQuantity: string;
7506
+ error?: string | undefined;
7507
+ errorCode?: string | undefined;
7508
+ filledPrice?: string | undefined;
7509
+ } | {
7510
+ id: string;
7511
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7512
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7513
+ createdAt: string;
7514
+ updatedAt: string;
7515
+ type: "RESTING";
7516
+ symbol: string;
7517
+ side: "BUY" | "SELL";
7518
+ reduceOnly: boolean;
7519
+ quantity: string;
7520
+ price: string;
7521
+ filledQuantity: string;
7522
+ error?: string | undefined;
7523
+ errorCode?: string | undefined;
7524
+ })[] | undefined;
7525
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7526
+ position?: {
7527
+ id: string;
7528
+ } | undefined;
7529
+ } | {
7530
+ id: string;
7531
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7532
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7533
+ createdAt: string;
7534
+ updatedAt: string;
7535
+ intent: "ADJUST";
7536
+ orderType: "MARKET";
7537
+ legs: [{
7538
+ symbol: string;
7539
+ side: "BUY" | "SELL";
7540
+ mode: "QUANTITY" | "USD";
7541
+ amount: string;
7542
+ reduceOnly: boolean;
7543
+ id?: string | undefined;
7544
+ maxImpactPrice?: string | undefined;
7545
+ }, ...{
7546
+ symbol: string;
7547
+ side: "BUY" | "SELL";
7548
+ mode: "QUANTITY" | "USD";
7549
+ amount: string;
7550
+ reduceOnly: boolean;
7551
+ id?: string | undefined;
7552
+ maxImpactPrice?: string | undefined;
7553
+ }[]];
7554
+ error?: string | undefined;
7555
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7556
+ refusedLegs?: {
7557
+ id: string;
7558
+ ticker: string;
7559
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7560
+ error: string;
7561
+ }[] | undefined;
7562
+ orders?: ({
7563
+ id: string;
7564
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7565
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7566
+ createdAt: string;
7567
+ updatedAt: string;
7568
+ type: "MARKET";
7569
+ symbol: string;
7570
+ side: "BUY" | "SELL";
7571
+ reduceOnly: boolean;
7572
+ quantity: string;
7573
+ price: string;
7574
+ filledQuantity: string;
7575
+ error?: string | undefined;
7576
+ errorCode?: string | undefined;
7577
+ filledPrice?: string | undefined;
7578
+ } | {
7579
+ id: string;
7580
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7581
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7582
+ createdAt: string;
7583
+ updatedAt: string;
7584
+ type: "RESTING";
7585
+ symbol: string;
7586
+ side: "BUY" | "SELL";
7587
+ reduceOnly: boolean;
7588
+ quantity: string;
7589
+ price: string;
7590
+ filledQuantity: string;
7591
+ error?: string | undefined;
7592
+ errorCode?: string | undefined;
7593
+ })[] | undefined;
7594
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7595
+ position?: {
7596
+ id: string;
7597
+ exposure: Record<string, `-${string}` | `+${string}`>;
7598
+ } | undefined;
7599
+ } | {
7600
+ id: string;
7601
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7602
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7603
+ createdAt: string;
7604
+ updatedAt: string;
7605
+ intent: "CLOSE";
7606
+ orderType: "MARKET";
7607
+ error?: string | undefined;
7608
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7609
+ refusedLegs?: {
7610
+ id: string;
7611
+ ticker: string;
7612
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7613
+ error: string;
7614
+ }[] | undefined;
7615
+ orders?: ({
7616
+ id: string;
7617
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7618
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7619
+ createdAt: string;
7620
+ updatedAt: string;
7621
+ type: "MARKET";
7622
+ symbol: string;
7623
+ side: "BUY" | "SELL";
7624
+ reduceOnly: boolean;
7625
+ quantity: string;
7626
+ price: string;
7627
+ filledQuantity: string;
7628
+ error?: string | undefined;
7629
+ errorCode?: string | undefined;
7630
+ filledPrice?: string | undefined;
7631
+ } | {
7632
+ id: string;
7633
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7634
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7635
+ createdAt: string;
7636
+ updatedAt: string;
7637
+ type: "RESTING";
7638
+ symbol: string;
7639
+ side: "BUY" | "SELL";
7640
+ reduceOnly: boolean;
7641
+ quantity: string;
7642
+ price: string;
7643
+ filledQuantity: string;
7644
+ error?: string | undefined;
7645
+ errorCode?: string | undefined;
7646
+ })[] | undefined;
7647
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7648
+ position?: {
7649
+ id: string;
7650
+ exposure: Record<string, `-${string}` | `+${string}`>;
7651
+ } | undefined;
7652
+ } | {
7653
+ id: string;
7654
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7655
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7656
+ createdAt: string;
7657
+ updatedAt: string;
7658
+ intent: "REVERSE";
7659
+ orderType: "MARKET";
7660
+ error?: string | undefined;
7661
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7662
+ refusedLegs?: {
7663
+ id: string;
7664
+ ticker: string;
7665
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7666
+ error: string;
7667
+ }[] | undefined;
7668
+ orders?: ({
7669
+ id: string;
7670
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7671
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7672
+ createdAt: string;
7673
+ updatedAt: string;
7674
+ type: "MARKET";
7675
+ symbol: string;
7676
+ side: "BUY" | "SELL";
7677
+ reduceOnly: boolean;
7678
+ quantity: string;
7679
+ price: string;
7680
+ filledQuantity: string;
7681
+ error?: string | undefined;
7682
+ errorCode?: string | undefined;
7683
+ filledPrice?: string | undefined;
7684
+ } | {
7685
+ id: string;
7686
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7687
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7688
+ createdAt: string;
7689
+ updatedAt: string;
7690
+ type: "RESTING";
7691
+ symbol: string;
7692
+ side: "BUY" | "SELL";
7693
+ reduceOnly: boolean;
7694
+ quantity: string;
7695
+ price: string;
7696
+ filledQuantity: string;
7697
+ error?: string | undefined;
7698
+ errorCode?: string | undefined;
7699
+ })[] | undefined;
7700
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7701
+ position?: {
7702
+ id: string;
7703
+ exposure: Record<string, `-${string}` | `+${string}`>;
7704
+ } | undefined;
7705
+ } | {
7706
+ id: string;
7707
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7708
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7709
+ createdAt: string;
7710
+ updatedAt: string;
7711
+ intent: "OPEN";
7712
+ orderType: "CHASE_LIMIT";
7713
+ legs: [{
7714
+ symbol: string;
7715
+ side: "BUY" | "SELL";
7716
+ mode: "QUANTITY" | "USD";
7717
+ amount: string;
7718
+ reduceOnly: boolean;
7719
+ id?: string | undefined;
7720
+ maxImpactPrice?: string | undefined;
7721
+ }, ...{
7722
+ symbol: string;
7723
+ side: "BUY" | "SELL";
7724
+ mode: "QUANTITY" | "USD";
7725
+ amount: string;
7726
+ reduceOnly: boolean;
7727
+ id?: string | undefined;
7728
+ maxImpactPrice?: string | undefined;
7729
+ }[]];
7730
+ error?: string | undefined;
7731
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7732
+ refusedLegs?: {
7733
+ id: string;
7734
+ ticker: string;
7735
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7736
+ error: string;
7737
+ }[] | undefined;
7738
+ orders?: ({
7739
+ id: string;
7740
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7741
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7742
+ createdAt: string;
7743
+ updatedAt: string;
7744
+ type: "MARKET";
7745
+ symbol: string;
7746
+ side: "BUY" | "SELL";
7747
+ reduceOnly: boolean;
7748
+ quantity: string;
7749
+ price: string;
7750
+ filledQuantity: string;
7751
+ error?: string | undefined;
7752
+ errorCode?: string | undefined;
7753
+ filledPrice?: string | undefined;
7754
+ } | {
7755
+ id: string;
7756
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7757
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7758
+ createdAt: string;
7759
+ updatedAt: string;
7760
+ type: "RESTING";
7761
+ symbol: string;
7762
+ side: "BUY" | "SELL";
7763
+ reduceOnly: boolean;
7764
+ quantity: string;
7765
+ price: string;
7766
+ filledQuantity: string;
7767
+ error?: string | undefined;
7768
+ errorCode?: string | undefined;
7769
+ })[] | undefined;
7770
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7771
+ position?: {
7772
+ id: string;
7773
+ } | undefined;
7774
+ deadlineAt?: string | undefined;
7775
+ chaseOrders?: {
7776
+ id: string;
7777
+ executionId: string;
7778
+ instrumentId: string;
7779
+ side: "BUY" | "SELL";
7780
+ quantity: string;
7781
+ filledQuantity: string;
7782
+ makerFilledQuantity: string;
7783
+ takerFilledQuantity: string;
7784
+ attempts: ({
7785
+ id: string;
7786
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7787
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7788
+ createdAt: string;
7789
+ updatedAt: string;
7790
+ type: "MARKET";
7791
+ symbol: string;
7792
+ side: "BUY" | "SELL";
7793
+ reduceOnly: boolean;
7794
+ quantity: string;
7795
+ price: string;
7796
+ filledQuantity: string;
7797
+ error?: string | undefined;
7798
+ errorCode?: string | undefined;
7799
+ filledPrice?: string | undefined;
7800
+ } | {
7801
+ id: string;
7802
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7803
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7804
+ createdAt: string;
7805
+ updatedAt: string;
7806
+ type: "RESTING";
7807
+ symbol: string;
7808
+ side: "BUY" | "SELL";
7809
+ reduceOnly: boolean;
7810
+ quantity: string;
7811
+ price: string;
7812
+ filledQuantity: string;
7813
+ error?: string | undefined;
7814
+ errorCode?: string | undefined;
7815
+ })[];
7816
+ averageFillPrice?: string | undefined;
7817
+ }[] | undefined;
7818
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
7819
+ };
7820
+ }>;
7821
+ adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
7822
+ execution: {
7823
+ id: string;
7824
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7825
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7826
+ createdAt: string;
7827
+ updatedAt: string;
7828
+ intent: "OPEN";
7829
+ orderType: "MARKET";
7830
+ legs: [{
7831
+ symbol: string;
7832
+ side: "BUY" | "SELL";
7833
+ mode: "QUANTITY" | "USD";
7834
+ amount: string;
7835
+ reduceOnly: boolean;
7836
+ id?: string | undefined;
7837
+ maxImpactPrice?: string | undefined;
7838
+ }, ...{
7839
+ symbol: string;
7840
+ side: "BUY" | "SELL";
7841
+ mode: "QUANTITY" | "USD";
7842
+ amount: string;
7843
+ reduceOnly: boolean;
7844
+ id?: string | undefined;
7845
+ maxImpactPrice?: string | undefined;
7846
+ }[]];
7847
+ error?: string | undefined;
7848
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7849
+ refusedLegs?: {
7850
+ id: string;
7851
+ ticker: string;
7852
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7853
+ error: string;
7854
+ }[] | undefined;
7855
+ orders?: ({
7856
+ id: string;
7857
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7858
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7859
+ createdAt: string;
7860
+ updatedAt: string;
7861
+ type: "MARKET";
7862
+ symbol: string;
7863
+ side: "BUY" | "SELL";
7864
+ reduceOnly: boolean;
7865
+ quantity: string;
7866
+ price: string;
7867
+ filledQuantity: string;
7868
+ error?: string | undefined;
7869
+ errorCode?: string | undefined;
7870
+ filledPrice?: string | undefined;
7871
+ } | {
7872
+ id: string;
7873
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7874
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7875
+ createdAt: string;
7876
+ updatedAt: string;
7877
+ type: "RESTING";
7878
+ symbol: string;
7879
+ side: "BUY" | "SELL";
7880
+ reduceOnly: boolean;
7881
+ quantity: string;
7882
+ price: string;
7883
+ filledQuantity: string;
7884
+ error?: string | undefined;
7885
+ errorCode?: string | undefined;
7886
+ })[] | undefined;
7887
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7888
+ position?: {
7889
+ id: string;
7890
+ } | undefined;
7891
+ } | {
7892
+ id: string;
7893
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7894
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7895
+ createdAt: string;
7896
+ updatedAt: string;
7897
+ intent: "ADJUST";
7898
+ orderType: "MARKET";
7899
+ legs: [{
7900
+ symbol: string;
7901
+ side: "BUY" | "SELL";
7902
+ mode: "QUANTITY" | "USD";
7903
+ amount: string;
7904
+ reduceOnly: boolean;
7905
+ id?: string | undefined;
7906
+ maxImpactPrice?: string | undefined;
7907
+ }, ...{
7908
+ symbol: string;
7909
+ side: "BUY" | "SELL";
7910
+ mode: "QUANTITY" | "USD";
7911
+ amount: string;
7912
+ reduceOnly: boolean;
7913
+ id?: string | undefined;
7914
+ maxImpactPrice?: string | undefined;
7915
+ }[]];
7916
+ error?: string | undefined;
7917
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7918
+ refusedLegs?: {
7919
+ id: string;
7920
+ ticker: string;
7921
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7922
+ error: string;
7923
+ }[] | undefined;
7924
+ orders?: ({
7925
+ id: string;
7926
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7927
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7928
+ createdAt: string;
7929
+ updatedAt: string;
7930
+ type: "MARKET";
7931
+ symbol: string;
7932
+ side: "BUY" | "SELL";
7933
+ reduceOnly: boolean;
7934
+ quantity: string;
7935
+ price: string;
7936
+ filledQuantity: string;
7937
+ error?: string | undefined;
7938
+ errorCode?: string | undefined;
7939
+ filledPrice?: string | undefined;
7940
+ } | {
7941
+ id: string;
7942
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7943
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7944
+ createdAt: string;
7945
+ updatedAt: string;
7946
+ type: "RESTING";
7947
+ symbol: string;
7948
+ side: "BUY" | "SELL";
7949
+ reduceOnly: boolean;
7950
+ quantity: string;
7951
+ price: string;
7952
+ filledQuantity: string;
7953
+ error?: string | undefined;
7954
+ errorCode?: string | undefined;
7955
+ })[] | undefined;
7956
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7957
+ position?: {
7958
+ id: string;
7959
+ exposure: Record<string, `-${string}` | `+${string}`>;
7960
+ } | undefined;
7961
+ } | {
7962
+ id: string;
7963
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7964
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7965
+ createdAt: string;
7966
+ updatedAt: string;
7967
+ intent: "CLOSE";
7968
+ orderType: "MARKET";
7969
+ error?: string | undefined;
7970
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7971
+ refusedLegs?: {
7972
+ id: string;
7973
+ ticker: string;
7974
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7975
+ error: string;
7976
+ }[] | undefined;
7977
+ orders?: ({
7978
+ id: string;
7979
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7980
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7981
+ createdAt: string;
7982
+ updatedAt: string;
7983
+ type: "MARKET";
7984
+ symbol: string;
7985
+ side: "BUY" | "SELL";
7986
+ reduceOnly: boolean;
7987
+ quantity: string;
7988
+ price: string;
7989
+ filledQuantity: string;
7990
+ error?: string | undefined;
7991
+ errorCode?: string | undefined;
7992
+ filledPrice?: string | undefined;
7993
+ } | {
7994
+ id: string;
7995
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7996
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7997
+ createdAt: string;
7998
+ updatedAt: string;
7999
+ type: "RESTING";
8000
+ symbol: string;
8001
+ side: "BUY" | "SELL";
8002
+ reduceOnly: boolean;
8003
+ quantity: string;
8004
+ price: string;
8005
+ filledQuantity: string;
8006
+ error?: string | undefined;
8007
+ errorCode?: string | undefined;
8008
+ })[] | undefined;
8009
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
8010
+ position?: {
8011
+ id: string;
8012
+ exposure: Record<string, `-${string}` | `+${string}`>;
8013
+ } | undefined;
8014
+ } | {
8015
+ id: string;
8016
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8017
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
8018
+ createdAt: string;
8019
+ updatedAt: string;
8020
+ intent: "REVERSE";
8021
+ orderType: "MARKET";
8022
+ error?: string | undefined;
8023
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
8024
+ refusedLegs?: {
8025
+ id: string;
8026
+ ticker: string;
8027
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
8028
+ error: string;
8029
+ }[] | undefined;
8030
+ orders?: ({
8031
+ id: string;
8032
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8033
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8034
+ createdAt: string;
8035
+ updatedAt: string;
8036
+ type: "MARKET";
8037
+ symbol: string;
8038
+ side: "BUY" | "SELL";
8039
+ reduceOnly: boolean;
8040
+ quantity: string;
8041
+ price: string;
8042
+ filledQuantity: string;
8043
+ error?: string | undefined;
8044
+ errorCode?: string | undefined;
8045
+ filledPrice?: string | undefined;
8046
+ } | {
8047
+ id: string;
8048
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8049
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8050
+ createdAt: string;
8051
+ updatedAt: string;
8052
+ type: "RESTING";
8053
+ symbol: string;
8054
+ side: "BUY" | "SELL";
8055
+ reduceOnly: boolean;
8056
+ quantity: string;
8057
+ price: string;
8058
+ filledQuantity: string;
8059
+ error?: string | undefined;
8060
+ errorCode?: string | undefined;
8061
+ })[] | undefined;
8062
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
8063
+ position?: {
8064
+ id: string;
8065
+ exposure: Record<string, `-${string}` | `+${string}`>;
8066
+ } | undefined;
8067
+ } | {
8068
+ id: string;
8069
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8070
+ status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
8071
+ createdAt: string;
8072
+ updatedAt: string;
8073
+ intent: "OPEN";
8074
+ orderType: "CHASE_LIMIT";
8075
+ legs: [{
8076
+ symbol: string;
8077
+ side: "BUY" | "SELL";
8078
+ mode: "QUANTITY" | "USD";
8079
+ amount: string;
8080
+ reduceOnly: boolean;
8081
+ id?: string | undefined;
8082
+ maxImpactPrice?: string | undefined;
8083
+ }, ...{
8084
+ symbol: string;
8085
+ side: "BUY" | "SELL";
8086
+ mode: "QUANTITY" | "USD";
8087
+ amount: string;
8088
+ reduceOnly: boolean;
8089
+ id?: string | undefined;
8090
+ maxImpactPrice?: string | undefined;
8091
+ }[]];
8092
+ error?: string | undefined;
8093
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
8094
+ refusedLegs?: {
8095
+ id: string;
8096
+ ticker: string;
8097
+ errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
8098
+ error: string;
8099
+ }[] | undefined;
8100
+ orders?: ({
8101
+ id: string;
8102
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8103
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8104
+ createdAt: string;
8105
+ updatedAt: string;
8106
+ type: "MARKET";
8107
+ symbol: string;
8108
+ side: "BUY" | "SELL";
8109
+ reduceOnly: boolean;
8110
+ quantity: string;
8111
+ price: string;
8112
+ filledQuantity: string;
8113
+ error?: string | undefined;
8114
+ errorCode?: string | undefined;
8115
+ filledPrice?: string | undefined;
8116
+ } | {
8117
+ id: string;
8118
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8119
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8120
+ createdAt: string;
8121
+ updatedAt: string;
8122
+ type: "RESTING";
8123
+ symbol: string;
8124
+ side: "BUY" | "SELL";
8125
+ reduceOnly: boolean;
8126
+ quantity: string;
8127
+ price: string;
8128
+ filledQuantity: string;
8129
+ error?: string | undefined;
8130
+ errorCode?: string | undefined;
8131
+ })[] | undefined;
8132
+ fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
8133
+ position?: {
8134
+ id: string;
8135
+ } | undefined;
8136
+ deadlineAt?: string | undefined;
8137
+ chaseOrders?: {
8138
+ id: string;
8139
+ executionId: string;
8140
+ instrumentId: string;
8141
+ side: "BUY" | "SELL";
8142
+ quantity: string;
8143
+ filledQuantity: string;
8144
+ makerFilledQuantity: string;
8145
+ takerFilledQuantity: string;
8146
+ attempts: ({
8147
+ id: string;
8148
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8149
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8150
+ createdAt: string;
8151
+ updatedAt: string;
8152
+ type: "MARKET";
8153
+ symbol: string;
8154
+ side: "BUY" | "SELL";
8155
+ reduceOnly: boolean;
8156
+ quantity: string;
8157
+ price: string;
8158
+ filledQuantity: string;
8159
+ error?: string | undefined;
8160
+ errorCode?: string | undefined;
8161
+ filledPrice?: string | undefined;
8162
+ } | {
8163
+ id: string;
8164
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8165
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8166
+ createdAt: string;
8167
+ updatedAt: string;
8168
+ type: "RESTING";
8169
+ symbol: string;
8170
+ side: "BUY" | "SELL";
8171
+ reduceOnly: boolean;
8172
+ quantity: string;
8173
+ price: string;
8174
+ filledQuantity: string;
8175
+ error?: string | undefined;
8176
+ errorCode?: string | undefined;
8177
+ })[];
8178
+ averageFillPrice?: string | undefined;
8179
+ }[] | undefined;
8180
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
8181
+ };
8182
+ }>;
8183
+ close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
7121
8184
  execution: {
7122
8185
  id: string;
7123
8186
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
@@ -7144,14 +8207,14 @@ declare class Core {
7144
8207
  maxImpactPrice?: string | undefined;
7145
8208
  }[]];
7146
8209
  error?: string | undefined;
7147
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8210
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7148
8211
  refusedLegs?: {
7149
8212
  id: string;
7150
8213
  ticker: string;
7151
8214
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7152
8215
  error: string;
7153
8216
  }[] | undefined;
7154
- orders?: {
8217
+ orders?: ({
7155
8218
  id: string;
7156
8219
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7157
8220
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7167,7 +8230,22 @@ declare class Core {
7167
8230
  error?: string | undefined;
7168
8231
  errorCode?: string | undefined;
7169
8232
  filledPrice?: string | undefined;
7170
- }[] | undefined;
8233
+ } | {
8234
+ id: string;
8235
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8236
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8237
+ createdAt: string;
8238
+ updatedAt: string;
8239
+ type: "RESTING";
8240
+ symbol: string;
8241
+ side: "BUY" | "SELL";
8242
+ reduceOnly: boolean;
8243
+ quantity: string;
8244
+ price: string;
8245
+ filledQuantity: string;
8246
+ error?: string | undefined;
8247
+ errorCode?: string | undefined;
8248
+ })[] | undefined;
7171
8249
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7172
8250
  position?: {
7173
8251
  id: string;
@@ -7198,14 +8276,14 @@ declare class Core {
7198
8276
  maxImpactPrice?: string | undefined;
7199
8277
  }[]];
7200
8278
  error?: string | undefined;
7201
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8279
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7202
8280
  refusedLegs?: {
7203
8281
  id: string;
7204
8282
  ticker: string;
7205
8283
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7206
8284
  error: string;
7207
8285
  }[] | undefined;
7208
- orders?: {
8286
+ orders?: ({
7209
8287
  id: string;
7210
8288
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7211
8289
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7221,7 +8299,22 @@ declare class Core {
7221
8299
  error?: string | undefined;
7222
8300
  errorCode?: string | undefined;
7223
8301
  filledPrice?: string | undefined;
7224
- }[] | undefined;
8302
+ } | {
8303
+ id: string;
8304
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8305
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8306
+ createdAt: string;
8307
+ updatedAt: string;
8308
+ type: "RESTING";
8309
+ symbol: string;
8310
+ side: "BUY" | "SELL";
8311
+ reduceOnly: boolean;
8312
+ quantity: string;
8313
+ price: string;
8314
+ filledQuantity: string;
8315
+ error?: string | undefined;
8316
+ errorCode?: string | undefined;
8317
+ })[] | undefined;
7225
8318
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7226
8319
  position?: {
7227
8320
  id: string;
@@ -7236,14 +8329,14 @@ declare class Core {
7236
8329
  intent: "CLOSE";
7237
8330
  orderType: "MARKET";
7238
8331
  error?: string | undefined;
7239
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8332
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7240
8333
  refusedLegs?: {
7241
8334
  id: string;
7242
8335
  ticker: string;
7243
8336
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7244
8337
  error: string;
7245
8338
  }[] | undefined;
7246
- orders?: {
8339
+ orders?: ({
7247
8340
  id: string;
7248
8341
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7249
8342
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7259,7 +8352,22 @@ declare class Core {
7259
8352
  error?: string | undefined;
7260
8353
  errorCode?: string | undefined;
7261
8354
  filledPrice?: string | undefined;
7262
- }[] | undefined;
8355
+ } | {
8356
+ id: string;
8357
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8358
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8359
+ createdAt: string;
8360
+ updatedAt: string;
8361
+ type: "RESTING";
8362
+ symbol: string;
8363
+ side: "BUY" | "SELL";
8364
+ reduceOnly: boolean;
8365
+ quantity: string;
8366
+ price: string;
8367
+ filledQuantity: string;
8368
+ error?: string | undefined;
8369
+ errorCode?: string | undefined;
8370
+ })[] | undefined;
7263
8371
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7264
8372
  position?: {
7265
8373
  id: string;
@@ -7274,14 +8382,14 @@ declare class Core {
7274
8382
  intent: "REVERSE";
7275
8383
  orderType: "MARKET";
7276
8384
  error?: string | undefined;
7277
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8385
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7278
8386
  refusedLegs?: {
7279
8387
  id: string;
7280
8388
  ticker: string;
7281
8389
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7282
8390
  error: string;
7283
8391
  }[] | undefined;
7284
- orders?: {
8392
+ orders?: ({
7285
8393
  id: string;
7286
8394
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7287
8395
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7297,23 +8405,35 @@ declare class Core {
7297
8405
  error?: string | undefined;
7298
8406
  errorCode?: string | undefined;
7299
8407
  filledPrice?: string | undefined;
7300
- }[] | undefined;
8408
+ } | {
8409
+ id: string;
8410
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8411
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8412
+ createdAt: string;
8413
+ updatedAt: string;
8414
+ type: "RESTING";
8415
+ symbol: string;
8416
+ side: "BUY" | "SELL";
8417
+ reduceOnly: boolean;
8418
+ quantity: string;
8419
+ price: string;
8420
+ filledQuantity: string;
8421
+ error?: string | undefined;
8422
+ errorCode?: string | undefined;
8423
+ })[] | undefined;
7301
8424
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7302
8425
  position?: {
7303
8426
  id: string;
7304
8427
  exposure: Record<string, `-${string}` | `+${string}`>;
7305
8428
  } | undefined;
7306
- };
7307
- }>;
7308
- adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
7309
- execution: {
8429
+ } | {
7310
8430
  id: string;
7311
8431
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7312
8432
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7313
8433
  createdAt: string;
7314
8434
  updatedAt: string;
7315
8435
  intent: "OPEN";
7316
- orderType: "MARKET";
8436
+ orderType: "CHASE_LIMIT";
7317
8437
  legs: [{
7318
8438
  symbol: string;
7319
8439
  side: "BUY" | "SELL";
@@ -7332,14 +8452,14 @@ declare class Core {
7332
8452
  maxImpactPrice?: string | undefined;
7333
8453
  }[]];
7334
8454
  error?: string | undefined;
7335
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8455
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7336
8456
  refusedLegs?: {
7337
8457
  id: string;
7338
8458
  ticker: string;
7339
8459
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7340
8460
  error: string;
7341
8461
  }[] | undefined;
7342
- orders?: {
8462
+ orders?: ({
7343
8463
  id: string;
7344
8464
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7345
8465
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7355,18 +8475,81 @@ declare class Core {
7355
8475
  error?: string | undefined;
7356
8476
  errorCode?: string | undefined;
7357
8477
  filledPrice?: string | undefined;
7358
- }[] | undefined;
8478
+ } | {
8479
+ id: string;
8480
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8481
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8482
+ createdAt: string;
8483
+ updatedAt: string;
8484
+ type: "RESTING";
8485
+ symbol: string;
8486
+ side: "BUY" | "SELL";
8487
+ reduceOnly: boolean;
8488
+ quantity: string;
8489
+ price: string;
8490
+ filledQuantity: string;
8491
+ error?: string | undefined;
8492
+ errorCode?: string | undefined;
8493
+ })[] | undefined;
7359
8494
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7360
8495
  position?: {
7361
8496
  id: string;
7362
8497
  } | undefined;
7363
- } | {
8498
+ deadlineAt?: string | undefined;
8499
+ chaseOrders?: {
8500
+ id: string;
8501
+ executionId: string;
8502
+ instrumentId: string;
8503
+ side: "BUY" | "SELL";
8504
+ quantity: string;
8505
+ filledQuantity: string;
8506
+ makerFilledQuantity: string;
8507
+ takerFilledQuantity: string;
8508
+ attempts: ({
8509
+ id: string;
8510
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8511
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8512
+ createdAt: string;
8513
+ updatedAt: string;
8514
+ type: "MARKET";
8515
+ symbol: string;
8516
+ side: "BUY" | "SELL";
8517
+ reduceOnly: boolean;
8518
+ quantity: string;
8519
+ price: string;
8520
+ filledQuantity: string;
8521
+ error?: string | undefined;
8522
+ errorCode?: string | undefined;
8523
+ filledPrice?: string | undefined;
8524
+ } | {
8525
+ id: string;
8526
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8527
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8528
+ createdAt: string;
8529
+ updatedAt: string;
8530
+ type: "RESTING";
8531
+ symbol: string;
8532
+ side: "BUY" | "SELL";
8533
+ reduceOnly: boolean;
8534
+ quantity: string;
8535
+ price: string;
8536
+ filledQuantity: string;
8537
+ error?: string | undefined;
8538
+ errorCode?: string | undefined;
8539
+ })[];
8540
+ averageFillPrice?: string | undefined;
8541
+ }[] | undefined;
8542
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
8543
+ };
8544
+ }>;
8545
+ reverse: (positionId: string, body: HttpTypes.CreateTradeReverse, headers?: ClientHeaders) => Promise<{
8546
+ execution: {
7364
8547
  id: string;
7365
8548
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7366
8549
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7367
8550
  createdAt: string;
7368
8551
  updatedAt: string;
7369
- intent: "ADJUST";
8552
+ intent: "OPEN";
7370
8553
  orderType: "MARKET";
7371
8554
  legs: [{
7372
8555
  symbol: string;
@@ -7386,14 +8569,14 @@ declare class Core {
7386
8569
  maxImpactPrice?: string | undefined;
7387
8570
  }[]];
7388
8571
  error?: string | undefined;
7389
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8572
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7390
8573
  refusedLegs?: {
7391
8574
  id: string;
7392
8575
  ticker: string;
7393
8576
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7394
8577
  error: string;
7395
8578
  }[] | undefined;
7396
- orders?: {
8579
+ orders?: ({
7397
8580
  id: string;
7398
8581
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7399
8582
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7409,35 +8592,13 @@ declare class Core {
7409
8592
  error?: string | undefined;
7410
8593
  errorCode?: string | undefined;
7411
8594
  filledPrice?: string | undefined;
7412
- }[] | undefined;
7413
- fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7414
- position?: {
7415
- id: string;
7416
- exposure: Record<string, `-${string}` | `+${string}`>;
7417
- } | undefined;
7418
- } | {
7419
- id: string;
7420
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7421
- status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7422
- createdAt: string;
7423
- updatedAt: string;
7424
- intent: "CLOSE";
7425
- orderType: "MARKET";
7426
- error?: string | undefined;
7427
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
7428
- refusedLegs?: {
7429
- id: string;
7430
- ticker: string;
7431
- errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7432
- error: string;
7433
- }[] | undefined;
7434
- orders?: {
8595
+ } | {
7435
8596
  id: string;
7436
8597
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7437
8598
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7438
8599
  createdAt: string;
7439
8600
  updatedAt: string;
7440
- type: "MARKET";
8601
+ type: "RESTING";
7441
8602
  symbol: string;
7442
8603
  side: "BUY" | "SELL";
7443
8604
  reduceOnly: boolean;
@@ -7446,12 +8607,10 @@ declare class Core {
7446
8607
  filledQuantity: string;
7447
8608
  error?: string | undefined;
7448
8609
  errorCode?: string | undefined;
7449
- filledPrice?: string | undefined;
7450
- }[] | undefined;
8610
+ })[] | undefined;
7451
8611
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7452
8612
  position?: {
7453
8613
  id: string;
7454
- exposure: Record<string, `-${string}` | `+${string}`>;
7455
8614
  } | undefined;
7456
8615
  } | {
7457
8616
  id: string;
@@ -7459,48 +8618,7 @@ declare class Core {
7459
8618
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7460
8619
  createdAt: string;
7461
8620
  updatedAt: string;
7462
- intent: "REVERSE";
7463
- orderType: "MARKET";
7464
- error?: string | undefined;
7465
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
7466
- refusedLegs?: {
7467
- id: string;
7468
- ticker: string;
7469
- errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7470
- error: string;
7471
- }[] | undefined;
7472
- orders?: {
7473
- id: string;
7474
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7475
- status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7476
- createdAt: string;
7477
- updatedAt: string;
7478
- type: "MARKET";
7479
- symbol: string;
7480
- side: "BUY" | "SELL";
7481
- reduceOnly: boolean;
7482
- quantity: string;
7483
- price: string;
7484
- filledQuantity: string;
7485
- error?: string | undefined;
7486
- errorCode?: string | undefined;
7487
- filledPrice?: string | undefined;
7488
- }[] | undefined;
7489
- fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7490
- position?: {
7491
- id: string;
7492
- exposure: Record<string, `-${string}` | `+${string}`>;
7493
- } | undefined;
7494
- };
7495
- }>;
7496
- close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
7497
- execution: {
7498
- id: string;
7499
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7500
- status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7501
- createdAt: string;
7502
- updatedAt: string;
7503
- intent: "OPEN";
8621
+ intent: "ADJUST";
7504
8622
  orderType: "MARKET";
7505
8623
  legs: [{
7506
8624
  symbol: string;
@@ -7520,14 +8638,14 @@ declare class Core {
7520
8638
  maxImpactPrice?: string | undefined;
7521
8639
  }[]];
7522
8640
  error?: string | undefined;
7523
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8641
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7524
8642
  refusedLegs?: {
7525
8643
  id: string;
7526
8644
  ticker: string;
7527
8645
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7528
8646
  error: string;
7529
8647
  }[] | undefined;
7530
- orders?: {
8648
+ orders?: ({
7531
8649
  id: string;
7532
8650
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7533
8651
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7543,10 +8661,26 @@ declare class Core {
7543
8661
  error?: string | undefined;
7544
8662
  errorCode?: string | undefined;
7545
8663
  filledPrice?: string | undefined;
7546
- }[] | undefined;
8664
+ } | {
8665
+ id: string;
8666
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8667
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8668
+ createdAt: string;
8669
+ updatedAt: string;
8670
+ type: "RESTING";
8671
+ symbol: string;
8672
+ side: "BUY" | "SELL";
8673
+ reduceOnly: boolean;
8674
+ quantity: string;
8675
+ price: string;
8676
+ filledQuantity: string;
8677
+ error?: string | undefined;
8678
+ errorCode?: string | undefined;
8679
+ })[] | undefined;
7547
8680
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7548
8681
  position?: {
7549
8682
  id: string;
8683
+ exposure: Record<string, `-${string}` | `+${string}`>;
7550
8684
  } | undefined;
7551
8685
  } | {
7552
8686
  id: string;
@@ -7554,34 +8688,17 @@ declare class Core {
7554
8688
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7555
8689
  createdAt: string;
7556
8690
  updatedAt: string;
7557
- intent: "ADJUST";
8691
+ intent: "CLOSE";
7558
8692
  orderType: "MARKET";
7559
- legs: [{
7560
- symbol: string;
7561
- side: "BUY" | "SELL";
7562
- mode: "QUANTITY" | "USD";
7563
- amount: string;
7564
- reduceOnly: boolean;
7565
- id?: string | undefined;
7566
- maxImpactPrice?: string | undefined;
7567
- }, ...{
7568
- symbol: string;
7569
- side: "BUY" | "SELL";
7570
- mode: "QUANTITY" | "USD";
7571
- amount: string;
7572
- reduceOnly: boolean;
7573
- id?: string | undefined;
7574
- maxImpactPrice?: string | undefined;
7575
- }[]];
7576
8693
  error?: string | undefined;
7577
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8694
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7578
8695
  refusedLegs?: {
7579
8696
  id: string;
7580
8697
  ticker: string;
7581
8698
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7582
8699
  error: string;
7583
8700
  }[] | undefined;
7584
- orders?: {
8701
+ orders?: ({
7585
8702
  id: string;
7586
8703
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7587
8704
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7597,7 +8714,22 @@ declare class Core {
7597
8714
  error?: string | undefined;
7598
8715
  errorCode?: string | undefined;
7599
8716
  filledPrice?: string | undefined;
7600
- }[] | undefined;
8717
+ } | {
8718
+ id: string;
8719
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8720
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8721
+ createdAt: string;
8722
+ updatedAt: string;
8723
+ type: "RESTING";
8724
+ symbol: string;
8725
+ side: "BUY" | "SELL";
8726
+ reduceOnly: boolean;
8727
+ quantity: string;
8728
+ price: string;
8729
+ filledQuantity: string;
8730
+ error?: string | undefined;
8731
+ errorCode?: string | undefined;
8732
+ })[] | undefined;
7601
8733
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7602
8734
  position?: {
7603
8735
  id: string;
@@ -7609,17 +8741,17 @@ declare class Core {
7609
8741
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7610
8742
  createdAt: string;
7611
8743
  updatedAt: string;
7612
- intent: "CLOSE";
8744
+ intent: "REVERSE";
7613
8745
  orderType: "MARKET";
7614
8746
  error?: string | undefined;
7615
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8747
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7616
8748
  refusedLegs?: {
7617
8749
  id: string;
7618
8750
  ticker: string;
7619
8751
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7620
8752
  error: string;
7621
8753
  }[] | undefined;
7622
- orders?: {
8754
+ orders?: ({
7623
8755
  id: string;
7624
8756
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7625
8757
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7635,7 +8767,22 @@ declare class Core {
7635
8767
  error?: string | undefined;
7636
8768
  errorCode?: string | undefined;
7637
8769
  filledPrice?: string | undefined;
7638
- }[] | undefined;
8770
+ } | {
8771
+ id: string;
8772
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8773
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8774
+ createdAt: string;
8775
+ updatedAt: string;
8776
+ type: "RESTING";
8777
+ symbol: string;
8778
+ side: "BUY" | "SELL";
8779
+ reduceOnly: boolean;
8780
+ quantity: string;
8781
+ price: string;
8782
+ filledQuantity: string;
8783
+ error?: string | undefined;
8784
+ errorCode?: string | undefined;
8785
+ })[] | undefined;
7639
8786
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7640
8787
  position?: {
7641
8788
  id: string;
@@ -7647,17 +8794,34 @@ declare class Core {
7647
8794
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7648
8795
  createdAt: string;
7649
8796
  updatedAt: string;
7650
- intent: "REVERSE";
7651
- orderType: "MARKET";
8797
+ intent: "OPEN";
8798
+ orderType: "CHASE_LIMIT";
8799
+ legs: [{
8800
+ symbol: string;
8801
+ side: "BUY" | "SELL";
8802
+ mode: "QUANTITY" | "USD";
8803
+ amount: string;
8804
+ reduceOnly: boolean;
8805
+ id?: string | undefined;
8806
+ maxImpactPrice?: string | undefined;
8807
+ }, ...{
8808
+ symbol: string;
8809
+ side: "BUY" | "SELL";
8810
+ mode: "QUANTITY" | "USD";
8811
+ amount: string;
8812
+ reduceOnly: boolean;
8813
+ id?: string | undefined;
8814
+ maxImpactPrice?: string | undefined;
8815
+ }[]];
7652
8816
  error?: string | undefined;
7653
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8817
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7654
8818
  refusedLegs?: {
7655
8819
  id: string;
7656
8820
  ticker: string;
7657
8821
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7658
8822
  error: string;
7659
8823
  }[] | undefined;
7660
- orders?: {
8824
+ orders?: ({
7661
8825
  id: string;
7662
8826
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7663
8827
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7673,16 +8837,75 @@ declare class Core {
7673
8837
  error?: string | undefined;
7674
8838
  errorCode?: string | undefined;
7675
8839
  filledPrice?: string | undefined;
7676
- }[] | undefined;
8840
+ } | {
8841
+ id: string;
8842
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8843
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8844
+ createdAt: string;
8845
+ updatedAt: string;
8846
+ type: "RESTING";
8847
+ symbol: string;
8848
+ side: "BUY" | "SELL";
8849
+ reduceOnly: boolean;
8850
+ quantity: string;
8851
+ price: string;
8852
+ filledQuantity: string;
8853
+ error?: string | undefined;
8854
+ errorCode?: string | undefined;
8855
+ })[] | undefined;
7677
8856
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7678
8857
  position?: {
7679
8858
  id: string;
7680
- exposure: Record<string, `-${string}` | `+${string}`>;
7681
8859
  } | undefined;
8860
+ deadlineAt?: string | undefined;
8861
+ chaseOrders?: {
8862
+ id: string;
8863
+ executionId: string;
8864
+ instrumentId: string;
8865
+ side: "BUY" | "SELL";
8866
+ quantity: string;
8867
+ filledQuantity: string;
8868
+ makerFilledQuantity: string;
8869
+ takerFilledQuantity: string;
8870
+ attempts: ({
8871
+ id: string;
8872
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8873
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8874
+ createdAt: string;
8875
+ updatedAt: string;
8876
+ type: "MARKET";
8877
+ symbol: string;
8878
+ side: "BUY" | "SELL";
8879
+ reduceOnly: boolean;
8880
+ quantity: string;
8881
+ price: string;
8882
+ filledQuantity: string;
8883
+ error?: string | undefined;
8884
+ errorCode?: string | undefined;
8885
+ filledPrice?: string | undefined;
8886
+ } | {
8887
+ id: string;
8888
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8889
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8890
+ createdAt: string;
8891
+ updatedAt: string;
8892
+ type: "RESTING";
8893
+ symbol: string;
8894
+ side: "BUY" | "SELL";
8895
+ reduceOnly: boolean;
8896
+ quantity: string;
8897
+ price: string;
8898
+ filledQuantity: string;
8899
+ error?: string | undefined;
8900
+ errorCode?: string | undefined;
8901
+ })[];
8902
+ averageFillPrice?: string | undefined;
8903
+ }[] | undefined;
8904
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
7682
8905
  };
7683
8906
  }>;
7684
- reverse: (positionId: string, body: HttpTypes.CreateTradeReverse, headers?: ClientHeaders) => Promise<{
7685
- execution: {
8907
+ closeAll: (body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders) => Promise<{
8908
+ executions: ({
7686
8909
  id: string;
7687
8910
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7688
8911
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
@@ -7708,14 +8931,14 @@ declare class Core {
7708
8931
  maxImpactPrice?: string | undefined;
7709
8932
  }[]];
7710
8933
  error?: string | undefined;
7711
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8934
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7712
8935
  refusedLegs?: {
7713
8936
  id: string;
7714
8937
  ticker: string;
7715
8938
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7716
8939
  error: string;
7717
8940
  }[] | undefined;
7718
- orders?: {
8941
+ orders?: ({
7719
8942
  id: string;
7720
8943
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7721
8944
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7731,7 +8954,22 @@ declare class Core {
7731
8954
  error?: string | undefined;
7732
8955
  errorCode?: string | undefined;
7733
8956
  filledPrice?: string | undefined;
7734
- }[] | undefined;
8957
+ } | {
8958
+ id: string;
8959
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8960
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8961
+ createdAt: string;
8962
+ updatedAt: string;
8963
+ type: "RESTING";
8964
+ symbol: string;
8965
+ side: "BUY" | "SELL";
8966
+ reduceOnly: boolean;
8967
+ quantity: string;
8968
+ price: string;
8969
+ filledQuantity: string;
8970
+ error?: string | undefined;
8971
+ errorCode?: string | undefined;
8972
+ })[] | undefined;
7735
8973
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7736
8974
  position?: {
7737
8975
  id: string;
@@ -7762,14 +9000,14 @@ declare class Core {
7762
9000
  maxImpactPrice?: string | undefined;
7763
9001
  }[]];
7764
9002
  error?: string | undefined;
7765
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
9003
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7766
9004
  refusedLegs?: {
7767
9005
  id: string;
7768
9006
  ticker: string;
7769
9007
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7770
9008
  error: string;
7771
9009
  }[] | undefined;
7772
- orders?: {
9010
+ orders?: ({
7773
9011
  id: string;
7774
9012
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7775
9013
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7785,7 +9023,22 @@ declare class Core {
7785
9023
  error?: string | undefined;
7786
9024
  errorCode?: string | undefined;
7787
9025
  filledPrice?: string | undefined;
7788
- }[] | undefined;
9026
+ } | {
9027
+ id: string;
9028
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9029
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
9030
+ createdAt: string;
9031
+ updatedAt: string;
9032
+ type: "RESTING";
9033
+ symbol: string;
9034
+ side: "BUY" | "SELL";
9035
+ reduceOnly: boolean;
9036
+ quantity: string;
9037
+ price: string;
9038
+ filledQuantity: string;
9039
+ error?: string | undefined;
9040
+ errorCode?: string | undefined;
9041
+ })[] | undefined;
7789
9042
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7790
9043
  position?: {
7791
9044
  id: string;
@@ -7800,14 +9053,14 @@ declare class Core {
7800
9053
  intent: "CLOSE";
7801
9054
  orderType: "MARKET";
7802
9055
  error?: string | undefined;
7803
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
9056
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7804
9057
  refusedLegs?: {
7805
9058
  id: string;
7806
9059
  ticker: string;
7807
9060
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7808
9061
  error: string;
7809
9062
  }[] | undefined;
7810
- orders?: {
9063
+ orders?: ({
7811
9064
  id: string;
7812
9065
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7813
9066
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7823,7 +9076,22 @@ declare class Core {
7823
9076
  error?: string | undefined;
7824
9077
  errorCode?: string | undefined;
7825
9078
  filledPrice?: string | undefined;
7826
- }[] | undefined;
9079
+ } | {
9080
+ id: string;
9081
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9082
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
9083
+ createdAt: string;
9084
+ updatedAt: string;
9085
+ type: "RESTING";
9086
+ symbol: string;
9087
+ side: "BUY" | "SELL";
9088
+ reduceOnly: boolean;
9089
+ quantity: string;
9090
+ price: string;
9091
+ filledQuantity: string;
9092
+ error?: string | undefined;
9093
+ errorCode?: string | undefined;
9094
+ })[] | undefined;
7827
9095
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7828
9096
  position?: {
7829
9097
  id: string;
@@ -7838,14 +9106,14 @@ declare class Core {
7838
9106
  intent: "REVERSE";
7839
9107
  orderType: "MARKET";
7840
9108
  error?: string | undefined;
7841
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
9109
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7842
9110
  refusedLegs?: {
7843
9111
  id: string;
7844
9112
  ticker: string;
7845
9113
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7846
9114
  error: string;
7847
9115
  }[] | undefined;
7848
- orders?: {
9116
+ orders?: ({
7849
9117
  id: string;
7850
9118
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7851
9119
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7861,55 +9129,13 @@ declare class Core {
7861
9129
  error?: string | undefined;
7862
9130
  errorCode?: string | undefined;
7863
9131
  filledPrice?: string | undefined;
7864
- }[] | undefined;
7865
- fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7866
- position?: {
7867
- id: string;
7868
- exposure: Record<string, `-${string}` | `+${string}`>;
7869
- } | undefined;
7870
- };
7871
- }>;
7872
- closeAll: (body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders) => Promise<{
7873
- executions: ({
7874
- id: string;
7875
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7876
- status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7877
- createdAt: string;
7878
- updatedAt: string;
7879
- intent: "OPEN";
7880
- orderType: "MARKET";
7881
- legs: [{
7882
- symbol: string;
7883
- side: "BUY" | "SELL";
7884
- mode: "QUANTITY" | "USD";
7885
- amount: string;
7886
- reduceOnly: boolean;
7887
- id?: string | undefined;
7888
- maxImpactPrice?: string | undefined;
7889
- }, ...{
7890
- symbol: string;
7891
- side: "BUY" | "SELL";
7892
- mode: "QUANTITY" | "USD";
7893
- amount: string;
7894
- reduceOnly: boolean;
7895
- id?: string | undefined;
7896
- maxImpactPrice?: string | undefined;
7897
- }[]];
7898
- error?: string | undefined;
7899
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
7900
- refusedLegs?: {
7901
- id: string;
7902
- ticker: string;
7903
- errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7904
- error: string;
7905
- }[] | undefined;
7906
- orders?: {
9132
+ } | {
7907
9133
  id: string;
7908
9134
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7909
9135
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
7910
9136
  createdAt: string;
7911
9137
  updatedAt: string;
7912
- type: "MARKET";
9138
+ type: "RESTING";
7913
9139
  symbol: string;
7914
9140
  side: "BUY" | "SELL";
7915
9141
  reduceOnly: boolean;
@@ -7918,11 +9144,11 @@ declare class Core {
7918
9144
  filledQuantity: string;
7919
9145
  error?: string | undefined;
7920
9146
  errorCode?: string | undefined;
7921
- filledPrice?: string | undefined;
7922
- }[] | undefined;
9147
+ })[] | undefined;
7923
9148
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7924
9149
  position?: {
7925
9150
  id: string;
9151
+ exposure: Record<string, `-${string}` | `+${string}`>;
7926
9152
  } | undefined;
7927
9153
  } | {
7928
9154
  id: string;
@@ -7930,8 +9156,8 @@ declare class Core {
7930
9156
  status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7931
9157
  createdAt: string;
7932
9158
  updatedAt: string;
7933
- intent: "ADJUST";
7934
- orderType: "MARKET";
9159
+ intent: "OPEN";
9160
+ orderType: "CHASE_LIMIT";
7935
9161
  legs: [{
7936
9162
  symbol: string;
7937
9163
  side: "BUY" | "SELL";
@@ -7950,14 +9176,14 @@ declare class Core {
7950
9176
  maxImpactPrice?: string | undefined;
7951
9177
  }[]];
7952
9178
  error?: string | undefined;
7953
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
9179
+ errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
7954
9180
  refusedLegs?: {
7955
9181
  id: string;
7956
9182
  ticker: string;
7957
9183
  errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7958
9184
  error: string;
7959
9185
  }[] | undefined;
7960
- orders?: {
9186
+ orders?: ({
7961
9187
  id: string;
7962
9188
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7963
9189
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
@@ -7973,35 +9199,13 @@ declare class Core {
7973
9199
  error?: string | undefined;
7974
9200
  errorCode?: string | undefined;
7975
9201
  filledPrice?: string | undefined;
7976
- }[] | undefined;
7977
- fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
7978
- position?: {
7979
- id: string;
7980
- exposure: Record<string, `-${string}` | `+${string}`>;
7981
- } | undefined;
7982
- } | {
7983
- id: string;
7984
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
7985
- status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
7986
- createdAt: string;
7987
- updatedAt: string;
7988
- intent: "CLOSE";
7989
- orderType: "MARKET";
7990
- error?: string | undefined;
7991
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
7992
- refusedLegs?: {
7993
- id: string;
7994
- ticker: string;
7995
- errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
7996
- error: string;
7997
- }[] | undefined;
7998
- orders?: {
9202
+ } | {
7999
9203
  id: string;
8000
9204
  connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8001
9205
  status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8002
9206
  createdAt: string;
8003
9207
  updatedAt: string;
8004
- type: "MARKET";
9208
+ type: "RESTING";
8005
9209
  symbol: string;
8006
9210
  side: "BUY" | "SELL";
8007
9211
  reduceOnly: boolean;
@@ -8010,51 +9214,56 @@ declare class Core {
8010
9214
  filledQuantity: string;
8011
9215
  error?: string | undefined;
8012
9216
  errorCode?: string | undefined;
8013
- filledPrice?: string | undefined;
8014
- }[] | undefined;
9217
+ })[] | undefined;
8015
9218
  fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
8016
9219
  position?: {
8017
9220
  id: string;
8018
- exposure: Record<string, `-${string}` | `+${string}`>;
8019
9221
  } | undefined;
8020
- } | {
8021
- id: string;
8022
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8023
- status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
8024
- createdAt: string;
8025
- updatedAt: string;
8026
- intent: "REVERSE";
8027
- orderType: "MARKET";
8028
- error?: string | undefined;
8029
- errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
8030
- refusedLegs?: {
8031
- id: string;
8032
- ticker: string;
8033
- errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
8034
- error: string;
8035
- }[] | undefined;
8036
- orders?: {
9222
+ deadlineAt?: string | undefined;
9223
+ chaseOrders?: {
8037
9224
  id: string;
8038
- connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
8039
- status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
8040
- createdAt: string;
8041
- updatedAt: string;
8042
- type: "MARKET";
8043
- symbol: string;
9225
+ executionId: string;
9226
+ instrumentId: string;
8044
9227
  side: "BUY" | "SELL";
8045
- reduceOnly: boolean;
8046
9228
  quantity: string;
8047
- price: string;
8048
9229
  filledQuantity: string;
8049
- error?: string | undefined;
8050
- errorCode?: string | undefined;
8051
- filledPrice?: string | undefined;
9230
+ makerFilledQuantity: string;
9231
+ takerFilledQuantity: string;
9232
+ attempts: ({
9233
+ id: string;
9234
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9235
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
9236
+ createdAt: string;
9237
+ updatedAt: string;
9238
+ type: "MARKET";
9239
+ symbol: string;
9240
+ side: "BUY" | "SELL";
9241
+ reduceOnly: boolean;
9242
+ quantity: string;
9243
+ price: string;
9244
+ filledQuantity: string;
9245
+ error?: string | undefined;
9246
+ errorCode?: string | undefined;
9247
+ filledPrice?: string | undefined;
9248
+ } | {
9249
+ id: string;
9250
+ connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
9251
+ status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
9252
+ createdAt: string;
9253
+ updatedAt: string;
9254
+ type: "RESTING";
9255
+ symbol: string;
9256
+ side: "BUY" | "SELL";
9257
+ reduceOnly: boolean;
9258
+ quantity: string;
9259
+ price: string;
9260
+ filledQuantity: string;
9261
+ error?: string | undefined;
9262
+ errorCode?: string | undefined;
9263
+ })[];
9264
+ averageFillPrice?: string | undefined;
8052
9265
  }[] | undefined;
8053
- fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
8054
- position?: {
8055
- id: string;
8056
- exposure: Record<string, `-${string}` | `+${string}`>;
8057
- } | undefined;
9266
+ completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
8058
9267
  })[];
8059
9268
  }>;
8060
9269
  setLeverage: (body: HttpTypes.SetLeverageInput, headers?: ClientHeaders) => Promise<Record<string, never>>;
@@ -8165,6 +9374,7 @@ declare class Core {
8165
9374
  side: "BUY" | "SELL";
8166
9375
  reduceOnly: boolean;
8167
9376
  isExternal: boolean;
9377
+ isMaker: boolean;
8168
9378
  synthetic: boolean;
8169
9379
  quantity: string;
8170
9380
  price: string;
@@ -8313,6 +9523,7 @@ declare class Core {
8313
9523
  side: "BUY" | "SELL";
8314
9524
  reduceOnly: boolean;
8315
9525
  isExternal: boolean;
9526
+ isMaker: boolean;
8316
9527
  synthetic: boolean;
8317
9528
  quantity: string;
8318
9529
  price: string;
@@ -8494,6 +9705,7 @@ declare class Core {
8494
9705
  side: "BUY" | "SELL";
8495
9706
  reduceOnly: boolean;
8496
9707
  isExternal: boolean;
9708
+ isMaker: boolean;
8497
9709
  synthetic: boolean;
8498
9710
  quantity: string;
8499
9711
  price: string;
@@ -8654,6 +9866,7 @@ declare class Core {
8654
9866
  side: "BUY" | "SELL";
8655
9867
  reduceOnly: boolean;
8656
9868
  isExternal: boolean;
9869
+ isMaker: boolean;
8657
9870
  synthetic: boolean;
8658
9871
  quantity: string;
8659
9872
  price: string;
@@ -8842,6 +10055,7 @@ declare class Core {
8842
10055
  side: "BUY" | "SELL";
8843
10056
  reduceOnly: boolean;
8844
10057
  isExternal: boolean;
10058
+ isMaker: boolean;
8845
10059
  synthetic: boolean;
8846
10060
  quantity: string;
8847
10061
  price: string;
@@ -8978,6 +10192,7 @@ declare class Core {
8978
10192
  side: "BUY" | "SELL";
8979
10193
  reduceOnly: boolean;
8980
10194
  isExternal: boolean;
10195
+ isMaker: boolean;
8981
10196
  synthetic: boolean;
8982
10197
  quantity: string;
8983
10198
  price: string;
@@ -9126,6 +10341,7 @@ declare class Core {
9126
10341
  side: "BUY" | "SELL";
9127
10342
  reduceOnly: boolean;
9128
10343
  isExternal: boolean;
10344
+ isMaker: boolean;
9129
10345
  synthetic: boolean;
9130
10346
  quantity: string;
9131
10347
  price: string;
@@ -9307,6 +10523,7 @@ declare class Core {
9307
10523
  side: "BUY" | "SELL";
9308
10524
  reduceOnly: boolean;
9309
10525
  isExternal: boolean;
10526
+ isMaker: boolean;
9310
10527
  synthetic: boolean;
9311
10528
  quantity: string;
9312
10529
  price: string;
@@ -9467,6 +10684,7 @@ declare class Core {
9467
10684
  side: "BUY" | "SELL";
9468
10685
  reduceOnly: boolean;
9469
10686
  isExternal: boolean;
10687
+ isMaker: boolean;
9470
10688
  synthetic: boolean;
9471
10689
  quantity: string;
9472
10690
  price: string;
@@ -9655,6 +10873,7 @@ declare class Core {
9655
10873
  side: "BUY" | "SELL";
9656
10874
  reduceOnly: boolean;
9657
10875
  isExternal: boolean;
10876
+ isMaker: boolean;
9658
10877
  synthetic: boolean;
9659
10878
  quantity: string;
9660
10879
  price: string;
@@ -9790,6 +11009,7 @@ declare class Core {
9790
11009
  side: "BUY" | "SELL";
9791
11010
  reduceOnly: boolean;
9792
11011
  isExternal: boolean;
11012
+ isMaker: boolean;
9793
11013
  synthetic: boolean;
9794
11014
  quantity: string;
9795
11015
  price: string;
@@ -9938,6 +11158,7 @@ declare class Core {
9938
11158
  side: "BUY" | "SELL";
9939
11159
  reduceOnly: boolean;
9940
11160
  isExternal: boolean;
11161
+ isMaker: boolean;
9941
11162
  synthetic: boolean;
9942
11163
  quantity: string;
9943
11164
  price: string;
@@ -10119,6 +11340,7 @@ declare class Core {
10119
11340
  side: "BUY" | "SELL";
10120
11341
  reduceOnly: boolean;
10121
11342
  isExternal: boolean;
11343
+ isMaker: boolean;
10122
11344
  synthetic: boolean;
10123
11345
  quantity: string;
10124
11346
  price: string;
@@ -10279,6 +11501,7 @@ declare class Core {
10279
11501
  side: "BUY" | "SELL";
10280
11502
  reduceOnly: boolean;
10281
11503
  isExternal: boolean;
11504
+ isMaker: boolean;
10282
11505
  synthetic: boolean;
10283
11506
  quantity: string;
10284
11507
  price: string;
@@ -10467,6 +11690,7 @@ declare class Core {
10467
11690
  side: "BUY" | "SELL";
10468
11691
  reduceOnly: boolean;
10469
11692
  isExternal: boolean;
11693
+ isMaker: boolean;
10470
11694
  synthetic: boolean;
10471
11695
  quantity: string;
10472
11696
  price: string;
@@ -11282,7 +12506,7 @@ declare class Core {
11282
12506
  } | {
11283
12507
  leaderPositionId: string;
11284
12508
  outcome: "SKIPPED";
11285
- reason: "ASSET_CONFLICT" | "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | "FOLLOWER_TWAP_NOT_ACTIVE" | "FOLLOWER_TWAP_ALREADY_ACTIVE" | "TRUE_UP_STALE";
12509
+ 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" | "MARGIN_NOT_APPLIED" | "FOLLOWER_TWAP_NOT_ACTIVE" | "FOLLOWER_TWAP_ALREADY_ACTIVE" | "TRUE_UP_STALE";
11286
12510
  } | {
11287
12511
  leaderPositionId: string;
11288
12512
  outcome: "FAILED";
@@ -11426,7 +12650,7 @@ declare class Core {
11426
12650
  activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
11427
12651
  activities: {
11428
12652
  id: string;
11429
- leaderAction: "TWAP" | "OPEN" | "CLOSE" | "ADJUST" | "REVERSE" | "TWAP_END" | "LEVERAGE_CHANGED";
12653
+ leaderAction: "TWAP" | "OPEN" | "CLOSE" | "ADJUST" | "REVERSE" | "TWAP_END" | "LEVERAGE_CHANGED" | "MARGIN_ADJUSTED";
11430
12654
  state: "RECORDED" | "DISPATCHED" | "SETTLED";
11431
12655
  followerLegs: {
11432
12656
  symbol: string;
@@ -11449,8 +12673,8 @@ declare class Core {
11449
12673
  origin: "AUTO_REBALANCE";
11450
12674
  configId: string;
11451
12675
  } | undefined;
11452
- outcome?: "FAILED" | "COPIED" | "PARTIAL" | "SKIPPED" | undefined;
11453
- skipReason?: "ASSET_CONFLICT" | "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | "FOLLOWER_TWAP_NOT_ACTIVE" | "FOLLOWER_TWAP_ALREADY_ACTIVE" | "TRUE_UP_STALE" | undefined;
12676
+ outcome?: "FAILED" | "SKIPPED" | "COPIED" | "PARTIAL" | undefined;
12677
+ 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" | "MARGIN_NOT_APPLIED" | "FOLLOWER_TWAP_NOT_ACTIVE" | "FOLLOWER_TWAP_ALREADY_ACTIVE" | "TRUE_UP_STALE" | undefined;
11454
12678
  failureReason?: string | undefined;
11455
12679
  leaderEquityFraction?: string | undefined;
11456
12680
  twap?: {
@@ -11691,7 +12915,7 @@ declare class Core {
11691
12915
  updatedAt: string;
11692
12916
  executionContext?: {
11693
12917
  intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
11694
- orderType: "MARKET";
12918
+ orderType: "MARKET" | "CHASE_LIMIT";
11695
12919
  executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
11696
12920
  legs: {
11697
12921
  symbol: string;
@@ -11782,7 +13006,7 @@ declare class Core {
11782
13006
  updatedAt: string;
11783
13007
  executionContext?: {
11784
13008
  intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
11785
- orderType: "MARKET";
13009
+ orderType: "MARKET" | "CHASE_LIMIT";
11786
13010
  executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
11787
13011
  legs: {
11788
13012
  symbol: string;