@pear-protocol/core-sdk 2.8.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 +633 -65
- 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;
|
|
@@ -72,7 +72,7 @@ declare class Core {
|
|
|
72
72
|
};
|
|
73
73
|
}[];
|
|
74
74
|
copySubscriptionId?: string | undefined;
|
|
75
|
-
copyStatus?: "
|
|
75
|
+
copyStatus?: "PENDING" | "COPIED" | "PARTIAL" | "NOT_COPIED" | "UNKNOWN" | undefined;
|
|
76
76
|
copyReason?: string | undefined;
|
|
77
77
|
}[];
|
|
78
78
|
triggers: ({
|
|
@@ -2687,7 +2687,7 @@ declare class Core {
|
|
|
2687
2687
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
2688
2688
|
baseBps: string;
|
|
2689
2689
|
discounts: {
|
|
2690
|
-
scope: "
|
|
2690
|
+
scope: "connector" | "all" | "user" | "client_id";
|
|
2691
2691
|
rate: string;
|
|
2692
2692
|
}[];
|
|
2693
2693
|
finalBps: string;
|
|
@@ -2835,7 +2835,7 @@ declare class Core {
|
|
|
2835
2835
|
orders?: {
|
|
2836
2836
|
id: string;
|
|
2837
2837
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2838
|
-
status: "CANCELLED" | "
|
|
2838
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2839
2839
|
createdAt: string;
|
|
2840
2840
|
updatedAt: string;
|
|
2841
2841
|
type: "MARKET";
|
|
@@ -2849,7 +2849,7 @@ declare class Core {
|
|
|
2849
2849
|
errorCode?: string | undefined;
|
|
2850
2850
|
filledPrice?: string | undefined;
|
|
2851
2851
|
}[] | undefined;
|
|
2852
|
-
fulfillment?: "NONE" | "
|
|
2852
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2853
2853
|
position?: {
|
|
2854
2854
|
id: string;
|
|
2855
2855
|
} | undefined;
|
|
@@ -2882,7 +2882,7 @@ declare class Core {
|
|
|
2882
2882
|
orders?: {
|
|
2883
2883
|
id: string;
|
|
2884
2884
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2885
|
-
status: "CANCELLED" | "
|
|
2885
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2886
2886
|
createdAt: string;
|
|
2887
2887
|
updatedAt: string;
|
|
2888
2888
|
type: "MARKET";
|
|
@@ -2896,7 +2896,7 @@ declare class Core {
|
|
|
2896
2896
|
errorCode?: string | undefined;
|
|
2897
2897
|
filledPrice?: string | undefined;
|
|
2898
2898
|
}[] | undefined;
|
|
2899
|
-
fulfillment?: "NONE" | "
|
|
2899
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2900
2900
|
position?: {
|
|
2901
2901
|
id: string;
|
|
2902
2902
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2913,7 +2913,7 @@ declare class Core {
|
|
|
2913
2913
|
orders?: {
|
|
2914
2914
|
id: string;
|
|
2915
2915
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2916
|
-
status: "CANCELLED" | "
|
|
2916
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2917
2917
|
createdAt: string;
|
|
2918
2918
|
updatedAt: string;
|
|
2919
2919
|
type: "MARKET";
|
|
@@ -2927,7 +2927,7 @@ declare class Core {
|
|
|
2927
2927
|
errorCode?: string | undefined;
|
|
2928
2928
|
filledPrice?: string | undefined;
|
|
2929
2929
|
}[] | undefined;
|
|
2930
|
-
fulfillment?: "NONE" | "
|
|
2930
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2931
2931
|
position?: {
|
|
2932
2932
|
id: string;
|
|
2933
2933
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2944,7 +2944,7 @@ declare class Core {
|
|
|
2944
2944
|
orders?: {
|
|
2945
2945
|
id: string;
|
|
2946
2946
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2947
|
-
status: "CANCELLED" | "
|
|
2947
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
2948
2948
|
createdAt: string;
|
|
2949
2949
|
updatedAt: string;
|
|
2950
2950
|
type: "MARKET";
|
|
@@ -2958,7 +2958,7 @@ declare class Core {
|
|
|
2958
2958
|
errorCode?: string | undefined;
|
|
2959
2959
|
filledPrice?: string | undefined;
|
|
2960
2960
|
}[] | undefined;
|
|
2961
|
-
fulfillment?: "NONE" | "
|
|
2961
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
2962
2962
|
position?: {
|
|
2963
2963
|
id: string;
|
|
2964
2964
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -2996,7 +2996,7 @@ declare class Core {
|
|
|
2996
2996
|
orders?: {
|
|
2997
2997
|
id: string;
|
|
2998
2998
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2999
|
-
status: "CANCELLED" | "
|
|
2999
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3000
3000
|
createdAt: string;
|
|
3001
3001
|
updatedAt: string;
|
|
3002
3002
|
type: "MARKET";
|
|
@@ -3010,7 +3010,7 @@ declare class Core {
|
|
|
3010
3010
|
errorCode?: string | undefined;
|
|
3011
3011
|
filledPrice?: string | undefined;
|
|
3012
3012
|
}[] | undefined;
|
|
3013
|
-
fulfillment?: "NONE" | "
|
|
3013
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3014
3014
|
position?: {
|
|
3015
3015
|
id: string;
|
|
3016
3016
|
} | undefined;
|
|
@@ -3043,7 +3043,7 @@ declare class Core {
|
|
|
3043
3043
|
orders?: {
|
|
3044
3044
|
id: string;
|
|
3045
3045
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3046
|
-
status: "CANCELLED" | "
|
|
3046
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3047
3047
|
createdAt: string;
|
|
3048
3048
|
updatedAt: string;
|
|
3049
3049
|
type: "MARKET";
|
|
@@ -3057,7 +3057,7 @@ declare class Core {
|
|
|
3057
3057
|
errorCode?: string | undefined;
|
|
3058
3058
|
filledPrice?: string | undefined;
|
|
3059
3059
|
}[] | undefined;
|
|
3060
|
-
fulfillment?: "NONE" | "
|
|
3060
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3061
3061
|
position?: {
|
|
3062
3062
|
id: string;
|
|
3063
3063
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3074,7 +3074,7 @@ declare class Core {
|
|
|
3074
3074
|
orders?: {
|
|
3075
3075
|
id: string;
|
|
3076
3076
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3077
|
-
status: "CANCELLED" | "
|
|
3077
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3078
3078
|
createdAt: string;
|
|
3079
3079
|
updatedAt: string;
|
|
3080
3080
|
type: "MARKET";
|
|
@@ -3088,7 +3088,7 @@ declare class Core {
|
|
|
3088
3088
|
errorCode?: string | undefined;
|
|
3089
3089
|
filledPrice?: string | undefined;
|
|
3090
3090
|
}[] | undefined;
|
|
3091
|
-
fulfillment?: "NONE" | "
|
|
3091
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3092
3092
|
position?: {
|
|
3093
3093
|
id: string;
|
|
3094
3094
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3105,7 +3105,7 @@ declare class Core {
|
|
|
3105
3105
|
orders?: {
|
|
3106
3106
|
id: string;
|
|
3107
3107
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3108
|
-
status: "CANCELLED" | "
|
|
3108
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
3109
3109
|
createdAt: string;
|
|
3110
3110
|
updatedAt: string;
|
|
3111
3111
|
type: "MARKET";
|
|
@@ -3119,7 +3119,7 @@ declare class Core {
|
|
|
3119
3119
|
errorCode?: string | undefined;
|
|
3120
3120
|
filledPrice?: string | undefined;
|
|
3121
3121
|
}[] | undefined;
|
|
3122
|
-
fulfillment?: "NONE" | "
|
|
3122
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
3123
3123
|
position?: {
|
|
3124
3124
|
id: string;
|
|
3125
3125
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -6962,7 +6962,7 @@ declare class Core {
|
|
|
6962
6962
|
orders?: {
|
|
6963
6963
|
id: string;
|
|
6964
6964
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6965
|
-
status: "CANCELLED" | "
|
|
6965
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
6966
6966
|
createdAt: string;
|
|
6967
6967
|
updatedAt: string;
|
|
6968
6968
|
type: "MARKET";
|
|
@@ -6976,7 +6976,7 @@ declare class Core {
|
|
|
6976
6976
|
errorCode?: string | undefined;
|
|
6977
6977
|
filledPrice?: string | undefined;
|
|
6978
6978
|
}[] | undefined;
|
|
6979
|
-
fulfillment?: "NONE" | "
|
|
6979
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
6980
6980
|
position?: {
|
|
6981
6981
|
id: string;
|
|
6982
6982
|
} | undefined;
|
|
@@ -7009,7 +7009,7 @@ declare class Core {
|
|
|
7009
7009
|
orders?: {
|
|
7010
7010
|
id: string;
|
|
7011
7011
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7012
|
-
status: "CANCELLED" | "
|
|
7012
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7013
7013
|
createdAt: string;
|
|
7014
7014
|
updatedAt: string;
|
|
7015
7015
|
type: "MARKET";
|
|
@@ -7023,7 +7023,7 @@ declare class Core {
|
|
|
7023
7023
|
errorCode?: string | undefined;
|
|
7024
7024
|
filledPrice?: string | undefined;
|
|
7025
7025
|
}[] | undefined;
|
|
7026
|
-
fulfillment?: "NONE" | "
|
|
7026
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7027
7027
|
position?: {
|
|
7028
7028
|
id: string;
|
|
7029
7029
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7040,7 +7040,7 @@ declare class Core {
|
|
|
7040
7040
|
orders?: {
|
|
7041
7041
|
id: string;
|
|
7042
7042
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7043
|
-
status: "CANCELLED" | "
|
|
7043
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7044
7044
|
createdAt: string;
|
|
7045
7045
|
updatedAt: string;
|
|
7046
7046
|
type: "MARKET";
|
|
@@ -7054,7 +7054,7 @@ declare class Core {
|
|
|
7054
7054
|
errorCode?: string | undefined;
|
|
7055
7055
|
filledPrice?: string | undefined;
|
|
7056
7056
|
}[] | undefined;
|
|
7057
|
-
fulfillment?: "NONE" | "
|
|
7057
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7058
7058
|
position?: {
|
|
7059
7059
|
id: string;
|
|
7060
7060
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7071,7 +7071,7 @@ declare class Core {
|
|
|
7071
7071
|
orders?: {
|
|
7072
7072
|
id: string;
|
|
7073
7073
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7074
|
-
status: "CANCELLED" | "
|
|
7074
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7075
7075
|
createdAt: string;
|
|
7076
7076
|
updatedAt: string;
|
|
7077
7077
|
type: "MARKET";
|
|
@@ -7085,7 +7085,7 @@ declare class Core {
|
|
|
7085
7085
|
errorCode?: string | undefined;
|
|
7086
7086
|
filledPrice?: string | undefined;
|
|
7087
7087
|
}[] | undefined;
|
|
7088
|
-
fulfillment?: "NONE" | "
|
|
7088
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7089
7089
|
position?: {
|
|
7090
7090
|
id: string;
|
|
7091
7091
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7122,7 +7122,7 @@ declare class Core {
|
|
|
7122
7122
|
orders?: {
|
|
7123
7123
|
id: string;
|
|
7124
7124
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7125
|
-
status: "CANCELLED" | "
|
|
7125
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7126
7126
|
createdAt: string;
|
|
7127
7127
|
updatedAt: string;
|
|
7128
7128
|
type: "MARKET";
|
|
@@ -7136,7 +7136,7 @@ declare class Core {
|
|
|
7136
7136
|
errorCode?: string | undefined;
|
|
7137
7137
|
filledPrice?: string | undefined;
|
|
7138
7138
|
}[] | undefined;
|
|
7139
|
-
fulfillment?: "NONE" | "
|
|
7139
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7140
7140
|
position?: {
|
|
7141
7141
|
id: string;
|
|
7142
7142
|
} | undefined;
|
|
@@ -7169,7 +7169,7 @@ declare class Core {
|
|
|
7169
7169
|
orders?: {
|
|
7170
7170
|
id: string;
|
|
7171
7171
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7172
|
-
status: "CANCELLED" | "
|
|
7172
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7173
7173
|
createdAt: string;
|
|
7174
7174
|
updatedAt: string;
|
|
7175
7175
|
type: "MARKET";
|
|
@@ -7183,7 +7183,7 @@ declare class Core {
|
|
|
7183
7183
|
errorCode?: string | undefined;
|
|
7184
7184
|
filledPrice?: string | undefined;
|
|
7185
7185
|
}[] | undefined;
|
|
7186
|
-
fulfillment?: "NONE" | "
|
|
7186
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7187
7187
|
position?: {
|
|
7188
7188
|
id: string;
|
|
7189
7189
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7200,7 +7200,7 @@ declare class Core {
|
|
|
7200
7200
|
orders?: {
|
|
7201
7201
|
id: string;
|
|
7202
7202
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7203
|
-
status: "CANCELLED" | "
|
|
7203
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7204
7204
|
createdAt: string;
|
|
7205
7205
|
updatedAt: string;
|
|
7206
7206
|
type: "MARKET";
|
|
@@ -7214,7 +7214,7 @@ declare class Core {
|
|
|
7214
7214
|
errorCode?: string | undefined;
|
|
7215
7215
|
filledPrice?: string | undefined;
|
|
7216
7216
|
}[] | undefined;
|
|
7217
|
-
fulfillment?: "NONE" | "
|
|
7217
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7218
7218
|
position?: {
|
|
7219
7219
|
id: string;
|
|
7220
7220
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7231,7 +7231,7 @@ declare class Core {
|
|
|
7231
7231
|
orders?: {
|
|
7232
7232
|
id: string;
|
|
7233
7233
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7234
|
-
status: "CANCELLED" | "
|
|
7234
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7235
7235
|
createdAt: string;
|
|
7236
7236
|
updatedAt: string;
|
|
7237
7237
|
type: "MARKET";
|
|
@@ -7245,7 +7245,7 @@ declare class Core {
|
|
|
7245
7245
|
errorCode?: string | undefined;
|
|
7246
7246
|
filledPrice?: string | undefined;
|
|
7247
7247
|
}[] | undefined;
|
|
7248
|
-
fulfillment?: "NONE" | "
|
|
7248
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7249
7249
|
position?: {
|
|
7250
7250
|
id: string;
|
|
7251
7251
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7282,7 +7282,7 @@ declare class Core {
|
|
|
7282
7282
|
orders?: {
|
|
7283
7283
|
id: string;
|
|
7284
7284
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7285
|
-
status: "CANCELLED" | "
|
|
7285
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7286
7286
|
createdAt: string;
|
|
7287
7287
|
updatedAt: string;
|
|
7288
7288
|
type: "MARKET";
|
|
@@ -7296,7 +7296,7 @@ declare class Core {
|
|
|
7296
7296
|
errorCode?: string | undefined;
|
|
7297
7297
|
filledPrice?: string | undefined;
|
|
7298
7298
|
}[] | undefined;
|
|
7299
|
-
fulfillment?: "NONE" | "
|
|
7299
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7300
7300
|
position?: {
|
|
7301
7301
|
id: string;
|
|
7302
7302
|
} | undefined;
|
|
@@ -7329,7 +7329,7 @@ declare class Core {
|
|
|
7329
7329
|
orders?: {
|
|
7330
7330
|
id: string;
|
|
7331
7331
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7332
|
-
status: "CANCELLED" | "
|
|
7332
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7333
7333
|
createdAt: string;
|
|
7334
7334
|
updatedAt: string;
|
|
7335
7335
|
type: "MARKET";
|
|
@@ -7343,7 +7343,7 @@ declare class Core {
|
|
|
7343
7343
|
errorCode?: string | undefined;
|
|
7344
7344
|
filledPrice?: string | undefined;
|
|
7345
7345
|
}[] | undefined;
|
|
7346
|
-
fulfillment?: "NONE" | "
|
|
7346
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7347
7347
|
position?: {
|
|
7348
7348
|
id: string;
|
|
7349
7349
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7360,7 +7360,7 @@ declare class Core {
|
|
|
7360
7360
|
orders?: {
|
|
7361
7361
|
id: string;
|
|
7362
7362
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7363
|
-
status: "CANCELLED" | "
|
|
7363
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7364
7364
|
createdAt: string;
|
|
7365
7365
|
updatedAt: string;
|
|
7366
7366
|
type: "MARKET";
|
|
@@ -7374,7 +7374,7 @@ declare class Core {
|
|
|
7374
7374
|
errorCode?: string | undefined;
|
|
7375
7375
|
filledPrice?: string | undefined;
|
|
7376
7376
|
}[] | undefined;
|
|
7377
|
-
fulfillment?: "NONE" | "
|
|
7377
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7378
7378
|
position?: {
|
|
7379
7379
|
id: string;
|
|
7380
7380
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7391,7 +7391,7 @@ declare class Core {
|
|
|
7391
7391
|
orders?: {
|
|
7392
7392
|
id: string;
|
|
7393
7393
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7394
|
-
status: "CANCELLED" | "
|
|
7394
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7395
7395
|
createdAt: string;
|
|
7396
7396
|
updatedAt: string;
|
|
7397
7397
|
type: "MARKET";
|
|
@@ -7405,7 +7405,7 @@ declare class Core {
|
|
|
7405
7405
|
errorCode?: string | undefined;
|
|
7406
7406
|
filledPrice?: string | undefined;
|
|
7407
7407
|
}[] | undefined;
|
|
7408
|
-
fulfillment?: "NONE" | "
|
|
7408
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7409
7409
|
position?: {
|
|
7410
7410
|
id: string;
|
|
7411
7411
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7442,7 +7442,7 @@ declare class Core {
|
|
|
7442
7442
|
orders?: {
|
|
7443
7443
|
id: string;
|
|
7444
7444
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7445
|
-
status: "CANCELLED" | "
|
|
7445
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7446
7446
|
createdAt: string;
|
|
7447
7447
|
updatedAt: string;
|
|
7448
7448
|
type: "MARKET";
|
|
@@ -7456,7 +7456,7 @@ declare class Core {
|
|
|
7456
7456
|
errorCode?: string | undefined;
|
|
7457
7457
|
filledPrice?: string | undefined;
|
|
7458
7458
|
}[] | undefined;
|
|
7459
|
-
fulfillment?: "NONE" | "
|
|
7459
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7460
7460
|
position?: {
|
|
7461
7461
|
id: string;
|
|
7462
7462
|
} | undefined;
|
|
@@ -7489,7 +7489,7 @@ declare class Core {
|
|
|
7489
7489
|
orders?: {
|
|
7490
7490
|
id: string;
|
|
7491
7491
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7492
|
-
status: "CANCELLED" | "
|
|
7492
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7493
7493
|
createdAt: string;
|
|
7494
7494
|
updatedAt: string;
|
|
7495
7495
|
type: "MARKET";
|
|
@@ -7503,7 +7503,7 @@ declare class Core {
|
|
|
7503
7503
|
errorCode?: string | undefined;
|
|
7504
7504
|
filledPrice?: string | undefined;
|
|
7505
7505
|
}[] | undefined;
|
|
7506
|
-
fulfillment?: "NONE" | "
|
|
7506
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7507
7507
|
position?: {
|
|
7508
7508
|
id: string;
|
|
7509
7509
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7520,7 +7520,7 @@ declare class Core {
|
|
|
7520
7520
|
orders?: {
|
|
7521
7521
|
id: string;
|
|
7522
7522
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7523
|
-
status: "CANCELLED" | "
|
|
7523
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7524
7524
|
createdAt: string;
|
|
7525
7525
|
updatedAt: string;
|
|
7526
7526
|
type: "MARKET";
|
|
@@ -7534,7 +7534,7 @@ declare class Core {
|
|
|
7534
7534
|
errorCode?: string | undefined;
|
|
7535
7535
|
filledPrice?: string | undefined;
|
|
7536
7536
|
}[] | undefined;
|
|
7537
|
-
fulfillment?: "NONE" | "
|
|
7537
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7538
7538
|
position?: {
|
|
7539
7539
|
id: string;
|
|
7540
7540
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7551,7 +7551,7 @@ declare class Core {
|
|
|
7551
7551
|
orders?: {
|
|
7552
7552
|
id: string;
|
|
7553
7553
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7554
|
-
status: "CANCELLED" | "
|
|
7554
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7555
7555
|
createdAt: string;
|
|
7556
7556
|
updatedAt: string;
|
|
7557
7557
|
type: "MARKET";
|
|
@@ -7565,7 +7565,7 @@ declare class Core {
|
|
|
7565
7565
|
errorCode?: string | undefined;
|
|
7566
7566
|
filledPrice?: string | undefined;
|
|
7567
7567
|
}[] | undefined;
|
|
7568
|
-
fulfillment?: "NONE" | "
|
|
7568
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7569
7569
|
position?: {
|
|
7570
7570
|
id: string;
|
|
7571
7571
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7602,7 +7602,7 @@ declare class Core {
|
|
|
7602
7602
|
orders?: {
|
|
7603
7603
|
id: string;
|
|
7604
7604
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7605
|
-
status: "CANCELLED" | "
|
|
7605
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7606
7606
|
createdAt: string;
|
|
7607
7607
|
updatedAt: string;
|
|
7608
7608
|
type: "MARKET";
|
|
@@ -7616,7 +7616,7 @@ declare class Core {
|
|
|
7616
7616
|
errorCode?: string | undefined;
|
|
7617
7617
|
filledPrice?: string | undefined;
|
|
7618
7618
|
}[] | undefined;
|
|
7619
|
-
fulfillment?: "NONE" | "
|
|
7619
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7620
7620
|
position?: {
|
|
7621
7621
|
id: string;
|
|
7622
7622
|
} | undefined;
|
|
@@ -7649,7 +7649,7 @@ declare class Core {
|
|
|
7649
7649
|
orders?: {
|
|
7650
7650
|
id: string;
|
|
7651
7651
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7652
|
-
status: "CANCELLED" | "
|
|
7652
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7653
7653
|
createdAt: string;
|
|
7654
7654
|
updatedAt: string;
|
|
7655
7655
|
type: "MARKET";
|
|
@@ -7663,7 +7663,7 @@ declare class Core {
|
|
|
7663
7663
|
errorCode?: string | undefined;
|
|
7664
7664
|
filledPrice?: string | undefined;
|
|
7665
7665
|
}[] | undefined;
|
|
7666
|
-
fulfillment?: "NONE" | "
|
|
7666
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7667
7667
|
position?: {
|
|
7668
7668
|
id: string;
|
|
7669
7669
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7680,7 +7680,7 @@ declare class Core {
|
|
|
7680
7680
|
orders?: {
|
|
7681
7681
|
id: string;
|
|
7682
7682
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7683
|
-
status: "CANCELLED" | "
|
|
7683
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7684
7684
|
createdAt: string;
|
|
7685
7685
|
updatedAt: string;
|
|
7686
7686
|
type: "MARKET";
|
|
@@ -7694,7 +7694,7 @@ declare class Core {
|
|
|
7694
7694
|
errorCode?: string | undefined;
|
|
7695
7695
|
filledPrice?: string | undefined;
|
|
7696
7696
|
}[] | undefined;
|
|
7697
|
-
fulfillment?: "NONE" | "
|
|
7697
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7698
7698
|
position?: {
|
|
7699
7699
|
id: string;
|
|
7700
7700
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -7711,7 +7711,7 @@ declare class Core {
|
|
|
7711
7711
|
orders?: {
|
|
7712
7712
|
id: string;
|
|
7713
7713
|
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7714
|
-
status: "CANCELLED" | "
|
|
7714
|
+
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
7715
7715
|
createdAt: string;
|
|
7716
7716
|
updatedAt: string;
|
|
7717
7717
|
type: "MARKET";
|
|
@@ -7725,7 +7725,7 @@ declare class Core {
|
|
|
7725
7725
|
errorCode?: string | undefined;
|
|
7726
7726
|
filledPrice?: string | undefined;
|
|
7727
7727
|
}[] | undefined;
|
|
7728
|
-
fulfillment?: "NONE" | "
|
|
7728
|
+
fulfillment?: "NONE" | "PENDING" | "PARTIAL" | "COMPLETE" | undefined;
|
|
7729
7729
|
position?: {
|
|
7730
7730
|
id: string;
|
|
7731
7731
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -10193,6 +10193,7 @@ declare class Core {
|
|
|
10193
10193
|
} | {
|
|
10194
10194
|
state: "ACTIVE";
|
|
10195
10195
|
subscription: {
|
|
10196
|
+
createdAt: string;
|
|
10196
10197
|
id: string;
|
|
10197
10198
|
leaderTradeAccountId: string;
|
|
10198
10199
|
followerTradeAccountId: string;
|
|
@@ -10200,7 +10201,6 @@ declare class Core {
|
|
|
10200
10201
|
sizing: {
|
|
10201
10202
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10202
10203
|
};
|
|
10203
|
-
createdAt: string;
|
|
10204
10204
|
status: "ACTIVE";
|
|
10205
10205
|
volume: string;
|
|
10206
10206
|
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
@@ -10209,7 +10209,117 @@ declare class Core {
|
|
|
10209
10209
|
tradeFee: `-${string}` | `+${string}`;
|
|
10210
10210
|
pearFee: `-${string}` | `+${string}`;
|
|
10211
10211
|
totalNetPnl: `-${string}` | `+${string}`;
|
|
10212
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10213
|
+
provisional?: true | undefined;
|
|
10214
|
+
latestFillAt?: string | undefined;
|
|
10212
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;
|
|
10213
10323
|
};
|
|
10214
10324
|
}>;
|
|
10215
10325
|
/** Read all active followers of an owned leader account. */
|
|
@@ -10245,6 +10355,7 @@ declare class Core {
|
|
|
10245
10355
|
/** Read subscription history, optionally by status; use copy.state for one account's current relationship. */
|
|
10246
10356
|
listSubscriptions: (headers?: ClientHeaders, query?: HttpTypes.CopySubscriptionListQueryInput) => Promise<{
|
|
10247
10357
|
subscriptions: ({
|
|
10358
|
+
createdAt: string;
|
|
10248
10359
|
id: string;
|
|
10249
10360
|
leaderTradeAccountId: string;
|
|
10250
10361
|
followerTradeAccountId: string;
|
|
@@ -10252,7 +10363,6 @@ declare class Core {
|
|
|
10252
10363
|
sizing: {
|
|
10253
10364
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10254
10365
|
};
|
|
10255
|
-
createdAt: string;
|
|
10256
10366
|
status: "ACTIVE";
|
|
10257
10367
|
volume: string;
|
|
10258
10368
|
grossRealizedPnl: `-${string}` | `+${string}`;
|
|
@@ -10261,8 +10371,119 @@ declare class Core {
|
|
|
10261
10371
|
tradeFee: `-${string}` | `+${string}`;
|
|
10262
10372
|
pearFee: `-${string}` | `+${string}`;
|
|
10263
10373
|
totalNetPnl: `-${string}` | `+${string}`;
|
|
10374
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10375
|
+
provisional?: true | undefined;
|
|
10376
|
+
latestFillAt?: string | undefined;
|
|
10264
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;
|
|
10265
10485
|
} | {
|
|
10486
|
+
createdAt: string;
|
|
10266
10487
|
id: string;
|
|
10267
10488
|
leaderTradeAccountId: string;
|
|
10268
10489
|
followerTradeAccountId: string;
|
|
@@ -10270,15 +10491,131 @@ declare class Core {
|
|
|
10270
10491
|
sizing: {
|
|
10271
10492
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10272
10493
|
};
|
|
10273
|
-
createdAt: string;
|
|
10274
10494
|
status: "ENDED";
|
|
10275
10495
|
volume: string;
|
|
10496
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10497
|
+
provisional?: true | undefined;
|
|
10498
|
+
latestFillAt?: string | undefined;
|
|
10276
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;
|
|
10277
10613
|
})[];
|
|
10278
10614
|
}>;
|
|
10279
10615
|
/** Start copying into the account selected by x-trade-account-id, syncing existing positions by default. */
|
|
10280
10616
|
subscribe: (body: HttpTypes.CreateCopySubscriptionInput, headers?: ClientHeaders) => Promise<{
|
|
10281
10617
|
subscription: {
|
|
10618
|
+
createdAt: string;
|
|
10282
10619
|
id: string;
|
|
10283
10620
|
leaderTradeAccountId: string;
|
|
10284
10621
|
followerTradeAccountId: string;
|
|
@@ -10287,8 +10624,123 @@ declare class Core {
|
|
|
10287
10624
|
sizing: {
|
|
10288
10625
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10289
10626
|
};
|
|
10290
|
-
|
|
10627
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10628
|
+
provisional?: true | undefined;
|
|
10629
|
+
latestFillAt?: string | undefined;
|
|
10291
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;
|
|
10292
10744
|
};
|
|
10293
10745
|
joinResults: ({
|
|
10294
10746
|
leaderPositionId: string;
|
|
@@ -10315,6 +10767,7 @@ declare class Core {
|
|
|
10315
10767
|
/** Stop copying while retaining existing positions under follower control. */
|
|
10316
10768
|
unsubscribe: (id: string, headers?: ClientHeaders) => Promise<{
|
|
10317
10769
|
subscription: {
|
|
10770
|
+
createdAt: string;
|
|
10318
10771
|
id: string;
|
|
10319
10772
|
leaderTradeAccountId: string;
|
|
10320
10773
|
followerTradeAccountId: string;
|
|
@@ -10323,8 +10776,123 @@ declare class Core {
|
|
|
10323
10776
|
sizing: {
|
|
10324
10777
|
mode: "LEADER_EQUITY_FRACTION";
|
|
10325
10778
|
};
|
|
10326
|
-
|
|
10779
|
+
roi?: `-${string}` | `+${string}` | undefined;
|
|
10780
|
+
provisional?: true | undefined;
|
|
10781
|
+
latestFillAt?: string | undefined;
|
|
10327
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;
|
|
10328
10896
|
};
|
|
10329
10897
|
}>;
|
|
10330
10898
|
activities: (id: string, query?: HttpTypes.CopyActivityListParamsInput, headers?: ClientHeaders) => Promise<{
|
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
|
},
|