@pear-protocol/core-sdk 2.8.0 → 2.10.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 +641 -64
- package/dist/core/index.js +8 -0
- package/dist/vaults/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/core/index.d.ts
CHANGED
|
@@ -9,23 +9,32 @@ declare class Core {
|
|
|
9
9
|
constructor(client: HttpClient, clientId?: string | null);
|
|
10
10
|
private withClientId;
|
|
11
11
|
traders: {
|
|
12
|
+
/** Read one ordered account chart series under current public sharing consent. */
|
|
13
|
+
performance: (tradeAccountId: string, query?: HttpTypes.TraderPerformanceQueryInput, headers?: ClientHeaders) => Promise<{
|
|
14
|
+
points: {
|
|
15
|
+
at: string;
|
|
16
|
+
equityUsd?: `-${string}` | `+${string}` | undefined;
|
|
17
|
+
pnlUsd?: `-${string}` | `+${string}` | undefined;
|
|
18
|
+
roiPercent?: `-${string}` | `+${string}` | undefined;
|
|
19
|
+
}[];
|
|
20
|
+
}>;
|
|
12
21
|
/** Read a public trader's paginated closed history without account authentication. */
|
|
13
22
|
closedPositions: (tradeAccountId: string, query?: HttpTypes.PublicTraderClosedPositionsParamsInput, headers?: ClientHeaders) => Promise<{
|
|
14
23
|
limit: number;
|
|
15
24
|
positions: {
|
|
16
25
|
status: "CLOSED";
|
|
17
26
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
27
|
+
netPnl: `-${string}` | `+${string}`;
|
|
18
28
|
positionId: string;
|
|
19
29
|
closedAt: string;
|
|
20
30
|
grossPnl: `-${string}` | `+${string}`;
|
|
21
|
-
netPnl: `-${string}` | `+${string}`;
|
|
22
31
|
openedAt: string;
|
|
23
32
|
hasProvisionalFills: boolean;
|
|
24
33
|
legs: {
|
|
25
34
|
side: "LONG" | "SHORT";
|
|
35
|
+
netPnl: `-${string}` | `+${string}`;
|
|
26
36
|
asset: string;
|
|
27
37
|
grossPnl: `-${string}` | `+${string}`;
|
|
28
|
-
netPnl: `-${string}` | `+${string}`;
|
|
29
38
|
entryNotional: string;
|
|
30
39
|
entryVwap?: string | undefined;
|
|
31
40
|
exitVwap?: string | undefined;
|
|
@@ -72,7 +81,7 @@ declare class Core {
|
|
|
72
81
|
};
|
|
73
82
|
}[];
|
|
74
83
|
copySubscriptionId?: string | undefined;
|
|
75
|
-
copyStatus?: "
|
|
84
|
+
copyStatus?: "PENDING" | "COPIED" | "PARTIAL" | "NOT_COPIED" | "UNKNOWN" | undefined;
|
|
76
85
|
copyReason?: string | undefined;
|
|
77
86
|
}[];
|
|
78
87
|
triggers: ({
|
|
@@ -2835,7 +2844,7 @@ declare class Core {
|
|
|
2835
2844
|
orders?: {
|
|
2836
2845
|
id: string;
|
|
2837
2846
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2838
|
-
status: "CANCELLED" | "
|
|
2847
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2839
2848
|
createdAt: string;
|
|
2840
2849
|
updatedAt: string;
|
|
2841
2850
|
type: "MARKET";
|
|
@@ -2849,7 +2858,7 @@ declare class Core {
|
|
|
2849
2858
|
errorCode?: string | undefined;
|
|
2850
2859
|
filledPrice?: string | undefined;
|
|
2851
2860
|
}[] | undefined;
|
|
2852
|
-
fulfillment?: "NONE" | "
|
|
2861
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2853
2862
|
position?: {
|
|
2854
2863
|
id: string;
|
|
2855
2864
|
} | undefined;
|
|
@@ -2882,7 +2891,7 @@ declare class Core {
|
|
|
2882
2891
|
orders?: {
|
|
2883
2892
|
id: string;
|
|
2884
2893
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2885
|
-
status: "CANCELLED" | "
|
|
2894
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2886
2895
|
createdAt: string;
|
|
2887
2896
|
updatedAt: string;
|
|
2888
2897
|
type: "MARKET";
|
|
@@ -2896,7 +2905,7 @@ declare class Core {
|
|
|
2896
2905
|
errorCode?: string | undefined;
|
|
2897
2906
|
filledPrice?: string | undefined;
|
|
2898
2907
|
}[] | undefined;
|
|
2899
|
-
fulfillment?: "NONE" | "
|
|
2908
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2900
2909
|
position?: {
|
|
2901
2910
|
id: string;
|
|
2902
2911
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2913,7 +2922,7 @@ declare class Core {
|
|
|
2913
2922
|
orders?: {
|
|
2914
2923
|
id: string;
|
|
2915
2924
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2916
|
-
status: "CANCELLED" | "
|
|
2925
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2917
2926
|
createdAt: string;
|
|
2918
2927
|
updatedAt: string;
|
|
2919
2928
|
type: "MARKET";
|
|
@@ -2927,7 +2936,7 @@ declare class Core {
|
|
|
2927
2936
|
errorCode?: string | undefined;
|
|
2928
2937
|
filledPrice?: string | undefined;
|
|
2929
2938
|
}[] | undefined;
|
|
2930
|
-
fulfillment?: "NONE" | "
|
|
2939
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2931
2940
|
position?: {
|
|
2932
2941
|
id: string;
|
|
2933
2942
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2944,7 +2953,7 @@ declare class Core {
|
|
|
2944
2953
|
orders?: {
|
|
2945
2954
|
id: string;
|
|
2946
2955
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2947
|
-
status: "CANCELLED" | "
|
|
2956
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2948
2957
|
createdAt: string;
|
|
2949
2958
|
updatedAt: string;
|
|
2950
2959
|
type: "MARKET";
|
|
@@ -2958,7 +2967,7 @@ declare class Core {
|
|
|
2958
2967
|
errorCode?: string | undefined;
|
|
2959
2968
|
filledPrice?: string | undefined;
|
|
2960
2969
|
}[] | undefined;
|
|
2961
|
-
fulfillment?: "NONE" | "
|
|
2970
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2962
2971
|
position?: {
|
|
2963
2972
|
id: string;
|
|
2964
2973
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2996,7 +3005,7 @@ declare class Core {
|
|
|
2996
3005
|
orders?: {
|
|
2997
3006
|
id: string;
|
|
2998
3007
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2999
|
-
status: "CANCELLED" | "
|
|
3008
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3000
3009
|
createdAt: string;
|
|
3001
3010
|
updatedAt: string;
|
|
3002
3011
|
type: "MARKET";
|
|
@@ -3010,7 +3019,7 @@ declare class Core {
|
|
|
3010
3019
|
errorCode?: string | undefined;
|
|
3011
3020
|
filledPrice?: string | undefined;
|
|
3012
3021
|
}[] | undefined;
|
|
3013
|
-
fulfillment?: "NONE" | "
|
|
3022
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3014
3023
|
position?: {
|
|
3015
3024
|
id: string;
|
|
3016
3025
|
} | undefined;
|
|
@@ -3043,7 +3052,7 @@ declare class Core {
|
|
|
3043
3052
|
orders?: {
|
|
3044
3053
|
id: string;
|
|
3045
3054
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3046
|
-
status: "CANCELLED" | "
|
|
3055
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3047
3056
|
createdAt: string;
|
|
3048
3057
|
updatedAt: string;
|
|
3049
3058
|
type: "MARKET";
|
|
@@ -3057,7 +3066,7 @@ declare class Core {
|
|
|
3057
3066
|
errorCode?: string | undefined;
|
|
3058
3067
|
filledPrice?: string | undefined;
|
|
3059
3068
|
}[] | undefined;
|
|
3060
|
-
fulfillment?: "NONE" | "
|
|
3069
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3061
3070
|
position?: {
|
|
3062
3071
|
id: string;
|
|
3063
3072
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3074,7 +3083,7 @@ declare class Core {
|
|
|
3074
3083
|
orders?: {
|
|
3075
3084
|
id: string;
|
|
3076
3085
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3077
|
-
status: "CANCELLED" | "
|
|
3086
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3078
3087
|
createdAt: string;
|
|
3079
3088
|
updatedAt: string;
|
|
3080
3089
|
type: "MARKET";
|
|
@@ -3088,7 +3097,7 @@ declare class Core {
|
|
|
3088
3097
|
errorCode?: string | undefined;
|
|
3089
3098
|
filledPrice?: string | undefined;
|
|
3090
3099
|
}[] | undefined;
|
|
3091
|
-
fulfillment?: "NONE" | "
|
|
3100
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3092
3101
|
position?: {
|
|
3093
3102
|
id: string;
|
|
3094
3103
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3105,7 +3114,7 @@ declare class Core {
|
|
|
3105
3114
|
orders?: {
|
|
3106
3115
|
id: string;
|
|
3107
3116
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3108
|
-
status: "CANCELLED" | "
|
|
3117
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3109
3118
|
createdAt: string;
|
|
3110
3119
|
updatedAt: string;
|
|
3111
3120
|
type: "MARKET";
|
|
@@ -3119,7 +3128,7 @@ declare class Core {
|
|
|
3119
3128
|
errorCode?: string | undefined;
|
|
3120
3129
|
filledPrice?: string | undefined;
|
|
3121
3130
|
}[] | undefined;
|
|
3122
|
-
fulfillment?: "NONE" | "
|
|
3131
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3123
3132
|
position?: {
|
|
3124
3133
|
id: string;
|
|
3125
3134
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -6962,7 +6971,7 @@ declare class Core {
|
|
|
6962
6971
|
orders?: {
|
|
6963
6972
|
id: string;
|
|
6964
6973
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6965
|
-
status: "CANCELLED" | "
|
|
6974
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
6966
6975
|
createdAt: string;
|
|
6967
6976
|
updatedAt: string;
|
|
6968
6977
|
type: "MARKET";
|
|
@@ -6976,7 +6985,7 @@ declare class Core {
|
|
|
6976
6985
|
errorCode?: string | undefined;
|
|
6977
6986
|
filledPrice?: string | undefined;
|
|
6978
6987
|
}[] | undefined;
|
|
6979
|
-
fulfillment?: "NONE" | "
|
|
6988
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
6980
6989
|
position?: {
|
|
6981
6990
|
id: string;
|
|
6982
6991
|
} | undefined;
|
|
@@ -7009,7 +7018,7 @@ declare class Core {
|
|
|
7009
7018
|
orders?: {
|
|
7010
7019
|
id: string;
|
|
7011
7020
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7012
|
-
status: "CANCELLED" | "
|
|
7021
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7013
7022
|
createdAt: string;
|
|
7014
7023
|
updatedAt: string;
|
|
7015
7024
|
type: "MARKET";
|
|
@@ -7023,7 +7032,7 @@ declare class Core {
|
|
|
7023
7032
|
errorCode?: string | undefined;
|
|
7024
7033
|
filledPrice?: string | undefined;
|
|
7025
7034
|
}[] | undefined;
|
|
7026
|
-
fulfillment?: "NONE" | "
|
|
7035
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7027
7036
|
position?: {
|
|
7028
7037
|
id: string;
|
|
7029
7038
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7040,7 +7049,7 @@ declare class Core {
|
|
|
7040
7049
|
orders?: {
|
|
7041
7050
|
id: string;
|
|
7042
7051
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7043
|
-
status: "CANCELLED" | "
|
|
7052
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7044
7053
|
createdAt: string;
|
|
7045
7054
|
updatedAt: string;
|
|
7046
7055
|
type: "MARKET";
|
|
@@ -7054,7 +7063,7 @@ declare class Core {
|
|
|
7054
7063
|
errorCode?: string | undefined;
|
|
7055
7064
|
filledPrice?: string | undefined;
|
|
7056
7065
|
}[] | undefined;
|
|
7057
|
-
fulfillment?: "NONE" | "
|
|
7066
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7058
7067
|
position?: {
|
|
7059
7068
|
id: string;
|
|
7060
7069
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7071,7 +7080,7 @@ declare class Core {
|
|
|
7071
7080
|
orders?: {
|
|
7072
7081
|
id: string;
|
|
7073
7082
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7074
|
-
status: "CANCELLED" | "
|
|
7083
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7075
7084
|
createdAt: string;
|
|
7076
7085
|
updatedAt: string;
|
|
7077
7086
|
type: "MARKET";
|
|
@@ -7085,7 +7094,7 @@ declare class Core {
|
|
|
7085
7094
|
errorCode?: string | undefined;
|
|
7086
7095
|
filledPrice?: string | undefined;
|
|
7087
7096
|
}[] | undefined;
|
|
7088
|
-
fulfillment?: "NONE" | "
|
|
7097
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7089
7098
|
position?: {
|
|
7090
7099
|
id: string;
|
|
7091
7100
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7122,7 +7131,7 @@ declare class Core {
|
|
|
7122
7131
|
orders?: {
|
|
7123
7132
|
id: string;
|
|
7124
7133
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7125
|
-
status: "CANCELLED" | "
|
|
7134
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7126
7135
|
createdAt: string;
|
|
7127
7136
|
updatedAt: string;
|
|
7128
7137
|
type: "MARKET";
|
|
@@ -7136,7 +7145,7 @@ declare class Core {
|
|
|
7136
7145
|
errorCode?: string | undefined;
|
|
7137
7146
|
filledPrice?: string | undefined;
|
|
7138
7147
|
}[] | undefined;
|
|
7139
|
-
fulfillment?: "NONE" | "
|
|
7148
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7140
7149
|
position?: {
|
|
7141
7150
|
id: string;
|
|
7142
7151
|
} | undefined;
|
|
@@ -7169,7 +7178,7 @@ declare class Core {
|
|
|
7169
7178
|
orders?: {
|
|
7170
7179
|
id: string;
|
|
7171
7180
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7172
|
-
status: "CANCELLED" | "
|
|
7181
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7173
7182
|
createdAt: string;
|
|
7174
7183
|
updatedAt: string;
|
|
7175
7184
|
type: "MARKET";
|
|
@@ -7183,7 +7192,7 @@ declare class Core {
|
|
|
7183
7192
|
errorCode?: string | undefined;
|
|
7184
7193
|
filledPrice?: string | undefined;
|
|
7185
7194
|
}[] | undefined;
|
|
7186
|
-
fulfillment?: "NONE" | "
|
|
7195
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7187
7196
|
position?: {
|
|
7188
7197
|
id: string;
|
|
7189
7198
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7200,7 +7209,7 @@ declare class Core {
|
|
|
7200
7209
|
orders?: {
|
|
7201
7210
|
id: string;
|
|
7202
7211
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7203
|
-
status: "CANCELLED" | "
|
|
7212
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7204
7213
|
createdAt: string;
|
|
7205
7214
|
updatedAt: string;
|
|
7206
7215
|
type: "MARKET";
|
|
@@ -7214,7 +7223,7 @@ declare class Core {
|
|
|
7214
7223
|
errorCode?: string | undefined;
|
|
7215
7224
|
filledPrice?: string | undefined;
|
|
7216
7225
|
}[] | undefined;
|
|
7217
|
-
fulfillment?: "NONE" | "
|
|
7226
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7218
7227
|
position?: {
|
|
7219
7228
|
id: string;
|
|
7220
7229
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7231,7 +7240,7 @@ declare class Core {
|
|
|
7231
7240
|
orders?: {
|
|
7232
7241
|
id: string;
|
|
7233
7242
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7234
|
-
status: "CANCELLED" | "
|
|
7243
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7235
7244
|
createdAt: string;
|
|
7236
7245
|
updatedAt: string;
|
|
7237
7246
|
type: "MARKET";
|
|
@@ -7245,7 +7254,7 @@ declare class Core {
|
|
|
7245
7254
|
errorCode?: string | undefined;
|
|
7246
7255
|
filledPrice?: string | undefined;
|
|
7247
7256
|
}[] | undefined;
|
|
7248
|
-
fulfillment?: "NONE" | "
|
|
7257
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7249
7258
|
position?: {
|
|
7250
7259
|
id: string;
|
|
7251
7260
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7282,7 +7291,7 @@ declare class Core {
|
|
|
7282
7291
|
orders?: {
|
|
7283
7292
|
id: string;
|
|
7284
7293
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7285
|
-
status: "CANCELLED" | "
|
|
7294
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7286
7295
|
createdAt: string;
|
|
7287
7296
|
updatedAt: string;
|
|
7288
7297
|
type: "MARKET";
|
|
@@ -7296,7 +7305,7 @@ declare class Core {
|
|
|
7296
7305
|
errorCode?: string | undefined;
|
|
7297
7306
|
filledPrice?: string | undefined;
|
|
7298
7307
|
}[] | undefined;
|
|
7299
|
-
fulfillment?: "NONE" | "
|
|
7308
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7300
7309
|
position?: {
|
|
7301
7310
|
id: string;
|
|
7302
7311
|
} | undefined;
|
|
@@ -7329,7 +7338,7 @@ declare class Core {
|
|
|
7329
7338
|
orders?: {
|
|
7330
7339
|
id: string;
|
|
7331
7340
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7332
|
-
status: "CANCELLED" | "
|
|
7341
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7333
7342
|
createdAt: string;
|
|
7334
7343
|
updatedAt: string;
|
|
7335
7344
|
type: "MARKET";
|
|
@@ -7343,7 +7352,7 @@ declare class Core {
|
|
|
7343
7352
|
errorCode?: string | undefined;
|
|
7344
7353
|
filledPrice?: string | undefined;
|
|
7345
7354
|
}[] | undefined;
|
|
7346
|
-
fulfillment?: "NONE" | "
|
|
7355
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7347
7356
|
position?: {
|
|
7348
7357
|
id: string;
|
|
7349
7358
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7360,7 +7369,7 @@ declare class Core {
|
|
|
7360
7369
|
orders?: {
|
|
7361
7370
|
id: string;
|
|
7362
7371
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7363
|
-
status: "CANCELLED" | "
|
|
7372
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7364
7373
|
createdAt: string;
|
|
7365
7374
|
updatedAt: string;
|
|
7366
7375
|
type: "MARKET";
|
|
@@ -7374,7 +7383,7 @@ declare class Core {
|
|
|
7374
7383
|
errorCode?: string | undefined;
|
|
7375
7384
|
filledPrice?: string | undefined;
|
|
7376
7385
|
}[] | undefined;
|
|
7377
|
-
fulfillment?: "NONE" | "
|
|
7386
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7378
7387
|
position?: {
|
|
7379
7388
|
id: string;
|
|
7380
7389
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7391,7 +7400,7 @@ declare class Core {
|
|
|
7391
7400
|
orders?: {
|
|
7392
7401
|
id: string;
|
|
7393
7402
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7394
|
-
status: "CANCELLED" | "
|
|
7403
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7395
7404
|
createdAt: string;
|
|
7396
7405
|
updatedAt: string;
|
|
7397
7406
|
type: "MARKET";
|
|
@@ -7405,7 +7414,7 @@ declare class Core {
|
|
|
7405
7414
|
errorCode?: string | undefined;
|
|
7406
7415
|
filledPrice?: string | undefined;
|
|
7407
7416
|
}[] | undefined;
|
|
7408
|
-
fulfillment?: "NONE" | "
|
|
7417
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7409
7418
|
position?: {
|
|
7410
7419
|
id: string;
|
|
7411
7420
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7442,7 +7451,7 @@ declare class Core {
|
|
|
7442
7451
|
orders?: {
|
|
7443
7452
|
id: string;
|
|
7444
7453
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7445
|
-
status: "CANCELLED" | "
|
|
7454
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7446
7455
|
createdAt: string;
|
|
7447
7456
|
updatedAt: string;
|
|
7448
7457
|
type: "MARKET";
|
|
@@ -7456,7 +7465,7 @@ declare class Core {
|
|
|
7456
7465
|
errorCode?: string | undefined;
|
|
7457
7466
|
filledPrice?: string | undefined;
|
|
7458
7467
|
}[] | undefined;
|
|
7459
|
-
fulfillment?: "NONE" | "
|
|
7468
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7460
7469
|
position?: {
|
|
7461
7470
|
id: string;
|
|
7462
7471
|
} | undefined;
|
|
@@ -7489,7 +7498,7 @@ declare class Core {
|
|
|
7489
7498
|
orders?: {
|
|
7490
7499
|
id: string;
|
|
7491
7500
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7492
|
-
status: "CANCELLED" | "
|
|
7501
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7493
7502
|
createdAt: string;
|
|
7494
7503
|
updatedAt: string;
|
|
7495
7504
|
type: "MARKET";
|
|
@@ -7503,7 +7512,7 @@ declare class Core {
|
|
|
7503
7512
|
errorCode?: string | undefined;
|
|
7504
7513
|
filledPrice?: string | undefined;
|
|
7505
7514
|
}[] | undefined;
|
|
7506
|
-
fulfillment?: "NONE" | "
|
|
7515
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7507
7516
|
position?: {
|
|
7508
7517
|
id: string;
|
|
7509
7518
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7520,7 +7529,7 @@ declare class Core {
|
|
|
7520
7529
|
orders?: {
|
|
7521
7530
|
id: string;
|
|
7522
7531
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7523
|
-
status: "CANCELLED" | "
|
|
7532
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7524
7533
|
createdAt: string;
|
|
7525
7534
|
updatedAt: string;
|
|
7526
7535
|
type: "MARKET";
|
|
@@ -7534,7 +7543,7 @@ declare class Core {
|
|
|
7534
7543
|
errorCode?: string | undefined;
|
|
7535
7544
|
filledPrice?: string | undefined;
|
|
7536
7545
|
}[] | undefined;
|
|
7537
|
-
fulfillment?: "NONE" | "
|
|
7546
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7538
7547
|
position?: {
|
|
7539
7548
|
id: string;
|
|
7540
7549
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7551,7 +7560,7 @@ declare class Core {
|
|
|
7551
7560
|
orders?: {
|
|
7552
7561
|
id: string;
|
|
7553
7562
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7554
|
-
status: "CANCELLED" | "
|
|
7563
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7555
7564
|
createdAt: string;
|
|
7556
7565
|
updatedAt: string;
|
|
7557
7566
|
type: "MARKET";
|
|
@@ -7565,7 +7574,7 @@ declare class Core {
|
|
|
7565
7574
|
errorCode?: string | undefined;
|
|
7566
7575
|
filledPrice?: string | undefined;
|
|
7567
7576
|
}[] | undefined;
|
|
7568
|
-
fulfillment?: "NONE" | "
|
|
7577
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7569
7578
|
position?: {
|
|
7570
7579
|
id: string;
|
|
7571
7580
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7602,7 +7611,7 @@ declare class Core {
|
|
|
7602
7611
|
orders?: {
|
|
7603
7612
|
id: string;
|
|
7604
7613
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7605
|
-
status: "CANCELLED" | "
|
|
7614
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7606
7615
|
createdAt: string;
|
|
7607
7616
|
updatedAt: string;
|
|
7608
7617
|
type: "MARKET";
|
|
@@ -7616,7 +7625,7 @@ declare class Core {
|
|
|
7616
7625
|
errorCode?: string | undefined;
|
|
7617
7626
|
filledPrice?: string | undefined;
|
|
7618
7627
|
}[] | undefined;
|
|
7619
|
-
fulfillment?: "NONE" | "
|
|
7628
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7620
7629
|
position?: {
|
|
7621
7630
|
id: string;
|
|
7622
7631
|
} | undefined;
|
|
@@ -7649,7 +7658,7 @@ declare class Core {
|
|
|
7649
7658
|
orders?: {
|
|
7650
7659
|
id: string;
|
|
7651
7660
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7652
|
-
status: "CANCELLED" | "
|
|
7661
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7653
7662
|
createdAt: string;
|
|
7654
7663
|
updatedAt: string;
|
|
7655
7664
|
type: "MARKET";
|
|
@@ -7663,7 +7672,7 @@ declare class Core {
|
|
|
7663
7672
|
errorCode?: string | undefined;
|
|
7664
7673
|
filledPrice?: string | undefined;
|
|
7665
7674
|
}[] | undefined;
|
|
7666
|
-
fulfillment?: "NONE" | "
|
|
7675
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7667
7676
|
position?: {
|
|
7668
7677
|
id: string;
|
|
7669
7678
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7680,7 +7689,7 @@ declare class Core {
|
|
|
7680
7689
|
orders?: {
|
|
7681
7690
|
id: string;
|
|
7682
7691
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7683
|
-
status: "CANCELLED" | "
|
|
7692
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7684
7693
|
createdAt: string;
|
|
7685
7694
|
updatedAt: string;
|
|
7686
7695
|
type: "MARKET";
|
|
@@ -7694,7 +7703,7 @@ declare class Core {
|
|
|
7694
7703
|
errorCode?: string | undefined;
|
|
7695
7704
|
filledPrice?: string | undefined;
|
|
7696
7705
|
}[] | undefined;
|
|
7697
|
-
fulfillment?: "NONE" | "
|
|
7706
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7698
7707
|
position?: {
|
|
7699
7708
|
id: string;
|
|
7700
7709
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7711,7 +7720,7 @@ declare class Core {
|
|
|
7711
7720
|
orders?: {
|
|
7712
7721
|
id: string;
|
|
7713
7722
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7714
|
-
status: "CANCELLED" | "
|
|
7723
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7715
7724
|
createdAt: string;
|
|
7716
7725
|
updatedAt: string;
|
|
7717
7726
|
type: "MARKET";
|
|
@@ -7725,7 +7734,7 @@ declare class Core {
|
|
|
7725
7734
|
errorCode?: string | undefined;
|
|
7726
7735
|
filledPrice?: string | undefined;
|
|
7727
7736
|
}[] | undefined;
|
|
7728
|
-
fulfillment?: "NONE" | "
|
|
7737
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7729
7738
|
position?: {
|
|
7730
7739
|
id: string;
|
|
7731
7740
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -10193,6 +10202,7 @@ declare class Core {
|
|
|
10193
10202
|
} | {
|
|
10194
10203
|
state: "ACTIVE";
|
|
10195
10204
|
subscription: {
|
|
10205
|
+
createdAt: string;
|
|
10196
10206
|
id: string;
|
|
10197
10207
|
leaderTradeAccountId: string;
|
|
10198
10208
|
followerTradeAccountId: string;
|
|
@@ -10200,7 +10210,6 @@ declare class Core {
|
|
|
10200
10210
|
sizing: {
|
|
10201
10211
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10202
10212
|
};
|
|
10203
|
-
createdAt: string;
|
|
10204
10213
|
status: "ACTIVE";
|
|
10205
10214
|
volume: string;
|
|
10206
10215
|
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
@@ -10209,7 +10218,117 @@ declare class Core {
|
|
|
10209
10218
|
tradeFee: `-${string}` | `+${string}`;
|
|
10210
10219
|
pearFee: `-${string}` | `+${string}`;
|
|
10211
10220
|
totalNetPnl: `-${string}` | `+${string}`;
|
|
10221
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10222
|
+
provisional?: true | undefined;
|
|
10223
|
+
latestFillAt?: string | undefined;
|
|
10212
10224
|
endedAt?: string | undefined;
|
|
10225
|
+
startSnapshot?: {
|
|
10226
|
+
leader: {
|
|
10227
|
+
tradeAccountId: string;
|
|
10228
|
+
capturedAt: string;
|
|
10229
|
+
initialEquityUsd: string;
|
|
10230
|
+
pnl: {
|
|
10231
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10232
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10233
|
+
funding: `-${string}` | `+${string}`;
|
|
10234
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10235
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10236
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10237
|
+
};
|
|
10238
|
+
};
|
|
10239
|
+
follower: {
|
|
10240
|
+
tradeAccountId: string;
|
|
10241
|
+
capturedAt: string;
|
|
10242
|
+
initialEquityUsd: string;
|
|
10243
|
+
pnl: {
|
|
10244
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10245
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10246
|
+
funding: `-${string}` | `+${string}`;
|
|
10247
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10248
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10249
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10250
|
+
};
|
|
10251
|
+
};
|
|
10252
|
+
} | undefined;
|
|
10253
|
+
endCapture?: {
|
|
10254
|
+
status: "PENDING";
|
|
10255
|
+
} | {
|
|
10256
|
+
status: "FAILED";
|
|
10257
|
+
} | {
|
|
10258
|
+
status: "COMPLETE";
|
|
10259
|
+
snapshot: {
|
|
10260
|
+
leader: {
|
|
10261
|
+
tradeAccountId: string;
|
|
10262
|
+
capturedAt: string;
|
|
10263
|
+
provisional: true;
|
|
10264
|
+
pnl: {
|
|
10265
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10266
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10267
|
+
funding: `-${string}` | `+${string}`;
|
|
10268
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10269
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10270
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10271
|
+
};
|
|
10272
|
+
latestFillAt?: string | undefined;
|
|
10273
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10274
|
+
};
|
|
10275
|
+
follower: {
|
|
10276
|
+
tradeAccountId: string;
|
|
10277
|
+
capturedAt: string;
|
|
10278
|
+
provisional: true;
|
|
10279
|
+
pnl: {
|
|
10280
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10281
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10282
|
+
funding: `-${string}` | `+${string}`;
|
|
10283
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10284
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10285
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10286
|
+
};
|
|
10287
|
+
latestFillAt?: string | undefined;
|
|
10288
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10289
|
+
};
|
|
10290
|
+
};
|
|
10291
|
+
} | undefined;
|
|
10292
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10293
|
+
performance?: {
|
|
10294
|
+
kind: "OBSERVED";
|
|
10295
|
+
boundaryAt: string;
|
|
10296
|
+
timing: "LIVE" | "DELAYED";
|
|
10297
|
+
leader: {
|
|
10298
|
+
tradeAccountId: string;
|
|
10299
|
+
capturedAt: string;
|
|
10300
|
+
provisional: true;
|
|
10301
|
+
pnl: {
|
|
10302
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10303
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10304
|
+
funding: `-${string}` | `+${string}`;
|
|
10305
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10306
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10307
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10308
|
+
};
|
|
10309
|
+
latestFillAt?: string | undefined;
|
|
10310
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10311
|
+
};
|
|
10312
|
+
follower: {
|
|
10313
|
+
tradeAccountId: string;
|
|
10314
|
+
capturedAt: string;
|
|
10315
|
+
provisional: true;
|
|
10316
|
+
pnl: {
|
|
10317
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10318
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10319
|
+
funding: `-${string}` | `+${string}`;
|
|
10320
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10321
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10322
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10323
|
+
};
|
|
10324
|
+
latestFillAt?: string | undefined;
|
|
10325
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10326
|
+
};
|
|
10327
|
+
accountTimings?: {
|
|
10328
|
+
leader: "DELAYED";
|
|
10329
|
+
follower: "DELAYED";
|
|
10330
|
+
} | undefined;
|
|
10331
|
+
} | undefined;
|
|
10213
10332
|
};
|
|
10214
10333
|
}>;
|
|
10215
10334
|
/** Read all active followers of an owned leader account. */
|
|
@@ -10245,6 +10364,7 @@ declare class Core {
|
|
|
10245
10364
|
/** Read subscription history, optionally by status; use copy.state for one account's current relationship. */
|
|
10246
10365
|
listSubscriptions: (headers?: ClientHeaders, query?: HttpTypes.CopySubscriptionListQueryInput) => Promise<{
|
|
10247
10366
|
subscriptions: ({
|
|
10367
|
+
createdAt: string;
|
|
10248
10368
|
id: string;
|
|
10249
10369
|
leaderTradeAccountId: string;
|
|
10250
10370
|
followerTradeAccountId: string;
|
|
@@ -10252,7 +10372,6 @@ declare class Core {
|
|
|
10252
10372
|
sizing: {
|
|
10253
10373
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10254
10374
|
};
|
|
10255
|
-
createdAt: string;
|
|
10256
10375
|
status: "ACTIVE";
|
|
10257
10376
|
volume: string;
|
|
10258
10377
|
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
@@ -10261,8 +10380,119 @@ declare class Core {
|
|
|
10261
10380
|
tradeFee: `-${string}` | `+${string}`;
|
|
10262
10381
|
pearFee: `-${string}` | `+${string}`;
|
|
10263
10382
|
totalNetPnl: `-${string}` | `+${string}`;
|
|
10383
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10384
|
+
provisional?: true | undefined;
|
|
10385
|
+
latestFillAt?: string | undefined;
|
|
10264
10386
|
endedAt?: string | undefined;
|
|
10387
|
+
startSnapshot?: {
|
|
10388
|
+
leader: {
|
|
10389
|
+
tradeAccountId: string;
|
|
10390
|
+
capturedAt: string;
|
|
10391
|
+
initialEquityUsd: string;
|
|
10392
|
+
pnl: {
|
|
10393
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10394
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10395
|
+
funding: `-${string}` | `+${string}`;
|
|
10396
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10397
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10398
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10399
|
+
};
|
|
10400
|
+
};
|
|
10401
|
+
follower: {
|
|
10402
|
+
tradeAccountId: string;
|
|
10403
|
+
capturedAt: string;
|
|
10404
|
+
initialEquityUsd: string;
|
|
10405
|
+
pnl: {
|
|
10406
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10407
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10408
|
+
funding: `-${string}` | `+${string}`;
|
|
10409
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10410
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10411
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10412
|
+
};
|
|
10413
|
+
};
|
|
10414
|
+
} | undefined;
|
|
10415
|
+
endCapture?: {
|
|
10416
|
+
status: "PENDING";
|
|
10417
|
+
} | {
|
|
10418
|
+
status: "FAILED";
|
|
10419
|
+
} | {
|
|
10420
|
+
status: "COMPLETE";
|
|
10421
|
+
snapshot: {
|
|
10422
|
+
leader: {
|
|
10423
|
+
tradeAccountId: string;
|
|
10424
|
+
capturedAt: string;
|
|
10425
|
+
provisional: true;
|
|
10426
|
+
pnl: {
|
|
10427
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10428
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10429
|
+
funding: `-${string}` | `+${string}`;
|
|
10430
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10431
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10432
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10433
|
+
};
|
|
10434
|
+
latestFillAt?: string | undefined;
|
|
10435
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10436
|
+
};
|
|
10437
|
+
follower: {
|
|
10438
|
+
tradeAccountId: string;
|
|
10439
|
+
capturedAt: string;
|
|
10440
|
+
provisional: true;
|
|
10441
|
+
pnl: {
|
|
10442
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10443
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10444
|
+
funding: `-${string}` | `+${string}`;
|
|
10445
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10446
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10447
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10448
|
+
};
|
|
10449
|
+
latestFillAt?: string | undefined;
|
|
10450
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10451
|
+
};
|
|
10452
|
+
};
|
|
10453
|
+
} | undefined;
|
|
10454
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10455
|
+
performance?: {
|
|
10456
|
+
kind: "OBSERVED";
|
|
10457
|
+
boundaryAt: string;
|
|
10458
|
+
timing: "LIVE" | "DELAYED";
|
|
10459
|
+
leader: {
|
|
10460
|
+
tradeAccountId: string;
|
|
10461
|
+
capturedAt: string;
|
|
10462
|
+
provisional: true;
|
|
10463
|
+
pnl: {
|
|
10464
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10465
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10466
|
+
funding: `-${string}` | `+${string}`;
|
|
10467
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10468
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10469
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10470
|
+
};
|
|
10471
|
+
latestFillAt?: string | undefined;
|
|
10472
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10473
|
+
};
|
|
10474
|
+
follower: {
|
|
10475
|
+
tradeAccountId: string;
|
|
10476
|
+
capturedAt: string;
|
|
10477
|
+
provisional: true;
|
|
10478
|
+
pnl: {
|
|
10479
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10480
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10481
|
+
funding: `-${string}` | `+${string}`;
|
|
10482
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10483
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10484
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10485
|
+
};
|
|
10486
|
+
latestFillAt?: string | undefined;
|
|
10487
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10488
|
+
};
|
|
10489
|
+
accountTimings?: {
|
|
10490
|
+
leader: "DELAYED";
|
|
10491
|
+
follower: "DELAYED";
|
|
10492
|
+
} | undefined;
|
|
10493
|
+
} | undefined;
|
|
10265
10494
|
} | {
|
|
10495
|
+
createdAt: string;
|
|
10266
10496
|
id: string;
|
|
10267
10497
|
leaderTradeAccountId: string;
|
|
10268
10498
|
followerTradeAccountId: string;
|
|
@@ -10270,15 +10500,131 @@ declare class Core {
|
|
|
10270
10500
|
sizing: {
|
|
10271
10501
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10272
10502
|
};
|
|
10273
|
-
createdAt: string;
|
|
10274
10503
|
status: "ENDED";
|
|
10275
10504
|
volume: string;
|
|
10505
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10506
|
+
provisional?: true | undefined;
|
|
10507
|
+
latestFillAt?: string | undefined;
|
|
10276
10508
|
endedAt?: string | undefined;
|
|
10509
|
+
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10510
|
+
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10511
|
+
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10512
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10513
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10514
|
+
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10515
|
+
startSnapshot?: {
|
|
10516
|
+
leader: {
|
|
10517
|
+
tradeAccountId: string;
|
|
10518
|
+
capturedAt: string;
|
|
10519
|
+
initialEquityUsd: string;
|
|
10520
|
+
pnl: {
|
|
10521
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10522
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10523
|
+
funding: `-${string}` | `+${string}`;
|
|
10524
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10525
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10526
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10527
|
+
};
|
|
10528
|
+
};
|
|
10529
|
+
follower: {
|
|
10530
|
+
tradeAccountId: string;
|
|
10531
|
+
capturedAt: string;
|
|
10532
|
+
initialEquityUsd: string;
|
|
10533
|
+
pnl: {
|
|
10534
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10535
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10536
|
+
funding: `-${string}` | `+${string}`;
|
|
10537
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10538
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10539
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10540
|
+
};
|
|
10541
|
+
};
|
|
10542
|
+
} | undefined;
|
|
10543
|
+
endCapture?: {
|
|
10544
|
+
status: "PENDING";
|
|
10545
|
+
} | {
|
|
10546
|
+
status: "FAILED";
|
|
10547
|
+
} | {
|
|
10548
|
+
status: "COMPLETE";
|
|
10549
|
+
snapshot: {
|
|
10550
|
+
leader: {
|
|
10551
|
+
tradeAccountId: string;
|
|
10552
|
+
capturedAt: string;
|
|
10553
|
+
provisional: true;
|
|
10554
|
+
pnl: {
|
|
10555
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10556
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10557
|
+
funding: `-${string}` | `+${string}`;
|
|
10558
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10559
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10560
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10561
|
+
};
|
|
10562
|
+
latestFillAt?: string | undefined;
|
|
10563
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10564
|
+
};
|
|
10565
|
+
follower: {
|
|
10566
|
+
tradeAccountId: string;
|
|
10567
|
+
capturedAt: string;
|
|
10568
|
+
provisional: true;
|
|
10569
|
+
pnl: {
|
|
10570
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10571
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10572
|
+
funding: `-${string}` | `+${string}`;
|
|
10573
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10574
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10575
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10576
|
+
};
|
|
10577
|
+
latestFillAt?: string | undefined;
|
|
10578
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10579
|
+
};
|
|
10580
|
+
};
|
|
10581
|
+
} | undefined;
|
|
10582
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10583
|
+
performance?: {
|
|
10584
|
+
kind: "OBSERVED";
|
|
10585
|
+
boundaryAt: string;
|
|
10586
|
+
timing: "LIVE" | "DELAYED";
|
|
10587
|
+
leader: {
|
|
10588
|
+
tradeAccountId: string;
|
|
10589
|
+
capturedAt: string;
|
|
10590
|
+
provisional: true;
|
|
10591
|
+
pnl: {
|
|
10592
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10593
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10594
|
+
funding: `-${string}` | `+${string}`;
|
|
10595
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10596
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10597
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10598
|
+
};
|
|
10599
|
+
latestFillAt?: string | undefined;
|
|
10600
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10601
|
+
};
|
|
10602
|
+
follower: {
|
|
10603
|
+
tradeAccountId: string;
|
|
10604
|
+
capturedAt: string;
|
|
10605
|
+
provisional: true;
|
|
10606
|
+
pnl: {
|
|
10607
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10608
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10609
|
+
funding: `-${string}` | `+${string}`;
|
|
10610
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10611
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10612
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10613
|
+
};
|
|
10614
|
+
latestFillAt?: string | undefined;
|
|
10615
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10616
|
+
};
|
|
10617
|
+
accountTimings?: {
|
|
10618
|
+
leader: "DELAYED";
|
|
10619
|
+
follower: "DELAYED";
|
|
10620
|
+
} | undefined;
|
|
10621
|
+
} | undefined;
|
|
10277
10622
|
})[];
|
|
10278
10623
|
}>;
|
|
10279
10624
|
/** Start copying into the account selected by x-trade-account-id, syncing existing positions by default. */
|
|
10280
10625
|
subscribe: (body: HttpTypes.CreateCopySubscriptionInput, headers?: ClientHeaders) => Promise<{
|
|
10281
10626
|
subscription: {
|
|
10627
|
+
createdAt: string;
|
|
10282
10628
|
id: string;
|
|
10283
10629
|
leaderTradeAccountId: string;
|
|
10284
10630
|
followerTradeAccountId: string;
|
|
@@ -10287,8 +10633,123 @@ declare class Core {
|
|
|
10287
10633
|
sizing: {
|
|
10288
10634
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10289
10635
|
};
|
|
10290
|
-
|
|
10636
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10637
|
+
provisional?: true | undefined;
|
|
10638
|
+
latestFillAt?: string | undefined;
|
|
10291
10639
|
endedAt?: string | undefined;
|
|
10640
|
+
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10641
|
+
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10642
|
+
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10643
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10644
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10645
|
+
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10646
|
+
startSnapshot?: {
|
|
10647
|
+
leader: {
|
|
10648
|
+
tradeAccountId: string;
|
|
10649
|
+
capturedAt: string;
|
|
10650
|
+
initialEquityUsd: string;
|
|
10651
|
+
pnl: {
|
|
10652
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10653
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10654
|
+
funding: `-${string}` | `+${string}`;
|
|
10655
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10656
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10657
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10658
|
+
};
|
|
10659
|
+
};
|
|
10660
|
+
follower: {
|
|
10661
|
+
tradeAccountId: string;
|
|
10662
|
+
capturedAt: string;
|
|
10663
|
+
initialEquityUsd: string;
|
|
10664
|
+
pnl: {
|
|
10665
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10666
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10667
|
+
funding: `-${string}` | `+${string}`;
|
|
10668
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10669
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10670
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10671
|
+
};
|
|
10672
|
+
};
|
|
10673
|
+
} | undefined;
|
|
10674
|
+
endCapture?: {
|
|
10675
|
+
status: "PENDING";
|
|
10676
|
+
} | {
|
|
10677
|
+
status: "FAILED";
|
|
10678
|
+
} | {
|
|
10679
|
+
status: "COMPLETE";
|
|
10680
|
+
snapshot: {
|
|
10681
|
+
leader: {
|
|
10682
|
+
tradeAccountId: string;
|
|
10683
|
+
capturedAt: string;
|
|
10684
|
+
provisional: true;
|
|
10685
|
+
pnl: {
|
|
10686
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10687
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10688
|
+
funding: `-${string}` | `+${string}`;
|
|
10689
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10690
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10691
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10692
|
+
};
|
|
10693
|
+
latestFillAt?: string | undefined;
|
|
10694
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10695
|
+
};
|
|
10696
|
+
follower: {
|
|
10697
|
+
tradeAccountId: string;
|
|
10698
|
+
capturedAt: string;
|
|
10699
|
+
provisional: true;
|
|
10700
|
+
pnl: {
|
|
10701
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10702
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10703
|
+
funding: `-${string}` | `+${string}`;
|
|
10704
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10705
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10706
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10707
|
+
};
|
|
10708
|
+
latestFillAt?: string | undefined;
|
|
10709
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10710
|
+
};
|
|
10711
|
+
};
|
|
10712
|
+
} | undefined;
|
|
10713
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10714
|
+
performance?: {
|
|
10715
|
+
kind: "OBSERVED";
|
|
10716
|
+
boundaryAt: string;
|
|
10717
|
+
timing: "LIVE" | "DELAYED";
|
|
10718
|
+
leader: {
|
|
10719
|
+
tradeAccountId: string;
|
|
10720
|
+
capturedAt: string;
|
|
10721
|
+
provisional: true;
|
|
10722
|
+
pnl: {
|
|
10723
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10724
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10725
|
+
funding: `-${string}` | `+${string}`;
|
|
10726
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10727
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10728
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10729
|
+
};
|
|
10730
|
+
latestFillAt?: string | undefined;
|
|
10731
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10732
|
+
};
|
|
10733
|
+
follower: {
|
|
10734
|
+
tradeAccountId: string;
|
|
10735
|
+
capturedAt: string;
|
|
10736
|
+
provisional: true;
|
|
10737
|
+
pnl: {
|
|
10738
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10739
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10740
|
+
funding: `-${string}` | `+${string}`;
|
|
10741
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10742
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10743
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10744
|
+
};
|
|
10745
|
+
latestFillAt?: string | undefined;
|
|
10746
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10747
|
+
};
|
|
10748
|
+
accountTimings?: {
|
|
10749
|
+
leader: "DELAYED";
|
|
10750
|
+
follower: "DELAYED";
|
|
10751
|
+
} | undefined;
|
|
10752
|
+
} | undefined;
|
|
10292
10753
|
};
|
|
10293
10754
|
joinResults: ({
|
|
10294
10755
|
leaderPositionId: string;
|
|
@@ -10315,6 +10776,7 @@ declare class Core {
|
|
|
10315
10776
|
/** Stop copying while retaining existing positions under follower control. */
|
|
10316
10777
|
unsubscribe: (id: string, headers?: ClientHeaders) => Promise<{
|
|
10317
10778
|
subscription: {
|
|
10779
|
+
createdAt: string;
|
|
10318
10780
|
id: string;
|
|
10319
10781
|
leaderTradeAccountId: string;
|
|
10320
10782
|
followerTradeAccountId: string;
|
|
@@ -10323,8 +10785,123 @@ declare class Core {
|
|
|
10323
10785
|
sizing: {
|
|
10324
10786
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10325
10787
|
};
|
|
10326
|
-
|
|
10788
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10789
|
+
provisional?: true | undefined;
|
|
10790
|
+
latestFillAt?: string | undefined;
|
|
10327
10791
|
endedAt?: string | undefined;
|
|
10792
|
+
grossRealizedPnl?: `-${string}` | `+${string}` | undefined;
|
|
10793
|
+
grossUpnl?: `-${string}` | `+${string}` | undefined;
|
|
10794
|
+
fundingPayment?: `-${string}` | `+${string}` | undefined;
|
|
10795
|
+
tradeFee?: `-${string}` | `+${string}` | undefined;
|
|
10796
|
+
pearFee?: `-${string}` | `+${string}` | undefined;
|
|
10797
|
+
totalNetPnl?: `-${string}` | `+${string}` | undefined;
|
|
10798
|
+
startSnapshot?: {
|
|
10799
|
+
leader: {
|
|
10800
|
+
tradeAccountId: string;
|
|
10801
|
+
capturedAt: string;
|
|
10802
|
+
initialEquityUsd: string;
|
|
10803
|
+
pnl: {
|
|
10804
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10805
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10806
|
+
funding: `-${string}` | `+${string}`;
|
|
10807
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10808
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10809
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10810
|
+
};
|
|
10811
|
+
};
|
|
10812
|
+
follower: {
|
|
10813
|
+
tradeAccountId: string;
|
|
10814
|
+
capturedAt: string;
|
|
10815
|
+
initialEquityUsd: string;
|
|
10816
|
+
pnl: {
|
|
10817
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10818
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10819
|
+
funding: `-${string}` | `+${string}`;
|
|
10820
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10821
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10822
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10823
|
+
};
|
|
10824
|
+
};
|
|
10825
|
+
} | undefined;
|
|
10826
|
+
endCapture?: {
|
|
10827
|
+
status: "PENDING";
|
|
10828
|
+
} | {
|
|
10829
|
+
status: "FAILED";
|
|
10830
|
+
} | {
|
|
10831
|
+
status: "COMPLETE";
|
|
10832
|
+
snapshot: {
|
|
10833
|
+
leader: {
|
|
10834
|
+
tradeAccountId: string;
|
|
10835
|
+
capturedAt: string;
|
|
10836
|
+
provisional: true;
|
|
10837
|
+
pnl: {
|
|
10838
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10839
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10840
|
+
funding: `-${string}` | `+${string}`;
|
|
10841
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10842
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10843
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10844
|
+
};
|
|
10845
|
+
latestFillAt?: string | undefined;
|
|
10846
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10847
|
+
};
|
|
10848
|
+
follower: {
|
|
10849
|
+
tradeAccountId: string;
|
|
10850
|
+
capturedAt: string;
|
|
10851
|
+
provisional: true;
|
|
10852
|
+
pnl: {
|
|
10853
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10854
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10855
|
+
funding: `-${string}` | `+${string}`;
|
|
10856
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10857
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10858
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10859
|
+
};
|
|
10860
|
+
latestFillAt?: string | undefined;
|
|
10861
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10862
|
+
};
|
|
10863
|
+
};
|
|
10864
|
+
} | undefined;
|
|
10865
|
+
endReason?: "MANUAL_TRADE" | "EXTERNAL_POSITION_DETECTED" | "LEADER_EXTERNAL_ACTIVITY" | "UNSUBSCRIBED" | "FAILURE_THRESHOLD" | undefined;
|
|
10866
|
+
performance?: {
|
|
10867
|
+
kind: "OBSERVED";
|
|
10868
|
+
boundaryAt: string;
|
|
10869
|
+
timing: "LIVE" | "DELAYED";
|
|
10870
|
+
leader: {
|
|
10871
|
+
tradeAccountId: string;
|
|
10872
|
+
capturedAt: string;
|
|
10873
|
+
provisional: true;
|
|
10874
|
+
pnl: {
|
|
10875
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10876
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10877
|
+
funding: `-${string}` | `+${string}`;
|
|
10878
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10879
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10880
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10881
|
+
};
|
|
10882
|
+
latestFillAt?: string | undefined;
|
|
10883
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10884
|
+
};
|
|
10885
|
+
follower: {
|
|
10886
|
+
tradeAccountId: string;
|
|
10887
|
+
capturedAt: string;
|
|
10888
|
+
provisional: true;
|
|
10889
|
+
pnl: {
|
|
10890
|
+
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
10891
|
+
unrealizedPnl: `-${string}` | `+${string}`;
|
|
10892
|
+
funding: `-${string}` | `+${string}`;
|
|
10893
|
+
tradingFees: `-${string}` | `+${string}`;
|
|
10894
|
+
platformFees: `-${string}` | `+${string}`;
|
|
10895
|
+
netPnl: `-${string}` | `+${string}`;
|
|
10896
|
+
};
|
|
10897
|
+
latestFillAt?: string | undefined;
|
|
10898
|
+
returnOnStartingEquityPercent?: `-${string}` | `+${string}` | undefined;
|
|
10899
|
+
};
|
|
10900
|
+
accountTimings?: {
|
|
10901
|
+
leader: "DELAYED";
|
|
10902
|
+
follower: "DELAYED";
|
|
10903
|
+
} | undefined;
|
|
10904
|
+
} | undefined;
|
|
10328
10905
|
};
|
|
10329
10906
|
}>;
|
|
10330
10907
|
activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
|
package/dist/core/index.js
CHANGED
|
@@ -23,6 +23,14 @@ class Core {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
traders = {
|
|
26
|
+
/** Read one ordered account chart series under current public sharing consent. */
|
|
27
|
+
performance: /* @__PURE__ */ __name(async (tradeAccountId, query, headers) => {
|
|
28
|
+
return await this.client.fetch(`/traders/${encodeURIComponent(tradeAccountId)}/performance`, {
|
|
29
|
+
method: "GET",
|
|
30
|
+
query,
|
|
31
|
+
headers
|
|
32
|
+
});
|
|
33
|
+
}, "performance"),
|
|
26
34
|
/** Read a public trader's paginated closed history without account authentication. */
|
|
27
35
|
closedPositions: /* @__PURE__ */ __name(async (tradeAccountId, query, headers) => {
|
|
28
36
|
return await this.client.fetch(`/traders/${encodeURIComponent(tradeAccountId)}/closed-positions`, {
|
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.10.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.17.0",
|
|
30
30
|
"@pear-protocol/utils": "^1.3.0",
|
|
31
31
|
"qs": "^6.14.0"
|
|
32
32
|
},
|