@pear-protocol/core-sdk 2.18.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.d.ts +1603 -209
- package/dist/core/index.js +60 -1
- package/dist/types.d.ts +1 -1
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -9,6 +9,143 @@ declare class Core {
|
|
|
9
9
|
constructor(client: HttpClient, clientId?: string | null);
|
|
10
10
|
private withClientId;
|
|
11
11
|
traders: {
|
|
12
|
+
/** Page through the curated venue addresses, newest first; read their stats from the venue directly. */
|
|
13
|
+
curated: (query?: HttpTypes.CuratedTradersQueryInput, headers?: ClientHeaders) => Promise<{
|
|
14
|
+
limit: number;
|
|
15
|
+
traders: {
|
|
16
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
17
|
+
address: HttpTypes.EthereumAddress;
|
|
18
|
+
name: string;
|
|
19
|
+
source: "CURATION" | "BUILDER" | "MOST_FAVORITED" | "TOP_CLAIMED" | "HYPERLIQUID_LEADERBOARD";
|
|
20
|
+
category?: string | undefined;
|
|
21
|
+
xHandle?: string | undefined;
|
|
22
|
+
xName?: string | undefined;
|
|
23
|
+
xAvatarUrl?: string | undefined;
|
|
24
|
+
xUserId?: string | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
nextCursor?: string | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
/** List the Hyperliquid builders whose most profitable users Pear tracks. */
|
|
29
|
+
builders: (headers?: ClientHeaders) => Promise<{
|
|
30
|
+
builders: {
|
|
31
|
+
address: HttpTypes.EthereumAddress;
|
|
32
|
+
name: string;
|
|
33
|
+
imageUrl?: string | undefined;
|
|
34
|
+
xHandle?: string | undefined;
|
|
35
|
+
snapshotAt?: string | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
}>;
|
|
38
|
+
/** Page a tracked builder's users ranked by PnL over a window. */
|
|
39
|
+
builderTraders: (query: HttpTypes.BuilderTradersQueryInput, headers?: ClientHeaders) => Promise<{
|
|
40
|
+
limit: number;
|
|
41
|
+
traders: {
|
|
42
|
+
rank: number;
|
|
43
|
+
address: HttpTypes.EthereumAddress;
|
|
44
|
+
pnl: string;
|
|
45
|
+
perpPnl: string;
|
|
46
|
+
volume: string;
|
|
47
|
+
equity: string;
|
|
48
|
+
identity: {
|
|
49
|
+
kind: "CURATED";
|
|
50
|
+
name: string;
|
|
51
|
+
category?: string | undefined;
|
|
52
|
+
xHandle?: string | undefined;
|
|
53
|
+
xName?: string | undefined;
|
|
54
|
+
xAvatarUrl?: string | undefined;
|
|
55
|
+
xUserId?: string | undefined;
|
|
56
|
+
} | {
|
|
57
|
+
kind: "HYPERTRACKER";
|
|
58
|
+
displayName?: string | undefined;
|
|
59
|
+
xUserId?: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
}[];
|
|
62
|
+
nextCursor?: string | undefined;
|
|
63
|
+
snapshotAt?: string | undefined;
|
|
64
|
+
}>;
|
|
65
|
+
/** Page the wallets HyperTracker users favorite most, all-time. */
|
|
66
|
+
mostFavorited: (query?: HttpTypes.MostFavoritedTradersQueryInput, headers?: ClientHeaders) => Promise<{
|
|
67
|
+
limit: number;
|
|
68
|
+
traders: {
|
|
69
|
+
rank: number;
|
|
70
|
+
address: HttpTypes.EthereumAddress;
|
|
71
|
+
pnlDay: string;
|
|
72
|
+
pnlWeek: string;
|
|
73
|
+
pnlMonth: string;
|
|
74
|
+
pnlAllTime: string;
|
|
75
|
+
totalEquity: string;
|
|
76
|
+
favoriteCount: number;
|
|
77
|
+
verified: boolean;
|
|
78
|
+
identity: {
|
|
79
|
+
kind: "CURATED";
|
|
80
|
+
name: string;
|
|
81
|
+
category?: string | undefined;
|
|
82
|
+
xHandle?: string | undefined;
|
|
83
|
+
xName?: string | undefined;
|
|
84
|
+
xAvatarUrl?: string | undefined;
|
|
85
|
+
xUserId?: string | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
kind: "HYPERTRACKER";
|
|
88
|
+
displayName?: string | undefined;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
nextCursor?: string | undefined;
|
|
92
|
+
snapshotAt?: string | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
/** Page the claimed, verified wallets ranked by PnL over a window. */
|
|
95
|
+
topClaimed: (query?: HttpTypes.TopClaimedTradersQueryInput, headers?: ClientHeaders) => Promise<{
|
|
96
|
+
limit: number;
|
|
97
|
+
traders: {
|
|
98
|
+
rank: number;
|
|
99
|
+
address: HttpTypes.EthereumAddress;
|
|
100
|
+
pnlDay: string;
|
|
101
|
+
pnlWeek: string;
|
|
102
|
+
pnlMonth: string;
|
|
103
|
+
pnlAllTime: string;
|
|
104
|
+
totalEquity: string;
|
|
105
|
+
favoriteCount: number;
|
|
106
|
+
verified: boolean;
|
|
107
|
+
identity: {
|
|
108
|
+
kind: "CURATED";
|
|
109
|
+
name: string;
|
|
110
|
+
category?: string | undefined;
|
|
111
|
+
xHandle?: string | undefined;
|
|
112
|
+
xName?: string | undefined;
|
|
113
|
+
xAvatarUrl?: string | undefined;
|
|
114
|
+
xUserId?: string | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
kind: "HYPERTRACKER";
|
|
117
|
+
displayName?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
}[];
|
|
120
|
+
nextCursor?: string | undefined;
|
|
121
|
+
snapshotAt?: string | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
/** Page Hyperliquid's public leaderboard: the top 50 by PnL or by ROI over a window. */
|
|
124
|
+
hyperliquidLeaderboard: (query?: HttpTypes.HyperliquidLeaderboardQueryInput, headers?: ClientHeaders) => Promise<{
|
|
125
|
+
limit: number;
|
|
126
|
+
traders: {
|
|
127
|
+
rank: number;
|
|
128
|
+
address: HttpTypes.EthereumAddress;
|
|
129
|
+
pnl: string;
|
|
130
|
+
roi: string;
|
|
131
|
+
volume: string;
|
|
132
|
+
accountValue: string;
|
|
133
|
+
identity: {
|
|
134
|
+
kind: "CURATED";
|
|
135
|
+
name: string;
|
|
136
|
+
category?: string | undefined;
|
|
137
|
+
xHandle?: string | undefined;
|
|
138
|
+
xName?: string | undefined;
|
|
139
|
+
xAvatarUrl?: string | undefined;
|
|
140
|
+
xUserId?: string | undefined;
|
|
141
|
+
} | {
|
|
142
|
+
kind: "HYPERLIQUID";
|
|
143
|
+
displayName?: string | undefined;
|
|
144
|
+
};
|
|
145
|
+
}[];
|
|
146
|
+
nextCursor?: string | undefined;
|
|
147
|
+
snapshotAt?: string | undefined;
|
|
148
|
+
}>;
|
|
12
149
|
/** Read one ordered account chart series for an active public trader. */
|
|
13
150
|
performance: (tradeAccountId: string, query?: HttpTypes.TraderPerformanceQueryInput, headers?: ClientHeaders) => Promise<{
|
|
14
151
|
points: {
|
|
@@ -2568,14 +2705,14 @@ declare class Core {
|
|
|
2568
2705
|
maxImpactPrice?: string | undefined;
|
|
2569
2706
|
}[]];
|
|
2570
2707
|
error?: string | undefined;
|
|
2571
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2708
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2572
2709
|
refusedLegs?: {
|
|
2573
2710
|
id: string;
|
|
2574
2711
|
ticker: string;
|
|
2575
2712
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2576
2713
|
error: string;
|
|
2577
2714
|
}[] | undefined;
|
|
2578
|
-
orders?: {
|
|
2715
|
+
orders?: ({
|
|
2579
2716
|
id: string;
|
|
2580
2717
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2581
2718
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2591,7 +2728,22 @@ declare class Core {
|
|
|
2591
2728
|
error?: string | undefined;
|
|
2592
2729
|
errorCode?: string | undefined;
|
|
2593
2730
|
filledPrice?: string | undefined;
|
|
2594
|
-
}
|
|
2731
|
+
} | {
|
|
2732
|
+
id: string;
|
|
2733
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2734
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2735
|
+
createdAt: string;
|
|
2736
|
+
updatedAt: string;
|
|
2737
|
+
type: "RESTING";
|
|
2738
|
+
symbol: string;
|
|
2739
|
+
side: "BUY" | "SELL";
|
|
2740
|
+
reduceOnly: boolean;
|
|
2741
|
+
quantity: string;
|
|
2742
|
+
price: string;
|
|
2743
|
+
filledQuantity: string;
|
|
2744
|
+
error?: string | undefined;
|
|
2745
|
+
errorCode?: string | undefined;
|
|
2746
|
+
})[] | undefined;
|
|
2595
2747
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2596
2748
|
position?: {
|
|
2597
2749
|
id: string;
|
|
@@ -2622,14 +2774,14 @@ declare class Core {
|
|
|
2622
2774
|
maxImpactPrice?: string | undefined;
|
|
2623
2775
|
}[]];
|
|
2624
2776
|
error?: string | undefined;
|
|
2625
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2777
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2626
2778
|
refusedLegs?: {
|
|
2627
2779
|
id: string;
|
|
2628
2780
|
ticker: string;
|
|
2629
2781
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2630
2782
|
error: string;
|
|
2631
2783
|
}[] | undefined;
|
|
2632
|
-
orders?: {
|
|
2784
|
+
orders?: ({
|
|
2633
2785
|
id: string;
|
|
2634
2786
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2635
2787
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2645,7 +2797,22 @@ declare class Core {
|
|
|
2645
2797
|
error?: string | undefined;
|
|
2646
2798
|
errorCode?: string | undefined;
|
|
2647
2799
|
filledPrice?: string | undefined;
|
|
2648
|
-
}
|
|
2800
|
+
} | {
|
|
2801
|
+
id: string;
|
|
2802
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2803
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2804
|
+
createdAt: string;
|
|
2805
|
+
updatedAt: string;
|
|
2806
|
+
type: "RESTING";
|
|
2807
|
+
symbol: string;
|
|
2808
|
+
side: "BUY" | "SELL";
|
|
2809
|
+
reduceOnly: boolean;
|
|
2810
|
+
quantity: string;
|
|
2811
|
+
price: string;
|
|
2812
|
+
filledQuantity: string;
|
|
2813
|
+
error?: string | undefined;
|
|
2814
|
+
errorCode?: string | undefined;
|
|
2815
|
+
})[] | undefined;
|
|
2649
2816
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2650
2817
|
position?: {
|
|
2651
2818
|
id: string;
|
|
@@ -2660,14 +2827,14 @@ declare class Core {
|
|
|
2660
2827
|
intent: "CLOSE";
|
|
2661
2828
|
orderType: "MARKET";
|
|
2662
2829
|
error?: string | undefined;
|
|
2663
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2830
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2664
2831
|
refusedLegs?: {
|
|
2665
2832
|
id: string;
|
|
2666
2833
|
ticker: string;
|
|
2667
2834
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2668
2835
|
error: string;
|
|
2669
2836
|
}[] | undefined;
|
|
2670
|
-
orders?: {
|
|
2837
|
+
orders?: ({
|
|
2671
2838
|
id: string;
|
|
2672
2839
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2673
2840
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2683,7 +2850,22 @@ declare class Core {
|
|
|
2683
2850
|
error?: string | undefined;
|
|
2684
2851
|
errorCode?: string | undefined;
|
|
2685
2852
|
filledPrice?: string | undefined;
|
|
2686
|
-
}
|
|
2853
|
+
} | {
|
|
2854
|
+
id: string;
|
|
2855
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2856
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2857
|
+
createdAt: string;
|
|
2858
|
+
updatedAt: string;
|
|
2859
|
+
type: "RESTING";
|
|
2860
|
+
symbol: string;
|
|
2861
|
+
side: "BUY" | "SELL";
|
|
2862
|
+
reduceOnly: boolean;
|
|
2863
|
+
quantity: string;
|
|
2864
|
+
price: string;
|
|
2865
|
+
filledQuantity: string;
|
|
2866
|
+
error?: string | undefined;
|
|
2867
|
+
errorCode?: string | undefined;
|
|
2868
|
+
})[] | undefined;
|
|
2687
2869
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2688
2870
|
position?: {
|
|
2689
2871
|
id: string;
|
|
@@ -2698,14 +2880,14 @@ declare class Core {
|
|
|
2698
2880
|
intent: "REVERSE";
|
|
2699
2881
|
orderType: "MARKET";
|
|
2700
2882
|
error?: string | undefined;
|
|
2701
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2883
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2702
2884
|
refusedLegs?: {
|
|
2703
2885
|
id: string;
|
|
2704
2886
|
ticker: string;
|
|
2705
2887
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2706
2888
|
error: string;
|
|
2707
2889
|
}[] | undefined;
|
|
2708
|
-
orders?: {
|
|
2890
|
+
orders?: ({
|
|
2709
2891
|
id: string;
|
|
2710
2892
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2711
2893
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2721,24 +2903,35 @@ declare class Core {
|
|
|
2721
2903
|
error?: string | undefined;
|
|
2722
2904
|
errorCode?: string | undefined;
|
|
2723
2905
|
filledPrice?: string | undefined;
|
|
2724
|
-
}
|
|
2906
|
+
} | {
|
|
2907
|
+
id: string;
|
|
2908
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2909
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2910
|
+
createdAt: string;
|
|
2911
|
+
updatedAt: string;
|
|
2912
|
+
type: "RESTING";
|
|
2913
|
+
symbol: string;
|
|
2914
|
+
side: "BUY" | "SELL";
|
|
2915
|
+
reduceOnly: boolean;
|
|
2916
|
+
quantity: string;
|
|
2917
|
+
price: string;
|
|
2918
|
+
filledQuantity: string;
|
|
2919
|
+
error?: string | undefined;
|
|
2920
|
+
errorCode?: string | undefined;
|
|
2921
|
+
})[] | undefined;
|
|
2725
2922
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2726
2923
|
position?: {
|
|
2727
2924
|
id: string;
|
|
2728
2925
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
2729
2926
|
} | undefined;
|
|
2730
|
-
}
|
|
2731
|
-
nextCursor?: string | undefined;
|
|
2732
|
-
}>;
|
|
2733
|
-
get: (id: string, headers?: ClientHeaders) => Promise<{
|
|
2734
|
-
execution: {
|
|
2927
|
+
} | {
|
|
2735
2928
|
id: string;
|
|
2736
2929
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2737
2930
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2738
2931
|
createdAt: string;
|
|
2739
2932
|
updatedAt: string;
|
|
2740
2933
|
intent: "OPEN";
|
|
2741
|
-
orderType: "
|
|
2934
|
+
orderType: "CHASE_LIMIT";
|
|
2742
2935
|
legs: [{
|
|
2743
2936
|
symbol: string;
|
|
2744
2937
|
side: "BUY" | "SELL";
|
|
@@ -2757,14 +2950,14 @@ declare class Core {
|
|
|
2757
2950
|
maxImpactPrice?: string | undefined;
|
|
2758
2951
|
}[]];
|
|
2759
2952
|
error?: string | undefined;
|
|
2760
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
2953
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2761
2954
|
refusedLegs?: {
|
|
2762
2955
|
id: string;
|
|
2763
2956
|
ticker: string;
|
|
2764
2957
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2765
2958
|
error: string;
|
|
2766
2959
|
}[] | undefined;
|
|
2767
|
-
orders?: {
|
|
2960
|
+
orders?: ({
|
|
2768
2961
|
id: string;
|
|
2769
2962
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2770
2963
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2780,18 +2973,82 @@ declare class Core {
|
|
|
2780
2973
|
error?: string | undefined;
|
|
2781
2974
|
errorCode?: string | undefined;
|
|
2782
2975
|
filledPrice?: string | undefined;
|
|
2783
|
-
}
|
|
2976
|
+
} | {
|
|
2977
|
+
id: string;
|
|
2978
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2979
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2980
|
+
createdAt: string;
|
|
2981
|
+
updatedAt: string;
|
|
2982
|
+
type: "RESTING";
|
|
2983
|
+
symbol: string;
|
|
2984
|
+
side: "BUY" | "SELL";
|
|
2985
|
+
reduceOnly: boolean;
|
|
2986
|
+
quantity: string;
|
|
2987
|
+
price: string;
|
|
2988
|
+
filledQuantity: string;
|
|
2989
|
+
error?: string | undefined;
|
|
2990
|
+
errorCode?: string | undefined;
|
|
2991
|
+
})[] | undefined;
|
|
2784
2992
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2785
2993
|
position?: {
|
|
2786
2994
|
id: string;
|
|
2787
2995
|
} | undefined;
|
|
2788
|
-
|
|
2996
|
+
deadlineAt?: string | undefined;
|
|
2997
|
+
chaseOrders?: {
|
|
2998
|
+
id: string;
|
|
2999
|
+
executionId: string;
|
|
3000
|
+
instrumentId: string;
|
|
3001
|
+
side: "BUY" | "SELL";
|
|
3002
|
+
quantity: string;
|
|
3003
|
+
filledQuantity: string;
|
|
3004
|
+
makerFilledQuantity: string;
|
|
3005
|
+
takerFilledQuantity: string;
|
|
3006
|
+
attempts: ({
|
|
3007
|
+
id: string;
|
|
3008
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3009
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3010
|
+
createdAt: string;
|
|
3011
|
+
updatedAt: string;
|
|
3012
|
+
type: "MARKET";
|
|
3013
|
+
symbol: string;
|
|
3014
|
+
side: "BUY" | "SELL";
|
|
3015
|
+
reduceOnly: boolean;
|
|
3016
|
+
quantity: string;
|
|
3017
|
+
price: string;
|
|
3018
|
+
filledQuantity: string;
|
|
3019
|
+
error?: string | undefined;
|
|
3020
|
+
errorCode?: string | undefined;
|
|
3021
|
+
filledPrice?: string | undefined;
|
|
3022
|
+
} | {
|
|
3023
|
+
id: string;
|
|
3024
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3025
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3026
|
+
createdAt: string;
|
|
3027
|
+
updatedAt: string;
|
|
3028
|
+
type: "RESTING";
|
|
3029
|
+
symbol: string;
|
|
3030
|
+
side: "BUY" | "SELL";
|
|
3031
|
+
reduceOnly: boolean;
|
|
3032
|
+
quantity: string;
|
|
3033
|
+
price: string;
|
|
3034
|
+
filledQuantity: string;
|
|
3035
|
+
error?: string | undefined;
|
|
3036
|
+
errorCode?: string | undefined;
|
|
3037
|
+
})[];
|
|
3038
|
+
averageFillPrice?: string | undefined;
|
|
3039
|
+
}[] | undefined;
|
|
3040
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
3041
|
+
})[];
|
|
3042
|
+
nextCursor?: string | undefined;
|
|
3043
|
+
}>;
|
|
3044
|
+
get: (id: string, headers?: ClientHeaders) => Promise<{
|
|
3045
|
+
execution: {
|
|
2789
3046
|
id: string;
|
|
2790
3047
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2791
3048
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2792
3049
|
createdAt: string;
|
|
2793
3050
|
updatedAt: string;
|
|
2794
|
-
intent: "
|
|
3051
|
+
intent: "OPEN";
|
|
2795
3052
|
orderType: "MARKET";
|
|
2796
3053
|
legs: [{
|
|
2797
3054
|
symbol: string;
|
|
@@ -2811,14 +3068,14 @@ declare class Core {
|
|
|
2811
3068
|
maxImpactPrice?: string | undefined;
|
|
2812
3069
|
}[]];
|
|
2813
3070
|
error?: string | undefined;
|
|
2814
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
3071
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2815
3072
|
refusedLegs?: {
|
|
2816
3073
|
id: string;
|
|
2817
3074
|
ticker: string;
|
|
2818
3075
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2819
3076
|
error: string;
|
|
2820
3077
|
}[] | undefined;
|
|
2821
|
-
orders?: {
|
|
3078
|
+
orders?: ({
|
|
2822
3079
|
id: string;
|
|
2823
3080
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2824
3081
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2834,11 +3091,25 @@ declare class Core {
|
|
|
2834
3091
|
error?: string | undefined;
|
|
2835
3092
|
errorCode?: string | undefined;
|
|
2836
3093
|
filledPrice?: string | undefined;
|
|
2837
|
-
}
|
|
3094
|
+
} | {
|
|
3095
|
+
id: string;
|
|
3096
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3097
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3098
|
+
createdAt: string;
|
|
3099
|
+
updatedAt: string;
|
|
3100
|
+
type: "RESTING";
|
|
3101
|
+
symbol: string;
|
|
3102
|
+
side: "BUY" | "SELL";
|
|
3103
|
+
reduceOnly: boolean;
|
|
3104
|
+
quantity: string;
|
|
3105
|
+
price: string;
|
|
3106
|
+
filledQuantity: string;
|
|
3107
|
+
error?: string | undefined;
|
|
3108
|
+
errorCode?: string | undefined;
|
|
3109
|
+
})[] | undefined;
|
|
2838
3110
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2839
3111
|
position?: {
|
|
2840
3112
|
id: string;
|
|
2841
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
2842
3113
|
} | undefined;
|
|
2843
3114
|
} | {
|
|
2844
3115
|
id: string;
|
|
@@ -2846,17 +3117,34 @@ declare class Core {
|
|
|
2846
3117
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2847
3118
|
createdAt: string;
|
|
2848
3119
|
updatedAt: string;
|
|
2849
|
-
intent: "
|
|
3120
|
+
intent: "ADJUST";
|
|
2850
3121
|
orderType: "MARKET";
|
|
3122
|
+
legs: [{
|
|
3123
|
+
symbol: string;
|
|
3124
|
+
side: "BUY" | "SELL";
|
|
3125
|
+
mode: "QUANTITY" | "USD";
|
|
3126
|
+
amount: string;
|
|
3127
|
+
reduceOnly: boolean;
|
|
3128
|
+
id?: string | undefined;
|
|
3129
|
+
maxImpactPrice?: string | undefined;
|
|
3130
|
+
}, ...{
|
|
3131
|
+
symbol: string;
|
|
3132
|
+
side: "BUY" | "SELL";
|
|
3133
|
+
mode: "QUANTITY" | "USD";
|
|
3134
|
+
amount: string;
|
|
3135
|
+
reduceOnly: boolean;
|
|
3136
|
+
id?: string | undefined;
|
|
3137
|
+
maxImpactPrice?: string | undefined;
|
|
3138
|
+
}[]];
|
|
2851
3139
|
error?: string | undefined;
|
|
2852
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
3140
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2853
3141
|
refusedLegs?: {
|
|
2854
3142
|
id: string;
|
|
2855
3143
|
ticker: string;
|
|
2856
3144
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2857
3145
|
error: string;
|
|
2858
3146
|
}[] | undefined;
|
|
2859
|
-
orders?: {
|
|
3147
|
+
orders?: ({
|
|
2860
3148
|
id: string;
|
|
2861
3149
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2862
3150
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2872,7 +3160,22 @@ declare class Core {
|
|
|
2872
3160
|
error?: string | undefined;
|
|
2873
3161
|
errorCode?: string | undefined;
|
|
2874
3162
|
filledPrice?: string | undefined;
|
|
2875
|
-
}
|
|
3163
|
+
} | {
|
|
3164
|
+
id: string;
|
|
3165
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3166
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3167
|
+
createdAt: string;
|
|
3168
|
+
updatedAt: string;
|
|
3169
|
+
type: "RESTING";
|
|
3170
|
+
symbol: string;
|
|
3171
|
+
side: "BUY" | "SELL";
|
|
3172
|
+
reduceOnly: boolean;
|
|
3173
|
+
quantity: string;
|
|
3174
|
+
price: string;
|
|
3175
|
+
filledQuantity: string;
|
|
3176
|
+
error?: string | undefined;
|
|
3177
|
+
errorCode?: string | undefined;
|
|
3178
|
+
})[] | undefined;
|
|
2876
3179
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2877
3180
|
position?: {
|
|
2878
3181
|
id: string;
|
|
@@ -2884,17 +3187,17 @@ declare class Core {
|
|
|
2884
3187
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
2885
3188
|
createdAt: string;
|
|
2886
3189
|
updatedAt: string;
|
|
2887
|
-
intent: "
|
|
3190
|
+
intent: "CLOSE";
|
|
2888
3191
|
orderType: "MARKET";
|
|
2889
3192
|
error?: string | undefined;
|
|
2890
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
3193
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
2891
3194
|
refusedLegs?: {
|
|
2892
3195
|
id: string;
|
|
2893
3196
|
ticker: string;
|
|
2894
3197
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
2895
3198
|
error: string;
|
|
2896
3199
|
}[] | undefined;
|
|
2897
|
-
orders?: {
|
|
3200
|
+
orders?: ({
|
|
2898
3201
|
id: string;
|
|
2899
3202
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2900
3203
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -2910,15 +3213,203 @@ declare class Core {
|
|
|
2910
3213
|
error?: string | undefined;
|
|
2911
3214
|
errorCode?: string | undefined;
|
|
2912
3215
|
filledPrice?: string | undefined;
|
|
2913
|
-
}
|
|
3216
|
+
} | {
|
|
3217
|
+
id: string;
|
|
3218
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3219
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3220
|
+
createdAt: string;
|
|
3221
|
+
updatedAt: string;
|
|
3222
|
+
type: "RESTING";
|
|
3223
|
+
symbol: string;
|
|
3224
|
+
side: "BUY" | "SELL";
|
|
3225
|
+
reduceOnly: boolean;
|
|
3226
|
+
quantity: string;
|
|
3227
|
+
price: string;
|
|
3228
|
+
filledQuantity: string;
|
|
3229
|
+
error?: string | undefined;
|
|
3230
|
+
errorCode?: string | undefined;
|
|
3231
|
+
})[] | undefined;
|
|
2914
3232
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2915
3233
|
position?: {
|
|
2916
3234
|
id: string;
|
|
2917
3235
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
2918
3236
|
} | undefined;
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
|
|
3237
|
+
} | {
|
|
3238
|
+
id: string;
|
|
3239
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3240
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
3241
|
+
createdAt: string;
|
|
3242
|
+
updatedAt: string;
|
|
3243
|
+
intent: "REVERSE";
|
|
3244
|
+
orderType: "MARKET";
|
|
3245
|
+
error?: string | undefined;
|
|
3246
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
3247
|
+
refusedLegs?: {
|
|
3248
|
+
id: string;
|
|
3249
|
+
ticker: string;
|
|
3250
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
3251
|
+
error: string;
|
|
3252
|
+
}[] | undefined;
|
|
3253
|
+
orders?: ({
|
|
3254
|
+
id: string;
|
|
3255
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3256
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3257
|
+
createdAt: string;
|
|
3258
|
+
updatedAt: string;
|
|
3259
|
+
type: "MARKET";
|
|
3260
|
+
symbol: string;
|
|
3261
|
+
side: "BUY" | "SELL";
|
|
3262
|
+
reduceOnly: boolean;
|
|
3263
|
+
quantity: string;
|
|
3264
|
+
price: string;
|
|
3265
|
+
filledQuantity: string;
|
|
3266
|
+
error?: string | undefined;
|
|
3267
|
+
errorCode?: string | undefined;
|
|
3268
|
+
filledPrice?: string | undefined;
|
|
3269
|
+
} | {
|
|
3270
|
+
id: string;
|
|
3271
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3272
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3273
|
+
createdAt: string;
|
|
3274
|
+
updatedAt: string;
|
|
3275
|
+
type: "RESTING";
|
|
3276
|
+
symbol: string;
|
|
3277
|
+
side: "BUY" | "SELL";
|
|
3278
|
+
reduceOnly: boolean;
|
|
3279
|
+
quantity: string;
|
|
3280
|
+
price: string;
|
|
3281
|
+
filledQuantity: string;
|
|
3282
|
+
error?: string | undefined;
|
|
3283
|
+
errorCode?: string | undefined;
|
|
3284
|
+
})[] | undefined;
|
|
3285
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3286
|
+
position?: {
|
|
3287
|
+
id: string;
|
|
3288
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
3289
|
+
} | undefined;
|
|
3290
|
+
} | {
|
|
3291
|
+
id: string;
|
|
3292
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3293
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
3294
|
+
createdAt: string;
|
|
3295
|
+
updatedAt: string;
|
|
3296
|
+
intent: "OPEN";
|
|
3297
|
+
orderType: "CHASE_LIMIT";
|
|
3298
|
+
legs: [{
|
|
3299
|
+
symbol: string;
|
|
3300
|
+
side: "BUY" | "SELL";
|
|
3301
|
+
mode: "QUANTITY" | "USD";
|
|
3302
|
+
amount: string;
|
|
3303
|
+
reduceOnly: boolean;
|
|
3304
|
+
id?: string | undefined;
|
|
3305
|
+
maxImpactPrice?: string | undefined;
|
|
3306
|
+
}, ...{
|
|
3307
|
+
symbol: string;
|
|
3308
|
+
side: "BUY" | "SELL";
|
|
3309
|
+
mode: "QUANTITY" | "USD";
|
|
3310
|
+
amount: string;
|
|
3311
|
+
reduceOnly: boolean;
|
|
3312
|
+
id?: string | undefined;
|
|
3313
|
+
maxImpactPrice?: string | undefined;
|
|
3314
|
+
}[]];
|
|
3315
|
+
error?: string | undefined;
|
|
3316
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
3317
|
+
refusedLegs?: {
|
|
3318
|
+
id: string;
|
|
3319
|
+
ticker: string;
|
|
3320
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
3321
|
+
error: string;
|
|
3322
|
+
}[] | undefined;
|
|
3323
|
+
orders?: ({
|
|
3324
|
+
id: string;
|
|
3325
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3326
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3327
|
+
createdAt: string;
|
|
3328
|
+
updatedAt: string;
|
|
3329
|
+
type: "MARKET";
|
|
3330
|
+
symbol: string;
|
|
3331
|
+
side: "BUY" | "SELL";
|
|
3332
|
+
reduceOnly: boolean;
|
|
3333
|
+
quantity: string;
|
|
3334
|
+
price: string;
|
|
3335
|
+
filledQuantity: string;
|
|
3336
|
+
error?: string | undefined;
|
|
3337
|
+
errorCode?: string | undefined;
|
|
3338
|
+
filledPrice?: string | undefined;
|
|
3339
|
+
} | {
|
|
3340
|
+
id: string;
|
|
3341
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3342
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3343
|
+
createdAt: string;
|
|
3344
|
+
updatedAt: string;
|
|
3345
|
+
type: "RESTING";
|
|
3346
|
+
symbol: string;
|
|
3347
|
+
side: "BUY" | "SELL";
|
|
3348
|
+
reduceOnly: boolean;
|
|
3349
|
+
quantity: string;
|
|
3350
|
+
price: string;
|
|
3351
|
+
filledQuantity: string;
|
|
3352
|
+
error?: string | undefined;
|
|
3353
|
+
errorCode?: string | undefined;
|
|
3354
|
+
})[] | undefined;
|
|
3355
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3356
|
+
position?: {
|
|
3357
|
+
id: string;
|
|
3358
|
+
} | undefined;
|
|
3359
|
+
deadlineAt?: string | undefined;
|
|
3360
|
+
chaseOrders?: {
|
|
3361
|
+
id: string;
|
|
3362
|
+
executionId: string;
|
|
3363
|
+
instrumentId: string;
|
|
3364
|
+
side: "BUY" | "SELL";
|
|
3365
|
+
quantity: string;
|
|
3366
|
+
filledQuantity: string;
|
|
3367
|
+
makerFilledQuantity: string;
|
|
3368
|
+
takerFilledQuantity: string;
|
|
3369
|
+
attempts: ({
|
|
3370
|
+
id: string;
|
|
3371
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3372
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3373
|
+
createdAt: string;
|
|
3374
|
+
updatedAt: string;
|
|
3375
|
+
type: "MARKET";
|
|
3376
|
+
symbol: string;
|
|
3377
|
+
side: "BUY" | "SELL";
|
|
3378
|
+
reduceOnly: boolean;
|
|
3379
|
+
quantity: string;
|
|
3380
|
+
price: string;
|
|
3381
|
+
filledQuantity: string;
|
|
3382
|
+
error?: string | undefined;
|
|
3383
|
+
errorCode?: string | undefined;
|
|
3384
|
+
filledPrice?: string | undefined;
|
|
3385
|
+
} | {
|
|
3386
|
+
id: string;
|
|
3387
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3388
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3389
|
+
createdAt: string;
|
|
3390
|
+
updatedAt: string;
|
|
3391
|
+
type: "RESTING";
|
|
3392
|
+
symbol: string;
|
|
3393
|
+
side: "BUY" | "SELL";
|
|
3394
|
+
reduceOnly: boolean;
|
|
3395
|
+
quantity: string;
|
|
3396
|
+
price: string;
|
|
3397
|
+
filledQuantity: string;
|
|
3398
|
+
error?: string | undefined;
|
|
3399
|
+
errorCode?: string | undefined;
|
|
3400
|
+
})[];
|
|
3401
|
+
averageFillPrice?: string | undefined;
|
|
3402
|
+
}[] | undefined;
|
|
3403
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
3404
|
+
};
|
|
3405
|
+
}>;
|
|
3406
|
+
cancel: (id: string, headers?: ClientHeaders) => Promise<{
|
|
3407
|
+
outcome: "SKIPPED" | "CROSSING" | "CANCELLING";
|
|
3408
|
+
}>;
|
|
3409
|
+
complete: (id: string, headers?: ClientHeaders) => Promise<{
|
|
3410
|
+
outcome: "SKIPPED" | "CROSSING" | "CANCELLING";
|
|
3411
|
+
}>;
|
|
3412
|
+
};
|
|
2922
3413
|
fills: {
|
|
2923
3414
|
/** Read one position's assigned quantities and fees at the original receipt price. */
|
|
2924
3415
|
details: (positionId: string, headers?: ClientHeaders) => Promise<{
|
|
@@ -2931,6 +3422,7 @@ declare class Core {
|
|
|
2931
3422
|
side: "BUY" | "SELL";
|
|
2932
3423
|
reduceOnly: boolean;
|
|
2933
3424
|
isExternal: boolean;
|
|
3425
|
+
isMaker: boolean;
|
|
2934
3426
|
synthetic: boolean;
|
|
2935
3427
|
quantity: string;
|
|
2936
3428
|
price: string;
|
|
@@ -2962,6 +3454,7 @@ declare class Core {
|
|
|
2962
3454
|
side: "BUY" | "SELL";
|
|
2963
3455
|
reduceOnly: boolean;
|
|
2964
3456
|
isExternal: boolean;
|
|
3457
|
+
isMaker: boolean;
|
|
2965
3458
|
synthetic: boolean;
|
|
2966
3459
|
quantity: string;
|
|
2967
3460
|
price: string;
|
|
@@ -3110,6 +3603,7 @@ declare class Core {
|
|
|
3110
3603
|
side: "BUY" | "SELL";
|
|
3111
3604
|
reduceOnly: boolean;
|
|
3112
3605
|
isExternal: boolean;
|
|
3606
|
+
isMaker: boolean;
|
|
3113
3607
|
synthetic: boolean;
|
|
3114
3608
|
quantity: string;
|
|
3115
3609
|
price: string;
|
|
@@ -3258,6 +3752,7 @@ declare class Core {
|
|
|
3258
3752
|
side: "BUY" | "SELL";
|
|
3259
3753
|
reduceOnly: boolean;
|
|
3260
3754
|
isExternal: boolean;
|
|
3755
|
+
isMaker: boolean;
|
|
3261
3756
|
synthetic: boolean;
|
|
3262
3757
|
quantity: string;
|
|
3263
3758
|
price: string;
|
|
@@ -3439,6 +3934,7 @@ declare class Core {
|
|
|
3439
3934
|
side: "BUY" | "SELL";
|
|
3440
3935
|
reduceOnly: boolean;
|
|
3441
3936
|
isExternal: boolean;
|
|
3937
|
+
isMaker: boolean;
|
|
3442
3938
|
synthetic: boolean;
|
|
3443
3939
|
quantity: string;
|
|
3444
3940
|
price: string;
|
|
@@ -3599,6 +4095,7 @@ declare class Core {
|
|
|
3599
4095
|
side: "BUY" | "SELL";
|
|
3600
4096
|
reduceOnly: boolean;
|
|
3601
4097
|
isExternal: boolean;
|
|
4098
|
+
isMaker: boolean;
|
|
3602
4099
|
synthetic: boolean;
|
|
3603
4100
|
quantity: string;
|
|
3604
4101
|
price: string;
|
|
@@ -3787,6 +4284,7 @@ declare class Core {
|
|
|
3787
4284
|
side: "BUY" | "SELL";
|
|
3788
4285
|
reduceOnly: boolean;
|
|
3789
4286
|
isExternal: boolean;
|
|
4287
|
+
isMaker: boolean;
|
|
3790
4288
|
synthetic: boolean;
|
|
3791
4289
|
quantity: string;
|
|
3792
4290
|
price: string;
|
|
@@ -3991,6 +4489,7 @@ declare class Core {
|
|
|
3991
4489
|
side: "BUY" | "SELL";
|
|
3992
4490
|
reduceOnly: boolean;
|
|
3993
4491
|
isExternal: boolean;
|
|
4492
|
+
isMaker: boolean;
|
|
3994
4493
|
synthetic: boolean;
|
|
3995
4494
|
quantity: string;
|
|
3996
4495
|
price: string;
|
|
@@ -4139,6 +4638,7 @@ declare class Core {
|
|
|
4139
4638
|
side: "BUY" | "SELL";
|
|
4140
4639
|
reduceOnly: boolean;
|
|
4141
4640
|
isExternal: boolean;
|
|
4641
|
+
isMaker: boolean;
|
|
4142
4642
|
synthetic: boolean;
|
|
4143
4643
|
quantity: string;
|
|
4144
4644
|
price: string;
|
|
@@ -4320,6 +4820,7 @@ declare class Core {
|
|
|
4320
4820
|
side: "BUY" | "SELL";
|
|
4321
4821
|
reduceOnly: boolean;
|
|
4322
4822
|
isExternal: boolean;
|
|
4823
|
+
isMaker: boolean;
|
|
4323
4824
|
synthetic: boolean;
|
|
4324
4825
|
quantity: string;
|
|
4325
4826
|
price: string;
|
|
@@ -4480,6 +4981,7 @@ declare class Core {
|
|
|
4480
4981
|
side: "BUY" | "SELL";
|
|
4481
4982
|
reduceOnly: boolean;
|
|
4482
4983
|
isExternal: boolean;
|
|
4984
|
+
isMaker: boolean;
|
|
4483
4985
|
synthetic: boolean;
|
|
4484
4986
|
quantity: string;
|
|
4485
4987
|
price: string;
|
|
@@ -4668,6 +5170,7 @@ declare class Core {
|
|
|
4668
5170
|
side: "BUY" | "SELL";
|
|
4669
5171
|
reduceOnly: boolean;
|
|
4670
5172
|
isExternal: boolean;
|
|
5173
|
+
isMaker: boolean;
|
|
4671
5174
|
synthetic: boolean;
|
|
4672
5175
|
quantity: string;
|
|
4673
5176
|
price: string;
|
|
@@ -4871,6 +5374,7 @@ declare class Core {
|
|
|
4871
5374
|
side: "BUY" | "SELL";
|
|
4872
5375
|
reduceOnly: boolean;
|
|
4873
5376
|
isExternal: boolean;
|
|
5377
|
+
isMaker: boolean;
|
|
4874
5378
|
synthetic: boolean;
|
|
4875
5379
|
quantity: string;
|
|
4876
5380
|
price: string;
|
|
@@ -5019,6 +5523,7 @@ declare class Core {
|
|
|
5019
5523
|
side: "BUY" | "SELL";
|
|
5020
5524
|
reduceOnly: boolean;
|
|
5021
5525
|
isExternal: boolean;
|
|
5526
|
+
isMaker: boolean;
|
|
5022
5527
|
synthetic: boolean;
|
|
5023
5528
|
quantity: string;
|
|
5024
5529
|
price: string;
|
|
@@ -5200,6 +5705,7 @@ declare class Core {
|
|
|
5200
5705
|
side: "BUY" | "SELL";
|
|
5201
5706
|
reduceOnly: boolean;
|
|
5202
5707
|
isExternal: boolean;
|
|
5708
|
+
isMaker: boolean;
|
|
5203
5709
|
synthetic: boolean;
|
|
5204
5710
|
quantity: string;
|
|
5205
5711
|
price: string;
|
|
@@ -5360,6 +5866,7 @@ declare class Core {
|
|
|
5360
5866
|
side: "BUY" | "SELL";
|
|
5361
5867
|
reduceOnly: boolean;
|
|
5362
5868
|
isExternal: boolean;
|
|
5869
|
+
isMaker: boolean;
|
|
5363
5870
|
synthetic: boolean;
|
|
5364
5871
|
quantity: string;
|
|
5365
5872
|
price: string;
|
|
@@ -5548,6 +6055,7 @@ declare class Core {
|
|
|
5548
6055
|
side: "BUY" | "SELL";
|
|
5549
6056
|
reduceOnly: boolean;
|
|
5550
6057
|
isExternal: boolean;
|
|
6058
|
+
isMaker: boolean;
|
|
5551
6059
|
synthetic: boolean;
|
|
5552
6060
|
quantity: string;
|
|
5553
6061
|
price: string;
|
|
@@ -6043,7 +6551,7 @@ declare class Core {
|
|
|
6043
6551
|
id: string;
|
|
6044
6552
|
tradeAccountId: string;
|
|
6045
6553
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6046
|
-
status: "OPEN" | "CLOSED";
|
|
6554
|
+
status: "OPEN" | "OPENING" | "CLOSED";
|
|
6047
6555
|
origin: "PARTIAL" | "PEAR" | "EXTERNAL";
|
|
6048
6556
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
6049
6557
|
unstableHistoricalData: boolean;
|
|
@@ -7033,6 +7541,7 @@ declare class Core {
|
|
|
7033
7541
|
side: "BUY" | "SELL";
|
|
7034
7542
|
reduceOnly: boolean;
|
|
7035
7543
|
isExternal: boolean;
|
|
7544
|
+
isMaker: boolean;
|
|
7036
7545
|
synthetic: boolean;
|
|
7037
7546
|
quantity: string;
|
|
7038
7547
|
price: string;
|
|
@@ -7084,7 +7593,7 @@ declare class Core {
|
|
|
7084
7593
|
};
|
|
7085
7594
|
/** Basket commands; executed-fill history lives under the plural `trades` namespace. */
|
|
7086
7595
|
trade: {
|
|
7087
|
-
open: (body: HttpTypes.
|
|
7596
|
+
open: (body: HttpTypes.CreateTradeOpenInput, headers?: ClientHeaders) => Promise<{
|
|
7088
7597
|
execution: {
|
|
7089
7598
|
id: string;
|
|
7090
7599
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7111,14 +7620,14 @@ declare class Core {
|
|
|
7111
7620
|
maxImpactPrice?: string | undefined;
|
|
7112
7621
|
}[]];
|
|
7113
7622
|
error?: string | undefined;
|
|
7114
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7623
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7115
7624
|
refusedLegs?: {
|
|
7116
7625
|
id: string;
|
|
7117
7626
|
ticker: string;
|
|
7118
7627
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7119
7628
|
error: string;
|
|
7120
7629
|
}[] | undefined;
|
|
7121
|
-
orders?: {
|
|
7630
|
+
orders?: ({
|
|
7122
7631
|
id: string;
|
|
7123
7632
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7124
7633
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7134,7 +7643,22 @@ declare class Core {
|
|
|
7134
7643
|
error?: string | undefined;
|
|
7135
7644
|
errorCode?: string | undefined;
|
|
7136
7645
|
filledPrice?: string | undefined;
|
|
7137
|
-
}
|
|
7646
|
+
} | {
|
|
7647
|
+
id: string;
|
|
7648
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7649
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7650
|
+
createdAt: string;
|
|
7651
|
+
updatedAt: string;
|
|
7652
|
+
type: "RESTING";
|
|
7653
|
+
symbol: string;
|
|
7654
|
+
side: "BUY" | "SELL";
|
|
7655
|
+
reduceOnly: boolean;
|
|
7656
|
+
quantity: string;
|
|
7657
|
+
price: string;
|
|
7658
|
+
filledQuantity: string;
|
|
7659
|
+
error?: string | undefined;
|
|
7660
|
+
errorCode?: string | undefined;
|
|
7661
|
+
})[] | undefined;
|
|
7138
7662
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7139
7663
|
position?: {
|
|
7140
7664
|
id: string;
|
|
@@ -7165,14 +7689,14 @@ declare class Core {
|
|
|
7165
7689
|
maxImpactPrice?: string | undefined;
|
|
7166
7690
|
}[]];
|
|
7167
7691
|
error?: string | undefined;
|
|
7168
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7692
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7169
7693
|
refusedLegs?: {
|
|
7170
7694
|
id: string;
|
|
7171
7695
|
ticker: string;
|
|
7172
7696
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7173
7697
|
error: string;
|
|
7174
7698
|
}[] | undefined;
|
|
7175
|
-
orders?: {
|
|
7699
|
+
orders?: ({
|
|
7176
7700
|
id: string;
|
|
7177
7701
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7178
7702
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7188,7 +7712,22 @@ declare class Core {
|
|
|
7188
7712
|
error?: string | undefined;
|
|
7189
7713
|
errorCode?: string | undefined;
|
|
7190
7714
|
filledPrice?: string | undefined;
|
|
7191
|
-
}
|
|
7715
|
+
} | {
|
|
7716
|
+
id: string;
|
|
7717
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7718
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7719
|
+
createdAt: string;
|
|
7720
|
+
updatedAt: string;
|
|
7721
|
+
type: "RESTING";
|
|
7722
|
+
symbol: string;
|
|
7723
|
+
side: "BUY" | "SELL";
|
|
7724
|
+
reduceOnly: boolean;
|
|
7725
|
+
quantity: string;
|
|
7726
|
+
price: string;
|
|
7727
|
+
filledQuantity: string;
|
|
7728
|
+
error?: string | undefined;
|
|
7729
|
+
errorCode?: string | undefined;
|
|
7730
|
+
})[] | undefined;
|
|
7192
7731
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7193
7732
|
position?: {
|
|
7194
7733
|
id: string;
|
|
@@ -7203,14 +7742,14 @@ declare class Core {
|
|
|
7203
7742
|
intent: "CLOSE";
|
|
7204
7743
|
orderType: "MARKET";
|
|
7205
7744
|
error?: string | undefined;
|
|
7206
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7745
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7207
7746
|
refusedLegs?: {
|
|
7208
7747
|
id: string;
|
|
7209
7748
|
ticker: string;
|
|
7210
7749
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7211
7750
|
error: string;
|
|
7212
7751
|
}[] | undefined;
|
|
7213
|
-
orders?: {
|
|
7752
|
+
orders?: ({
|
|
7214
7753
|
id: string;
|
|
7215
7754
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7216
7755
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7226,7 +7765,22 @@ declare class Core {
|
|
|
7226
7765
|
error?: string | undefined;
|
|
7227
7766
|
errorCode?: string | undefined;
|
|
7228
7767
|
filledPrice?: string | undefined;
|
|
7229
|
-
}
|
|
7768
|
+
} | {
|
|
7769
|
+
id: string;
|
|
7770
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7771
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7772
|
+
createdAt: string;
|
|
7773
|
+
updatedAt: string;
|
|
7774
|
+
type: "RESTING";
|
|
7775
|
+
symbol: string;
|
|
7776
|
+
side: "BUY" | "SELL";
|
|
7777
|
+
reduceOnly: boolean;
|
|
7778
|
+
quantity: string;
|
|
7779
|
+
price: string;
|
|
7780
|
+
filledQuantity: string;
|
|
7781
|
+
error?: string | undefined;
|
|
7782
|
+
errorCode?: string | undefined;
|
|
7783
|
+
})[] | undefined;
|
|
7230
7784
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7231
7785
|
position?: {
|
|
7232
7786
|
id: string;
|
|
@@ -7241,14 +7795,14 @@ declare class Core {
|
|
|
7241
7795
|
intent: "REVERSE";
|
|
7242
7796
|
orderType: "MARKET";
|
|
7243
7797
|
error?: string | undefined;
|
|
7244
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7798
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7245
7799
|
refusedLegs?: {
|
|
7246
7800
|
id: string;
|
|
7247
7801
|
ticker: string;
|
|
7248
7802
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7249
7803
|
error: string;
|
|
7250
7804
|
}[] | undefined;
|
|
7251
|
-
orders?: {
|
|
7805
|
+
orders?: ({
|
|
7252
7806
|
id: string;
|
|
7253
7807
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7254
7808
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7264,23 +7818,35 @@ declare class Core {
|
|
|
7264
7818
|
error?: string | undefined;
|
|
7265
7819
|
errorCode?: string | undefined;
|
|
7266
7820
|
filledPrice?: string | undefined;
|
|
7267
|
-
}
|
|
7821
|
+
} | {
|
|
7822
|
+
id: string;
|
|
7823
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7824
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7825
|
+
createdAt: string;
|
|
7826
|
+
updatedAt: string;
|
|
7827
|
+
type: "RESTING";
|
|
7828
|
+
symbol: string;
|
|
7829
|
+
side: "BUY" | "SELL";
|
|
7830
|
+
reduceOnly: boolean;
|
|
7831
|
+
quantity: string;
|
|
7832
|
+
price: string;
|
|
7833
|
+
filledQuantity: string;
|
|
7834
|
+
error?: string | undefined;
|
|
7835
|
+
errorCode?: string | undefined;
|
|
7836
|
+
})[] | undefined;
|
|
7268
7837
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7269
7838
|
position?: {
|
|
7270
7839
|
id: string;
|
|
7271
7840
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7272
7841
|
} | undefined;
|
|
7273
|
-
}
|
|
7274
|
-
}>;
|
|
7275
|
-
adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
|
|
7276
|
-
execution: {
|
|
7842
|
+
} | {
|
|
7277
7843
|
id: string;
|
|
7278
7844
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7279
7845
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7280
7846
|
createdAt: string;
|
|
7281
7847
|
updatedAt: string;
|
|
7282
7848
|
intent: "OPEN";
|
|
7283
|
-
orderType: "
|
|
7849
|
+
orderType: "CHASE_LIMIT";
|
|
7284
7850
|
legs: [{
|
|
7285
7851
|
symbol: string;
|
|
7286
7852
|
side: "BUY" | "SELL";
|
|
@@ -7299,14 +7865,14 @@ declare class Core {
|
|
|
7299
7865
|
maxImpactPrice?: string | undefined;
|
|
7300
7866
|
}[]];
|
|
7301
7867
|
error?: string | undefined;
|
|
7302
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7868
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7303
7869
|
refusedLegs?: {
|
|
7304
7870
|
id: string;
|
|
7305
7871
|
ticker: string;
|
|
7306
7872
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7307
7873
|
error: string;
|
|
7308
7874
|
}[] | undefined;
|
|
7309
|
-
orders?: {
|
|
7875
|
+
orders?: ({
|
|
7310
7876
|
id: string;
|
|
7311
7877
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7312
7878
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7322,51 +7888,13 @@ declare class Core {
|
|
|
7322
7888
|
error?: string | undefined;
|
|
7323
7889
|
errorCode?: string | undefined;
|
|
7324
7890
|
filledPrice?: string | undefined;
|
|
7325
|
-
}
|
|
7326
|
-
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7327
|
-
position?: {
|
|
7328
|
-
id: string;
|
|
7329
|
-
} | undefined;
|
|
7330
|
-
} | {
|
|
7331
|
-
id: string;
|
|
7332
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7333
|
-
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7334
|
-
createdAt: string;
|
|
7335
|
-
updatedAt: string;
|
|
7336
|
-
intent: "ADJUST";
|
|
7337
|
-
orderType: "MARKET";
|
|
7338
|
-
legs: [{
|
|
7339
|
-
symbol: string;
|
|
7340
|
-
side: "BUY" | "SELL";
|
|
7341
|
-
mode: "QUANTITY" | "USD";
|
|
7342
|
-
amount: string;
|
|
7343
|
-
reduceOnly: boolean;
|
|
7344
|
-
id?: string | undefined;
|
|
7345
|
-
maxImpactPrice?: string | undefined;
|
|
7346
|
-
}, ...{
|
|
7347
|
-
symbol: string;
|
|
7348
|
-
side: "BUY" | "SELL";
|
|
7349
|
-
mode: "QUANTITY" | "USD";
|
|
7350
|
-
amount: string;
|
|
7351
|
-
reduceOnly: boolean;
|
|
7352
|
-
id?: string | undefined;
|
|
7353
|
-
maxImpactPrice?: string | undefined;
|
|
7354
|
-
}[]];
|
|
7355
|
-
error?: string | undefined;
|
|
7356
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7357
|
-
refusedLegs?: {
|
|
7358
|
-
id: string;
|
|
7359
|
-
ticker: string;
|
|
7360
|
-
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7361
|
-
error: string;
|
|
7362
|
-
}[] | undefined;
|
|
7363
|
-
orders?: {
|
|
7891
|
+
} | {
|
|
7364
7892
|
id: string;
|
|
7365
7893
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7366
7894
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7367
7895
|
createdAt: string;
|
|
7368
7896
|
updatedAt: string;
|
|
7369
|
-
type: "
|
|
7897
|
+
type: "RESTING";
|
|
7370
7898
|
symbol: string;
|
|
7371
7899
|
side: "BUY" | "SELL";
|
|
7372
7900
|
reduceOnly: boolean;
|
|
@@ -7375,30 +7903,93 @@ declare class Core {
|
|
|
7375
7903
|
filledQuantity: string;
|
|
7376
7904
|
error?: string | undefined;
|
|
7377
7905
|
errorCode?: string | undefined;
|
|
7378
|
-
|
|
7379
|
-
}[] | undefined;
|
|
7906
|
+
})[] | undefined;
|
|
7380
7907
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7381
7908
|
position?: {
|
|
7382
7909
|
id: string;
|
|
7383
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7384
7910
|
} | undefined;
|
|
7385
|
-
|
|
7911
|
+
deadlineAt?: string | undefined;
|
|
7912
|
+
chaseOrders?: {
|
|
7913
|
+
id: string;
|
|
7914
|
+
executionId: string;
|
|
7915
|
+
instrumentId: string;
|
|
7916
|
+
side: "BUY" | "SELL";
|
|
7917
|
+
quantity: string;
|
|
7918
|
+
filledQuantity: string;
|
|
7919
|
+
makerFilledQuantity: string;
|
|
7920
|
+
takerFilledQuantity: string;
|
|
7921
|
+
attempts: ({
|
|
7922
|
+
id: string;
|
|
7923
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7924
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7925
|
+
createdAt: string;
|
|
7926
|
+
updatedAt: string;
|
|
7927
|
+
type: "MARKET";
|
|
7928
|
+
symbol: string;
|
|
7929
|
+
side: "BUY" | "SELL";
|
|
7930
|
+
reduceOnly: boolean;
|
|
7931
|
+
quantity: string;
|
|
7932
|
+
price: string;
|
|
7933
|
+
filledQuantity: string;
|
|
7934
|
+
error?: string | undefined;
|
|
7935
|
+
errorCode?: string | undefined;
|
|
7936
|
+
filledPrice?: string | undefined;
|
|
7937
|
+
} | {
|
|
7938
|
+
id: string;
|
|
7939
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7940
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7941
|
+
createdAt: string;
|
|
7942
|
+
updatedAt: string;
|
|
7943
|
+
type: "RESTING";
|
|
7944
|
+
symbol: string;
|
|
7945
|
+
side: "BUY" | "SELL";
|
|
7946
|
+
reduceOnly: boolean;
|
|
7947
|
+
quantity: string;
|
|
7948
|
+
price: string;
|
|
7949
|
+
filledQuantity: string;
|
|
7950
|
+
error?: string | undefined;
|
|
7951
|
+
errorCode?: string | undefined;
|
|
7952
|
+
})[];
|
|
7953
|
+
averageFillPrice?: string | undefined;
|
|
7954
|
+
}[] | undefined;
|
|
7955
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
7956
|
+
};
|
|
7957
|
+
}>;
|
|
7958
|
+
adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
|
|
7959
|
+
execution: {
|
|
7386
7960
|
id: string;
|
|
7387
7961
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7388
7962
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7389
7963
|
createdAt: string;
|
|
7390
7964
|
updatedAt: string;
|
|
7391
|
-
intent: "
|
|
7965
|
+
intent: "OPEN";
|
|
7392
7966
|
orderType: "MARKET";
|
|
7967
|
+
legs: [{
|
|
7968
|
+
symbol: string;
|
|
7969
|
+
side: "BUY" | "SELL";
|
|
7970
|
+
mode: "QUANTITY" | "USD";
|
|
7971
|
+
amount: string;
|
|
7972
|
+
reduceOnly: boolean;
|
|
7973
|
+
id?: string | undefined;
|
|
7974
|
+
maxImpactPrice?: string | undefined;
|
|
7975
|
+
}, ...{
|
|
7976
|
+
symbol: string;
|
|
7977
|
+
side: "BUY" | "SELL";
|
|
7978
|
+
mode: "QUANTITY" | "USD";
|
|
7979
|
+
amount: string;
|
|
7980
|
+
reduceOnly: boolean;
|
|
7981
|
+
id?: string | undefined;
|
|
7982
|
+
maxImpactPrice?: string | undefined;
|
|
7983
|
+
}[]];
|
|
7393
7984
|
error?: string | undefined;
|
|
7394
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7985
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7395
7986
|
refusedLegs?: {
|
|
7396
7987
|
id: string;
|
|
7397
7988
|
ticker: string;
|
|
7398
7989
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7399
7990
|
error: string;
|
|
7400
7991
|
}[] | undefined;
|
|
7401
|
-
orders?: {
|
|
7992
|
+
orders?: ({
|
|
7402
7993
|
id: string;
|
|
7403
7994
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7404
7995
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7414,35 +8005,13 @@ declare class Core {
|
|
|
7414
8005
|
error?: string | undefined;
|
|
7415
8006
|
errorCode?: string | undefined;
|
|
7416
8007
|
filledPrice?: string | undefined;
|
|
7417
|
-
}
|
|
7418
|
-
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7419
|
-
position?: {
|
|
7420
|
-
id: string;
|
|
7421
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7422
|
-
} | undefined;
|
|
7423
|
-
} | {
|
|
7424
|
-
id: string;
|
|
7425
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7426
|
-
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7427
|
-
createdAt: string;
|
|
7428
|
-
updatedAt: string;
|
|
7429
|
-
intent: "REVERSE";
|
|
7430
|
-
orderType: "MARKET";
|
|
7431
|
-
error?: string | undefined;
|
|
7432
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
7433
|
-
refusedLegs?: {
|
|
7434
|
-
id: string;
|
|
7435
|
-
ticker: string;
|
|
7436
|
-
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7437
|
-
error: string;
|
|
7438
|
-
}[] | undefined;
|
|
7439
|
-
orders?: {
|
|
8008
|
+
} | {
|
|
7440
8009
|
id: string;
|
|
7441
8010
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7442
8011
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7443
8012
|
createdAt: string;
|
|
7444
8013
|
updatedAt: string;
|
|
7445
|
-
type: "
|
|
8014
|
+
type: "RESTING";
|
|
7446
8015
|
symbol: string;
|
|
7447
8016
|
side: "BUY" | "SELL";
|
|
7448
8017
|
reduceOnly: boolean;
|
|
@@ -7451,23 +8020,18 @@ declare class Core {
|
|
|
7451
8020
|
filledQuantity: string;
|
|
7452
8021
|
error?: string | undefined;
|
|
7453
8022
|
errorCode?: string | undefined;
|
|
7454
|
-
|
|
7455
|
-
}[] | undefined;
|
|
8023
|
+
})[] | undefined;
|
|
7456
8024
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7457
8025
|
position?: {
|
|
7458
8026
|
id: string;
|
|
7459
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7460
8027
|
} | undefined;
|
|
7461
|
-
}
|
|
7462
|
-
}>;
|
|
7463
|
-
close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
|
|
7464
|
-
execution: {
|
|
8028
|
+
} | {
|
|
7465
8029
|
id: string;
|
|
7466
8030
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7467
8031
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7468
8032
|
createdAt: string;
|
|
7469
8033
|
updatedAt: string;
|
|
7470
|
-
intent: "
|
|
8034
|
+
intent: "ADJUST";
|
|
7471
8035
|
orderType: "MARKET";
|
|
7472
8036
|
legs: [{
|
|
7473
8037
|
symbol: string;
|
|
@@ -7487,14 +8051,14 @@ declare class Core {
|
|
|
7487
8051
|
maxImpactPrice?: string | undefined;
|
|
7488
8052
|
}[]];
|
|
7489
8053
|
error?: string | undefined;
|
|
7490
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8054
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7491
8055
|
refusedLegs?: {
|
|
7492
8056
|
id: string;
|
|
7493
8057
|
ticker: string;
|
|
7494
8058
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7495
8059
|
error: string;
|
|
7496
8060
|
}[] | undefined;
|
|
7497
|
-
orders?: {
|
|
8061
|
+
orders?: ({
|
|
7498
8062
|
id: string;
|
|
7499
8063
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7500
8064
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7510,10 +8074,26 @@ declare class Core {
|
|
|
7510
8074
|
error?: string | undefined;
|
|
7511
8075
|
errorCode?: string | undefined;
|
|
7512
8076
|
filledPrice?: string | undefined;
|
|
7513
|
-
}
|
|
8077
|
+
} | {
|
|
8078
|
+
id: string;
|
|
8079
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8080
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8081
|
+
createdAt: string;
|
|
8082
|
+
updatedAt: string;
|
|
8083
|
+
type: "RESTING";
|
|
8084
|
+
symbol: string;
|
|
8085
|
+
side: "BUY" | "SELL";
|
|
8086
|
+
reduceOnly: boolean;
|
|
8087
|
+
quantity: string;
|
|
8088
|
+
price: string;
|
|
8089
|
+
filledQuantity: string;
|
|
8090
|
+
error?: string | undefined;
|
|
8091
|
+
errorCode?: string | undefined;
|
|
8092
|
+
})[] | undefined;
|
|
7514
8093
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7515
8094
|
position?: {
|
|
7516
8095
|
id: string;
|
|
8096
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7517
8097
|
} | undefined;
|
|
7518
8098
|
} | {
|
|
7519
8099
|
id: string;
|
|
@@ -7521,34 +8101,17 @@ declare class Core {
|
|
|
7521
8101
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7522
8102
|
createdAt: string;
|
|
7523
8103
|
updatedAt: string;
|
|
7524
|
-
intent: "
|
|
8104
|
+
intent: "CLOSE";
|
|
7525
8105
|
orderType: "MARKET";
|
|
7526
|
-
legs: [{
|
|
7527
|
-
symbol: string;
|
|
7528
|
-
side: "BUY" | "SELL";
|
|
7529
|
-
mode: "QUANTITY" | "USD";
|
|
7530
|
-
amount: string;
|
|
7531
|
-
reduceOnly: boolean;
|
|
7532
|
-
id?: string | undefined;
|
|
7533
|
-
maxImpactPrice?: string | undefined;
|
|
7534
|
-
}, ...{
|
|
7535
|
-
symbol: string;
|
|
7536
|
-
side: "BUY" | "SELL";
|
|
7537
|
-
mode: "QUANTITY" | "USD";
|
|
7538
|
-
amount: string;
|
|
7539
|
-
reduceOnly: boolean;
|
|
7540
|
-
id?: string | undefined;
|
|
7541
|
-
maxImpactPrice?: string | undefined;
|
|
7542
|
-
}[]];
|
|
7543
8106
|
error?: string | undefined;
|
|
7544
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8107
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7545
8108
|
refusedLegs?: {
|
|
7546
8109
|
id: string;
|
|
7547
8110
|
ticker: string;
|
|
7548
8111
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7549
8112
|
error: string;
|
|
7550
8113
|
}[] | undefined;
|
|
7551
|
-
orders?: {
|
|
8114
|
+
orders?: ({
|
|
7552
8115
|
id: string;
|
|
7553
8116
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7554
8117
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7564,7 +8127,22 @@ declare class Core {
|
|
|
7564
8127
|
error?: string | undefined;
|
|
7565
8128
|
errorCode?: string | undefined;
|
|
7566
8129
|
filledPrice?: string | undefined;
|
|
7567
|
-
}
|
|
8130
|
+
} | {
|
|
8131
|
+
id: string;
|
|
8132
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8133
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8134
|
+
createdAt: string;
|
|
8135
|
+
updatedAt: string;
|
|
8136
|
+
type: "RESTING";
|
|
8137
|
+
symbol: string;
|
|
8138
|
+
side: "BUY" | "SELL";
|
|
8139
|
+
reduceOnly: boolean;
|
|
8140
|
+
quantity: string;
|
|
8141
|
+
price: string;
|
|
8142
|
+
filledQuantity: string;
|
|
8143
|
+
error?: string | undefined;
|
|
8144
|
+
errorCode?: string | undefined;
|
|
8145
|
+
})[] | undefined;
|
|
7568
8146
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7569
8147
|
position?: {
|
|
7570
8148
|
id: string;
|
|
@@ -7576,17 +8154,17 @@ declare class Core {
|
|
|
7576
8154
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7577
8155
|
createdAt: string;
|
|
7578
8156
|
updatedAt: string;
|
|
7579
|
-
intent: "
|
|
8157
|
+
intent: "REVERSE";
|
|
7580
8158
|
orderType: "MARKET";
|
|
7581
8159
|
error?: string | undefined;
|
|
7582
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8160
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7583
8161
|
refusedLegs?: {
|
|
7584
8162
|
id: string;
|
|
7585
8163
|
ticker: string;
|
|
7586
8164
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7587
8165
|
error: string;
|
|
7588
8166
|
}[] | undefined;
|
|
7589
|
-
orders?: {
|
|
8167
|
+
orders?: ({
|
|
7590
8168
|
id: string;
|
|
7591
8169
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7592
8170
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7602,7 +8180,22 @@ declare class Core {
|
|
|
7602
8180
|
error?: string | undefined;
|
|
7603
8181
|
errorCode?: string | undefined;
|
|
7604
8182
|
filledPrice?: string | undefined;
|
|
7605
|
-
}
|
|
8183
|
+
} | {
|
|
8184
|
+
id: string;
|
|
8185
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8186
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8187
|
+
createdAt: string;
|
|
8188
|
+
updatedAt: string;
|
|
8189
|
+
type: "RESTING";
|
|
8190
|
+
symbol: string;
|
|
8191
|
+
side: "BUY" | "SELL";
|
|
8192
|
+
reduceOnly: boolean;
|
|
8193
|
+
quantity: string;
|
|
8194
|
+
price: string;
|
|
8195
|
+
filledQuantity: string;
|
|
8196
|
+
error?: string | undefined;
|
|
8197
|
+
errorCode?: string | undefined;
|
|
8198
|
+
})[] | undefined;
|
|
7606
8199
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7607
8200
|
position?: {
|
|
7608
8201
|
id: string;
|
|
@@ -7614,17 +8207,34 @@ declare class Core {
|
|
|
7614
8207
|
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
7615
8208
|
createdAt: string;
|
|
7616
8209
|
updatedAt: string;
|
|
7617
|
-
intent: "
|
|
7618
|
-
orderType: "
|
|
8210
|
+
intent: "OPEN";
|
|
8211
|
+
orderType: "CHASE_LIMIT";
|
|
8212
|
+
legs: [{
|
|
8213
|
+
symbol: string;
|
|
8214
|
+
side: "BUY" | "SELL";
|
|
8215
|
+
mode: "QUANTITY" | "USD";
|
|
8216
|
+
amount: string;
|
|
8217
|
+
reduceOnly: boolean;
|
|
8218
|
+
id?: string | undefined;
|
|
8219
|
+
maxImpactPrice?: string | undefined;
|
|
8220
|
+
}, ...{
|
|
8221
|
+
symbol: string;
|
|
8222
|
+
side: "BUY" | "SELL";
|
|
8223
|
+
mode: "QUANTITY" | "USD";
|
|
8224
|
+
amount: string;
|
|
8225
|
+
reduceOnly: boolean;
|
|
8226
|
+
id?: string | undefined;
|
|
8227
|
+
maxImpactPrice?: string | undefined;
|
|
8228
|
+
}[]];
|
|
7619
8229
|
error?: string | undefined;
|
|
7620
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8230
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7621
8231
|
refusedLegs?: {
|
|
7622
8232
|
id: string;
|
|
7623
8233
|
ticker: string;
|
|
7624
8234
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7625
8235
|
error: string;
|
|
7626
8236
|
}[] | undefined;
|
|
7627
|
-
orders?: {
|
|
8237
|
+
orders?: ({
|
|
7628
8238
|
id: string;
|
|
7629
8239
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7630
8240
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7640,15 +8250,74 @@ declare class Core {
|
|
|
7640
8250
|
error?: string | undefined;
|
|
7641
8251
|
errorCode?: string | undefined;
|
|
7642
8252
|
filledPrice?: string | undefined;
|
|
7643
|
-
}
|
|
8253
|
+
} | {
|
|
8254
|
+
id: string;
|
|
8255
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8256
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8257
|
+
createdAt: string;
|
|
8258
|
+
updatedAt: string;
|
|
8259
|
+
type: "RESTING";
|
|
8260
|
+
symbol: string;
|
|
8261
|
+
side: "BUY" | "SELL";
|
|
8262
|
+
reduceOnly: boolean;
|
|
8263
|
+
quantity: string;
|
|
8264
|
+
price: string;
|
|
8265
|
+
filledQuantity: string;
|
|
8266
|
+
error?: string | undefined;
|
|
8267
|
+
errorCode?: string | undefined;
|
|
8268
|
+
})[] | undefined;
|
|
7644
8269
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7645
8270
|
position?: {
|
|
7646
8271
|
id: string;
|
|
7647
|
-
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7648
8272
|
} | undefined;
|
|
8273
|
+
deadlineAt?: string | undefined;
|
|
8274
|
+
chaseOrders?: {
|
|
8275
|
+
id: string;
|
|
8276
|
+
executionId: string;
|
|
8277
|
+
instrumentId: string;
|
|
8278
|
+
side: "BUY" | "SELL";
|
|
8279
|
+
quantity: string;
|
|
8280
|
+
filledQuantity: string;
|
|
8281
|
+
makerFilledQuantity: string;
|
|
8282
|
+
takerFilledQuantity: string;
|
|
8283
|
+
attempts: ({
|
|
8284
|
+
id: string;
|
|
8285
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8286
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8287
|
+
createdAt: string;
|
|
8288
|
+
updatedAt: string;
|
|
8289
|
+
type: "MARKET";
|
|
8290
|
+
symbol: string;
|
|
8291
|
+
side: "BUY" | "SELL";
|
|
8292
|
+
reduceOnly: boolean;
|
|
8293
|
+
quantity: string;
|
|
8294
|
+
price: string;
|
|
8295
|
+
filledQuantity: string;
|
|
8296
|
+
error?: string | undefined;
|
|
8297
|
+
errorCode?: string | undefined;
|
|
8298
|
+
filledPrice?: string | undefined;
|
|
8299
|
+
} | {
|
|
8300
|
+
id: string;
|
|
8301
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8302
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8303
|
+
createdAt: string;
|
|
8304
|
+
updatedAt: string;
|
|
8305
|
+
type: "RESTING";
|
|
8306
|
+
symbol: string;
|
|
8307
|
+
side: "BUY" | "SELL";
|
|
8308
|
+
reduceOnly: boolean;
|
|
8309
|
+
quantity: string;
|
|
8310
|
+
price: string;
|
|
8311
|
+
filledQuantity: string;
|
|
8312
|
+
error?: string | undefined;
|
|
8313
|
+
errorCode?: string | undefined;
|
|
8314
|
+
})[];
|
|
8315
|
+
averageFillPrice?: string | undefined;
|
|
8316
|
+
}[] | undefined;
|
|
8317
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
7649
8318
|
};
|
|
7650
8319
|
}>;
|
|
7651
|
-
|
|
8320
|
+
close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
|
|
7652
8321
|
execution: {
|
|
7653
8322
|
id: string;
|
|
7654
8323
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
@@ -7675,14 +8344,14 @@ declare class Core {
|
|
|
7675
8344
|
maxImpactPrice?: string | undefined;
|
|
7676
8345
|
}[]];
|
|
7677
8346
|
error?: string | undefined;
|
|
7678
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8347
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7679
8348
|
refusedLegs?: {
|
|
7680
8349
|
id: string;
|
|
7681
8350
|
ticker: string;
|
|
7682
8351
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7683
8352
|
error: string;
|
|
7684
8353
|
}[] | undefined;
|
|
7685
|
-
orders?: {
|
|
8354
|
+
orders?: ({
|
|
7686
8355
|
id: string;
|
|
7687
8356
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7688
8357
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7698,7 +8367,22 @@ declare class Core {
|
|
|
7698
8367
|
error?: string | undefined;
|
|
7699
8368
|
errorCode?: string | undefined;
|
|
7700
8369
|
filledPrice?: string | undefined;
|
|
7701
|
-
}
|
|
8370
|
+
} | {
|
|
8371
|
+
id: string;
|
|
8372
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8373
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8374
|
+
createdAt: string;
|
|
8375
|
+
updatedAt: string;
|
|
8376
|
+
type: "RESTING";
|
|
8377
|
+
symbol: string;
|
|
8378
|
+
side: "BUY" | "SELL";
|
|
8379
|
+
reduceOnly: boolean;
|
|
8380
|
+
quantity: string;
|
|
8381
|
+
price: string;
|
|
8382
|
+
filledQuantity: string;
|
|
8383
|
+
error?: string | undefined;
|
|
8384
|
+
errorCode?: string | undefined;
|
|
8385
|
+
})[] | undefined;
|
|
7702
8386
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7703
8387
|
position?: {
|
|
7704
8388
|
id: string;
|
|
@@ -7729,14 +8413,14 @@ declare class Core {
|
|
|
7729
8413
|
maxImpactPrice?: string | undefined;
|
|
7730
8414
|
}[]];
|
|
7731
8415
|
error?: string | undefined;
|
|
7732
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8416
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7733
8417
|
refusedLegs?: {
|
|
7734
8418
|
id: string;
|
|
7735
8419
|
ticker: string;
|
|
7736
8420
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7737
8421
|
error: string;
|
|
7738
8422
|
}[] | undefined;
|
|
7739
|
-
orders?: {
|
|
8423
|
+
orders?: ({
|
|
7740
8424
|
id: string;
|
|
7741
8425
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7742
8426
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7752,7 +8436,22 @@ declare class Core {
|
|
|
7752
8436
|
error?: string | undefined;
|
|
7753
8437
|
errorCode?: string | undefined;
|
|
7754
8438
|
filledPrice?: string | undefined;
|
|
7755
|
-
}
|
|
8439
|
+
} | {
|
|
8440
|
+
id: string;
|
|
8441
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8442
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8443
|
+
createdAt: string;
|
|
8444
|
+
updatedAt: string;
|
|
8445
|
+
type: "RESTING";
|
|
8446
|
+
symbol: string;
|
|
8447
|
+
side: "BUY" | "SELL";
|
|
8448
|
+
reduceOnly: boolean;
|
|
8449
|
+
quantity: string;
|
|
8450
|
+
price: string;
|
|
8451
|
+
filledQuantity: string;
|
|
8452
|
+
error?: string | undefined;
|
|
8453
|
+
errorCode?: string | undefined;
|
|
8454
|
+
})[] | undefined;
|
|
7756
8455
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7757
8456
|
position?: {
|
|
7758
8457
|
id: string;
|
|
@@ -7767,14 +8466,14 @@ declare class Core {
|
|
|
7767
8466
|
intent: "CLOSE";
|
|
7768
8467
|
orderType: "MARKET";
|
|
7769
8468
|
error?: string | undefined;
|
|
7770
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8469
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7771
8470
|
refusedLegs?: {
|
|
7772
8471
|
id: string;
|
|
7773
8472
|
ticker: string;
|
|
7774
8473
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7775
8474
|
error: string;
|
|
7776
8475
|
}[] | undefined;
|
|
7777
|
-
orders?: {
|
|
8476
|
+
orders?: ({
|
|
7778
8477
|
id: string;
|
|
7779
8478
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7780
8479
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7790,29 +8489,406 @@ declare class Core {
|
|
|
7790
8489
|
error?: string | undefined;
|
|
7791
8490
|
errorCode?: string | undefined;
|
|
7792
8491
|
filledPrice?: string | undefined;
|
|
7793
|
-
}
|
|
7794
|
-
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7795
|
-
position?: {
|
|
8492
|
+
} | {
|
|
7796
8493
|
id: string;
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
8494
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8495
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8496
|
+
createdAt: string;
|
|
8497
|
+
updatedAt: string;
|
|
8498
|
+
type: "RESTING";
|
|
8499
|
+
symbol: string;
|
|
8500
|
+
side: "BUY" | "SELL";
|
|
8501
|
+
reduceOnly: boolean;
|
|
8502
|
+
quantity: string;
|
|
8503
|
+
price: string;
|
|
8504
|
+
filledQuantity: string;
|
|
8505
|
+
error?: string | undefined;
|
|
8506
|
+
errorCode?: string | undefined;
|
|
8507
|
+
})[] | undefined;
|
|
8508
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8509
|
+
position?: {
|
|
8510
|
+
id: string;
|
|
8511
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
8512
|
+
} | undefined;
|
|
8513
|
+
} | {
|
|
8514
|
+
id: string;
|
|
8515
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8516
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8517
|
+
createdAt: string;
|
|
8518
|
+
updatedAt: string;
|
|
8519
|
+
intent: "REVERSE";
|
|
8520
|
+
orderType: "MARKET";
|
|
8521
|
+
error?: string | undefined;
|
|
8522
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
8523
|
+
refusedLegs?: {
|
|
8524
|
+
id: string;
|
|
8525
|
+
ticker: string;
|
|
8526
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8527
|
+
error: string;
|
|
8528
|
+
}[] | undefined;
|
|
8529
|
+
orders?: ({
|
|
8530
|
+
id: string;
|
|
8531
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8532
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8533
|
+
createdAt: string;
|
|
8534
|
+
updatedAt: string;
|
|
8535
|
+
type: "MARKET";
|
|
8536
|
+
symbol: string;
|
|
8537
|
+
side: "BUY" | "SELL";
|
|
8538
|
+
reduceOnly: boolean;
|
|
8539
|
+
quantity: string;
|
|
8540
|
+
price: string;
|
|
8541
|
+
filledQuantity: string;
|
|
8542
|
+
error?: string | undefined;
|
|
8543
|
+
errorCode?: string | undefined;
|
|
8544
|
+
filledPrice?: string | undefined;
|
|
8545
|
+
} | {
|
|
8546
|
+
id: string;
|
|
8547
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8548
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8549
|
+
createdAt: string;
|
|
8550
|
+
updatedAt: string;
|
|
8551
|
+
type: "RESTING";
|
|
8552
|
+
symbol: string;
|
|
8553
|
+
side: "BUY" | "SELL";
|
|
8554
|
+
reduceOnly: boolean;
|
|
8555
|
+
quantity: string;
|
|
8556
|
+
price: string;
|
|
8557
|
+
filledQuantity: string;
|
|
8558
|
+
error?: string | undefined;
|
|
8559
|
+
errorCode?: string | undefined;
|
|
8560
|
+
})[] | undefined;
|
|
8561
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8562
|
+
position?: {
|
|
8563
|
+
id: string;
|
|
8564
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
8565
|
+
} | undefined;
|
|
8566
|
+
} | {
|
|
8567
|
+
id: string;
|
|
8568
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8569
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8570
|
+
createdAt: string;
|
|
8571
|
+
updatedAt: string;
|
|
8572
|
+
intent: "OPEN";
|
|
8573
|
+
orderType: "CHASE_LIMIT";
|
|
8574
|
+
legs: [{
|
|
8575
|
+
symbol: string;
|
|
8576
|
+
side: "BUY" | "SELL";
|
|
8577
|
+
mode: "QUANTITY" | "USD";
|
|
8578
|
+
amount: string;
|
|
8579
|
+
reduceOnly: boolean;
|
|
8580
|
+
id?: string | undefined;
|
|
8581
|
+
maxImpactPrice?: string | undefined;
|
|
8582
|
+
}, ...{
|
|
8583
|
+
symbol: string;
|
|
8584
|
+
side: "BUY" | "SELL";
|
|
8585
|
+
mode: "QUANTITY" | "USD";
|
|
8586
|
+
amount: string;
|
|
8587
|
+
reduceOnly: boolean;
|
|
8588
|
+
id?: string | undefined;
|
|
8589
|
+
maxImpactPrice?: string | undefined;
|
|
8590
|
+
}[]];
|
|
8591
|
+
error?: string | undefined;
|
|
8592
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
8593
|
+
refusedLegs?: {
|
|
8594
|
+
id: string;
|
|
8595
|
+
ticker: string;
|
|
8596
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8597
|
+
error: string;
|
|
8598
|
+
}[] | undefined;
|
|
8599
|
+
orders?: ({
|
|
8600
|
+
id: string;
|
|
8601
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8602
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8603
|
+
createdAt: string;
|
|
8604
|
+
updatedAt: string;
|
|
8605
|
+
type: "MARKET";
|
|
8606
|
+
symbol: string;
|
|
8607
|
+
side: "BUY" | "SELL";
|
|
8608
|
+
reduceOnly: boolean;
|
|
8609
|
+
quantity: string;
|
|
8610
|
+
price: string;
|
|
8611
|
+
filledQuantity: string;
|
|
8612
|
+
error?: string | undefined;
|
|
8613
|
+
errorCode?: string | undefined;
|
|
8614
|
+
filledPrice?: string | undefined;
|
|
8615
|
+
} | {
|
|
8616
|
+
id: string;
|
|
8617
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8618
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8619
|
+
createdAt: string;
|
|
8620
|
+
updatedAt: string;
|
|
8621
|
+
type: "RESTING";
|
|
8622
|
+
symbol: string;
|
|
8623
|
+
side: "BUY" | "SELL";
|
|
8624
|
+
reduceOnly: boolean;
|
|
8625
|
+
quantity: string;
|
|
8626
|
+
price: string;
|
|
8627
|
+
filledQuantity: string;
|
|
8628
|
+
error?: string | undefined;
|
|
8629
|
+
errorCode?: string | undefined;
|
|
8630
|
+
})[] | undefined;
|
|
8631
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8632
|
+
position?: {
|
|
8633
|
+
id: string;
|
|
8634
|
+
} | undefined;
|
|
8635
|
+
deadlineAt?: string | undefined;
|
|
8636
|
+
chaseOrders?: {
|
|
8637
|
+
id: string;
|
|
8638
|
+
executionId: string;
|
|
8639
|
+
instrumentId: string;
|
|
8640
|
+
side: "BUY" | "SELL";
|
|
8641
|
+
quantity: string;
|
|
8642
|
+
filledQuantity: string;
|
|
8643
|
+
makerFilledQuantity: string;
|
|
8644
|
+
takerFilledQuantity: string;
|
|
8645
|
+
attempts: ({
|
|
8646
|
+
id: string;
|
|
8647
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8648
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8649
|
+
createdAt: string;
|
|
8650
|
+
updatedAt: string;
|
|
8651
|
+
type: "MARKET";
|
|
8652
|
+
symbol: string;
|
|
8653
|
+
side: "BUY" | "SELL";
|
|
8654
|
+
reduceOnly: boolean;
|
|
8655
|
+
quantity: string;
|
|
8656
|
+
price: string;
|
|
8657
|
+
filledQuantity: string;
|
|
8658
|
+
error?: string | undefined;
|
|
8659
|
+
errorCode?: string | undefined;
|
|
8660
|
+
filledPrice?: string | undefined;
|
|
8661
|
+
} | {
|
|
8662
|
+
id: string;
|
|
8663
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8664
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8665
|
+
createdAt: string;
|
|
8666
|
+
updatedAt: string;
|
|
8667
|
+
type: "RESTING";
|
|
8668
|
+
symbol: string;
|
|
8669
|
+
side: "BUY" | "SELL";
|
|
8670
|
+
reduceOnly: boolean;
|
|
8671
|
+
quantity: string;
|
|
8672
|
+
price: string;
|
|
8673
|
+
filledQuantity: string;
|
|
8674
|
+
error?: string | undefined;
|
|
8675
|
+
errorCode?: string | undefined;
|
|
8676
|
+
})[];
|
|
8677
|
+
averageFillPrice?: string | undefined;
|
|
8678
|
+
}[] | undefined;
|
|
8679
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
8680
|
+
};
|
|
8681
|
+
}>;
|
|
8682
|
+
reverse: (positionId: string, body: HttpTypes.CreateTradeReverse, headers?: ClientHeaders) => Promise<{
|
|
8683
|
+
execution: {
|
|
8684
|
+
id: string;
|
|
8685
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8686
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8687
|
+
createdAt: string;
|
|
8688
|
+
updatedAt: string;
|
|
8689
|
+
intent: "OPEN";
|
|
8690
|
+
orderType: "MARKET";
|
|
8691
|
+
legs: [{
|
|
8692
|
+
symbol: string;
|
|
8693
|
+
side: "BUY" | "SELL";
|
|
8694
|
+
mode: "QUANTITY" | "USD";
|
|
8695
|
+
amount: string;
|
|
8696
|
+
reduceOnly: boolean;
|
|
8697
|
+
id?: string | undefined;
|
|
8698
|
+
maxImpactPrice?: string | undefined;
|
|
8699
|
+
}, ...{
|
|
8700
|
+
symbol: string;
|
|
8701
|
+
side: "BUY" | "SELL";
|
|
8702
|
+
mode: "QUANTITY" | "USD";
|
|
8703
|
+
amount: string;
|
|
8704
|
+
reduceOnly: boolean;
|
|
8705
|
+
id?: string | undefined;
|
|
8706
|
+
maxImpactPrice?: string | undefined;
|
|
8707
|
+
}[]];
|
|
8708
|
+
error?: string | undefined;
|
|
8709
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
8710
|
+
refusedLegs?: {
|
|
8711
|
+
id: string;
|
|
8712
|
+
ticker: string;
|
|
8713
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8714
|
+
error: string;
|
|
8715
|
+
}[] | undefined;
|
|
8716
|
+
orders?: ({
|
|
8717
|
+
id: string;
|
|
8718
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8719
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8720
|
+
createdAt: string;
|
|
8721
|
+
updatedAt: string;
|
|
8722
|
+
type: "MARKET";
|
|
8723
|
+
symbol: string;
|
|
8724
|
+
side: "BUY" | "SELL";
|
|
8725
|
+
reduceOnly: boolean;
|
|
8726
|
+
quantity: string;
|
|
8727
|
+
price: string;
|
|
8728
|
+
filledQuantity: string;
|
|
8729
|
+
error?: string | undefined;
|
|
8730
|
+
errorCode?: string | undefined;
|
|
8731
|
+
filledPrice?: string | undefined;
|
|
8732
|
+
} | {
|
|
8733
|
+
id: string;
|
|
8734
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8735
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8736
|
+
createdAt: string;
|
|
8737
|
+
updatedAt: string;
|
|
8738
|
+
type: "RESTING";
|
|
8739
|
+
symbol: string;
|
|
8740
|
+
side: "BUY" | "SELL";
|
|
8741
|
+
reduceOnly: boolean;
|
|
8742
|
+
quantity: string;
|
|
8743
|
+
price: string;
|
|
8744
|
+
filledQuantity: string;
|
|
8745
|
+
error?: string | undefined;
|
|
8746
|
+
errorCode?: string | undefined;
|
|
8747
|
+
})[] | undefined;
|
|
8748
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8749
|
+
position?: {
|
|
8750
|
+
id: string;
|
|
8751
|
+
} | undefined;
|
|
8752
|
+
} | {
|
|
8753
|
+
id: string;
|
|
8754
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8755
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8756
|
+
createdAt: string;
|
|
8757
|
+
updatedAt: string;
|
|
8758
|
+
intent: "ADJUST";
|
|
8759
|
+
orderType: "MARKET";
|
|
8760
|
+
legs: [{
|
|
8761
|
+
symbol: string;
|
|
8762
|
+
side: "BUY" | "SELL";
|
|
8763
|
+
mode: "QUANTITY" | "USD";
|
|
8764
|
+
amount: string;
|
|
8765
|
+
reduceOnly: boolean;
|
|
8766
|
+
id?: string | undefined;
|
|
8767
|
+
maxImpactPrice?: string | undefined;
|
|
8768
|
+
}, ...{
|
|
8769
|
+
symbol: string;
|
|
8770
|
+
side: "BUY" | "SELL";
|
|
8771
|
+
mode: "QUANTITY" | "USD";
|
|
8772
|
+
amount: string;
|
|
8773
|
+
reduceOnly: boolean;
|
|
8774
|
+
id?: string | undefined;
|
|
8775
|
+
maxImpactPrice?: string | undefined;
|
|
8776
|
+
}[]];
|
|
8777
|
+
error?: string | undefined;
|
|
8778
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
8779
|
+
refusedLegs?: {
|
|
8780
|
+
id: string;
|
|
8781
|
+
ticker: string;
|
|
8782
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8783
|
+
error: string;
|
|
8784
|
+
}[] | undefined;
|
|
8785
|
+
orders?: ({
|
|
8786
|
+
id: string;
|
|
8787
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8788
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8789
|
+
createdAt: string;
|
|
8790
|
+
updatedAt: string;
|
|
8791
|
+
type: "MARKET";
|
|
8792
|
+
symbol: string;
|
|
8793
|
+
side: "BUY" | "SELL";
|
|
8794
|
+
reduceOnly: boolean;
|
|
8795
|
+
quantity: string;
|
|
8796
|
+
price: string;
|
|
8797
|
+
filledQuantity: string;
|
|
8798
|
+
error?: string | undefined;
|
|
8799
|
+
errorCode?: string | undefined;
|
|
8800
|
+
filledPrice?: string | undefined;
|
|
8801
|
+
} | {
|
|
8802
|
+
id: string;
|
|
8803
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8804
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8805
|
+
createdAt: string;
|
|
8806
|
+
updatedAt: string;
|
|
8807
|
+
type: "RESTING";
|
|
8808
|
+
symbol: string;
|
|
8809
|
+
side: "BUY" | "SELL";
|
|
8810
|
+
reduceOnly: boolean;
|
|
8811
|
+
quantity: string;
|
|
8812
|
+
price: string;
|
|
8813
|
+
filledQuantity: string;
|
|
8814
|
+
error?: string | undefined;
|
|
8815
|
+
errorCode?: string | undefined;
|
|
8816
|
+
})[] | undefined;
|
|
8817
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8818
|
+
position?: {
|
|
8819
|
+
id: string;
|
|
8820
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
8821
|
+
} | undefined;
|
|
8822
|
+
} | {
|
|
8823
|
+
id: string;
|
|
8824
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8825
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8826
|
+
createdAt: string;
|
|
8827
|
+
updatedAt: string;
|
|
8828
|
+
intent: "CLOSE";
|
|
8829
|
+
orderType: "MARKET";
|
|
8830
|
+
error?: string | undefined;
|
|
8831
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
8832
|
+
refusedLegs?: {
|
|
8833
|
+
id: string;
|
|
8834
|
+
ticker: string;
|
|
8835
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8836
|
+
error: string;
|
|
8837
|
+
}[] | undefined;
|
|
8838
|
+
orders?: ({
|
|
8839
|
+
id: string;
|
|
8840
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8841
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8842
|
+
createdAt: string;
|
|
8843
|
+
updatedAt: string;
|
|
8844
|
+
type: "MARKET";
|
|
8845
|
+
symbol: string;
|
|
8846
|
+
side: "BUY" | "SELL";
|
|
8847
|
+
reduceOnly: boolean;
|
|
8848
|
+
quantity: string;
|
|
8849
|
+
price: string;
|
|
8850
|
+
filledQuantity: string;
|
|
8851
|
+
error?: string | undefined;
|
|
8852
|
+
errorCode?: string | undefined;
|
|
8853
|
+
filledPrice?: string | undefined;
|
|
8854
|
+
} | {
|
|
8855
|
+
id: string;
|
|
8856
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8857
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8858
|
+
createdAt: string;
|
|
8859
|
+
updatedAt: string;
|
|
8860
|
+
type: "RESTING";
|
|
8861
|
+
symbol: string;
|
|
8862
|
+
side: "BUY" | "SELL";
|
|
8863
|
+
reduceOnly: boolean;
|
|
8864
|
+
quantity: string;
|
|
8865
|
+
price: string;
|
|
8866
|
+
filledQuantity: string;
|
|
8867
|
+
error?: string | undefined;
|
|
8868
|
+
errorCode?: string | undefined;
|
|
8869
|
+
})[] | undefined;
|
|
8870
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8871
|
+
position?: {
|
|
8872
|
+
id: string;
|
|
8873
|
+
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
8874
|
+
} | undefined;
|
|
8875
|
+
} | {
|
|
8876
|
+
id: string;
|
|
8877
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8878
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8879
|
+
createdAt: string;
|
|
7804
8880
|
updatedAt: string;
|
|
7805
8881
|
intent: "REVERSE";
|
|
7806
8882
|
orderType: "MARKET";
|
|
7807
8883
|
error?: string | undefined;
|
|
7808
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
8884
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7809
8885
|
refusedLegs?: {
|
|
7810
8886
|
id: string;
|
|
7811
8887
|
ticker: string;
|
|
7812
8888
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7813
8889
|
error: string;
|
|
7814
8890
|
}[] | undefined;
|
|
7815
|
-
orders?: {
|
|
8891
|
+
orders?: ({
|
|
7816
8892
|
id: string;
|
|
7817
8893
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7818
8894
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7828,12 +8904,141 @@ declare class Core {
|
|
|
7828
8904
|
error?: string | undefined;
|
|
7829
8905
|
errorCode?: string | undefined;
|
|
7830
8906
|
filledPrice?: string | undefined;
|
|
7831
|
-
}
|
|
8907
|
+
} | {
|
|
8908
|
+
id: string;
|
|
8909
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8910
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8911
|
+
createdAt: string;
|
|
8912
|
+
updatedAt: string;
|
|
8913
|
+
type: "RESTING";
|
|
8914
|
+
symbol: string;
|
|
8915
|
+
side: "BUY" | "SELL";
|
|
8916
|
+
reduceOnly: boolean;
|
|
8917
|
+
quantity: string;
|
|
8918
|
+
price: string;
|
|
8919
|
+
filledQuantity: string;
|
|
8920
|
+
error?: string | undefined;
|
|
8921
|
+
errorCode?: string | undefined;
|
|
8922
|
+
})[] | undefined;
|
|
7832
8923
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7833
8924
|
position?: {
|
|
7834
8925
|
id: string;
|
|
7835
8926
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
7836
8927
|
} | undefined;
|
|
8928
|
+
} | {
|
|
8929
|
+
id: string;
|
|
8930
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8931
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
8932
|
+
createdAt: string;
|
|
8933
|
+
updatedAt: string;
|
|
8934
|
+
intent: "OPEN";
|
|
8935
|
+
orderType: "CHASE_LIMIT";
|
|
8936
|
+
legs: [{
|
|
8937
|
+
symbol: string;
|
|
8938
|
+
side: "BUY" | "SELL";
|
|
8939
|
+
mode: "QUANTITY" | "USD";
|
|
8940
|
+
amount: string;
|
|
8941
|
+
reduceOnly: boolean;
|
|
8942
|
+
id?: string | undefined;
|
|
8943
|
+
maxImpactPrice?: string | undefined;
|
|
8944
|
+
}, ...{
|
|
8945
|
+
symbol: string;
|
|
8946
|
+
side: "BUY" | "SELL";
|
|
8947
|
+
mode: "QUANTITY" | "USD";
|
|
8948
|
+
amount: string;
|
|
8949
|
+
reduceOnly: boolean;
|
|
8950
|
+
id?: string | undefined;
|
|
8951
|
+
maxImpactPrice?: string | undefined;
|
|
8952
|
+
}[]];
|
|
8953
|
+
error?: string | undefined;
|
|
8954
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
8955
|
+
refusedLegs?: {
|
|
8956
|
+
id: string;
|
|
8957
|
+
ticker: string;
|
|
8958
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8959
|
+
error: string;
|
|
8960
|
+
}[] | undefined;
|
|
8961
|
+
orders?: ({
|
|
8962
|
+
id: string;
|
|
8963
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8964
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8965
|
+
createdAt: string;
|
|
8966
|
+
updatedAt: string;
|
|
8967
|
+
type: "MARKET";
|
|
8968
|
+
symbol: string;
|
|
8969
|
+
side: "BUY" | "SELL";
|
|
8970
|
+
reduceOnly: boolean;
|
|
8971
|
+
quantity: string;
|
|
8972
|
+
price: string;
|
|
8973
|
+
filledQuantity: string;
|
|
8974
|
+
error?: string | undefined;
|
|
8975
|
+
errorCode?: string | undefined;
|
|
8976
|
+
filledPrice?: string | undefined;
|
|
8977
|
+
} | {
|
|
8978
|
+
id: string;
|
|
8979
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8980
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
8981
|
+
createdAt: string;
|
|
8982
|
+
updatedAt: string;
|
|
8983
|
+
type: "RESTING";
|
|
8984
|
+
symbol: string;
|
|
8985
|
+
side: "BUY" | "SELL";
|
|
8986
|
+
reduceOnly: boolean;
|
|
8987
|
+
quantity: string;
|
|
8988
|
+
price: string;
|
|
8989
|
+
filledQuantity: string;
|
|
8990
|
+
error?: string | undefined;
|
|
8991
|
+
errorCode?: string | undefined;
|
|
8992
|
+
})[] | undefined;
|
|
8993
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8994
|
+
position?: {
|
|
8995
|
+
id: string;
|
|
8996
|
+
} | undefined;
|
|
8997
|
+
deadlineAt?: string | undefined;
|
|
8998
|
+
chaseOrders?: {
|
|
8999
|
+
id: string;
|
|
9000
|
+
executionId: string;
|
|
9001
|
+
instrumentId: string;
|
|
9002
|
+
side: "BUY" | "SELL";
|
|
9003
|
+
quantity: string;
|
|
9004
|
+
filledQuantity: string;
|
|
9005
|
+
makerFilledQuantity: string;
|
|
9006
|
+
takerFilledQuantity: string;
|
|
9007
|
+
attempts: ({
|
|
9008
|
+
id: string;
|
|
9009
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9010
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9011
|
+
createdAt: string;
|
|
9012
|
+
updatedAt: string;
|
|
9013
|
+
type: "MARKET";
|
|
9014
|
+
symbol: string;
|
|
9015
|
+
side: "BUY" | "SELL";
|
|
9016
|
+
reduceOnly: boolean;
|
|
9017
|
+
quantity: string;
|
|
9018
|
+
price: string;
|
|
9019
|
+
filledQuantity: string;
|
|
9020
|
+
error?: string | undefined;
|
|
9021
|
+
errorCode?: string | undefined;
|
|
9022
|
+
filledPrice?: string | undefined;
|
|
9023
|
+
} | {
|
|
9024
|
+
id: string;
|
|
9025
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9026
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9027
|
+
createdAt: string;
|
|
9028
|
+
updatedAt: string;
|
|
9029
|
+
type: "RESTING";
|
|
9030
|
+
symbol: string;
|
|
9031
|
+
side: "BUY" | "SELL";
|
|
9032
|
+
reduceOnly: boolean;
|
|
9033
|
+
quantity: string;
|
|
9034
|
+
price: string;
|
|
9035
|
+
filledQuantity: string;
|
|
9036
|
+
error?: string | undefined;
|
|
9037
|
+
errorCode?: string | undefined;
|
|
9038
|
+
})[];
|
|
9039
|
+
averageFillPrice?: string | undefined;
|
|
9040
|
+
}[] | undefined;
|
|
9041
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
7837
9042
|
};
|
|
7838
9043
|
}>;
|
|
7839
9044
|
closeAll: (body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders) => Promise<{
|
|
@@ -7863,14 +9068,14 @@ declare class Core {
|
|
|
7863
9068
|
maxImpactPrice?: string | undefined;
|
|
7864
9069
|
}[]];
|
|
7865
9070
|
error?: string | undefined;
|
|
7866
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
9071
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7867
9072
|
refusedLegs?: {
|
|
7868
9073
|
id: string;
|
|
7869
9074
|
ticker: string;
|
|
7870
9075
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7871
9076
|
error: string;
|
|
7872
9077
|
}[] | undefined;
|
|
7873
|
-
orders?: {
|
|
9078
|
+
orders?: ({
|
|
7874
9079
|
id: string;
|
|
7875
9080
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7876
9081
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7886,7 +9091,22 @@ declare class Core {
|
|
|
7886
9091
|
error?: string | undefined;
|
|
7887
9092
|
errorCode?: string | undefined;
|
|
7888
9093
|
filledPrice?: string | undefined;
|
|
7889
|
-
}
|
|
9094
|
+
} | {
|
|
9095
|
+
id: string;
|
|
9096
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9097
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9098
|
+
createdAt: string;
|
|
9099
|
+
updatedAt: string;
|
|
9100
|
+
type: "RESTING";
|
|
9101
|
+
symbol: string;
|
|
9102
|
+
side: "BUY" | "SELL";
|
|
9103
|
+
reduceOnly: boolean;
|
|
9104
|
+
quantity: string;
|
|
9105
|
+
price: string;
|
|
9106
|
+
filledQuantity: string;
|
|
9107
|
+
error?: string | undefined;
|
|
9108
|
+
errorCode?: string | undefined;
|
|
9109
|
+
})[] | undefined;
|
|
7890
9110
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7891
9111
|
position?: {
|
|
7892
9112
|
id: string;
|
|
@@ -7917,14 +9137,14 @@ declare class Core {
|
|
|
7917
9137
|
maxImpactPrice?: string | undefined;
|
|
7918
9138
|
}[]];
|
|
7919
9139
|
error?: string | undefined;
|
|
7920
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
9140
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7921
9141
|
refusedLegs?: {
|
|
7922
9142
|
id: string;
|
|
7923
9143
|
ticker: string;
|
|
7924
9144
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7925
9145
|
error: string;
|
|
7926
9146
|
}[] | undefined;
|
|
7927
|
-
orders?: {
|
|
9147
|
+
orders?: ({
|
|
7928
9148
|
id: string;
|
|
7929
9149
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7930
9150
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7940,7 +9160,22 @@ declare class Core {
|
|
|
7940
9160
|
error?: string | undefined;
|
|
7941
9161
|
errorCode?: string | undefined;
|
|
7942
9162
|
filledPrice?: string | undefined;
|
|
7943
|
-
}
|
|
9163
|
+
} | {
|
|
9164
|
+
id: string;
|
|
9165
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9166
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9167
|
+
createdAt: string;
|
|
9168
|
+
updatedAt: string;
|
|
9169
|
+
type: "RESTING";
|
|
9170
|
+
symbol: string;
|
|
9171
|
+
side: "BUY" | "SELL";
|
|
9172
|
+
reduceOnly: boolean;
|
|
9173
|
+
quantity: string;
|
|
9174
|
+
price: string;
|
|
9175
|
+
filledQuantity: string;
|
|
9176
|
+
error?: string | undefined;
|
|
9177
|
+
errorCode?: string | undefined;
|
|
9178
|
+
})[] | undefined;
|
|
7944
9179
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7945
9180
|
position?: {
|
|
7946
9181
|
id: string;
|
|
@@ -7955,14 +9190,14 @@ declare class Core {
|
|
|
7955
9190
|
intent: "CLOSE";
|
|
7956
9191
|
orderType: "MARKET";
|
|
7957
9192
|
error?: string | undefined;
|
|
7958
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
9193
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7959
9194
|
refusedLegs?: {
|
|
7960
9195
|
id: string;
|
|
7961
9196
|
ticker: string;
|
|
7962
9197
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
7963
9198
|
error: string;
|
|
7964
9199
|
}[] | undefined;
|
|
7965
|
-
orders?: {
|
|
9200
|
+
orders?: ({
|
|
7966
9201
|
id: string;
|
|
7967
9202
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7968
9203
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -7978,7 +9213,22 @@ declare class Core {
|
|
|
7978
9213
|
error?: string | undefined;
|
|
7979
9214
|
errorCode?: string | undefined;
|
|
7980
9215
|
filledPrice?: string | undefined;
|
|
7981
|
-
}
|
|
9216
|
+
} | {
|
|
9217
|
+
id: string;
|
|
9218
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9219
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9220
|
+
createdAt: string;
|
|
9221
|
+
updatedAt: string;
|
|
9222
|
+
type: "RESTING";
|
|
9223
|
+
symbol: string;
|
|
9224
|
+
side: "BUY" | "SELL";
|
|
9225
|
+
reduceOnly: boolean;
|
|
9226
|
+
quantity: string;
|
|
9227
|
+
price: string;
|
|
9228
|
+
filledQuantity: string;
|
|
9229
|
+
error?: string | undefined;
|
|
9230
|
+
errorCode?: string | undefined;
|
|
9231
|
+
})[] | undefined;
|
|
7982
9232
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7983
9233
|
position?: {
|
|
7984
9234
|
id: string;
|
|
@@ -7993,14 +9243,14 @@ declare class Core {
|
|
|
7993
9243
|
intent: "REVERSE";
|
|
7994
9244
|
orderType: "MARKET";
|
|
7995
9245
|
error?: string | undefined;
|
|
7996
|
-
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | undefined;
|
|
9246
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
7997
9247
|
refusedLegs?: {
|
|
7998
9248
|
id: string;
|
|
7999
9249
|
ticker: string;
|
|
8000
9250
|
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
8001
9251
|
error: string;
|
|
8002
9252
|
}[] | undefined;
|
|
8003
|
-
orders?: {
|
|
9253
|
+
orders?: ({
|
|
8004
9254
|
id: string;
|
|
8005
9255
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
8006
9256
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
@@ -8016,12 +9266,141 @@ declare class Core {
|
|
|
8016
9266
|
error?: string | undefined;
|
|
8017
9267
|
errorCode?: string | undefined;
|
|
8018
9268
|
filledPrice?: string | undefined;
|
|
8019
|
-
}
|
|
9269
|
+
} | {
|
|
9270
|
+
id: string;
|
|
9271
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9272
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9273
|
+
createdAt: string;
|
|
9274
|
+
updatedAt: string;
|
|
9275
|
+
type: "RESTING";
|
|
9276
|
+
symbol: string;
|
|
9277
|
+
side: "BUY" | "SELL";
|
|
9278
|
+
reduceOnly: boolean;
|
|
9279
|
+
quantity: string;
|
|
9280
|
+
price: string;
|
|
9281
|
+
filledQuantity: string;
|
|
9282
|
+
error?: string | undefined;
|
|
9283
|
+
errorCode?: string | undefined;
|
|
9284
|
+
})[] | undefined;
|
|
8020
9285
|
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
8021
9286
|
position?: {
|
|
8022
9287
|
id: string;
|
|
8023
9288
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
8024
9289
|
} | undefined;
|
|
9290
|
+
} | {
|
|
9291
|
+
id: string;
|
|
9292
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9293
|
+
status: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
9294
|
+
createdAt: string;
|
|
9295
|
+
updatedAt: string;
|
|
9296
|
+
intent: "OPEN";
|
|
9297
|
+
orderType: "CHASE_LIMIT";
|
|
9298
|
+
legs: [{
|
|
9299
|
+
symbol: string;
|
|
9300
|
+
side: "BUY" | "SELL";
|
|
9301
|
+
mode: "QUANTITY" | "USD";
|
|
9302
|
+
amount: string;
|
|
9303
|
+
reduceOnly: boolean;
|
|
9304
|
+
id?: string | undefined;
|
|
9305
|
+
maxImpactPrice?: string | undefined;
|
|
9306
|
+
}, ...{
|
|
9307
|
+
symbol: string;
|
|
9308
|
+
side: "BUY" | "SELL";
|
|
9309
|
+
mode: "QUANTITY" | "USD";
|
|
9310
|
+
amount: string;
|
|
9311
|
+
reduceOnly: boolean;
|
|
9312
|
+
id?: string | undefined;
|
|
9313
|
+
maxImpactPrice?: string | undefined;
|
|
9314
|
+
}[]];
|
|
9315
|
+
error?: string | undefined;
|
|
9316
|
+
errorCode?: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED" | "LEGS_FAILED" | "EXECUTION_CREATION_COMPENSATED" | "RESTING_FINAL_UNKNOWN" | undefined;
|
|
9317
|
+
refusedLegs?: {
|
|
9318
|
+
id: string;
|
|
9319
|
+
ticker: string;
|
|
9320
|
+
errorCode: "INSUFFICIENT_SIZE" | "INSUFFICIENT_SIZE_SHARED";
|
|
9321
|
+
error: string;
|
|
9322
|
+
}[] | undefined;
|
|
9323
|
+
orders?: ({
|
|
9324
|
+
id: string;
|
|
9325
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9326
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9327
|
+
createdAt: string;
|
|
9328
|
+
updatedAt: string;
|
|
9329
|
+
type: "MARKET";
|
|
9330
|
+
symbol: string;
|
|
9331
|
+
side: "BUY" | "SELL";
|
|
9332
|
+
reduceOnly: boolean;
|
|
9333
|
+
quantity: string;
|
|
9334
|
+
price: string;
|
|
9335
|
+
filledQuantity: string;
|
|
9336
|
+
error?: string | undefined;
|
|
9337
|
+
errorCode?: string | undefined;
|
|
9338
|
+
filledPrice?: string | undefined;
|
|
9339
|
+
} | {
|
|
9340
|
+
id: string;
|
|
9341
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9342
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9343
|
+
createdAt: string;
|
|
9344
|
+
updatedAt: string;
|
|
9345
|
+
type: "RESTING";
|
|
9346
|
+
symbol: string;
|
|
9347
|
+
side: "BUY" | "SELL";
|
|
9348
|
+
reduceOnly: boolean;
|
|
9349
|
+
quantity: string;
|
|
9350
|
+
price: string;
|
|
9351
|
+
filledQuantity: string;
|
|
9352
|
+
error?: string | undefined;
|
|
9353
|
+
errorCode?: string | undefined;
|
|
9354
|
+
})[] | undefined;
|
|
9355
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
9356
|
+
position?: {
|
|
9357
|
+
id: string;
|
|
9358
|
+
} | undefined;
|
|
9359
|
+
deadlineAt?: string | undefined;
|
|
9360
|
+
chaseOrders?: {
|
|
9361
|
+
id: string;
|
|
9362
|
+
executionId: string;
|
|
9363
|
+
instrumentId: string;
|
|
9364
|
+
side: "BUY" | "SELL";
|
|
9365
|
+
quantity: string;
|
|
9366
|
+
filledQuantity: string;
|
|
9367
|
+
makerFilledQuantity: string;
|
|
9368
|
+
takerFilledQuantity: string;
|
|
9369
|
+
attempts: ({
|
|
9370
|
+
id: string;
|
|
9371
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9372
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9373
|
+
createdAt: string;
|
|
9374
|
+
updatedAt: string;
|
|
9375
|
+
type: "MARKET";
|
|
9376
|
+
symbol: string;
|
|
9377
|
+
side: "BUY" | "SELL";
|
|
9378
|
+
reduceOnly: boolean;
|
|
9379
|
+
quantity: string;
|
|
9380
|
+
price: string;
|
|
9381
|
+
filledQuantity: string;
|
|
9382
|
+
error?: string | undefined;
|
|
9383
|
+
errorCode?: string | undefined;
|
|
9384
|
+
filledPrice?: string | undefined;
|
|
9385
|
+
} | {
|
|
9386
|
+
id: string;
|
|
9387
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
9388
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
9389
|
+
createdAt: string;
|
|
9390
|
+
updatedAt: string;
|
|
9391
|
+
type: "RESTING";
|
|
9392
|
+
symbol: string;
|
|
9393
|
+
side: "BUY" | "SELL";
|
|
9394
|
+
reduceOnly: boolean;
|
|
9395
|
+
quantity: string;
|
|
9396
|
+
price: string;
|
|
9397
|
+
filledQuantity: string;
|
|
9398
|
+
error?: string | undefined;
|
|
9399
|
+
errorCode?: string | undefined;
|
|
9400
|
+
})[];
|
|
9401
|
+
averageFillPrice?: string | undefined;
|
|
9402
|
+
}[] | undefined;
|
|
9403
|
+
completionReason?: "ALL_LEGS_COMPLETE" | "DEADLINE_CROSS" | "DEADLINE_CANCEL" | "USER_CROSS" | "USER_CANCEL" | "VENUE_CANCEL" | "VENUE_REFUSAL" | "UNAUTHORIZED" | undefined;
|
|
8025
9404
|
})[];
|
|
8026
9405
|
}>;
|
|
8027
9406
|
setLeverage: (body: HttpTypes.SetLeverageInput, headers?: ClientHeaders) => Promise<Record<string, never>>;
|
|
@@ -8132,6 +9511,7 @@ declare class Core {
|
|
|
8132
9511
|
side: "BUY" | "SELL";
|
|
8133
9512
|
reduceOnly: boolean;
|
|
8134
9513
|
isExternal: boolean;
|
|
9514
|
+
isMaker: boolean;
|
|
8135
9515
|
synthetic: boolean;
|
|
8136
9516
|
quantity: string;
|
|
8137
9517
|
price: string;
|
|
@@ -8280,6 +9660,7 @@ declare class Core {
|
|
|
8280
9660
|
side: "BUY" | "SELL";
|
|
8281
9661
|
reduceOnly: boolean;
|
|
8282
9662
|
isExternal: boolean;
|
|
9663
|
+
isMaker: boolean;
|
|
8283
9664
|
synthetic: boolean;
|
|
8284
9665
|
quantity: string;
|
|
8285
9666
|
price: string;
|
|
@@ -8461,6 +9842,7 @@ declare class Core {
|
|
|
8461
9842
|
side: "BUY" | "SELL";
|
|
8462
9843
|
reduceOnly: boolean;
|
|
8463
9844
|
isExternal: boolean;
|
|
9845
|
+
isMaker: boolean;
|
|
8464
9846
|
synthetic: boolean;
|
|
8465
9847
|
quantity: string;
|
|
8466
9848
|
price: string;
|
|
@@ -8621,6 +10003,7 @@ declare class Core {
|
|
|
8621
10003
|
side: "BUY" | "SELL";
|
|
8622
10004
|
reduceOnly: boolean;
|
|
8623
10005
|
isExternal: boolean;
|
|
10006
|
+
isMaker: boolean;
|
|
8624
10007
|
synthetic: boolean;
|
|
8625
10008
|
quantity: string;
|
|
8626
10009
|
price: string;
|
|
@@ -8809,6 +10192,7 @@ declare class Core {
|
|
|
8809
10192
|
side: "BUY" | "SELL";
|
|
8810
10193
|
reduceOnly: boolean;
|
|
8811
10194
|
isExternal: boolean;
|
|
10195
|
+
isMaker: boolean;
|
|
8812
10196
|
synthetic: boolean;
|
|
8813
10197
|
quantity: string;
|
|
8814
10198
|
price: string;
|
|
@@ -8945,6 +10329,7 @@ declare class Core {
|
|
|
8945
10329
|
side: "BUY" | "SELL";
|
|
8946
10330
|
reduceOnly: boolean;
|
|
8947
10331
|
isExternal: boolean;
|
|
10332
|
+
isMaker: boolean;
|
|
8948
10333
|
synthetic: boolean;
|
|
8949
10334
|
quantity: string;
|
|
8950
10335
|
price: string;
|
|
@@ -9093,6 +10478,7 @@ declare class Core {
|
|
|
9093
10478
|
side: "BUY" | "SELL";
|
|
9094
10479
|
reduceOnly: boolean;
|
|
9095
10480
|
isExternal: boolean;
|
|
10481
|
+
isMaker: boolean;
|
|
9096
10482
|
synthetic: boolean;
|
|
9097
10483
|
quantity: string;
|
|
9098
10484
|
price: string;
|
|
@@ -9274,6 +10660,7 @@ declare class Core {
|
|
|
9274
10660
|
side: "BUY" | "SELL";
|
|
9275
10661
|
reduceOnly: boolean;
|
|
9276
10662
|
isExternal: boolean;
|
|
10663
|
+
isMaker: boolean;
|
|
9277
10664
|
synthetic: boolean;
|
|
9278
10665
|
quantity: string;
|
|
9279
10666
|
price: string;
|
|
@@ -9434,6 +10821,7 @@ declare class Core {
|
|
|
9434
10821
|
side: "BUY" | "SELL";
|
|
9435
10822
|
reduceOnly: boolean;
|
|
9436
10823
|
isExternal: boolean;
|
|
10824
|
+
isMaker: boolean;
|
|
9437
10825
|
synthetic: boolean;
|
|
9438
10826
|
quantity: string;
|
|
9439
10827
|
price: string;
|
|
@@ -9622,6 +11010,7 @@ declare class Core {
|
|
|
9622
11010
|
side: "BUY" | "SELL";
|
|
9623
11011
|
reduceOnly: boolean;
|
|
9624
11012
|
isExternal: boolean;
|
|
11013
|
+
isMaker: boolean;
|
|
9625
11014
|
synthetic: boolean;
|
|
9626
11015
|
quantity: string;
|
|
9627
11016
|
price: string;
|
|
@@ -9757,6 +11146,7 @@ declare class Core {
|
|
|
9757
11146
|
side: "BUY" | "SELL";
|
|
9758
11147
|
reduceOnly: boolean;
|
|
9759
11148
|
isExternal: boolean;
|
|
11149
|
+
isMaker: boolean;
|
|
9760
11150
|
synthetic: boolean;
|
|
9761
11151
|
quantity: string;
|
|
9762
11152
|
price: string;
|
|
@@ -9905,6 +11295,7 @@ declare class Core {
|
|
|
9905
11295
|
side: "BUY" | "SELL";
|
|
9906
11296
|
reduceOnly: boolean;
|
|
9907
11297
|
isExternal: boolean;
|
|
11298
|
+
isMaker: boolean;
|
|
9908
11299
|
synthetic: boolean;
|
|
9909
11300
|
quantity: string;
|
|
9910
11301
|
price: string;
|
|
@@ -10086,6 +11477,7 @@ declare class Core {
|
|
|
10086
11477
|
side: "BUY" | "SELL";
|
|
10087
11478
|
reduceOnly: boolean;
|
|
10088
11479
|
isExternal: boolean;
|
|
11480
|
+
isMaker: boolean;
|
|
10089
11481
|
synthetic: boolean;
|
|
10090
11482
|
quantity: string;
|
|
10091
11483
|
price: string;
|
|
@@ -10246,6 +11638,7 @@ declare class Core {
|
|
|
10246
11638
|
side: "BUY" | "SELL";
|
|
10247
11639
|
reduceOnly: boolean;
|
|
10248
11640
|
isExternal: boolean;
|
|
11641
|
+
isMaker: boolean;
|
|
10249
11642
|
synthetic: boolean;
|
|
10250
11643
|
quantity: string;
|
|
10251
11644
|
price: string;
|
|
@@ -10434,6 +11827,7 @@ declare class Core {
|
|
|
10434
11827
|
side: "BUY" | "SELL";
|
|
10435
11828
|
reduceOnly: boolean;
|
|
10436
11829
|
isExternal: boolean;
|
|
11830
|
+
isMaker: boolean;
|
|
10437
11831
|
synthetic: boolean;
|
|
10438
11832
|
quantity: string;
|
|
10439
11833
|
price: string;
|
|
@@ -11416,7 +12810,7 @@ declare class Core {
|
|
|
11416
12810
|
origin: "AUTO_REBALANCE";
|
|
11417
12811
|
configId: string;
|
|
11418
12812
|
} | undefined;
|
|
11419
|
-
outcome?: "FAILED" | "
|
|
12813
|
+
outcome?: "FAILED" | "SKIPPED" | "COPIED" | "PARTIAL" | undefined;
|
|
11420
12814
|
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;
|
|
11421
12815
|
failureReason?: string | undefined;
|
|
11422
12816
|
leaderEquityFraction?: string | undefined;
|
|
@@ -11658,7 +13052,7 @@ declare class Core {
|
|
|
11658
13052
|
updatedAt: string;
|
|
11659
13053
|
executionContext?: {
|
|
11660
13054
|
intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
11661
|
-
orderType: "MARKET";
|
|
13055
|
+
orderType: "MARKET" | "CHASE_LIMIT";
|
|
11662
13056
|
executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
11663
13057
|
legs: {
|
|
11664
13058
|
symbol: string;
|
|
@@ -11749,7 +13143,7 @@ declare class Core {
|
|
|
11749
13143
|
updatedAt: string;
|
|
11750
13144
|
executionContext?: {
|
|
11751
13145
|
intent: "OPEN" | "CLOSE" | "ADJUST" | "REVERSE";
|
|
11752
|
-
orderType: "MARKET";
|
|
13146
|
+
orderType: "MARKET" | "CHASE_LIMIT";
|
|
11753
13147
|
executionStatus: "ACTIVE" | "COMPLETED" | "FAILED" | "CANCELLED" | "IDLE";
|
|
11754
13148
|
legs: {
|
|
11755
13149
|
symbol: string;
|