@pear-protocol/core-sdk 2.7.0 → 2.9.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 +644 -67
- package/dist/core/index.js +4 -3
- package/dist/vaults/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/core/index.d.ts
CHANGED
|
@@ -15,17 +15,17 @@ declare class Core {
|
|
|
15
15
|
positions: {
|
|
16
16
|
status: "CLOSED";
|
|
17
17
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
18
|
+
netPnl: `-${string}` | `+${string}`;
|
|
18
19
|
positionId: string;
|
|
19
20
|
closedAt: string;
|
|
20
21
|
grossPnl: `-${string}` | `+${string}`;
|
|
21
|
-
netPnl: `-${string}` | `+${string}`;
|
|
22
22
|
openedAt: string;
|
|
23
23
|
hasProvisionalFills: boolean;
|
|
24
24
|
legs: {
|
|
25
25
|
side: "LONG" | "SHORT";
|
|
26
|
+
netPnl: `-${string}` | `+${string}`;
|
|
26
27
|
asset: string;
|
|
27
28
|
grossPnl: `-${string}` | `+${string}`;
|
|
28
|
-
netPnl: `-${string}` | `+${string}`;
|
|
29
29
|
entryNotional: string;
|
|
30
30
|
entryVwap?: string | undefined;
|
|
31
31
|
exitVwap?: string | undefined;
|
|
@@ -34,8 +34,8 @@ declare class Core {
|
|
|
34
34
|
}[];
|
|
35
35
|
nextCursor?: string | undefined;
|
|
36
36
|
}>;
|
|
37
|
-
/** Read
|
|
38
|
-
public: (tradeAccountId: string, headers?: ClientHeaders) => Promise<{
|
|
37
|
+
/** Read public positions; opt into viewer copy state with authentication and an owned account header. */
|
|
38
|
+
public: (tradeAccountId: string, headers?: ClientHeaders, query?: HttpTypes.PublicTraderQueryInput) => Promise<{
|
|
39
39
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
40
40
|
copyingEnabled: boolean;
|
|
41
41
|
followers: {
|
|
@@ -71,6 +71,9 @@ declare class Core {
|
|
|
71
71
|
entryVwap?: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
}[];
|
|
74
|
+
copySubscriptionId?: string | undefined;
|
|
75
|
+
copyStatus?: "PENDING" | "COPIED" | "PARTIAL" | "NOT_COPIED" | "UNKNOWN" | undefined;
|
|
76
|
+
copyReason?: string | undefined;
|
|
74
77
|
}[];
|
|
75
78
|
triggers: ({
|
|
76
79
|
type: "MARKET";
|
|
@@ -2684,7 +2687,7 @@ declare class Core {
|
|
|
2684
2687
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
2685
2688
|
baseBps: string;
|
|
2686
2689
|
discounts: {
|
|
2687
|
-
scope: "
|
|
2690
|
+
scope: "connector" | "all" | "user" | "client_id";
|
|
2688
2691
|
rate: string;
|
|
2689
2692
|
}[];
|
|
2690
2693
|
finalBps: string;
|
|
@@ -2832,7 +2835,7 @@ declare class Core {
|
|
|
2832
2835
|
orders?: {
|
|
2833
2836
|
id: string;
|
|
2834
2837
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2835
|
-
status: "CANCELLED" | "
|
|
2838
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2836
2839
|
createdAt: string;
|
|
2837
2840
|
updatedAt: string;
|
|
2838
2841
|
type: "MARKET";
|
|
@@ -2846,7 +2849,7 @@ declare class Core {
|
|
|
2846
2849
|
errorCode?: string | undefined;
|
|
2847
2850
|
filledPrice?: string | undefined;
|
|
2848
2851
|
}[] | undefined;
|
|
2849
|
-
fulfillment?: "NONE" | "
|
|
2852
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2850
2853
|
position?: {
|
|
2851
2854
|
id: string;
|
|
2852
2855
|
} | undefined;
|
|
@@ -2879,7 +2882,7 @@ declare class Core {
|
|
|
2879
2882
|
orders?: {
|
|
2880
2883
|
id: string;
|
|
2881
2884
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2882
|
-
status: "CANCELLED" | "
|
|
2885
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2883
2886
|
createdAt: string;
|
|
2884
2887
|
updatedAt: string;
|
|
2885
2888
|
type: "MARKET";
|
|
@@ -2893,7 +2896,7 @@ declare class Core {
|
|
|
2893
2896
|
errorCode?: string | undefined;
|
|
2894
2897
|
filledPrice?: string | undefined;
|
|
2895
2898
|
}[] | undefined;
|
|
2896
|
-
fulfillment?: "NONE" | "
|
|
2899
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2897
2900
|
position?: {
|
|
2898
2901
|
id: string;
|
|
2899
2902
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2910,7 +2913,7 @@ declare class Core {
|
|
|
2910
2913
|
orders?: {
|
|
2911
2914
|
id: string;
|
|
2912
2915
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2913
|
-
status: "CANCELLED" | "
|
|
2916
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2914
2917
|
createdAt: string;
|
|
2915
2918
|
updatedAt: string;
|
|
2916
2919
|
type: "MARKET";
|
|
@@ -2924,7 +2927,7 @@ declare class Core {
|
|
|
2924
2927
|
errorCode?: string | undefined;
|
|
2925
2928
|
filledPrice?: string | undefined;
|
|
2926
2929
|
}[] | undefined;
|
|
2927
|
-
fulfillment?: "NONE" | "
|
|
2930
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2928
2931
|
position?: {
|
|
2929
2932
|
id: string;
|
|
2930
2933
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2941,7 +2944,7 @@ declare class Core {
|
|
|
2941
2944
|
orders?: {
|
|
2942
2945
|
id: string;
|
|
2943
2946
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2944
|
-
status: "CANCELLED" | "
|
|
2947
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2945
2948
|
createdAt: string;
|
|
2946
2949
|
updatedAt: string;
|
|
2947
2950
|
type: "MARKET";
|
|
@@ -2955,7 +2958,7 @@ declare class Core {
|
|
|
2955
2958
|
errorCode?: string | undefined;
|
|
2956
2959
|
filledPrice?: string | undefined;
|
|
2957
2960
|
}[] | undefined;
|
|
2958
|
-
fulfillment?: "NONE" | "
|
|
2961
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2959
2962
|
position?: {
|
|
2960
2963
|
id: string;
|
|
2961
2964
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2993,7 +2996,7 @@ declare class Core {
|
|
|
2993
2996
|
orders?: {
|
|
2994
2997
|
id: string;
|
|
2995
2998
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2996
|
-
status: "CANCELLED" | "
|
|
2999
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2997
3000
|
createdAt: string;
|
|
2998
3001
|
updatedAt: string;
|
|
2999
3002
|
type: "MARKET";
|
|
@@ -3007,7 +3010,7 @@ declare class Core {
|
|
|
3007
3010
|
errorCode?: string | undefined;
|
|
3008
3011
|
filledPrice?: string | undefined;
|
|
3009
3012
|
}[] | undefined;
|
|
3010
|
-
fulfillment?: "NONE" | "
|
|
3013
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3011
3014
|
position?: {
|
|
3012
3015
|
id: string;
|
|
3013
3016
|
} | undefined;
|
|
@@ -3040,7 +3043,7 @@ declare class Core {
|
|
|
3040
3043
|
orders?: {
|
|
3041
3044
|
id: string;
|
|
3042
3045
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3043
|
-
status: "CANCELLED" | "
|
|
3046
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3044
3047
|
createdAt: string;
|
|
3045
3048
|
updatedAt: string;
|
|
3046
3049
|
type: "MARKET";
|
|
@@ -3054,7 +3057,7 @@ declare class Core {
|
|
|
3054
3057
|
errorCode?: string | undefined;
|
|
3055
3058
|
filledPrice?: string | undefined;
|
|
3056
3059
|
}[] | undefined;
|
|
3057
|
-
fulfillment?: "NONE" | "
|
|
3060
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3058
3061
|
position?: {
|
|
3059
3062
|
id: string;
|
|
3060
3063
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3071,7 +3074,7 @@ declare class Core {
|
|
|
3071
3074
|
orders?: {
|
|
3072
3075
|
id: string;
|
|
3073
3076
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3074
|
-
status: "CANCELLED" | "
|
|
3077
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3075
3078
|
createdAt: string;
|
|
3076
3079
|
updatedAt: string;
|
|
3077
3080
|
type: "MARKET";
|
|
@@ -3085,7 +3088,7 @@ declare class Core {
|
|
|
3085
3088
|
errorCode?: string | undefined;
|
|
3086
3089
|
filledPrice?: string | undefined;
|
|
3087
3090
|
}[] | undefined;
|
|
3088
|
-
fulfillment?: "NONE" | "
|
|
3091
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3089
3092
|
position?: {
|
|
3090
3093
|
id: string;
|
|
3091
3094
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3102,7 +3105,7 @@ declare class Core {
|
|
|
3102
3105
|
orders?: {
|
|
3103
3106
|
id: string;
|
|
3104
3107
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3105
|
-
status: "CANCELLED" | "
|
|
3108
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3106
3109
|
createdAt: string;
|
|
3107
3110
|
updatedAt: string;
|
|
3108
3111
|
type: "MARKET";
|
|
@@ -3116,7 +3119,7 @@ declare class Core {
|
|
|
3116
3119
|
errorCode?: string | undefined;
|
|
3117
3120
|
filledPrice?: string | undefined;
|
|
3118
3121
|
}[] | undefined;
|
|
3119
|
-
fulfillment?: "NONE" | "
|
|
3122
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3120
3123
|
position?: {
|
|
3121
3124
|
id: string;
|
|
3122
3125
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -6011,6 +6014,8 @@ declare class Core {
|
|
|
6011
6014
|
createdAt: string;
|
|
6012
6015
|
updatedAt: string;
|
|
6013
6016
|
closedReason?: "NETTED" | "USER" | "LIQUIDATED" | null | undefined;
|
|
6017
|
+
copySubscriptionId?: string | undefined;
|
|
6018
|
+
isCopying?: boolean | undefined;
|
|
6014
6019
|
closedAt?: string | null | undefined;
|
|
6015
6020
|
}[];
|
|
6016
6021
|
nextCursor?: string | undefined;
|
|
@@ -6074,6 +6079,8 @@ declare class Core {
|
|
|
6074
6079
|
exitVwap?: string | undefined;
|
|
6075
6080
|
}[];
|
|
6076
6081
|
closedReason?: "NETTED" | "USER" | "LIQUIDATED" | undefined;
|
|
6082
|
+
copySubscriptionId?: string | undefined;
|
|
6083
|
+
isCopying?: false | undefined;
|
|
6077
6084
|
steps?: {
|
|
6078
6085
|
at: string;
|
|
6079
6086
|
grossPnl: `-${string}` | `+${string}`;
|
|
@@ -6156,6 +6163,8 @@ declare class Core {
|
|
|
6156
6163
|
pearFees: `-${string}` | `+${string}`;
|
|
6157
6164
|
funding: `-${string}` | `+${string}`;
|
|
6158
6165
|
}[];
|
|
6166
|
+
copySubscriptionId?: string | undefined;
|
|
6167
|
+
isCopying?: boolean | undefined;
|
|
6159
6168
|
steps?: {
|
|
6160
6169
|
at: string;
|
|
6161
6170
|
grossPnl: `-${string}` | `+${string}`;
|
|
@@ -6953,7 +6962,7 @@ declare class Core {
|
|
|
6953
6962
|
orders?: {
|
|
6954
6963
|
id: string;
|
|
6955
6964
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6956
|
-
status: "CANCELLED" | "
|
|
6965
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
6957
6966
|
createdAt: string;
|
|
6958
6967
|
updatedAt: string;
|
|
6959
6968
|
type: "MARKET";
|
|
@@ -6967,7 +6976,7 @@ declare class Core {
|
|
|
6967
6976
|
errorCode?: string | undefined;
|
|
6968
6977
|
filledPrice?: string | undefined;
|
|
6969
6978
|
}[] | undefined;
|
|
6970
|
-
fulfillment?: "NONE" | "
|
|
6979
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
6971
6980
|
position?: {
|
|
6972
6981
|
id: string;
|
|
6973
6982
|
} | undefined;
|
|
@@ -7000,7 +7009,7 @@ declare class Core {
|
|
|
7000
7009
|
orders?: {
|
|
7001
7010
|
id: string;
|
|
7002
7011
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7003
|
-
status: "CANCELLED" | "
|
|
7012
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7004
7013
|
createdAt: string;
|
|
7005
7014
|
updatedAt: string;
|
|
7006
7015
|
type: "MARKET";
|
|
@@ -7014,7 +7023,7 @@ declare class Core {
|
|
|
7014
7023
|
errorCode?: string | undefined;
|
|
7015
7024
|
filledPrice?: string | undefined;
|
|
7016
7025
|
}[] | undefined;
|
|
7017
|
-
fulfillment?: "NONE" | "
|
|
7026
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7018
7027
|
position?: {
|
|
7019
7028
|
id: string;
|
|
7020
7029
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7031,7 +7040,7 @@ declare class Core {
|
|
|
7031
7040
|
orders?: {
|
|
7032
7041
|
id: string;
|
|
7033
7042
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7034
|
-
status: "CANCELLED" | "
|
|
7043
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7035
7044
|
createdAt: string;
|
|
7036
7045
|
updatedAt: string;
|
|
7037
7046
|
type: "MARKET";
|
|
@@ -7045,7 +7054,7 @@ declare class Core {
|
|
|
7045
7054
|
errorCode?: string | undefined;
|
|
7046
7055
|
filledPrice?: string | undefined;
|
|
7047
7056
|
}[] | undefined;
|
|
7048
|
-
fulfillment?: "NONE" | "
|
|
7057
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7049
7058
|
position?: {
|
|
7050
7059
|
id: string;
|
|
7051
7060
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7062,7 +7071,7 @@ declare class Core {
|
|
|
7062
7071
|
orders?: {
|
|
7063
7072
|
id: string;
|
|
7064
7073
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7065
|
-
status: "CANCELLED" | "
|
|
7074
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7066
7075
|
createdAt: string;
|
|
7067
7076
|
updatedAt: string;
|
|
7068
7077
|
type: "MARKET";
|
|
@@ -7076,7 +7085,7 @@ declare class Core {
|
|
|
7076
7085
|
errorCode?: string | undefined;
|
|
7077
7086
|
filledPrice?: string | undefined;
|
|
7078
7087
|
}[] | undefined;
|
|
7079
|
-
fulfillment?: "NONE" | "
|
|
7088
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7080
7089
|
position?: {
|
|
7081
7090
|
id: string;
|
|
7082
7091
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7113,7 +7122,7 @@ declare class Core {
|
|
|
7113
7122
|
orders?: {
|
|
7114
7123
|
id: string;
|
|
7115
7124
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7116
|
-
status: "CANCELLED" | "
|
|
7125
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7117
7126
|
createdAt: string;
|
|
7118
7127
|
updatedAt: string;
|
|
7119
7128
|
type: "MARKET";
|
|
@@ -7127,7 +7136,7 @@ declare class Core {
|
|
|
7127
7136
|
errorCode?: string | undefined;
|
|
7128
7137
|
filledPrice?: string | undefined;
|
|
7129
7138
|
}[] | undefined;
|
|
7130
|
-
fulfillment?: "NONE" | "
|
|
7139
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7131
7140
|
position?: {
|
|
7132
7141
|
id: string;
|
|
7133
7142
|
} | undefined;
|
|
@@ -7160,7 +7169,7 @@ declare class Core {
|
|
|
7160
7169
|
orders?: {
|
|
7161
7170
|
id: string;
|
|
7162
7171
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7163
|
-
status: "CANCELLED" | "
|
|
7172
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7164
7173
|
createdAt: string;
|
|
7165
7174
|
updatedAt: string;
|
|
7166
7175
|
type: "MARKET";
|
|
@@ -7174,7 +7183,7 @@ declare class Core {
|
|
|
7174
7183
|
errorCode?: string | undefined;
|
|
7175
7184
|
filledPrice?: string | undefined;
|
|
7176
7185
|
}[] | undefined;
|
|
7177
|
-
fulfillment?: "NONE" | "
|
|
7186
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7178
7187
|
position?: {
|
|
7179
7188
|
id: string;
|
|
7180
7189
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7191,7 +7200,7 @@ declare class Core {
|
|
|
7191
7200
|
orders?: {
|
|
7192
7201
|
id: string;
|
|
7193
7202
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7194
|
-
status: "CANCELLED" | "
|
|
7203
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7195
7204
|
createdAt: string;
|
|
7196
7205
|
updatedAt: string;
|
|
7197
7206
|
type: "MARKET";
|
|
@@ -7205,7 +7214,7 @@ declare class Core {
|
|
|
7205
7214
|
errorCode?: string | undefined;
|
|
7206
7215
|
filledPrice?: string | undefined;
|
|
7207
7216
|
}[] | undefined;
|
|
7208
|
-
fulfillment?: "NONE" | "
|
|
7217
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7209
7218
|
position?: {
|
|
7210
7219
|
id: string;
|
|
7211
7220
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7222,7 +7231,7 @@ declare class Core {
|
|
|
7222
7231
|
orders?: {
|
|
7223
7232
|
id: string;
|
|
7224
7233
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7225
|
-
status: "CANCELLED" | "
|
|
7234
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7226
7235
|
createdAt: string;
|
|
7227
7236
|
updatedAt: string;
|
|
7228
7237
|
type: "MARKET";
|
|
@@ -7236,7 +7245,7 @@ declare class Core {
|
|
|
7236
7245
|
errorCode?: string | undefined;
|
|
7237
7246
|
filledPrice?: string | undefined;
|
|
7238
7247
|
}[] | undefined;
|
|
7239
|
-
fulfillment?: "NONE" | "
|
|
7248
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7240
7249
|
position?: {
|
|
7241
7250
|
id: string;
|
|
7242
7251
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7273,7 +7282,7 @@ declare class Core {
|
|
|
7273
7282
|
orders?: {
|
|
7274
7283
|
id: string;
|
|
7275
7284
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7276
|
-
status: "CANCELLED" | "
|
|
7285
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7277
7286
|
createdAt: string;
|
|
7278
7287
|
updatedAt: string;
|
|
7279
7288
|
type: "MARKET";
|
|
@@ -7287,7 +7296,7 @@ declare class Core {
|
|
|
7287
7296
|
errorCode?: string | undefined;
|
|
7288
7297
|
filledPrice?: string | undefined;
|
|
7289
7298
|
}[] | undefined;
|
|
7290
|
-
fulfillment?: "NONE" | "
|
|
7299
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7291
7300
|
position?: {
|
|
7292
7301
|
id: string;
|
|
7293
7302
|
} | undefined;
|
|
@@ -7320,7 +7329,7 @@ declare class Core {
|
|
|
7320
7329
|
orders?: {
|
|
7321
7330
|
id: string;
|
|
7322
7331
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7323
|
-
status: "CANCELLED" | "
|
|
7332
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7324
7333
|
createdAt: string;
|
|
7325
7334
|
updatedAt: string;
|
|
7326
7335
|
type: "MARKET";
|
|
@@ -7334,7 +7343,7 @@ declare class Core {
|
|
|
7334
7343
|
errorCode?: string | undefined;
|
|
7335
7344
|
filledPrice?: string | undefined;
|
|
7336
7345
|
}[] | undefined;
|
|
7337
|
-
fulfillment?: "NONE" | "
|
|
7346
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7338
7347
|
position?: {
|
|
7339
7348
|
id: string;
|
|
7340
7349
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7351,7 +7360,7 @@ declare class Core {
|
|
|
7351
7360
|
orders?: {
|
|
7352
7361
|
id: string;
|
|
7353
7362
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7354
|
-
status: "CANCELLED" | "
|
|
7363
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7355
7364
|
createdAt: string;
|
|
7356
7365
|
updatedAt: string;
|
|
7357
7366
|
type: "MARKET";
|
|
@@ -7365,7 +7374,7 @@ declare class Core {
|
|
|
7365
7374
|
errorCode?: string | undefined;
|
|
7366
7375
|
filledPrice?: string | undefined;
|
|
7367
7376
|
}[] | undefined;
|
|
7368
|
-
fulfillment?: "NONE" | "
|
|
7377
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7369
7378
|
position?: {
|
|
7370
7379
|
id: string;
|
|
7371
7380
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7382,7 +7391,7 @@ declare class Core {
|
|
|
7382
7391
|
orders?: {
|
|
7383
7392
|
id: string;
|
|
7384
7393
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7385
|
-
status: "CANCELLED" | "
|
|
7394
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7386
7395
|
createdAt: string;
|
|
7387
7396
|
updatedAt: string;
|
|
7388
7397
|
type: "MARKET";
|
|
@@ -7396,7 +7405,7 @@ declare class Core {
|
|
|
7396
7405
|
errorCode?: string | undefined;
|
|
7397
7406
|
filledPrice?: string | undefined;
|
|
7398
7407
|
}[] | undefined;
|
|
7399
|
-
fulfillment?: "NONE" | "
|
|
7408
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7400
7409
|
position?: {
|
|
7401
7410
|
id: string;
|
|
7402
7411
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7433,7 +7442,7 @@ declare class Core {
|
|
|
7433
7442
|
orders?: {
|
|
7434
7443
|
id: string;
|
|
7435
7444
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7436
|
-
status: "CANCELLED" | "
|
|
7445
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7437
7446
|
createdAt: string;
|
|
7438
7447
|
updatedAt: string;
|
|
7439
7448
|
type: "MARKET";
|
|
@@ -7447,7 +7456,7 @@ declare class Core {
|
|
|
7447
7456
|
errorCode?: string | undefined;
|
|
7448
7457
|
filledPrice?: string | undefined;
|
|
7449
7458
|
}[] | undefined;
|
|
7450
|
-
fulfillment?: "NONE" | "
|
|
7459
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7451
7460
|
position?: {
|
|
7452
7461
|
id: string;
|
|
7453
7462
|
} | undefined;
|
|
@@ -7480,7 +7489,7 @@ declare class Core {
|
|
|
7480
7489
|
orders?: {
|
|
7481
7490
|
id: string;
|
|
7482
7491
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7483
|
-
status: "CANCELLED" | "
|
|
7492
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7484
7493
|
createdAt: string;
|
|
7485
7494
|
updatedAt: string;
|
|
7486
7495
|
type: "MARKET";
|
|
@@ -7494,7 +7503,7 @@ declare class Core {
|
|
|
7494
7503
|
errorCode?: string | undefined;
|
|
7495
7504
|
filledPrice?: string | undefined;
|
|
7496
7505
|
}[] | undefined;
|
|
7497
|
-
fulfillment?: "NONE" | "
|
|
7506
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7498
7507
|
position?: {
|
|
7499
7508
|
id: string;
|
|
7500
7509
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7511,7 +7520,7 @@ declare class Core {
|
|
|
7511
7520
|
orders?: {
|
|
7512
7521
|
id: string;
|
|
7513
7522
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7514
|
-
status: "CANCELLED" | "
|
|
7523
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7515
7524
|
createdAt: string;
|
|
7516
7525
|
updatedAt: string;
|
|
7517
7526
|
type: "MARKET";
|
|
@@ -7525,7 +7534,7 @@ declare class Core {
|
|
|
7525
7534
|
errorCode?: string | undefined;
|
|
7526
7535
|
filledPrice?: string | undefined;
|
|
7527
7536
|
}[] | undefined;
|
|
7528
|
-
fulfillment?: "NONE" | "
|
|
7537
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7529
7538
|
position?: {
|
|
7530
7539
|
id: string;
|
|
7531
7540
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7542,7 +7551,7 @@ declare class Core {
|
|
|
7542
7551
|
orders?: {
|
|
7543
7552
|
id: string;
|
|
7544
7553
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7545
|
-
status: "CANCELLED" | "
|
|
7554
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7546
7555
|
createdAt: string;
|
|
7547
7556
|
updatedAt: string;
|
|
7548
7557
|
type: "MARKET";
|
|
@@ -7556,7 +7565,7 @@ declare class Core {
|
|
|
7556
7565
|
errorCode?: string | undefined;
|
|
7557
7566
|
filledPrice?: string | undefined;
|
|
7558
7567
|
}[] | undefined;
|
|
7559
|
-
fulfillment?: "NONE" | "
|
|
7568
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7560
7569
|
position?: {
|
|
7561
7570
|
id: string;
|
|
7562
7571
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7593,7 +7602,7 @@ declare class Core {
|
|
|
7593
7602
|
orders?: {
|
|
7594
7603
|
id: string;
|
|
7595
7604
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7596
|
-
status: "CANCELLED" | "
|
|
7605
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7597
7606
|
createdAt: string;
|
|
7598
7607
|
updatedAt: string;
|
|
7599
7608
|
type: "MARKET";
|
|
@@ -7607,7 +7616,7 @@ declare class Core {
|
|
|
7607
7616
|
errorCode?: string | undefined;
|
|
7608
7617
|
filledPrice?: string | undefined;
|
|
7609
7618
|
}[] | undefined;
|
|
7610
|
-
fulfillment?: "NONE" | "
|
|
7619
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7611
7620
|
position?: {
|
|
7612
7621
|
id: string;
|
|
7613
7622
|
} | undefined;
|
|
@@ -7640,7 +7649,7 @@ declare class Core {
|
|
|
7640
7649
|
orders?: {
|
|
7641
7650
|
id: string;
|
|
7642
7651
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7643
|
-
status: "CANCELLED" | "
|
|
7652
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7644
7653
|
createdAt: string;
|
|
7645
7654
|
updatedAt: string;
|
|
7646
7655
|
type: "MARKET";
|
|
@@ -7654,7 +7663,7 @@ declare class Core {
|
|
|
7654
7663
|
errorCode?: string | undefined;
|
|
7655
7664
|
filledPrice?: string | undefined;
|
|
7656
7665
|
}[] | undefined;
|
|
7657
|
-
fulfillment?: "NONE" | "
|
|
7666
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7658
7667
|
position?: {
|
|
7659
7668
|
id: string;
|
|
7660
7669
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7671,7 +7680,7 @@ declare class Core {
|
|
|
7671
7680
|
orders?: {
|
|
7672
7681
|
id: string;
|
|
7673
7682
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7674
|
-
status: "CANCELLED" | "
|
|
7683
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7675
7684
|
createdAt: string;
|
|
7676
7685
|
updatedAt: string;
|
|
7677
7686
|
type: "MARKET";
|
|
@@ -7685,7 +7694,7 @@ declare class Core {
|
|
|
7685
7694
|
errorCode?: string | undefined;
|
|
7686
7695
|
filledPrice?: string | undefined;
|
|
7687
7696
|
}[] | undefined;
|
|
7688
|
-
fulfillment?: "NONE" | "
|
|
7697
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7689
7698
|
position?: {
|
|
7690
7699
|
id: string;
|
|
7691
7700
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7702,7 +7711,7 @@ declare class Core {
|
|
|
7702
7711
|
orders?: {
|
|
7703
7712
|
id: string;
|
|
7704
7713
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7705
|
-
status: "CANCELLED" | "
|
|
7714
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7706
7715
|
createdAt: string;
|
|
7707
7716
|
updatedAt: string;
|
|
7708
7717
|
type: "MARKET";
|
|
@@ -7716,7 +7725,7 @@ declare class Core {
|
|
|
7716
7725
|
errorCode?: string | undefined;
|
|
7717
7726
|
filledPrice?: string | undefined;
|
|
7718
7727
|
}[] | undefined;
|
|
7719
|
-
fulfillment?: "NONE" | "
|
|
7728
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7720
7729
|
position?: {
|
|
7721
7730
|
id: string;
|
|
7722
7731
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -10184,6 +10193,7 @@ declare class Core {
|
|
|
10184
10193
|
} | {
|
|
10185
10194
|
state: "ACTIVE";
|
|
10186
10195
|
subscription: {
|
|
10196
|
+
createdAt: string;
|
|
10187
10197
|
id: string;
|
|
10188
10198
|
leaderTradeAccountId: string;
|
|
10189
10199
|
followerTradeAccountId: string;
|
|
@@ -10191,7 +10201,6 @@ declare class Core {
|
|
|
10191
10201
|
sizing: {
|
|
10192
10202
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10193
10203
|
};
|
|
10194
|
-
createdAt: string;
|
|
10195
10204
|
status: "ACTIVE";
|
|
10196
10205
|
volume: string;
|
|
10197
10206
|
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
@@ -10200,7 +10209,117 @@ declare class Core {
|
|
|
10200
10209
|
tradeFee: `-${string}` | `+${string}`;
|
|
10201
10210
|
pearFee: `-${string}` | `+${string}`;
|
|
10202
10211
|
totalNetPnl: `-${string}` | `+${string}`;
|
|
10212
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10213
|
+
provisional?: true | undefined;
|
|
10214
|
+
latestFillAt?: string | undefined;
|
|
10203
10215
|
endedAt?: string | undefined;
|
|
10216
|
+
startSnapshot?: {
|
|
10217
|
+
leader: {
|
|
10218
|
+
tradeAccountId: string;
|
|
10219
|
+
capturedAt: string;
|
|
10220
|
+
initialEquityUsd: string;
|
|
10221
|
+
pnl: {
|
|
10222
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10223
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10224
|
+
funding: `-${string}` | `+${string}`;
|
|
10225
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10226
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10227
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10228
|
+
};
|
|
10229
|
+
};
|
|
10230
|
+
follower: {
|
|
10231
|
+
tradeAccountId: string;
|
|
10232
|
+
capturedAt: string;
|
|
10233
|
+
initialEquityUsd: string;
|
|
10234
|
+
pnl: {
|
|
10235
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10236
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10237
|
+
funding: `-${string}` | `+${string}`;
|
|
10238
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10239
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10240
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10241
|
+
};
|
|
10242
|
+
};
|
|
10243
|
+
} | undefined;
|
|
10244
|
+
endCapture?: {
|
|
10245
|
+
status: "PENDING";
|
|
10246
|
+
} | {
|
|
10247
|
+
status: "FAILED";
|
|
10248
|
+
} | {
|
|
10249
|
+
status: "COMPLETE";
|
|
10250
|
+
snapshot: {
|
|
10251
|
+
leader: {
|
|
10252
|
+
tradeAccountId: string;
|
|
10253
|
+
capturedAt: string;
|
|
10254
|
+
provisional: true;
|
|
10255
|
+
pnl: {
|
|
10256
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10257
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10258
|
+
funding: `-${string}` | `+${string}`;
|
|
10259
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10260
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10261
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10262
|
+
};
|
|
10263
|
+
latestFillAt?: string | undefined;
|
|
10264
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10265
|
+
};
|
|
10266
|
+
follower: {
|
|
10267
|
+
tradeAccountId: string;
|
|
10268
|
+
capturedAt: string;
|
|
10269
|
+
provisional: true;
|
|
10270
|
+
pnl: {
|
|
10271
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10272
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10273
|
+
funding: `-${string}` | `+${string}`;
|
|
10274
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10275
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10276
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10277
|
+
};
|
|
10278
|
+
latestFillAt?: string | undefined;
|
|
10279
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10280
|
+
};
|
|
10281
|
+
};
|
|
10282
|
+
} | undefined;
|
|
10283
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10284
|
+
performance?: {
|
|
10285
|
+
kind: "OBSERVED";
|
|
10286
|
+
boundaryAt: string;
|
|
10287
|
+
timing: "LIVE" | "DELAYED";
|
|
10288
|
+
leader: {
|
|
10289
|
+
tradeAccountId: string;
|
|
10290
|
+
capturedAt: string;
|
|
10291
|
+
provisional: true;
|
|
10292
|
+
pnl: {
|
|
10293
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10294
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10295
|
+
funding: `-${string}` | `+${string}`;
|
|
10296
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10297
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10298
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10299
|
+
};
|
|
10300
|
+
latestFillAt?: string | undefined;
|
|
10301
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10302
|
+
};
|
|
10303
|
+
follower: {
|
|
10304
|
+
tradeAccountId: string;
|
|
10305
|
+
capturedAt: string;
|
|
10306
|
+
provisional: true;
|
|
10307
|
+
pnl: {
|
|
10308
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10309
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10310
|
+
funding: `-${string}` | `+${string}`;
|
|
10311
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10312
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10313
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10314
|
+
};
|
|
10315
|
+
latestFillAt?: string | undefined;
|
|
10316
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10317
|
+
};
|
|
10318
|
+
accountTimings?: {
|
|
10319
|
+
leader: "DELAYED";
|
|
10320
|
+
follower: "DELAYED";
|
|
10321
|
+
} | undefined;
|
|
10322
|
+
} | undefined;
|
|
10204
10323
|
};
|
|
10205
10324
|
}>;
|
|
10206
10325
|
/** Read all active followers of an owned leader account. */
|
|
@@ -10236,6 +10355,7 @@ declare class Core {
|
|
|
10236
10355
|
/** Read subscription history, optionally by status; use copy.state for one account's current relationship. */
|
|
10237
10356
|
listSubscriptions: (headers?: ClientHeaders, query?: HttpTypes.CopySubscriptionListQueryInput) => Promise<{
|
|
10238
10357
|
subscriptions: ({
|
|
10358
|
+
createdAt: string;
|
|
10239
10359
|
id: string;
|
|
10240
10360
|
leaderTradeAccountId: string;
|
|
10241
10361
|
followerTradeAccountId: string;
|
|
@@ -10243,7 +10363,6 @@ declare class Core {
|
|
|
10243
10363
|
sizing: {
|
|
10244
10364
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10245
10365
|
};
|
|
10246
|
-
createdAt: string;
|
|
10247
10366
|
status: "ACTIVE";
|
|
10248
10367
|
volume: string;
|
|
10249
10368
|
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
@@ -10252,8 +10371,119 @@ declare class Core {
|
|
|
10252
10371
|
tradeFee: `-${string}` | `+${string}`;
|
|
10253
10372
|
pearFee: `-${string}` | `+${string}`;
|
|
10254
10373
|
totalNetPnl: `-${string}` | `+${string}`;
|
|
10374
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10375
|
+
provisional?: true | undefined;
|
|
10376
|
+
latestFillAt?: string | undefined;
|
|
10255
10377
|
endedAt?: string | undefined;
|
|
10378
|
+
startSnapshot?: {
|
|
10379
|
+
leader: {
|
|
10380
|
+
tradeAccountId: string;
|
|
10381
|
+
capturedAt: string;
|
|
10382
|
+
initialEquityUsd: string;
|
|
10383
|
+
pnl: {
|
|
10384
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10385
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10386
|
+
funding: `-${string}` | `+${string}`;
|
|
10387
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10388
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10389
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10390
|
+
};
|
|
10391
|
+
};
|
|
10392
|
+
follower: {
|
|
10393
|
+
tradeAccountId: string;
|
|
10394
|
+
capturedAt: string;
|
|
10395
|
+
initialEquityUsd: string;
|
|
10396
|
+
pnl: {
|
|
10397
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10398
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10399
|
+
funding: `-${string}` | `+${string}`;
|
|
10400
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10401
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10402
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10403
|
+
};
|
|
10404
|
+
};
|
|
10405
|
+
} | undefined;
|
|
10406
|
+
endCapture?: {
|
|
10407
|
+
status: "PENDING";
|
|
10408
|
+
} | {
|
|
10409
|
+
status: "FAILED";
|
|
10410
|
+
} | {
|
|
10411
|
+
status: "COMPLETE";
|
|
10412
|
+
snapshot: {
|
|
10413
|
+
leader: {
|
|
10414
|
+
tradeAccountId: string;
|
|
10415
|
+
capturedAt: string;
|
|
10416
|
+
provisional: true;
|
|
10417
|
+
pnl: {
|
|
10418
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10419
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10420
|
+
funding: `-${string}` | `+${string}`;
|
|
10421
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10422
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10423
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10424
|
+
};
|
|
10425
|
+
latestFillAt?: string | undefined;
|
|
10426
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10427
|
+
};
|
|
10428
|
+
follower: {
|
|
10429
|
+
tradeAccountId: string;
|
|
10430
|
+
capturedAt: string;
|
|
10431
|
+
provisional: true;
|
|
10432
|
+
pnl: {
|
|
10433
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10434
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10435
|
+
funding: `-${string}` | `+${string}`;
|
|
10436
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10437
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10438
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10439
|
+
};
|
|
10440
|
+
latestFillAt?: string | undefined;
|
|
10441
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10442
|
+
};
|
|
10443
|
+
};
|
|
10444
|
+
} | undefined;
|
|
10445
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10446
|
+
performance?: {
|
|
10447
|
+
kind: "OBSERVED";
|
|
10448
|
+
boundaryAt: string;
|
|
10449
|
+
timing: "LIVE" | "DELAYED";
|
|
10450
|
+
leader: {
|
|
10451
|
+
tradeAccountId: string;
|
|
10452
|
+
capturedAt: string;
|
|
10453
|
+
provisional: true;
|
|
10454
|
+
pnl: {
|
|
10455
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10456
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10457
|
+
funding: `-${string}` | `+${string}`;
|
|
10458
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10459
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10460
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10461
|
+
};
|
|
10462
|
+
latestFillAt?: string | undefined;
|
|
10463
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10464
|
+
};
|
|
10465
|
+
follower: {
|
|
10466
|
+
tradeAccountId: string;
|
|
10467
|
+
capturedAt: string;
|
|
10468
|
+
provisional: true;
|
|
10469
|
+
pnl: {
|
|
10470
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10471
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10472
|
+
funding: `-${string}` | `+${string}`;
|
|
10473
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10474
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10475
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10476
|
+
};
|
|
10477
|
+
latestFillAt?: string | undefined;
|
|
10478
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10479
|
+
};
|
|
10480
|
+
accountTimings?: {
|
|
10481
|
+
leader: "DELAYED";
|
|
10482
|
+
follower: "DELAYED";
|
|
10483
|
+
} | undefined;
|
|
10484
|
+
} | undefined;
|
|
10256
10485
|
} | {
|
|
10486
|
+
createdAt: string;
|
|
10257
10487
|
id: string;
|
|
10258
10488
|
leaderTradeAccountId: string;
|
|
10259
10489
|
followerTradeAccountId: string;
|
|
@@ -10261,15 +10491,131 @@ declare class Core {
|
|
|
10261
10491
|
sizing: {
|
|
10262
10492
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10263
10493
|
};
|
|
10264
|
-
createdAt: string;
|
|
10265
10494
|
status: "ENDED";
|
|
10266
10495
|
volume: string;
|
|
10496
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10497
|
+
provisional?: true | undefined;
|
|
10498
|
+
latestFillAt?: string | undefined;
|
|
10267
10499
|
endedAt?: string | undefined;
|
|
10500
|
+
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10501
|
+
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10502
|
+
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10503
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10504
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10505
|
+
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10506
|
+
startSnapshot?: {
|
|
10507
|
+
leader: {
|
|
10508
|
+
tradeAccountId: string;
|
|
10509
|
+
capturedAt: string;
|
|
10510
|
+
initialEquityUsd: string;
|
|
10511
|
+
pnl: {
|
|
10512
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10513
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10514
|
+
funding: `-${string}` | `+${string}`;
|
|
10515
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10516
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10517
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10518
|
+
};
|
|
10519
|
+
};
|
|
10520
|
+
follower: {
|
|
10521
|
+
tradeAccountId: string;
|
|
10522
|
+
capturedAt: string;
|
|
10523
|
+
initialEquityUsd: string;
|
|
10524
|
+
pnl: {
|
|
10525
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10526
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10527
|
+
funding: `-${string}` | `+${string}`;
|
|
10528
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10529
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10530
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10531
|
+
};
|
|
10532
|
+
};
|
|
10533
|
+
} | undefined;
|
|
10534
|
+
endCapture?: {
|
|
10535
|
+
status: "PENDING";
|
|
10536
|
+
} | {
|
|
10537
|
+
status: "FAILED";
|
|
10538
|
+
} | {
|
|
10539
|
+
status: "COMPLETE";
|
|
10540
|
+
snapshot: {
|
|
10541
|
+
leader: {
|
|
10542
|
+
tradeAccountId: string;
|
|
10543
|
+
capturedAt: string;
|
|
10544
|
+
provisional: true;
|
|
10545
|
+
pnl: {
|
|
10546
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10547
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10548
|
+
funding: `-${string}` | `+${string}`;
|
|
10549
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10550
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10551
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10552
|
+
};
|
|
10553
|
+
latestFillAt?: string | undefined;
|
|
10554
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10555
|
+
};
|
|
10556
|
+
follower: {
|
|
10557
|
+
tradeAccountId: string;
|
|
10558
|
+
capturedAt: string;
|
|
10559
|
+
provisional: true;
|
|
10560
|
+
pnl: {
|
|
10561
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10562
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10563
|
+
funding: `-${string}` | `+${string}`;
|
|
10564
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10565
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10566
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10567
|
+
};
|
|
10568
|
+
latestFillAt?: string | undefined;
|
|
10569
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10570
|
+
};
|
|
10571
|
+
};
|
|
10572
|
+
} | undefined;
|
|
10573
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10574
|
+
performance?: {
|
|
10575
|
+
kind: "OBSERVED";
|
|
10576
|
+
boundaryAt: string;
|
|
10577
|
+
timing: "LIVE" | "DELAYED";
|
|
10578
|
+
leader: {
|
|
10579
|
+
tradeAccountId: string;
|
|
10580
|
+
capturedAt: string;
|
|
10581
|
+
provisional: true;
|
|
10582
|
+
pnl: {
|
|
10583
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10584
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10585
|
+
funding: `-${string}` | `+${string}`;
|
|
10586
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10587
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10588
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10589
|
+
};
|
|
10590
|
+
latestFillAt?: string | undefined;
|
|
10591
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10592
|
+
};
|
|
10593
|
+
follower: {
|
|
10594
|
+
tradeAccountId: string;
|
|
10595
|
+
capturedAt: string;
|
|
10596
|
+
provisional: true;
|
|
10597
|
+
pnl: {
|
|
10598
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10599
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10600
|
+
funding: `-${string}` | `+${string}`;
|
|
10601
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10602
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10603
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10604
|
+
};
|
|
10605
|
+
latestFillAt?: string | undefined;
|
|
10606
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10607
|
+
};
|
|
10608
|
+
accountTimings?: {
|
|
10609
|
+
leader: "DELAYED";
|
|
10610
|
+
follower: "DELAYED";
|
|
10611
|
+
} | undefined;
|
|
10612
|
+
} | undefined;
|
|
10268
10613
|
})[];
|
|
10269
10614
|
}>;
|
|
10270
10615
|
/** Start copying into the account selected by x-trade-account-id, syncing existing positions by default. */
|
|
10271
10616
|
subscribe: (body: HttpTypes.CreateCopySubscriptionInput, headers?: ClientHeaders) => Promise<{
|
|
10272
10617
|
subscription: {
|
|
10618
|
+
createdAt: string;
|
|
10273
10619
|
id: string;
|
|
10274
10620
|
leaderTradeAccountId: string;
|
|
10275
10621
|
followerTradeAccountId: string;
|
|
@@ -10278,8 +10624,123 @@ declare class Core {
|
|
|
10278
10624
|
sizing: {
|
|
10279
10625
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10280
10626
|
};
|
|
10281
|
-
|
|
10627
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10628
|
+
provisional?: true | undefined;
|
|
10629
|
+
latestFillAt?: string | undefined;
|
|
10282
10630
|
endedAt?: string | undefined;
|
|
10631
|
+
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10632
|
+
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10633
|
+
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10634
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10635
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10636
|
+
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10637
|
+
startSnapshot?: {
|
|
10638
|
+
leader: {
|
|
10639
|
+
tradeAccountId: string;
|
|
10640
|
+
capturedAt: string;
|
|
10641
|
+
initialEquityUsd: string;
|
|
10642
|
+
pnl: {
|
|
10643
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10644
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10645
|
+
funding: `-${string}` | `+${string}`;
|
|
10646
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10647
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10648
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10649
|
+
};
|
|
10650
|
+
};
|
|
10651
|
+
follower: {
|
|
10652
|
+
tradeAccountId: string;
|
|
10653
|
+
capturedAt: string;
|
|
10654
|
+
initialEquityUsd: string;
|
|
10655
|
+
pnl: {
|
|
10656
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10657
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10658
|
+
funding: `-${string}` | `+${string}`;
|
|
10659
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10660
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10661
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10662
|
+
};
|
|
10663
|
+
};
|
|
10664
|
+
} | undefined;
|
|
10665
|
+
endCapture?: {
|
|
10666
|
+
status: "PENDING";
|
|
10667
|
+
} | {
|
|
10668
|
+
status: "FAILED";
|
|
10669
|
+
} | {
|
|
10670
|
+
status: "COMPLETE";
|
|
10671
|
+
snapshot: {
|
|
10672
|
+
leader: {
|
|
10673
|
+
tradeAccountId: string;
|
|
10674
|
+
capturedAt: string;
|
|
10675
|
+
provisional: true;
|
|
10676
|
+
pnl: {
|
|
10677
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10678
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10679
|
+
funding: `-${string}` | `+${string}`;
|
|
10680
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10681
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10682
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10683
|
+
};
|
|
10684
|
+
latestFillAt?: string | undefined;
|
|
10685
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10686
|
+
};
|
|
10687
|
+
follower: {
|
|
10688
|
+
tradeAccountId: string;
|
|
10689
|
+
capturedAt: string;
|
|
10690
|
+
provisional: true;
|
|
10691
|
+
pnl: {
|
|
10692
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10693
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10694
|
+
funding: `-${string}` | `+${string}`;
|
|
10695
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10696
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10697
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10698
|
+
};
|
|
10699
|
+
latestFillAt?: string | undefined;
|
|
10700
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10701
|
+
};
|
|
10702
|
+
};
|
|
10703
|
+
} | undefined;
|
|
10704
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10705
|
+
performance?: {
|
|
10706
|
+
kind: "OBSERVED";
|
|
10707
|
+
boundaryAt: string;
|
|
10708
|
+
timing: "LIVE" | "DELAYED";
|
|
10709
|
+
leader: {
|
|
10710
|
+
tradeAccountId: string;
|
|
10711
|
+
capturedAt: string;
|
|
10712
|
+
provisional: true;
|
|
10713
|
+
pnl: {
|
|
10714
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10715
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10716
|
+
funding: `-${string}` | `+${string}`;
|
|
10717
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10718
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10719
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10720
|
+
};
|
|
10721
|
+
latestFillAt?: string | undefined;
|
|
10722
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10723
|
+
};
|
|
10724
|
+
follower: {
|
|
10725
|
+
tradeAccountId: string;
|
|
10726
|
+
capturedAt: string;
|
|
10727
|
+
provisional: true;
|
|
10728
|
+
pnl: {
|
|
10729
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10730
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10731
|
+
funding: `-${string}` | `+${string}`;
|
|
10732
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10733
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10734
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10735
|
+
};
|
|
10736
|
+
latestFillAt?: string | undefined;
|
|
10737
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10738
|
+
};
|
|
10739
|
+
accountTimings?: {
|
|
10740
|
+
leader: "DELAYED";
|
|
10741
|
+
follower: "DELAYED";
|
|
10742
|
+
} | undefined;
|
|
10743
|
+
} | undefined;
|
|
10283
10744
|
};
|
|
10284
10745
|
joinResults: ({
|
|
10285
10746
|
leaderPositionId: string;
|
|
@@ -10306,6 +10767,7 @@ declare class Core {
|
|
|
10306
10767
|
/** Stop copying while retaining existing positions under follower control. */
|
|
10307
10768
|
unsubscribe: (id: string, headers?: ClientHeaders) => Promise<{
|
|
10308
10769
|
subscription: {
|
|
10770
|
+
createdAt: string;
|
|
10309
10771
|
id: string;
|
|
10310
10772
|
leaderTradeAccountId: string;
|
|
10311
10773
|
followerTradeAccountId: string;
|
|
@@ -10314,8 +10776,123 @@ declare class Core {
|
|
|
10314
10776
|
sizing: {
|
|
10315
10777
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10316
10778
|
};
|
|
10317
|
-
|
|
10779
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10780
|
+
provisional?: true | undefined;
|
|
10781
|
+
latestFillAt?: string | undefined;
|
|
10318
10782
|
endedAt?: string | undefined;
|
|
10783
|
+
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10784
|
+
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10785
|
+
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10786
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10787
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10788
|
+
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10789
|
+
startSnapshot?: {
|
|
10790
|
+
leader: {
|
|
10791
|
+
tradeAccountId: string;
|
|
10792
|
+
capturedAt: string;
|
|
10793
|
+
initialEquityUsd: string;
|
|
10794
|
+
pnl: {
|
|
10795
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10796
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10797
|
+
funding: `-${string}` | `+${string}`;
|
|
10798
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10799
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10800
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10801
|
+
};
|
|
10802
|
+
};
|
|
10803
|
+
follower: {
|
|
10804
|
+
tradeAccountId: string;
|
|
10805
|
+
capturedAt: string;
|
|
10806
|
+
initialEquityUsd: string;
|
|
10807
|
+
pnl: {
|
|
10808
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10809
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10810
|
+
funding: `-${string}` | `+${string}`;
|
|
10811
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10812
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10813
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10814
|
+
};
|
|
10815
|
+
};
|
|
10816
|
+
} | undefined;
|
|
10817
|
+
endCapture?: {
|
|
10818
|
+
status: "PENDING";
|
|
10819
|
+
} | {
|
|
10820
|
+
status: "FAILED";
|
|
10821
|
+
} | {
|
|
10822
|
+
status: "COMPLETE";
|
|
10823
|
+
snapshot: {
|
|
10824
|
+
leader: {
|
|
10825
|
+
tradeAccountId: string;
|
|
10826
|
+
capturedAt: string;
|
|
10827
|
+
provisional: true;
|
|
10828
|
+
pnl: {
|
|
10829
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10830
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10831
|
+
funding: `-${string}` | `+${string}`;
|
|
10832
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10833
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10834
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10835
|
+
};
|
|
10836
|
+
latestFillAt?: string | undefined;
|
|
10837
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10838
|
+
};
|
|
10839
|
+
follower: {
|
|
10840
|
+
tradeAccountId: string;
|
|
10841
|
+
capturedAt: string;
|
|
10842
|
+
provisional: true;
|
|
10843
|
+
pnl: {
|
|
10844
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10845
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10846
|
+
funding: `-${string}` | `+${string}`;
|
|
10847
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10848
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10849
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10850
|
+
};
|
|
10851
|
+
latestFillAt?: string | undefined;
|
|
10852
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10853
|
+
};
|
|
10854
|
+
};
|
|
10855
|
+
} | undefined;
|
|
10856
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10857
|
+
performance?: {
|
|
10858
|
+
kind: "OBSERVED";
|
|
10859
|
+
boundaryAt: string;
|
|
10860
|
+
timing: "LIVE" | "DELAYED";
|
|
10861
|
+
leader: {
|
|
10862
|
+
tradeAccountId: string;
|
|
10863
|
+
capturedAt: string;
|
|
10864
|
+
provisional: true;
|
|
10865
|
+
pnl: {
|
|
10866
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10867
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10868
|
+
funding: `-${string}` | `+${string}`;
|
|
10869
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10870
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10871
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10872
|
+
};
|
|
10873
|
+
latestFillAt?: string | undefined;
|
|
10874
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10875
|
+
};
|
|
10876
|
+
follower: {
|
|
10877
|
+
tradeAccountId: string;
|
|
10878
|
+
capturedAt: string;
|
|
10879
|
+
provisional: true;
|
|
10880
|
+
pnl: {
|
|
10881
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10882
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10883
|
+
funding: `-${string}` | `+${string}`;
|
|
10884
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10885
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10886
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10887
|
+
};
|
|
10888
|
+
latestFillAt?: string | undefined;
|
|
10889
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10890
|
+
};
|
|
10891
|
+
accountTimings?: {
|
|
10892
|
+
leader: "DELAYED";
|
|
10893
|
+
follower: "DELAYED";
|
|
10894
|
+
} | undefined;
|
|
10895
|
+
} | undefined;
|
|
10319
10896
|
};
|
|
10320
10897
|
}>;
|
|
10321
10898
|
activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
|
|
@@ -10344,7 +10921,7 @@ declare class Core {
|
|
|
10344
10921
|
origin: "AUTO_REBALANCE";
|
|
10345
10922
|
configId: string;
|
|
10346
10923
|
} | undefined;
|
|
10347
|
-
outcome?: "FAILED" | "
|
|
10924
|
+
outcome?: "FAILED" | "COPIED" | "PARTIAL" | "SKIPPED" | undefined;
|
|
10348
10925
|
skipReason?: "SUBSCRIPTION_NOT_ACTIVE" | "POSITION_EXCLUDED" | "INCLUDED_IN_JOIN" | "VENUE_MISMATCH" | "BELOW_VENUE_MINIMUM" | "PAIR_ALREADY_ENTERED" | "ENTRY_EXPIRED" | "FOLLOWER_LEG_ABSENT" | "LEADER_LEG_REOPENED" | "NO_FOLLOWER_DELTA" | "LEADER_EQUITY_UNREADABLE" | "FOLLOWER_EQUITY_UNREADABLE" | "PRICE_UNAVAILABLE" | "LEVERAGE_NOT_APPLIED" | undefined;
|
|
10349
10926
|
failureReason?: string | undefined;
|
|
10350
10927
|
leaderEquityFraction?: string | undefined;
|
package/dist/core/index.js
CHANGED
|
@@ -31,11 +31,12 @@ class Core {
|
|
|
31
31
|
headers
|
|
32
32
|
});
|
|
33
33
|
}, "closedPositions"),
|
|
34
|
-
/** Read
|
|
35
|
-
public: /* @__PURE__ */ __name(async (tradeAccountId, headers) => {
|
|
34
|
+
/** Read public positions; opt into viewer copy state with authentication and an owned account header. */
|
|
35
|
+
public: /* @__PURE__ */ __name(async (tradeAccountId, headers, query) => {
|
|
36
36
|
return await this.client.fetch(`/traders/${encodeURIComponent(tradeAccountId)}`, {
|
|
37
37
|
method: "GET",
|
|
38
|
-
headers
|
|
38
|
+
headers,
|
|
39
|
+
query
|
|
39
40
|
});
|
|
40
41
|
}, "public")
|
|
41
42
|
};
|
package/dist/vaults/index.d.ts
CHANGED
|
@@ -401,17 +401,17 @@ declare class Vaults {
|
|
|
401
401
|
positions: {
|
|
402
402
|
status: "CLOSED";
|
|
403
403
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
404
|
+
netPnl: `-${string}` | `+${string}`;
|
|
404
405
|
positionId: string;
|
|
405
406
|
closedAt: string;
|
|
406
407
|
grossPnl: `-${string}` | `+${string}`;
|
|
407
|
-
netPnl: `-${string}` | `+${string}`;
|
|
408
408
|
openedAt: string;
|
|
409
409
|
hasProvisionalFills: boolean;
|
|
410
410
|
legs: {
|
|
411
411
|
side: "LONG" | "SHORT";
|
|
412
|
+
netPnl: `-${string}` | `+${string}`;
|
|
412
413
|
asset: string;
|
|
413
414
|
grossPnl: `-${string}` | `+${string}`;
|
|
414
|
-
netPnl: `-${string}` | `+${string}`;
|
|
415
415
|
entryNotional: string;
|
|
416
416
|
entryVwap?: string | undefined;
|
|
417
417
|
exitVwap?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pear-protocol/core-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Pear Protocol Core SDK",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pear-protocol/types": "^2.
|
|
29
|
+
"@pear-protocol/types": "^2.16.0",
|
|
30
30
|
"@pear-protocol/utils": "^1.3.0",
|
|
31
31
|
"qs": "^6.14.0"
|
|
32
32
|
},
|