@pear-protocol/types 2.1.0 → 2.3.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/bundle.d.ts +1 -0
- package/dist/bundle.js +1 -0
- package/dist/connector/index.d.ts +2 -0
- package/dist/connector/index.js +2 -1
- package/dist/execution/entities.d.ts +26 -0
- package/dist/execution/queries.d.ts +1 -0
- package/dist/execution/responses.d.ts +16 -0
- package/dist/fee/entities.d.ts +1 -0
- package/dist/fee/queries.d.ts +1 -0
- package/dist/fill/entities.d.ts +1 -0
- package/dist/fill/queries.d.ts +1 -0
- package/dist/fill/responses.d.ts +2 -0
- package/dist/funding/queries.d.ts +1 -0
- package/dist/instrument/entities.d.ts +1 -0
- package/dist/instrument/queries.d.ts +1 -0
- package/dist/instrument/responses.d.ts +1 -0
- package/dist/ladder/entities.d.ts +16 -0
- package/dist/ladder/queries.d.ts +1 -0
- package/dist/ladder/responses.d.ts +48 -0
- package/dist/market/entities.d.ts +2 -0
- package/dist/market/payloads.d.ts +1 -0
- package/dist/market/queries.d.ts +2 -0
- package/dist/market/responses.d.ts +2 -0
- package/dist/notification/entities.d.ts +24 -0
- package/dist/notification/responses.d.ts +12 -0
- package/dist/order/entities.d.ts +2 -0
- package/dist/position/entities.d.ts +123 -0
- package/dist/position/entities.js +38 -1
- package/dist/position/queries.d.ts +29 -0
- package/dist/position/queries.js +12 -1
- package/dist/position/responses.d.ts +96 -0
- package/dist/position/responses.js +11 -2
- package/dist/price/queries.d.ts +1 -0
- package/dist/schedule/entities.d.ts +10 -0
- package/dist/schedule/queries.d.ts +1 -0
- package/dist/schedule/responses.d.ts +8 -0
- package/dist/statistics/entities.d.ts +1 -0
- package/dist/statistics/queries.d.ts +5 -1
- package/dist/statistics/responses.d.ts +1 -0
- package/dist/sync/payloads.d.ts +13 -0
- package/dist/tca/responses.d.ts +10 -0
- package/dist/trade/entities.d.ts +3 -0
- package/dist/trade/responses.d.ts +42 -0
- package/dist/trade-accounts/entities.d.ts +1 -0
- package/dist/trade-accounts/payloads.d.ts +21 -0
- package/dist/trade-accounts/payloads.js +10 -2
- package/dist/trade-accounts/response.d.ts +42 -0
- package/dist/trade-accounts/response.js +5 -1
- package/dist/trigger/entities/conditions.d.ts +4 -0
- package/dist/trigger/entities/index.d.ts +47 -0
- package/dist/trigger/payloads/conditions.d.ts +1 -0
- package/dist/trigger/payloads/index.d.ts +6 -0
- package/dist/trigger/queries.d.ts +1 -0
- package/dist/trigger/responses.d.ts +30 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ export declare const VolumeStatisticsQueryParams: z.ZodObject<{
|
|
|
6
6
|
bybit: "bybit";
|
|
7
7
|
okx: "okx";
|
|
8
8
|
lighter: "lighter";
|
|
9
|
+
lighter_rhc: "lighter_rhc";
|
|
9
10
|
}>>;
|
|
10
11
|
resolution: z.ZodEnum<{
|
|
11
12
|
"1h": "1h";
|
|
@@ -25,6 +26,7 @@ export declare const OiStatisticsQueryParams: z.ZodObject<{
|
|
|
25
26
|
bybit: "bybit";
|
|
26
27
|
okx: "okx";
|
|
27
28
|
lighter: "lighter";
|
|
29
|
+
lighter_rhc: "lighter_rhc";
|
|
28
30
|
}>>;
|
|
29
31
|
resolution: z.ZodEnum<{
|
|
30
32
|
"1h": "1h";
|
|
@@ -44,6 +46,7 @@ export declare const StatisticsTotalsQueryParams: z.ZodObject<{
|
|
|
44
46
|
bybit: "bybit";
|
|
45
47
|
okx: "okx";
|
|
46
48
|
lighter: "lighter";
|
|
49
|
+
lighter_rhc: "lighter_rhc";
|
|
47
50
|
}>>;
|
|
48
51
|
clientId: z.ZodOptional<z.ZodString>;
|
|
49
52
|
}, z.core.$strip>;
|
|
@@ -59,12 +62,13 @@ export type LeaderboardSortBy = z.infer<typeof LeaderboardSortBy>;
|
|
|
59
62
|
export declare const LEADERBOARD_MAX_LIMIT = 200;
|
|
60
63
|
export declare const LeaderboardQueryParams: z.ZodObject<{
|
|
61
64
|
clientId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
connector: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("hyperliquid" | "binance" | "bybit" | "okx" | "lighter")[] & any[]) | undefined, ("hyperliquid" | "binance" | "bybit" | "okx" | "lighter")[]>, z.ZodArray<z.ZodEnum<{
|
|
65
|
+
connector: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (("hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc")[] & any[]) | undefined, ("hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc")[]>, z.ZodArray<z.ZodEnum<{
|
|
63
66
|
hyperliquid: "hyperliquid";
|
|
64
67
|
binance: "binance";
|
|
65
68
|
bybit: "bybit";
|
|
66
69
|
okx: "okx";
|
|
67
70
|
lighter: "lighter";
|
|
71
|
+
lighter_rhc: "lighter_rhc";
|
|
68
72
|
}>>>>;
|
|
69
73
|
asset: z.ZodOptional<z.ZodPipe<z.ZodTransform<string[] | (string[] & any[]) | undefined, string[]>, z.ZodArray<z.ZodString>>>;
|
|
70
74
|
sortBy: z.ZodDefault<z.ZodEnum<{
|
package/dist/sync/payloads.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const UnknownExternalFill: z.ZodObject<{
|
|
|
8
8
|
bybit: "bybit";
|
|
9
9
|
okx: "okx";
|
|
10
10
|
lighter: "lighter";
|
|
11
|
+
lighter_rhc: "lighter_rhc";
|
|
11
12
|
}>;
|
|
12
13
|
symbol: z.ZodString;
|
|
13
14
|
price: z.ZodString;
|
|
@@ -35,6 +36,7 @@ export declare const ConfirmableExternalFill: z.ZodObject<{
|
|
|
35
36
|
bybit: "bybit";
|
|
36
37
|
okx: "okx";
|
|
37
38
|
lighter: "lighter";
|
|
39
|
+
lighter_rhc: "lighter_rhc";
|
|
38
40
|
}>;
|
|
39
41
|
symbol: z.ZodString;
|
|
40
42
|
quantity: z.ZodString;
|
|
@@ -51,6 +53,7 @@ export declare const ReconcileReplacementExternalFill: z.ZodObject<{
|
|
|
51
53
|
bybit: "bybit";
|
|
52
54
|
okx: "okx";
|
|
53
55
|
lighter: "lighter";
|
|
56
|
+
lighter_rhc: "lighter_rhc";
|
|
54
57
|
}>;
|
|
55
58
|
symbol: z.ZodString;
|
|
56
59
|
price: z.ZodString;
|
|
@@ -78,6 +81,7 @@ export declare const ConfirmFillsRequest: z.ZodRecord<z.ZodUUID, z.ZodTuple<[z.Z
|
|
|
78
81
|
bybit: "bybit";
|
|
79
82
|
okx: "okx";
|
|
80
83
|
lighter: "lighter";
|
|
84
|
+
lighter_rhc: "lighter_rhc";
|
|
81
85
|
}>;
|
|
82
86
|
symbol: z.ZodString;
|
|
83
87
|
quantity: z.ZodString;
|
|
@@ -95,6 +99,7 @@ export declare const ConfirmFillsRequest: z.ZodRecord<z.ZodUUID, z.ZodTuple<[z.Z
|
|
|
95
99
|
bybit: "bybit";
|
|
96
100
|
okx: "okx";
|
|
97
101
|
lighter: "lighter";
|
|
102
|
+
lighter_rhc: "lighter_rhc";
|
|
98
103
|
}>;
|
|
99
104
|
symbol: z.ZodString;
|
|
100
105
|
quantity: z.ZodString;
|
|
@@ -111,6 +116,7 @@ export declare const ReconcileFillsRequest: z.ZodRecord<z.ZodString, z.ZodTuple<
|
|
|
111
116
|
bybit: "bybit";
|
|
112
117
|
okx: "okx";
|
|
113
118
|
lighter: "lighter";
|
|
119
|
+
lighter_rhc: "lighter_rhc";
|
|
114
120
|
}>;
|
|
115
121
|
symbol: z.ZodString;
|
|
116
122
|
price: z.ZodString;
|
|
@@ -135,6 +141,7 @@ export declare const ReconcileFillsRequest: z.ZodRecord<z.ZodString, z.ZodTuple<
|
|
|
135
141
|
bybit: "bybit";
|
|
136
142
|
okx: "okx";
|
|
137
143
|
lighter: "lighter";
|
|
144
|
+
lighter_rhc: "lighter_rhc";
|
|
138
145
|
}>;
|
|
139
146
|
symbol: z.ZodString;
|
|
140
147
|
price: z.ZodString;
|
|
@@ -159,6 +166,7 @@ export declare const ReconcileFillsRequest: z.ZodRecord<z.ZodString, z.ZodTuple<
|
|
|
159
166
|
bybit: "bybit";
|
|
160
167
|
okx: "okx";
|
|
161
168
|
lighter: "lighter";
|
|
169
|
+
lighter_rhc: "lighter_rhc";
|
|
162
170
|
}>;
|
|
163
171
|
symbol: z.ZodString;
|
|
164
172
|
price: z.ZodString;
|
|
@@ -218,6 +226,7 @@ export declare const ApplicableFill: z.ZodObject<{
|
|
|
218
226
|
bybit: "bybit";
|
|
219
227
|
okx: "okx";
|
|
220
228
|
lighter: "lighter";
|
|
229
|
+
lighter_rhc: "lighter_rhc";
|
|
221
230
|
}>;
|
|
222
231
|
symbol: z.ZodString;
|
|
223
232
|
side: z.ZodEnum<{
|
|
@@ -292,6 +301,7 @@ export declare const ApplicablePosition: z.ZodObject<{
|
|
|
292
301
|
bybit: "bybit";
|
|
293
302
|
okx: "okx";
|
|
294
303
|
lighter: "lighter";
|
|
304
|
+
lighter_rhc: "lighter_rhc";
|
|
295
305
|
}>;
|
|
296
306
|
symbol: z.ZodString;
|
|
297
307
|
side: z.ZodEnum<{
|
|
@@ -385,6 +395,7 @@ export declare const CreateApplicablesRequest: z.ZodObject<{
|
|
|
385
395
|
bybit: "bybit";
|
|
386
396
|
okx: "okx";
|
|
387
397
|
lighter: "lighter";
|
|
398
|
+
lighter_rhc: "lighter_rhc";
|
|
388
399
|
}>;
|
|
389
400
|
symbol: z.ZodString;
|
|
390
401
|
side: z.ZodEnum<{
|
|
@@ -446,6 +457,7 @@ export declare const FundingPaymentEntry: z.ZodObject<{
|
|
|
446
457
|
bybit: "bybit";
|
|
447
458
|
okx: "okx";
|
|
448
459
|
lighter: "lighter";
|
|
460
|
+
lighter_rhc: "lighter_rhc";
|
|
449
461
|
}>;
|
|
450
462
|
instrumentId: z.ZodString;
|
|
451
463
|
fundingRate: z.ZodString;
|
|
@@ -466,6 +478,7 @@ export declare const CreateFundingPaymentsRequest: z.ZodObject<{
|
|
|
466
478
|
bybit: "bybit";
|
|
467
479
|
okx: "okx";
|
|
468
480
|
lighter: "lighter";
|
|
481
|
+
lighter_rhc: "lighter_rhc";
|
|
469
482
|
}>;
|
|
470
483
|
instrumentId: z.ZodString;
|
|
471
484
|
fundingRate: z.ZodString;
|
package/dist/tca/responses.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const TcaBenchmarkResponse: z.ZodObject<{
|
|
|
11
11
|
bybit: "bybit";
|
|
12
12
|
okx: "okx";
|
|
13
13
|
lighter: "lighter";
|
|
14
|
+
lighter_rhc: "lighter_rhc";
|
|
14
15
|
}>;
|
|
15
16
|
symbol: z.ZodString;
|
|
16
17
|
side: z.ZodEnum<{
|
|
@@ -43,6 +44,7 @@ export declare const TcaFillMetricResponse: z.ZodObject<{
|
|
|
43
44
|
bybit: "bybit";
|
|
44
45
|
okx: "okx";
|
|
45
46
|
lighter: "lighter";
|
|
47
|
+
lighter_rhc: "lighter_rhc";
|
|
46
48
|
}>;
|
|
47
49
|
symbol: z.ZodString;
|
|
48
50
|
cloid: z.ZodOptional<z.ZodString>;
|
|
@@ -83,6 +85,7 @@ export declare const TcaFillMetricResponse: z.ZodObject<{
|
|
|
83
85
|
bybit: "bybit";
|
|
84
86
|
okx: "okx";
|
|
85
87
|
lighter: "lighter";
|
|
88
|
+
lighter_rhc: "lighter_rhc";
|
|
86
89
|
}>;
|
|
87
90
|
symbol: z.ZodString;
|
|
88
91
|
side: z.ZodEnum<{
|
|
@@ -152,6 +155,7 @@ export declare const TcaExecutionSummaryResponse: z.ZodObject<{
|
|
|
152
155
|
bybit: "bybit";
|
|
153
156
|
okx: "okx";
|
|
154
157
|
lighter: "lighter";
|
|
158
|
+
lighter_rhc: "lighter_rhc";
|
|
155
159
|
}>;
|
|
156
160
|
executionContext: z.ZodOptional<z.ZodObject<{
|
|
157
161
|
intent: z.ZodEnum<{
|
|
@@ -206,6 +210,7 @@ export declare const TcaExecutionResponse: z.ZodObject<{
|
|
|
206
210
|
bybit: "bybit";
|
|
207
211
|
okx: "okx";
|
|
208
212
|
lighter: "lighter";
|
|
213
|
+
lighter_rhc: "lighter_rhc";
|
|
209
214
|
}>;
|
|
210
215
|
executionContext: z.ZodOptional<z.ZodObject<{
|
|
211
216
|
intent: z.ZodEnum<{
|
|
@@ -261,6 +266,7 @@ export declare const TcaExecutionResponse: z.ZodObject<{
|
|
|
261
266
|
bybit: "bybit";
|
|
262
267
|
okx: "okx";
|
|
263
268
|
lighter: "lighter";
|
|
269
|
+
lighter_rhc: "lighter_rhc";
|
|
264
270
|
}>;
|
|
265
271
|
symbol: z.ZodString;
|
|
266
272
|
cloid: z.ZodOptional<z.ZodString>;
|
|
@@ -301,6 +307,7 @@ export declare const TcaExecutionResponse: z.ZodObject<{
|
|
|
301
307
|
bybit: "bybit";
|
|
302
308
|
okx: "okx";
|
|
303
309
|
lighter: "lighter";
|
|
310
|
+
lighter_rhc: "lighter_rhc";
|
|
304
311
|
}>;
|
|
305
312
|
symbol: z.ZodString;
|
|
306
313
|
side: z.ZodEnum<{
|
|
@@ -338,6 +345,7 @@ export declare const TcaPositionResponse: z.ZodObject<{
|
|
|
338
345
|
bybit: "bybit";
|
|
339
346
|
okx: "okx";
|
|
340
347
|
lighter: "lighter";
|
|
348
|
+
lighter_rhc: "lighter_rhc";
|
|
341
349
|
}>;
|
|
342
350
|
symbol: z.ZodString;
|
|
343
351
|
cloid: z.ZodOptional<z.ZodString>;
|
|
@@ -378,6 +386,7 @@ export declare const TcaPositionResponse: z.ZodObject<{
|
|
|
378
386
|
bybit: "bybit";
|
|
379
387
|
okx: "okx";
|
|
380
388
|
lighter: "lighter";
|
|
389
|
+
lighter_rhc: "lighter_rhc";
|
|
381
390
|
}>;
|
|
382
391
|
symbol: z.ZodString;
|
|
383
392
|
side: z.ZodEnum<{
|
|
@@ -424,6 +433,7 @@ export declare const TcaSummaryResponse: z.ZodObject<{
|
|
|
424
433
|
bybit: "bybit";
|
|
425
434
|
okx: "okx";
|
|
426
435
|
lighter: "lighter";
|
|
436
|
+
lighter_rhc: "lighter_rhc";
|
|
427
437
|
}>;
|
|
428
438
|
executionContext: z.ZodOptional<z.ZodObject<{
|
|
429
439
|
intent: z.ZodEnum<{
|
package/dist/trade/entities.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export declare const TradeFill: z.ZodObject<{
|
|
|
84
84
|
bybit: "bybit";
|
|
85
85
|
okx: "okx";
|
|
86
86
|
lighter: "lighter";
|
|
87
|
+
lighter_rhc: "lighter_rhc";
|
|
87
88
|
}>;
|
|
88
89
|
side: z.ZodEnum<{
|
|
89
90
|
BUY: "BUY";
|
|
@@ -182,6 +183,7 @@ export declare const TradeGroup: z.ZodObject<{
|
|
|
182
183
|
bybit: "bybit";
|
|
183
184
|
okx: "okx";
|
|
184
185
|
lighter: "lighter";
|
|
186
|
+
lighter_rhc: "lighter_rhc";
|
|
185
187
|
}>;
|
|
186
188
|
at: z.ZodISODateTime;
|
|
187
189
|
netCashflow: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
@@ -195,6 +197,7 @@ export declare const TradeGroup: z.ZodObject<{
|
|
|
195
197
|
bybit: "bybit";
|
|
196
198
|
okx: "okx";
|
|
197
199
|
lighter: "lighter";
|
|
200
|
+
lighter_rhc: "lighter_rhc";
|
|
198
201
|
}>;
|
|
199
202
|
side: z.ZodEnum<{
|
|
200
203
|
BUY: "BUY";
|
|
@@ -8,6 +8,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
8
8
|
bybit: "bybit";
|
|
9
9
|
okx: "okx";
|
|
10
10
|
lighter: "lighter";
|
|
11
|
+
lighter_rhc: "lighter_rhc";
|
|
11
12
|
}>;
|
|
12
13
|
status: z.ZodEnum<{
|
|
13
14
|
CANCELLED: "CANCELLED";
|
|
@@ -27,6 +28,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
27
28
|
bybit: "bybit";
|
|
28
29
|
okx: "okx";
|
|
29
30
|
lighter: "lighter";
|
|
31
|
+
lighter_rhc: "lighter_rhc";
|
|
30
32
|
}>;
|
|
31
33
|
status: z.ZodEnum<{
|
|
32
34
|
PENDING: "PENDING";
|
|
@@ -88,6 +90,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
88
90
|
bybit: "bybit";
|
|
89
91
|
okx: "okx";
|
|
90
92
|
lighter: "lighter";
|
|
93
|
+
lighter_rhc: "lighter_rhc";
|
|
91
94
|
}>;
|
|
92
95
|
status: z.ZodEnum<{
|
|
93
96
|
CANCELLED: "CANCELLED";
|
|
@@ -107,6 +110,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
107
110
|
bybit: "bybit";
|
|
108
111
|
okx: "okx";
|
|
109
112
|
lighter: "lighter";
|
|
113
|
+
lighter_rhc: "lighter_rhc";
|
|
110
114
|
}>;
|
|
111
115
|
status: z.ZodEnum<{
|
|
112
116
|
PENDING: "PENDING";
|
|
@@ -172,6 +176,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
172
176
|
bybit: "bybit";
|
|
173
177
|
okx: "okx";
|
|
174
178
|
lighter: "lighter";
|
|
179
|
+
lighter_rhc: "lighter_rhc";
|
|
175
180
|
}>;
|
|
176
181
|
status: z.ZodEnum<{
|
|
177
182
|
CANCELLED: "CANCELLED";
|
|
@@ -191,6 +196,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
191
196
|
bybit: "bybit";
|
|
192
197
|
okx: "okx";
|
|
193
198
|
lighter: "lighter";
|
|
199
|
+
lighter_rhc: "lighter_rhc";
|
|
194
200
|
}>;
|
|
195
201
|
status: z.ZodEnum<{
|
|
196
202
|
PENDING: "PENDING";
|
|
@@ -229,6 +235,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
229
235
|
bybit: "bybit";
|
|
230
236
|
okx: "okx";
|
|
231
237
|
lighter: "lighter";
|
|
238
|
+
lighter_rhc: "lighter_rhc";
|
|
232
239
|
}>;
|
|
233
240
|
status: z.ZodEnum<{
|
|
234
241
|
CANCELLED: "CANCELLED";
|
|
@@ -248,6 +255,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
248
255
|
bybit: "bybit";
|
|
249
256
|
okx: "okx";
|
|
250
257
|
lighter: "lighter";
|
|
258
|
+
lighter_rhc: "lighter_rhc";
|
|
251
259
|
}>;
|
|
252
260
|
status: z.ZodEnum<{
|
|
253
261
|
PENDING: "PENDING";
|
|
@@ -290,6 +298,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
290
298
|
bybit: "bybit";
|
|
291
299
|
okx: "okx";
|
|
292
300
|
lighter: "lighter";
|
|
301
|
+
lighter_rhc: "lighter_rhc";
|
|
293
302
|
}>;
|
|
294
303
|
status: z.ZodEnum<{
|
|
295
304
|
CANCELLED: "CANCELLED";
|
|
@@ -309,6 +318,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
309
318
|
bybit: "bybit";
|
|
310
319
|
okx: "okx";
|
|
311
320
|
lighter: "lighter";
|
|
321
|
+
lighter_rhc: "lighter_rhc";
|
|
312
322
|
}>;
|
|
313
323
|
status: z.ZodEnum<{
|
|
314
324
|
PENDING: "PENDING";
|
|
@@ -370,6 +380,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
370
380
|
bybit: "bybit";
|
|
371
381
|
okx: "okx";
|
|
372
382
|
lighter: "lighter";
|
|
383
|
+
lighter_rhc: "lighter_rhc";
|
|
373
384
|
}>;
|
|
374
385
|
status: z.ZodEnum<{
|
|
375
386
|
CANCELLED: "CANCELLED";
|
|
@@ -389,6 +400,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
389
400
|
bybit: "bybit";
|
|
390
401
|
okx: "okx";
|
|
391
402
|
lighter: "lighter";
|
|
403
|
+
lighter_rhc: "lighter_rhc";
|
|
392
404
|
}>;
|
|
393
405
|
status: z.ZodEnum<{
|
|
394
406
|
PENDING: "PENDING";
|
|
@@ -454,6 +466,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
454
466
|
bybit: "bybit";
|
|
455
467
|
okx: "okx";
|
|
456
468
|
lighter: "lighter";
|
|
469
|
+
lighter_rhc: "lighter_rhc";
|
|
457
470
|
}>;
|
|
458
471
|
status: z.ZodEnum<{
|
|
459
472
|
CANCELLED: "CANCELLED";
|
|
@@ -473,6 +486,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
473
486
|
bybit: "bybit";
|
|
474
487
|
okx: "okx";
|
|
475
488
|
lighter: "lighter";
|
|
489
|
+
lighter_rhc: "lighter_rhc";
|
|
476
490
|
}>;
|
|
477
491
|
status: z.ZodEnum<{
|
|
478
492
|
PENDING: "PENDING";
|
|
@@ -511,6 +525,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
511
525
|
bybit: "bybit";
|
|
512
526
|
okx: "okx";
|
|
513
527
|
lighter: "lighter";
|
|
528
|
+
lighter_rhc: "lighter_rhc";
|
|
514
529
|
}>;
|
|
515
530
|
status: z.ZodEnum<{
|
|
516
531
|
CANCELLED: "CANCELLED";
|
|
@@ -530,6 +545,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
530
545
|
bybit: "bybit";
|
|
531
546
|
okx: "okx";
|
|
532
547
|
lighter: "lighter";
|
|
548
|
+
lighter_rhc: "lighter_rhc";
|
|
533
549
|
}>;
|
|
534
550
|
status: z.ZodEnum<{
|
|
535
551
|
PENDING: "PENDING";
|
|
@@ -572,6 +588,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
572
588
|
bybit: "bybit";
|
|
573
589
|
okx: "okx";
|
|
574
590
|
lighter: "lighter";
|
|
591
|
+
lighter_rhc: "lighter_rhc";
|
|
575
592
|
}>;
|
|
576
593
|
status: z.ZodEnum<{
|
|
577
594
|
CANCELLED: "CANCELLED";
|
|
@@ -591,6 +608,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
591
608
|
bybit: "bybit";
|
|
592
609
|
okx: "okx";
|
|
593
610
|
lighter: "lighter";
|
|
611
|
+
lighter_rhc: "lighter_rhc";
|
|
594
612
|
}>;
|
|
595
613
|
status: z.ZodEnum<{
|
|
596
614
|
PENDING: "PENDING";
|
|
@@ -652,6 +670,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
652
670
|
bybit: "bybit";
|
|
653
671
|
okx: "okx";
|
|
654
672
|
lighter: "lighter";
|
|
673
|
+
lighter_rhc: "lighter_rhc";
|
|
655
674
|
}>;
|
|
656
675
|
status: z.ZodEnum<{
|
|
657
676
|
CANCELLED: "CANCELLED";
|
|
@@ -671,6 +690,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
671
690
|
bybit: "bybit";
|
|
672
691
|
okx: "okx";
|
|
673
692
|
lighter: "lighter";
|
|
693
|
+
lighter_rhc: "lighter_rhc";
|
|
674
694
|
}>;
|
|
675
695
|
status: z.ZodEnum<{
|
|
676
696
|
PENDING: "PENDING";
|
|
@@ -736,6 +756,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
736
756
|
bybit: "bybit";
|
|
737
757
|
okx: "okx";
|
|
738
758
|
lighter: "lighter";
|
|
759
|
+
lighter_rhc: "lighter_rhc";
|
|
739
760
|
}>;
|
|
740
761
|
status: z.ZodEnum<{
|
|
741
762
|
CANCELLED: "CANCELLED";
|
|
@@ -755,6 +776,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
755
776
|
bybit: "bybit";
|
|
756
777
|
okx: "okx";
|
|
757
778
|
lighter: "lighter";
|
|
779
|
+
lighter_rhc: "lighter_rhc";
|
|
758
780
|
}>;
|
|
759
781
|
status: z.ZodEnum<{
|
|
760
782
|
PENDING: "PENDING";
|
|
@@ -793,6 +815,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
793
815
|
bybit: "bybit";
|
|
794
816
|
okx: "okx";
|
|
795
817
|
lighter: "lighter";
|
|
818
|
+
lighter_rhc: "lighter_rhc";
|
|
796
819
|
}>;
|
|
797
820
|
status: z.ZodEnum<{
|
|
798
821
|
CANCELLED: "CANCELLED";
|
|
@@ -812,6 +835,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
812
835
|
bybit: "bybit";
|
|
813
836
|
okx: "okx";
|
|
814
837
|
lighter: "lighter";
|
|
838
|
+
lighter_rhc: "lighter_rhc";
|
|
815
839
|
}>;
|
|
816
840
|
status: z.ZodEnum<{
|
|
817
841
|
PENDING: "PENDING";
|
|
@@ -854,6 +878,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
854
878
|
bybit: "bybit";
|
|
855
879
|
okx: "okx";
|
|
856
880
|
lighter: "lighter";
|
|
881
|
+
lighter_rhc: "lighter_rhc";
|
|
857
882
|
}>;
|
|
858
883
|
status: z.ZodEnum<{
|
|
859
884
|
CANCELLED: "CANCELLED";
|
|
@@ -873,6 +898,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
873
898
|
bybit: "bybit";
|
|
874
899
|
okx: "okx";
|
|
875
900
|
lighter: "lighter";
|
|
901
|
+
lighter_rhc: "lighter_rhc";
|
|
876
902
|
}>;
|
|
877
903
|
status: z.ZodEnum<{
|
|
878
904
|
PENDING: "PENDING";
|
|
@@ -934,6 +960,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
934
960
|
bybit: "bybit";
|
|
935
961
|
okx: "okx";
|
|
936
962
|
lighter: "lighter";
|
|
963
|
+
lighter_rhc: "lighter_rhc";
|
|
937
964
|
}>;
|
|
938
965
|
status: z.ZodEnum<{
|
|
939
966
|
CANCELLED: "CANCELLED";
|
|
@@ -953,6 +980,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
953
980
|
bybit: "bybit";
|
|
954
981
|
okx: "okx";
|
|
955
982
|
lighter: "lighter";
|
|
983
|
+
lighter_rhc: "lighter_rhc";
|
|
956
984
|
}>;
|
|
957
985
|
status: z.ZodEnum<{
|
|
958
986
|
PENDING: "PENDING";
|
|
@@ -1018,6 +1046,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1018
1046
|
bybit: "bybit";
|
|
1019
1047
|
okx: "okx";
|
|
1020
1048
|
lighter: "lighter";
|
|
1049
|
+
lighter_rhc: "lighter_rhc";
|
|
1021
1050
|
}>;
|
|
1022
1051
|
status: z.ZodEnum<{
|
|
1023
1052
|
CANCELLED: "CANCELLED";
|
|
@@ -1037,6 +1066,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1037
1066
|
bybit: "bybit";
|
|
1038
1067
|
okx: "okx";
|
|
1039
1068
|
lighter: "lighter";
|
|
1069
|
+
lighter_rhc: "lighter_rhc";
|
|
1040
1070
|
}>;
|
|
1041
1071
|
status: z.ZodEnum<{
|
|
1042
1072
|
PENDING: "PENDING";
|
|
@@ -1075,6 +1105,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1075
1105
|
bybit: "bybit";
|
|
1076
1106
|
okx: "okx";
|
|
1077
1107
|
lighter: "lighter";
|
|
1108
|
+
lighter_rhc: "lighter_rhc";
|
|
1078
1109
|
}>;
|
|
1079
1110
|
status: z.ZodEnum<{
|
|
1080
1111
|
CANCELLED: "CANCELLED";
|
|
@@ -1094,6 +1125,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
|
|
|
1094
1125
|
bybit: "bybit";
|
|
1095
1126
|
okx: "okx";
|
|
1096
1127
|
lighter: "lighter";
|
|
1128
|
+
lighter_rhc: "lighter_rhc";
|
|
1097
1129
|
}>;
|
|
1098
1130
|
status: z.ZodEnum<{
|
|
1099
1131
|
PENDING: "PENDING";
|
|
@@ -1136,6 +1168,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1136
1168
|
bybit: "bybit";
|
|
1137
1169
|
okx: "okx";
|
|
1138
1170
|
lighter: "lighter";
|
|
1171
|
+
lighter_rhc: "lighter_rhc";
|
|
1139
1172
|
}>;
|
|
1140
1173
|
status: z.ZodEnum<{
|
|
1141
1174
|
CANCELLED: "CANCELLED";
|
|
@@ -1155,6 +1188,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1155
1188
|
bybit: "bybit";
|
|
1156
1189
|
okx: "okx";
|
|
1157
1190
|
lighter: "lighter";
|
|
1191
|
+
lighter_rhc: "lighter_rhc";
|
|
1158
1192
|
}>;
|
|
1159
1193
|
status: z.ZodEnum<{
|
|
1160
1194
|
PENDING: "PENDING";
|
|
@@ -1216,6 +1250,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1216
1250
|
bybit: "bybit";
|
|
1217
1251
|
okx: "okx";
|
|
1218
1252
|
lighter: "lighter";
|
|
1253
|
+
lighter_rhc: "lighter_rhc";
|
|
1219
1254
|
}>;
|
|
1220
1255
|
status: z.ZodEnum<{
|
|
1221
1256
|
CANCELLED: "CANCELLED";
|
|
@@ -1235,6 +1270,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1235
1270
|
bybit: "bybit";
|
|
1236
1271
|
okx: "okx";
|
|
1237
1272
|
lighter: "lighter";
|
|
1273
|
+
lighter_rhc: "lighter_rhc";
|
|
1238
1274
|
}>;
|
|
1239
1275
|
status: z.ZodEnum<{
|
|
1240
1276
|
PENDING: "PENDING";
|
|
@@ -1300,6 +1336,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1300
1336
|
bybit: "bybit";
|
|
1301
1337
|
okx: "okx";
|
|
1302
1338
|
lighter: "lighter";
|
|
1339
|
+
lighter_rhc: "lighter_rhc";
|
|
1303
1340
|
}>;
|
|
1304
1341
|
status: z.ZodEnum<{
|
|
1305
1342
|
CANCELLED: "CANCELLED";
|
|
@@ -1319,6 +1356,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1319
1356
|
bybit: "bybit";
|
|
1320
1357
|
okx: "okx";
|
|
1321
1358
|
lighter: "lighter";
|
|
1359
|
+
lighter_rhc: "lighter_rhc";
|
|
1322
1360
|
}>;
|
|
1323
1361
|
status: z.ZodEnum<{
|
|
1324
1362
|
PENDING: "PENDING";
|
|
@@ -1357,6 +1395,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1357
1395
|
bybit: "bybit";
|
|
1358
1396
|
okx: "okx";
|
|
1359
1397
|
lighter: "lighter";
|
|
1398
|
+
lighter_rhc: "lighter_rhc";
|
|
1360
1399
|
}>;
|
|
1361
1400
|
status: z.ZodEnum<{
|
|
1362
1401
|
CANCELLED: "CANCELLED";
|
|
@@ -1376,6 +1415,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
1376
1415
|
bybit: "bybit";
|
|
1377
1416
|
okx: "okx";
|
|
1378
1417
|
lighter: "lighter";
|
|
1418
|
+
lighter_rhc: "lighter_rhc";
|
|
1379
1419
|
}>;
|
|
1380
1420
|
status: z.ZodEnum<{
|
|
1381
1421
|
PENDING: "PENDING";
|
|
@@ -1424,6 +1464,7 @@ export declare const TradeListResponse: z.ZodObject<{
|
|
|
1424
1464
|
bybit: "bybit";
|
|
1425
1465
|
okx: "okx";
|
|
1426
1466
|
lighter: "lighter";
|
|
1467
|
+
lighter_rhc: "lighter_rhc";
|
|
1427
1468
|
}>;
|
|
1428
1469
|
at: z.ZodISODateTime;
|
|
1429
1470
|
netCashflow: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
|
|
@@ -1437,6 +1478,7 @@ export declare const TradeListResponse: z.ZodObject<{
|
|
|
1437
1478
|
bybit: "bybit";
|
|
1438
1479
|
okx: "okx";
|
|
1439
1480
|
lighter: "lighter";
|
|
1481
|
+
lighter_rhc: "lighter_rhc";
|
|
1440
1482
|
}>;
|
|
1441
1483
|
side: z.ZodEnum<{
|
|
1442
1484
|
BUY: "BUY";
|
|
@@ -108,6 +108,17 @@ export declare const CreateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
108
108
|
metadata: z.ZodObject<{
|
|
109
109
|
l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
110
110
|
}, z.core.$strip>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
alias: z.ZodString;
|
|
113
|
+
exchangeIdentifier: z.ZodString;
|
|
114
|
+
credentials: z.ZodObject<{
|
|
115
|
+
api_private_key: z.ZodString;
|
|
116
|
+
api_key_index: z.ZodNumber;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
metadata: z.ZodObject<{
|
|
119
|
+
l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
connector: z.ZodLiteral<"lighter_rhc">;
|
|
111
122
|
}, z.core.$strip>], "connector">;
|
|
112
123
|
/**
|
|
113
124
|
* Payload to create a Pear-vault-backed Hyperliquid trade account. The backend
|
|
@@ -174,6 +185,16 @@ export declare const UpdateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
174
185
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
175
186
|
l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
176
187
|
}, z.core.$strip>>;
|
|
188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
189
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
190
|
+
credentials: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
api_private_key: z.ZodString;
|
|
192
|
+
api_key_index: z.ZodNumber;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
connector: z.ZodLiteral<"lighter_rhc">;
|
|
177
198
|
}, z.core.$strip>], "connector">;
|
|
178
199
|
export type CreateHyperliquidCredentials = z.infer<typeof CreateHyperliquidCredentials>;
|
|
179
200
|
export type CreateHyperliquidMetadata = z.infer<typeof CreateHyperliquidMetadata>;
|
|
@@ -67,6 +67,9 @@ const CreateLighterAccount = z.object({
|
|
|
67
67
|
credentials: CreateLighterCredentials,
|
|
68
68
|
metadata: CreateLighterMetadata
|
|
69
69
|
});
|
|
70
|
+
const CreateLighterRhcAccount = CreateLighterAccount.extend({
|
|
71
|
+
connector: z.literal("lighter_rhc")
|
|
72
|
+
});
|
|
70
73
|
const UpdateHyperliquidAccount = z.object({
|
|
71
74
|
connector: z.literal("hyperliquid"),
|
|
72
75
|
alias: AccountAlias.optional(),
|
|
@@ -97,12 +100,16 @@ const UpdateLighterAccount = z.object({
|
|
|
97
100
|
credentials: CreateLighterCredentials.optional(),
|
|
98
101
|
metadata: CreateLighterMetadata.optional()
|
|
99
102
|
});
|
|
103
|
+
const UpdateLighterRhcAccount = UpdateLighterAccount.extend({
|
|
104
|
+
connector: z.literal("lighter_rhc")
|
|
105
|
+
});
|
|
100
106
|
const CreateTradeAccount = z.discriminatedUnion("connector", [
|
|
101
107
|
CreateHyperliquidAccount,
|
|
102
108
|
CreateBinanceAccount,
|
|
103
109
|
CreateBybitAccount,
|
|
104
110
|
CreateOkxAccount,
|
|
105
|
-
CreateLighterAccount
|
|
111
|
+
CreateLighterAccount,
|
|
112
|
+
CreateLighterRhcAccount
|
|
106
113
|
]);
|
|
107
114
|
const CreateVaultTradeAccount = z.object({
|
|
108
115
|
vaultAddress: EthereumAddress,
|
|
@@ -118,7 +125,8 @@ const UpdateTradeAccount = z.discriminatedUnion("connector", [
|
|
|
118
125
|
UpdateBinanceAccount,
|
|
119
126
|
UpdateBybitAccount,
|
|
120
127
|
UpdateOkxAccount,
|
|
121
|
-
UpdateLighterAccount
|
|
128
|
+
UpdateLighterAccount,
|
|
129
|
+
UpdateLighterRhcAccount
|
|
122
130
|
]);
|
|
123
131
|
|
|
124
132
|
export { CreateTradeAccount, CreateVaultTradeAccount, UpdateTradeAccount };
|