@pear-protocol/core-sdk 2.0.0 → 2.2.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/auth/index.d.ts +4 -4
- package/dist/core/index.d.ts +370 -230
- package/dist/core/index.js +70 -30
- package/dist/index.d.ts +3 -1
- package/dist/index.js +10 -3
- package/dist/types.d.ts +11 -0
- package/package.json +3 -3
package/dist/core/index.d.ts
CHANGED
|
@@ -13,7 +13,8 @@ declare class Core {
|
|
|
13
13
|
accounts: {
|
|
14
14
|
id: string;
|
|
15
15
|
alias: string;
|
|
16
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
16
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
17
|
+
kind: "vault" | "eoa";
|
|
17
18
|
exchangeIdentifier: string;
|
|
18
19
|
createdAt: string;
|
|
19
20
|
updatedAt: string;
|
|
@@ -31,7 +32,8 @@ declare class Core {
|
|
|
31
32
|
account: {
|
|
32
33
|
id: string;
|
|
33
34
|
alias: string;
|
|
34
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
35
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
36
|
+
kind: "vault" | "eoa";
|
|
35
37
|
exchangeIdentifier: string;
|
|
36
38
|
createdAt: string;
|
|
37
39
|
updatedAt: string;
|
|
@@ -49,7 +51,8 @@ declare class Core {
|
|
|
49
51
|
account: {
|
|
50
52
|
id: string;
|
|
51
53
|
alias: string;
|
|
52
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
54
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
55
|
+
kind: "vault" | "eoa";
|
|
53
56
|
exchangeIdentifier: string;
|
|
54
57
|
createdAt: string;
|
|
55
58
|
updatedAt: string;
|
|
@@ -69,7 +72,8 @@ declare class Core {
|
|
|
69
72
|
account: {
|
|
70
73
|
id: string;
|
|
71
74
|
alias: string;
|
|
72
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
75
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
76
|
+
kind: "vault" | "eoa";
|
|
73
77
|
exchangeIdentifier: string;
|
|
74
78
|
createdAt: string;
|
|
75
79
|
updatedAt: string;
|
|
@@ -90,7 +94,8 @@ declare class Core {
|
|
|
90
94
|
account: {
|
|
91
95
|
id: string;
|
|
92
96
|
alias: string;
|
|
93
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
97
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
98
|
+
kind: "vault" | "eoa";
|
|
94
99
|
exchangeIdentifier: string;
|
|
95
100
|
createdAt: string;
|
|
96
101
|
updatedAt: string;
|
|
@@ -118,7 +123,8 @@ declare class Core {
|
|
|
118
123
|
account: {
|
|
119
124
|
id: string;
|
|
120
125
|
alias: string;
|
|
121
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
126
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
127
|
+
kind: "vault" | "eoa";
|
|
122
128
|
exchangeIdentifier: string;
|
|
123
129
|
createdAt: string;
|
|
124
130
|
updatedAt: string;
|
|
@@ -140,7 +146,8 @@ declare class Core {
|
|
|
140
146
|
account: {
|
|
141
147
|
id: string;
|
|
142
148
|
alias: string;
|
|
143
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
149
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
150
|
+
kind: "vault" | "eoa";
|
|
144
151
|
exchangeIdentifier: string;
|
|
145
152
|
createdAt: string;
|
|
146
153
|
updatedAt: string;
|
|
@@ -163,7 +170,8 @@ declare class Core {
|
|
|
163
170
|
account: {
|
|
164
171
|
id: string;
|
|
165
172
|
alias: string;
|
|
166
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
173
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
174
|
+
kind: "vault" | "eoa";
|
|
167
175
|
exchangeIdentifier: string;
|
|
168
176
|
createdAt: string;
|
|
169
177
|
updatedAt: string;
|
|
@@ -180,14 +188,100 @@ declare class Core {
|
|
|
180
188
|
api_private_key: string;
|
|
181
189
|
api_key_index: number;
|
|
182
190
|
};
|
|
191
|
+
} | {
|
|
192
|
+
account: {
|
|
193
|
+
id: string;
|
|
194
|
+
alias: string;
|
|
195
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
196
|
+
kind: "vault" | "eoa";
|
|
197
|
+
exchangeIdentifier: string;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
metadata?: {
|
|
201
|
+
agentWalletAddress: string;
|
|
202
|
+
isSubaccount: boolean;
|
|
203
|
+
mainAccountAddress: string;
|
|
204
|
+
} | {
|
|
205
|
+
l1_address: string;
|
|
206
|
+
} | undefined;
|
|
207
|
+
deletedAt?: string | undefined;
|
|
208
|
+
};
|
|
209
|
+
credentials: {
|
|
210
|
+
api_private_key: string;
|
|
211
|
+
api_key_index: number;
|
|
212
|
+
};
|
|
213
|
+
connector: "lighter_rhc";
|
|
183
214
|
}>;
|
|
184
215
|
restore: (id: string, headers?: ClientHeaders) => Promise<void>;
|
|
216
|
+
createVault: (body: HttpTypes.CreateVaultTradeAccountInput, headers?: ClientHeaders) => Promise<{
|
|
217
|
+
account: {
|
|
218
|
+
id: string;
|
|
219
|
+
alias: string;
|
|
220
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
221
|
+
kind: "vault" | "eoa";
|
|
222
|
+
exchangeIdentifier: string;
|
|
223
|
+
createdAt: string;
|
|
224
|
+
updatedAt: string;
|
|
225
|
+
metadata?: {
|
|
226
|
+
agentWalletAddress: string;
|
|
227
|
+
isSubaccount: boolean;
|
|
228
|
+
mainAccountAddress: string;
|
|
229
|
+
} | {
|
|
230
|
+
l1_address: string;
|
|
231
|
+
} | undefined;
|
|
232
|
+
deletedAt?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
}>;
|
|
235
|
+
getVaultStatus: (vaultAddress: string, headers?: ClientHeaders) => Promise<{
|
|
236
|
+
status: {
|
|
237
|
+
exists: false;
|
|
238
|
+
} | {
|
|
239
|
+
exists: true;
|
|
240
|
+
tradeAccountId: string;
|
|
241
|
+
account: {
|
|
242
|
+
id: string;
|
|
243
|
+
alias: string;
|
|
244
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
245
|
+
kind: "vault" | "eoa";
|
|
246
|
+
exchangeIdentifier: string;
|
|
247
|
+
createdAt: string;
|
|
248
|
+
updatedAt: string;
|
|
249
|
+
metadata?: {
|
|
250
|
+
agentWalletAddress: string;
|
|
251
|
+
isSubaccount: boolean;
|
|
252
|
+
mainAccountAddress: string;
|
|
253
|
+
} | {
|
|
254
|
+
l1_address: string;
|
|
255
|
+
} | undefined;
|
|
256
|
+
deletedAt?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}>;
|
|
260
|
+
refreshVault: (vaultAddress: string, headers?: ClientHeaders) => Promise<{
|
|
261
|
+
account: {
|
|
262
|
+
id: string;
|
|
263
|
+
alias: string;
|
|
264
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
265
|
+
kind: "vault" | "eoa";
|
|
266
|
+
exchangeIdentifier: string;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
updatedAt: string;
|
|
269
|
+
metadata?: {
|
|
270
|
+
agentWalletAddress: string;
|
|
271
|
+
isSubaccount: boolean;
|
|
272
|
+
mainAccountAddress: string;
|
|
273
|
+
} | {
|
|
274
|
+
l1_address: string;
|
|
275
|
+
} | undefined;
|
|
276
|
+
deletedAt?: string | undefined;
|
|
277
|
+
};
|
|
278
|
+
}>;
|
|
185
279
|
};
|
|
186
280
|
fee: {
|
|
187
281
|
get: (query?: HttpTypes.QuoteFeeParamsInput, headers?: ClientHeaders) => Promise<{
|
|
188
282
|
baseBps: string;
|
|
189
283
|
discounts: {
|
|
190
|
-
scope: "
|
|
284
|
+
scope: "connector" | "all" | "user" | "client_id";
|
|
191
285
|
rate: string;
|
|
192
286
|
}[];
|
|
193
287
|
finalBps: string;
|
|
@@ -308,7 +402,7 @@ declare class Core {
|
|
|
308
402
|
limit: number;
|
|
309
403
|
executions: ({
|
|
310
404
|
id: string;
|
|
311
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
405
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
312
406
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
313
407
|
createdAt: string;
|
|
314
408
|
updatedAt: string;
|
|
@@ -332,7 +426,7 @@ declare class Core {
|
|
|
332
426
|
error?: string | undefined;
|
|
333
427
|
orders?: {
|
|
334
428
|
id: string;
|
|
335
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
429
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
336
430
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
337
431
|
createdAt: string;
|
|
338
432
|
updatedAt: string;
|
|
@@ -349,7 +443,7 @@ declare class Core {
|
|
|
349
443
|
}[] | undefined;
|
|
350
444
|
} | {
|
|
351
445
|
id: string;
|
|
352
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
446
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
353
447
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
354
448
|
createdAt: string;
|
|
355
449
|
updatedAt: string;
|
|
@@ -377,7 +471,7 @@ declare class Core {
|
|
|
377
471
|
error?: string | undefined;
|
|
378
472
|
orders?: {
|
|
379
473
|
id: string;
|
|
380
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
474
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
381
475
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
382
476
|
createdAt: string;
|
|
383
477
|
updatedAt: string;
|
|
@@ -394,7 +488,7 @@ declare class Core {
|
|
|
394
488
|
}[] | undefined;
|
|
395
489
|
} | {
|
|
396
490
|
id: string;
|
|
397
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
491
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
398
492
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
399
493
|
createdAt: string;
|
|
400
494
|
updatedAt: string;
|
|
@@ -407,7 +501,7 @@ declare class Core {
|
|
|
407
501
|
error?: string | undefined;
|
|
408
502
|
orders?: {
|
|
409
503
|
id: string;
|
|
410
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
504
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
411
505
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
412
506
|
createdAt: string;
|
|
413
507
|
updatedAt: string;
|
|
@@ -424,7 +518,7 @@ declare class Core {
|
|
|
424
518
|
}[] | undefined;
|
|
425
519
|
} | {
|
|
426
520
|
id: string;
|
|
427
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
521
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
428
522
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
429
523
|
createdAt: string;
|
|
430
524
|
updatedAt: string;
|
|
@@ -437,7 +531,7 @@ declare class Core {
|
|
|
437
531
|
error?: string | undefined;
|
|
438
532
|
orders?: {
|
|
439
533
|
id: string;
|
|
440
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
534
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
441
535
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
442
536
|
createdAt: string;
|
|
443
537
|
updatedAt: string;
|
|
@@ -458,7 +552,7 @@ declare class Core {
|
|
|
458
552
|
get: (id: string, headers?: ClientHeaders) => Promise<{
|
|
459
553
|
execution: {
|
|
460
554
|
id: string;
|
|
461
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
555
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
462
556
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
463
557
|
createdAt: string;
|
|
464
558
|
updatedAt: string;
|
|
@@ -482,7 +576,7 @@ declare class Core {
|
|
|
482
576
|
error?: string | undefined;
|
|
483
577
|
orders?: {
|
|
484
578
|
id: string;
|
|
485
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
579
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
486
580
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
487
581
|
createdAt: string;
|
|
488
582
|
updatedAt: string;
|
|
@@ -499,7 +593,7 @@ declare class Core {
|
|
|
499
593
|
}[] | undefined;
|
|
500
594
|
} | {
|
|
501
595
|
id: string;
|
|
502
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
596
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
503
597
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
504
598
|
createdAt: string;
|
|
505
599
|
updatedAt: string;
|
|
@@ -527,7 +621,7 @@ declare class Core {
|
|
|
527
621
|
error?: string | undefined;
|
|
528
622
|
orders?: {
|
|
529
623
|
id: string;
|
|
530
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
624
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
531
625
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
532
626
|
createdAt: string;
|
|
533
627
|
updatedAt: string;
|
|
@@ -544,7 +638,7 @@ declare class Core {
|
|
|
544
638
|
}[] | undefined;
|
|
545
639
|
} | {
|
|
546
640
|
id: string;
|
|
547
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
641
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
548
642
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
549
643
|
createdAt: string;
|
|
550
644
|
updatedAt: string;
|
|
@@ -557,7 +651,7 @@ declare class Core {
|
|
|
557
651
|
error?: string | undefined;
|
|
558
652
|
orders?: {
|
|
559
653
|
id: string;
|
|
560
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
654
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
561
655
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
562
656
|
createdAt: string;
|
|
563
657
|
updatedAt: string;
|
|
@@ -574,7 +668,7 @@ declare class Core {
|
|
|
574
668
|
}[] | undefined;
|
|
575
669
|
} | {
|
|
576
670
|
id: string;
|
|
577
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
671
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
578
672
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
579
673
|
createdAt: string;
|
|
580
674
|
updatedAt: string;
|
|
@@ -587,7 +681,7 @@ declare class Core {
|
|
|
587
681
|
error?: string | undefined;
|
|
588
682
|
orders?: {
|
|
589
683
|
id: string;
|
|
590
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
684
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
591
685
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
592
686
|
createdAt: string;
|
|
593
687
|
updatedAt: string;
|
|
@@ -613,7 +707,7 @@ declare class Core {
|
|
|
613
707
|
tradeAccountId: string;
|
|
614
708
|
symbol: string;
|
|
615
709
|
positionId: string;
|
|
616
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
710
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
617
711
|
side: "BUY" | "SELL";
|
|
618
712
|
reduceOnly: boolean;
|
|
619
713
|
isExternal: boolean;
|
|
@@ -640,7 +734,7 @@ declare class Core {
|
|
|
640
734
|
tradeAccountId: string;
|
|
641
735
|
symbol: string;
|
|
642
736
|
positionId: string;
|
|
643
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
737
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
644
738
|
side: "BUY" | "SELL";
|
|
645
739
|
reduceOnly: boolean;
|
|
646
740
|
isExternal: boolean;
|
|
@@ -683,7 +777,7 @@ declare class Core {
|
|
|
683
777
|
limit: number;
|
|
684
778
|
ladders: {
|
|
685
779
|
id: string;
|
|
686
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
780
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
687
781
|
positionKey: string;
|
|
688
782
|
config: {
|
|
689
783
|
thresholdStart: number;
|
|
@@ -695,7 +789,7 @@ declare class Core {
|
|
|
695
789
|
triggers: ({
|
|
696
790
|
id: string;
|
|
697
791
|
tradeAccountId: string;
|
|
698
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
792
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
699
793
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
700
794
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
701
795
|
createdAt: string;
|
|
@@ -734,7 +828,7 @@ declare class Core {
|
|
|
734
828
|
} | {
|
|
735
829
|
type: "funding_rate";
|
|
736
830
|
data: {
|
|
737
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
831
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
738
832
|
symbol: string;
|
|
739
833
|
track: "PEAK" | "TROUGH";
|
|
740
834
|
threshold: number;
|
|
@@ -787,7 +881,7 @@ declare class Core {
|
|
|
787
881
|
tradeAccountId: string;
|
|
788
882
|
symbol: string;
|
|
789
883
|
positionId: string;
|
|
790
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
884
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
791
885
|
side: "BUY" | "SELL";
|
|
792
886
|
reduceOnly: boolean;
|
|
793
887
|
isExternal: boolean;
|
|
@@ -809,7 +903,7 @@ declare class Core {
|
|
|
809
903
|
} | {
|
|
810
904
|
id: string;
|
|
811
905
|
tradeAccountId: string;
|
|
812
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
906
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
813
907
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
814
908
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
815
909
|
createdAt: string;
|
|
@@ -869,7 +963,7 @@ declare class Core {
|
|
|
869
963
|
} | {
|
|
870
964
|
type: "funding_rate";
|
|
871
965
|
data: {
|
|
872
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
966
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
873
967
|
symbol: string;
|
|
874
968
|
track: "PEAK" | "TROUGH";
|
|
875
969
|
threshold: number;
|
|
@@ -924,7 +1018,7 @@ declare class Core {
|
|
|
924
1018
|
tradeAccountId: string;
|
|
925
1019
|
symbol: string;
|
|
926
1020
|
positionId: string;
|
|
927
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1021
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
928
1022
|
side: "BUY" | "SELL";
|
|
929
1023
|
reduceOnly: boolean;
|
|
930
1024
|
isExternal: boolean;
|
|
@@ -954,7 +1048,7 @@ declare class Core {
|
|
|
954
1048
|
} | {
|
|
955
1049
|
id: string;
|
|
956
1050
|
tradeAccountId: string;
|
|
957
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1051
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
958
1052
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
959
1053
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
960
1054
|
createdAt: string;
|
|
@@ -1052,7 +1146,7 @@ declare class Core {
|
|
|
1052
1146
|
} | {
|
|
1053
1147
|
type: "funding_rate";
|
|
1054
1148
|
data: {
|
|
1055
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1149
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1056
1150
|
symbol: string;
|
|
1057
1151
|
track: "PEAK" | "TROUGH";
|
|
1058
1152
|
threshold: number;
|
|
@@ -1092,7 +1186,7 @@ declare class Core {
|
|
|
1092
1186
|
tradeAccountId: string;
|
|
1093
1187
|
symbol: string;
|
|
1094
1188
|
positionId: string;
|
|
1095
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1189
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1096
1190
|
side: "BUY" | "SELL";
|
|
1097
1191
|
reduceOnly: boolean;
|
|
1098
1192
|
isExternal: boolean;
|
|
@@ -1122,7 +1216,7 @@ declare class Core {
|
|
|
1122
1216
|
} | {
|
|
1123
1217
|
id: string;
|
|
1124
1218
|
tradeAccountId: string;
|
|
1125
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1219
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1126
1220
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1127
1221
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1128
1222
|
createdAt: string;
|
|
@@ -1182,7 +1276,7 @@ declare class Core {
|
|
|
1182
1276
|
} | {
|
|
1183
1277
|
type: "funding_rate";
|
|
1184
1278
|
data: {
|
|
1185
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1279
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1186
1280
|
symbol: string;
|
|
1187
1281
|
track: "PEAK" | "TROUGH";
|
|
1188
1282
|
threshold: number;
|
|
@@ -1240,7 +1334,7 @@ declare class Core {
|
|
|
1240
1334
|
tradeAccountId: string;
|
|
1241
1335
|
symbol: string;
|
|
1242
1336
|
positionId: string;
|
|
1243
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1337
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1244
1338
|
side: "BUY" | "SELL";
|
|
1245
1339
|
reduceOnly: boolean;
|
|
1246
1340
|
isExternal: boolean;
|
|
@@ -1271,7 +1365,7 @@ declare class Core {
|
|
|
1271
1365
|
} | {
|
|
1272
1366
|
id: string;
|
|
1273
1367
|
tradeAccountId: string;
|
|
1274
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1368
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1275
1369
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1276
1370
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1277
1371
|
createdAt: string;
|
|
@@ -1369,7 +1463,7 @@ declare class Core {
|
|
|
1369
1463
|
} | {
|
|
1370
1464
|
type: "funding_rate";
|
|
1371
1465
|
data: {
|
|
1372
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1466
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1373
1467
|
symbol: string;
|
|
1374
1468
|
track: "PEAK" | "TROUGH";
|
|
1375
1469
|
threshold: number;
|
|
@@ -1415,7 +1509,7 @@ declare class Core {
|
|
|
1415
1509
|
tradeAccountId: string;
|
|
1416
1510
|
symbol: string;
|
|
1417
1511
|
positionId: string;
|
|
1418
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1512
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1419
1513
|
side: "BUY" | "SELL";
|
|
1420
1514
|
reduceOnly: boolean;
|
|
1421
1515
|
isExternal: boolean;
|
|
@@ -1500,7 +1594,7 @@ declare class Core {
|
|
|
1500
1594
|
create: (body: HttpTypes.CreateLadder, headers?: ClientHeaders) => Promise<{
|
|
1501
1595
|
ladder: {
|
|
1502
1596
|
id: string;
|
|
1503
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1597
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1504
1598
|
positionKey: string;
|
|
1505
1599
|
config: {
|
|
1506
1600
|
thresholdStart: number;
|
|
@@ -1512,7 +1606,7 @@ declare class Core {
|
|
|
1512
1606
|
triggers: ({
|
|
1513
1607
|
id: string;
|
|
1514
1608
|
tradeAccountId: string;
|
|
1515
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1609
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1516
1610
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1517
1611
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1518
1612
|
createdAt: string;
|
|
@@ -1551,7 +1645,7 @@ declare class Core {
|
|
|
1551
1645
|
} | {
|
|
1552
1646
|
type: "funding_rate";
|
|
1553
1647
|
data: {
|
|
1554
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1648
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1555
1649
|
symbol: string;
|
|
1556
1650
|
track: "PEAK" | "TROUGH";
|
|
1557
1651
|
threshold: number;
|
|
@@ -1604,7 +1698,7 @@ declare class Core {
|
|
|
1604
1698
|
tradeAccountId: string;
|
|
1605
1699
|
symbol: string;
|
|
1606
1700
|
positionId: string;
|
|
1607
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1701
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1608
1702
|
side: "BUY" | "SELL";
|
|
1609
1703
|
reduceOnly: boolean;
|
|
1610
1704
|
isExternal: boolean;
|
|
@@ -1626,7 +1720,7 @@ declare class Core {
|
|
|
1626
1720
|
} | {
|
|
1627
1721
|
id: string;
|
|
1628
1722
|
tradeAccountId: string;
|
|
1629
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1723
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1630
1724
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1631
1725
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1632
1726
|
createdAt: string;
|
|
@@ -1686,7 +1780,7 @@ declare class Core {
|
|
|
1686
1780
|
} | {
|
|
1687
1781
|
type: "funding_rate";
|
|
1688
1782
|
data: {
|
|
1689
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1783
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1690
1784
|
symbol: string;
|
|
1691
1785
|
track: "PEAK" | "TROUGH";
|
|
1692
1786
|
threshold: number;
|
|
@@ -1741,7 +1835,7 @@ declare class Core {
|
|
|
1741
1835
|
tradeAccountId: string;
|
|
1742
1836
|
symbol: string;
|
|
1743
1837
|
positionId: string;
|
|
1744
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1838
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1745
1839
|
side: "BUY" | "SELL";
|
|
1746
1840
|
reduceOnly: boolean;
|
|
1747
1841
|
isExternal: boolean;
|
|
@@ -1771,7 +1865,7 @@ declare class Core {
|
|
|
1771
1865
|
} | {
|
|
1772
1866
|
id: string;
|
|
1773
1867
|
tradeAccountId: string;
|
|
1774
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1868
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1775
1869
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1776
1870
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1777
1871
|
createdAt: string;
|
|
@@ -1869,7 +1963,7 @@ declare class Core {
|
|
|
1869
1963
|
} | {
|
|
1870
1964
|
type: "funding_rate";
|
|
1871
1965
|
data: {
|
|
1872
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
1966
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1873
1967
|
symbol: string;
|
|
1874
1968
|
track: "PEAK" | "TROUGH";
|
|
1875
1969
|
threshold: number;
|
|
@@ -1909,7 +2003,7 @@ declare class Core {
|
|
|
1909
2003
|
tradeAccountId: string;
|
|
1910
2004
|
symbol: string;
|
|
1911
2005
|
positionId: string;
|
|
1912
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2006
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1913
2007
|
side: "BUY" | "SELL";
|
|
1914
2008
|
reduceOnly: boolean;
|
|
1915
2009
|
isExternal: boolean;
|
|
@@ -1939,7 +2033,7 @@ declare class Core {
|
|
|
1939
2033
|
} | {
|
|
1940
2034
|
id: string;
|
|
1941
2035
|
tradeAccountId: string;
|
|
1942
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2036
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
1943
2037
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
1944
2038
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
1945
2039
|
createdAt: string;
|
|
@@ -1999,7 +2093,7 @@ declare class Core {
|
|
|
1999
2093
|
} | {
|
|
2000
2094
|
type: "funding_rate";
|
|
2001
2095
|
data: {
|
|
2002
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2096
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2003
2097
|
symbol: string;
|
|
2004
2098
|
track: "PEAK" | "TROUGH";
|
|
2005
2099
|
threshold: number;
|
|
@@ -2057,7 +2151,7 @@ declare class Core {
|
|
|
2057
2151
|
tradeAccountId: string;
|
|
2058
2152
|
symbol: string;
|
|
2059
2153
|
positionId: string;
|
|
2060
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2154
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2061
2155
|
side: "BUY" | "SELL";
|
|
2062
2156
|
reduceOnly: boolean;
|
|
2063
2157
|
isExternal: boolean;
|
|
@@ -2088,7 +2182,7 @@ declare class Core {
|
|
|
2088
2182
|
} | {
|
|
2089
2183
|
id: string;
|
|
2090
2184
|
tradeAccountId: string;
|
|
2091
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2185
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2092
2186
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
2093
2187
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
2094
2188
|
createdAt: string;
|
|
@@ -2186,7 +2280,7 @@ declare class Core {
|
|
|
2186
2280
|
} | {
|
|
2187
2281
|
type: "funding_rate";
|
|
2188
2282
|
data: {
|
|
2189
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2283
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2190
2284
|
symbol: string;
|
|
2191
2285
|
track: "PEAK" | "TROUGH";
|
|
2192
2286
|
threshold: number;
|
|
@@ -2232,7 +2326,7 @@ declare class Core {
|
|
|
2232
2326
|
tradeAccountId: string;
|
|
2233
2327
|
symbol: string;
|
|
2234
2328
|
positionId: string;
|
|
2235
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2329
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2236
2330
|
side: "BUY" | "SELL";
|
|
2237
2331
|
reduceOnly: boolean;
|
|
2238
2332
|
isExternal: boolean;
|
|
@@ -2316,7 +2410,7 @@ declare class Core {
|
|
|
2316
2410
|
get: (ladderId: string, headers?: ClientHeaders) => Promise<{
|
|
2317
2411
|
ladder: {
|
|
2318
2412
|
id: string;
|
|
2319
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2413
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2320
2414
|
positionKey: string;
|
|
2321
2415
|
config: {
|
|
2322
2416
|
thresholdStart: number;
|
|
@@ -2328,7 +2422,7 @@ declare class Core {
|
|
|
2328
2422
|
triggers: ({
|
|
2329
2423
|
id: string;
|
|
2330
2424
|
tradeAccountId: string;
|
|
2331
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2425
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2332
2426
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
2333
2427
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
2334
2428
|
createdAt: string;
|
|
@@ -2367,7 +2461,7 @@ declare class Core {
|
|
|
2367
2461
|
} | {
|
|
2368
2462
|
type: "funding_rate";
|
|
2369
2463
|
data: {
|
|
2370
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2464
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2371
2465
|
symbol: string;
|
|
2372
2466
|
track: "PEAK" | "TROUGH";
|
|
2373
2467
|
threshold: number;
|
|
@@ -2420,7 +2514,7 @@ declare class Core {
|
|
|
2420
2514
|
tradeAccountId: string;
|
|
2421
2515
|
symbol: string;
|
|
2422
2516
|
positionId: string;
|
|
2423
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2517
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2424
2518
|
side: "BUY" | "SELL";
|
|
2425
2519
|
reduceOnly: boolean;
|
|
2426
2520
|
isExternal: boolean;
|
|
@@ -2442,7 +2536,7 @@ declare class Core {
|
|
|
2442
2536
|
} | {
|
|
2443
2537
|
id: string;
|
|
2444
2538
|
tradeAccountId: string;
|
|
2445
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2539
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2446
2540
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
2447
2541
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
2448
2542
|
createdAt: string;
|
|
@@ -2502,7 +2596,7 @@ declare class Core {
|
|
|
2502
2596
|
} | {
|
|
2503
2597
|
type: "funding_rate";
|
|
2504
2598
|
data: {
|
|
2505
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2599
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2506
2600
|
symbol: string;
|
|
2507
2601
|
track: "PEAK" | "TROUGH";
|
|
2508
2602
|
threshold: number;
|
|
@@ -2557,7 +2651,7 @@ declare class Core {
|
|
|
2557
2651
|
tradeAccountId: string;
|
|
2558
2652
|
symbol: string;
|
|
2559
2653
|
positionId: string;
|
|
2560
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2654
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2561
2655
|
side: "BUY" | "SELL";
|
|
2562
2656
|
reduceOnly: boolean;
|
|
2563
2657
|
isExternal: boolean;
|
|
@@ -2587,7 +2681,7 @@ declare class Core {
|
|
|
2587
2681
|
} | {
|
|
2588
2682
|
id: string;
|
|
2589
2683
|
tradeAccountId: string;
|
|
2590
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2684
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2591
2685
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
2592
2686
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
2593
2687
|
createdAt: string;
|
|
@@ -2685,7 +2779,7 @@ declare class Core {
|
|
|
2685
2779
|
} | {
|
|
2686
2780
|
type: "funding_rate";
|
|
2687
2781
|
data: {
|
|
2688
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2782
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2689
2783
|
symbol: string;
|
|
2690
2784
|
track: "PEAK" | "TROUGH";
|
|
2691
2785
|
threshold: number;
|
|
@@ -2725,7 +2819,7 @@ declare class Core {
|
|
|
2725
2819
|
tradeAccountId: string;
|
|
2726
2820
|
symbol: string;
|
|
2727
2821
|
positionId: string;
|
|
2728
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2822
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2729
2823
|
side: "BUY" | "SELL";
|
|
2730
2824
|
reduceOnly: boolean;
|
|
2731
2825
|
isExternal: boolean;
|
|
@@ -2755,7 +2849,7 @@ declare class Core {
|
|
|
2755
2849
|
} | {
|
|
2756
2850
|
id: string;
|
|
2757
2851
|
tradeAccountId: string;
|
|
2758
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2852
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2759
2853
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
2760
2854
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
2761
2855
|
createdAt: string;
|
|
@@ -2815,7 +2909,7 @@ declare class Core {
|
|
|
2815
2909
|
} | {
|
|
2816
2910
|
type: "funding_rate";
|
|
2817
2911
|
data: {
|
|
2818
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2912
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2819
2913
|
symbol: string;
|
|
2820
2914
|
track: "PEAK" | "TROUGH";
|
|
2821
2915
|
threshold: number;
|
|
@@ -2873,7 +2967,7 @@ declare class Core {
|
|
|
2873
2967
|
tradeAccountId: string;
|
|
2874
2968
|
symbol: string;
|
|
2875
2969
|
positionId: string;
|
|
2876
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
2970
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2877
2971
|
side: "BUY" | "SELL";
|
|
2878
2972
|
reduceOnly: boolean;
|
|
2879
2973
|
isExternal: boolean;
|
|
@@ -2904,7 +2998,7 @@ declare class Core {
|
|
|
2904
2998
|
} | {
|
|
2905
2999
|
id: string;
|
|
2906
3000
|
tradeAccountId: string;
|
|
2907
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3001
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
2908
3002
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
2909
3003
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
2910
3004
|
createdAt: string;
|
|
@@ -3002,7 +3096,7 @@ declare class Core {
|
|
|
3002
3096
|
} | {
|
|
3003
3097
|
type: "funding_rate";
|
|
3004
3098
|
data: {
|
|
3005
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3099
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3006
3100
|
symbol: string;
|
|
3007
3101
|
track: "PEAK" | "TROUGH";
|
|
3008
3102
|
threshold: number;
|
|
@@ -3048,7 +3142,7 @@ declare class Core {
|
|
|
3048
3142
|
tradeAccountId: string;
|
|
3049
3143
|
symbol: string;
|
|
3050
3144
|
positionId: string;
|
|
3051
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3145
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3052
3146
|
side: "BUY" | "SELL";
|
|
3053
3147
|
reduceOnly: boolean;
|
|
3054
3148
|
isExternal: boolean;
|
|
@@ -3139,7 +3233,7 @@ declare class Core {
|
|
|
3139
3233
|
id: string;
|
|
3140
3234
|
base: string;
|
|
3141
3235
|
quote: string;
|
|
3142
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3236
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3143
3237
|
type: "spot" | "perp" | "hip3";
|
|
3144
3238
|
leverage: number;
|
|
3145
3239
|
marginMode: "any" | "isolated" | "cross";
|
|
@@ -3184,7 +3278,7 @@ declare class Core {
|
|
|
3184
3278
|
markets: {
|
|
3185
3279
|
list: (query: HttpTypes.MarketsQueryParamsInput, headers?: ClientHeaders) => Promise<{
|
|
3186
3280
|
markets: {
|
|
3187
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3281
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3188
3282
|
instrumentId: string;
|
|
3189
3283
|
displaySymbol: string;
|
|
3190
3284
|
base: string;
|
|
@@ -3211,7 +3305,7 @@ declare class Core {
|
|
|
3211
3305
|
offset: number;
|
|
3212
3306
|
count: number;
|
|
3213
3307
|
markets: {
|
|
3214
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3308
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3215
3309
|
basketKey: string;
|
|
3216
3310
|
displaySymbol: string;
|
|
3217
3311
|
legs: {
|
|
@@ -3256,7 +3350,7 @@ declare class Core {
|
|
|
3256
3350
|
type: "take_profit";
|
|
3257
3351
|
triggerId: string;
|
|
3258
3352
|
positionId: string;
|
|
3259
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3353
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3260
3354
|
semanticBracketType?: "STOP_LOSS" | "TAKE_PROFIT" | undefined;
|
|
3261
3355
|
metric?: "price" | "ratio" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
3262
3356
|
level?: number | undefined;
|
|
@@ -3270,7 +3364,7 @@ declare class Core {
|
|
|
3270
3364
|
type: "stop_loss";
|
|
3271
3365
|
triggerId: string;
|
|
3272
3366
|
positionId: string;
|
|
3273
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3367
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3274
3368
|
semanticBracketType?: "STOP_LOSS" | "TAKE_PROFIT" | undefined;
|
|
3275
3369
|
metric?: "price" | "ratio" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
3276
3370
|
level?: number | undefined;
|
|
@@ -3284,7 +3378,7 @@ declare class Core {
|
|
|
3284
3378
|
type: "trigger_order";
|
|
3285
3379
|
triggerId: string;
|
|
3286
3380
|
positionId: string;
|
|
3287
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3381
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3288
3382
|
metric?: "price" | "ratio" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
3289
3383
|
level?: number | undefined;
|
|
3290
3384
|
reason?: string | undefined;
|
|
@@ -3296,7 +3390,7 @@ declare class Core {
|
|
|
3296
3390
|
}[];
|
|
3297
3391
|
type: "default_trigger";
|
|
3298
3392
|
triggerId: string;
|
|
3299
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3393
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3300
3394
|
metric?: "price" | "ratio" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing" | undefined;
|
|
3301
3395
|
level?: number | undefined;
|
|
3302
3396
|
reason?: string | undefined;
|
|
@@ -3309,7 +3403,7 @@ declare class Core {
|
|
|
3309
3403
|
type: "attached_trigger_discarded";
|
|
3310
3404
|
positionId: string;
|
|
3311
3405
|
positionKey: string;
|
|
3312
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3406
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3313
3407
|
discarded: {
|
|
3314
3408
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT";
|
|
3315
3409
|
metric: "price" | "ratio" | "weighted_ratio" | "funding_rate" | "prediction_market" | "btc_dominance" | "notional" | "upnl" | "upnl_bps" | "ratio_trailing" | "price_trailing" | "weighted_ratio_trailing" | "notional_trailing" | "upnl_trailing" | "upnl_bps_trailing";
|
|
@@ -3330,7 +3424,7 @@ declare class Core {
|
|
|
3330
3424
|
configId: string;
|
|
3331
3425
|
positionId: string;
|
|
3332
3426
|
positionKey: string;
|
|
3333
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3427
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3334
3428
|
weightSource: "INITIAL_WEIGHT" | "LIVE_BETA";
|
|
3335
3429
|
type: "auto_rebalance_executed";
|
|
3336
3430
|
} | {
|
|
@@ -3346,7 +3440,7 @@ declare class Core {
|
|
|
3346
3440
|
configId: string;
|
|
3347
3441
|
positionId: string;
|
|
3348
3442
|
positionKey: string;
|
|
3349
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3443
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3350
3444
|
weightSource: "INITIAL_WEIGHT" | "LIVE_BETA";
|
|
3351
3445
|
type: "auto_rebalance_failed";
|
|
3352
3446
|
} | {
|
|
@@ -3359,7 +3453,7 @@ declare class Core {
|
|
|
3359
3453
|
configId: string;
|
|
3360
3454
|
positionId: string;
|
|
3361
3455
|
positionKey: string;
|
|
3362
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3456
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3363
3457
|
weightSource: "INITIAL_WEIGHT" | "LIVE_BETA";
|
|
3364
3458
|
type: "auto_rebalance_paused";
|
|
3365
3459
|
} | {
|
|
@@ -3370,7 +3464,7 @@ declare class Core {
|
|
|
3370
3464
|
}[];
|
|
3371
3465
|
triggerId: string;
|
|
3372
3466
|
positionId: string;
|
|
3373
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3467
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3374
3468
|
type: "trigger_twap_started";
|
|
3375
3469
|
scheduleId: string;
|
|
3376
3470
|
} | {
|
|
@@ -3381,7 +3475,7 @@ declare class Core {
|
|
|
3381
3475
|
}[];
|
|
3382
3476
|
triggerId: string;
|
|
3383
3477
|
positionId: string;
|
|
3384
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3478
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3385
3479
|
type: "trigger_twap_skipped";
|
|
3386
3480
|
reason: string;
|
|
3387
3481
|
} | {
|
|
@@ -3392,7 +3486,7 @@ declare class Core {
|
|
|
3392
3486
|
}[];
|
|
3393
3487
|
triggerId: string;
|
|
3394
3488
|
positionId: string;
|
|
3395
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3489
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3396
3490
|
type: "trigger_twap_failed";
|
|
3397
3491
|
reason: string;
|
|
3398
3492
|
scheduleId?: string | undefined;
|
|
@@ -3404,7 +3498,7 @@ declare class Core {
|
|
|
3404
3498
|
}[];
|
|
3405
3499
|
triggerId: string;
|
|
3406
3500
|
positionId: string;
|
|
3407
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3501
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3408
3502
|
type: "trigger_twap_position_changed";
|
|
3409
3503
|
scheduleId: string;
|
|
3410
3504
|
reason: string;
|
|
@@ -3444,7 +3538,7 @@ declare class Core {
|
|
|
3444
3538
|
positions: {
|
|
3445
3539
|
id: string;
|
|
3446
3540
|
tradeAccountId: string;
|
|
3447
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3541
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3448
3542
|
status: "OPEN" | "CLOSED";
|
|
3449
3543
|
origin: "PARTIAL" | "PEAR" | "EXTERNAL";
|
|
3450
3544
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
@@ -3467,7 +3561,7 @@ declare class Core {
|
|
|
3467
3561
|
exposure: Record<string, `-${string}` | `+${string}`>;
|
|
3468
3562
|
status: "OPEN";
|
|
3469
3563
|
origin: "PARTIAL" | "PEAR" | "EXTERNAL";
|
|
3470
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3564
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3471
3565
|
}[];
|
|
3472
3566
|
}>;
|
|
3473
3567
|
/**
|
|
@@ -3482,7 +3576,7 @@ declare class Core {
|
|
|
3482
3576
|
limit: number;
|
|
3483
3577
|
positions: {
|
|
3484
3578
|
positionId: string;
|
|
3485
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3579
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3486
3580
|
status: "CLOSED";
|
|
3487
3581
|
openedAt: string;
|
|
3488
3582
|
closedAt: string;
|
|
@@ -3562,7 +3656,7 @@ declare class Core {
|
|
|
3562
3656
|
limit: number;
|
|
3563
3657
|
positions: {
|
|
3564
3658
|
positionId: string;
|
|
3565
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3659
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3566
3660
|
status: "OPEN";
|
|
3567
3661
|
openedAt: string;
|
|
3568
3662
|
updatedAt: string;
|
|
@@ -3638,14 +3732,14 @@ declare class Core {
|
|
|
3638
3732
|
limit: number;
|
|
3639
3733
|
groups: {
|
|
3640
3734
|
id: string;
|
|
3641
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3735
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3642
3736
|
at: string;
|
|
3643
3737
|
netCashflow: `-${string}` | `+${string}`;
|
|
3644
3738
|
trades: {
|
|
3645
3739
|
id: string;
|
|
3646
3740
|
positionId: string;
|
|
3647
3741
|
symbol: string;
|
|
3648
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
3742
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
3649
3743
|
side: "BUY" | "SELL";
|
|
3650
3744
|
quantity: string;
|
|
3651
3745
|
price: string;
|
|
@@ -4128,7 +4222,7 @@ declare class Core {
|
|
|
4128
4222
|
limit: number;
|
|
4129
4223
|
schedules: ({
|
|
4130
4224
|
id: string;
|
|
4131
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4225
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4132
4226
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
4133
4227
|
positionKey: string;
|
|
4134
4228
|
executionType: "MARKET";
|
|
@@ -4161,7 +4255,7 @@ declare class Core {
|
|
|
4161
4255
|
tradeAccountId: string;
|
|
4162
4256
|
symbol: string;
|
|
4163
4257
|
positionId: string;
|
|
4164
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4258
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4165
4259
|
side: "BUY" | "SELL";
|
|
4166
4260
|
reduceOnly: boolean;
|
|
4167
4261
|
isExternal: boolean;
|
|
@@ -4181,7 +4275,7 @@ declare class Core {
|
|
|
4181
4275
|
}[] | undefined;
|
|
4182
4276
|
} | {
|
|
4183
4277
|
id: string;
|
|
4184
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4278
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4185
4279
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
4186
4280
|
positionKey: string;
|
|
4187
4281
|
executionType: "MARKET";
|
|
@@ -4208,7 +4302,7 @@ declare class Core {
|
|
|
4208
4302
|
tradeAccountId: string;
|
|
4209
4303
|
symbol: string;
|
|
4210
4304
|
positionId: string;
|
|
4211
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4305
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4212
4306
|
side: "BUY" | "SELL";
|
|
4213
4307
|
reduceOnly: boolean;
|
|
4214
4308
|
isExternal: boolean;
|
|
@@ -4232,7 +4326,7 @@ declare class Core {
|
|
|
4232
4326
|
create: (body: HttpTypes.CreateSchedule, headers?: ClientHeaders) => Promise<{
|
|
4233
4327
|
schedule: {
|
|
4234
4328
|
id: string;
|
|
4235
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4329
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4236
4330
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
4237
4331
|
positionKey: string;
|
|
4238
4332
|
executionType: "MARKET";
|
|
@@ -4265,7 +4359,7 @@ declare class Core {
|
|
|
4265
4359
|
tradeAccountId: string;
|
|
4266
4360
|
symbol: string;
|
|
4267
4361
|
positionId: string;
|
|
4268
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4362
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4269
4363
|
side: "BUY" | "SELL";
|
|
4270
4364
|
reduceOnly: boolean;
|
|
4271
4365
|
isExternal: boolean;
|
|
@@ -4285,7 +4379,7 @@ declare class Core {
|
|
|
4285
4379
|
}[] | undefined;
|
|
4286
4380
|
} | {
|
|
4287
4381
|
id: string;
|
|
4288
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4382
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4289
4383
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "FAILED";
|
|
4290
4384
|
positionKey: string;
|
|
4291
4385
|
executionType: "MARKET";
|
|
@@ -4312,7 +4406,7 @@ declare class Core {
|
|
|
4312
4406
|
tradeAccountId: string;
|
|
4313
4407
|
symbol: string;
|
|
4314
4408
|
positionId: string;
|
|
4315
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4409
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4316
4410
|
side: "BUY" | "SELL";
|
|
4317
4411
|
reduceOnly: boolean;
|
|
4318
4412
|
isExternal: boolean;
|
|
@@ -4367,7 +4461,7 @@ declare class Core {
|
|
|
4367
4461
|
open: (body: HttpTypes.CreateTradeOpen, headers?: ClientHeaders) => Promise<{
|
|
4368
4462
|
execution: {
|
|
4369
4463
|
id: string;
|
|
4370
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4464
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4371
4465
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4372
4466
|
createdAt: string;
|
|
4373
4467
|
updatedAt: string;
|
|
@@ -4391,7 +4485,7 @@ declare class Core {
|
|
|
4391
4485
|
error?: string | undefined;
|
|
4392
4486
|
orders?: {
|
|
4393
4487
|
id: string;
|
|
4394
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4488
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4395
4489
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4396
4490
|
createdAt: string;
|
|
4397
4491
|
updatedAt: string;
|
|
@@ -4408,7 +4502,7 @@ declare class Core {
|
|
|
4408
4502
|
}[] | undefined;
|
|
4409
4503
|
} | {
|
|
4410
4504
|
id: string;
|
|
4411
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4505
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4412
4506
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4413
4507
|
createdAt: string;
|
|
4414
4508
|
updatedAt: string;
|
|
@@ -4436,7 +4530,7 @@ declare class Core {
|
|
|
4436
4530
|
error?: string | undefined;
|
|
4437
4531
|
orders?: {
|
|
4438
4532
|
id: string;
|
|
4439
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4533
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4440
4534
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4441
4535
|
createdAt: string;
|
|
4442
4536
|
updatedAt: string;
|
|
@@ -4453,7 +4547,7 @@ declare class Core {
|
|
|
4453
4547
|
}[] | undefined;
|
|
4454
4548
|
} | {
|
|
4455
4549
|
id: string;
|
|
4456
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4550
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4457
4551
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4458
4552
|
createdAt: string;
|
|
4459
4553
|
updatedAt: string;
|
|
@@ -4466,7 +4560,7 @@ declare class Core {
|
|
|
4466
4560
|
error?: string | undefined;
|
|
4467
4561
|
orders?: {
|
|
4468
4562
|
id: string;
|
|
4469
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4563
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4470
4564
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4471
4565
|
createdAt: string;
|
|
4472
4566
|
updatedAt: string;
|
|
@@ -4483,7 +4577,7 @@ declare class Core {
|
|
|
4483
4577
|
}[] | undefined;
|
|
4484
4578
|
} | {
|
|
4485
4579
|
id: string;
|
|
4486
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4580
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4487
4581
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4488
4582
|
createdAt: string;
|
|
4489
4583
|
updatedAt: string;
|
|
@@ -4496,7 +4590,7 @@ declare class Core {
|
|
|
4496
4590
|
error?: string | undefined;
|
|
4497
4591
|
orders?: {
|
|
4498
4592
|
id: string;
|
|
4499
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4593
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4500
4594
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4501
4595
|
createdAt: string;
|
|
4502
4596
|
updatedAt: string;
|
|
@@ -4516,7 +4610,7 @@ declare class Core {
|
|
|
4516
4610
|
adjust: (positionId: string, body: HttpTypes.CreateTradeAdjust, headers?: ClientHeaders) => Promise<{
|
|
4517
4611
|
execution: {
|
|
4518
4612
|
id: string;
|
|
4519
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4613
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4520
4614
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4521
4615
|
createdAt: string;
|
|
4522
4616
|
updatedAt: string;
|
|
@@ -4540,7 +4634,7 @@ declare class Core {
|
|
|
4540
4634
|
error?: string | undefined;
|
|
4541
4635
|
orders?: {
|
|
4542
4636
|
id: string;
|
|
4543
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4637
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4544
4638
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4545
4639
|
createdAt: string;
|
|
4546
4640
|
updatedAt: string;
|
|
@@ -4557,7 +4651,7 @@ declare class Core {
|
|
|
4557
4651
|
}[] | undefined;
|
|
4558
4652
|
} | {
|
|
4559
4653
|
id: string;
|
|
4560
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4654
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4561
4655
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4562
4656
|
createdAt: string;
|
|
4563
4657
|
updatedAt: string;
|
|
@@ -4585,7 +4679,7 @@ declare class Core {
|
|
|
4585
4679
|
error?: string | undefined;
|
|
4586
4680
|
orders?: {
|
|
4587
4681
|
id: string;
|
|
4588
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4682
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4589
4683
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4590
4684
|
createdAt: string;
|
|
4591
4685
|
updatedAt: string;
|
|
@@ -4602,7 +4696,7 @@ declare class Core {
|
|
|
4602
4696
|
}[] | undefined;
|
|
4603
4697
|
} | {
|
|
4604
4698
|
id: string;
|
|
4605
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4699
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4606
4700
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4607
4701
|
createdAt: string;
|
|
4608
4702
|
updatedAt: string;
|
|
@@ -4615,7 +4709,7 @@ declare class Core {
|
|
|
4615
4709
|
error?: string | undefined;
|
|
4616
4710
|
orders?: {
|
|
4617
4711
|
id: string;
|
|
4618
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4712
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4619
4713
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4620
4714
|
createdAt: string;
|
|
4621
4715
|
updatedAt: string;
|
|
@@ -4632,7 +4726,7 @@ declare class Core {
|
|
|
4632
4726
|
}[] | undefined;
|
|
4633
4727
|
} | {
|
|
4634
4728
|
id: string;
|
|
4635
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4729
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4636
4730
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4637
4731
|
createdAt: string;
|
|
4638
4732
|
updatedAt: string;
|
|
@@ -4645,7 +4739,7 @@ declare class Core {
|
|
|
4645
4739
|
error?: string | undefined;
|
|
4646
4740
|
orders?: {
|
|
4647
4741
|
id: string;
|
|
4648
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4742
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4649
4743
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4650
4744
|
createdAt: string;
|
|
4651
4745
|
updatedAt: string;
|
|
@@ -4665,7 +4759,7 @@ declare class Core {
|
|
|
4665
4759
|
close: (positionId: string, body: HttpTypes.CreateTradeClose, headers?: ClientHeaders) => Promise<{
|
|
4666
4760
|
execution: {
|
|
4667
4761
|
id: string;
|
|
4668
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4762
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4669
4763
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4670
4764
|
createdAt: string;
|
|
4671
4765
|
updatedAt: string;
|
|
@@ -4689,7 +4783,7 @@ declare class Core {
|
|
|
4689
4783
|
error?: string | undefined;
|
|
4690
4784
|
orders?: {
|
|
4691
4785
|
id: string;
|
|
4692
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4786
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4693
4787
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4694
4788
|
createdAt: string;
|
|
4695
4789
|
updatedAt: string;
|
|
@@ -4706,7 +4800,7 @@ declare class Core {
|
|
|
4706
4800
|
}[] | undefined;
|
|
4707
4801
|
} | {
|
|
4708
4802
|
id: string;
|
|
4709
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4803
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4710
4804
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4711
4805
|
createdAt: string;
|
|
4712
4806
|
updatedAt: string;
|
|
@@ -4734,7 +4828,7 @@ declare class Core {
|
|
|
4734
4828
|
error?: string | undefined;
|
|
4735
4829
|
orders?: {
|
|
4736
4830
|
id: string;
|
|
4737
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4831
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4738
4832
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4739
4833
|
createdAt: string;
|
|
4740
4834
|
updatedAt: string;
|
|
@@ -4751,7 +4845,7 @@ declare class Core {
|
|
|
4751
4845
|
}[] | undefined;
|
|
4752
4846
|
} | {
|
|
4753
4847
|
id: string;
|
|
4754
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4848
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4755
4849
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4756
4850
|
createdAt: string;
|
|
4757
4851
|
updatedAt: string;
|
|
@@ -4764,7 +4858,7 @@ declare class Core {
|
|
|
4764
4858
|
error?: string | undefined;
|
|
4765
4859
|
orders?: {
|
|
4766
4860
|
id: string;
|
|
4767
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4861
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4768
4862
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4769
4863
|
createdAt: string;
|
|
4770
4864
|
updatedAt: string;
|
|
@@ -4781,7 +4875,7 @@ declare class Core {
|
|
|
4781
4875
|
}[] | undefined;
|
|
4782
4876
|
} | {
|
|
4783
4877
|
id: string;
|
|
4784
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4878
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4785
4879
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4786
4880
|
createdAt: string;
|
|
4787
4881
|
updatedAt: string;
|
|
@@ -4794,7 +4888,7 @@ declare class Core {
|
|
|
4794
4888
|
error?: string | undefined;
|
|
4795
4889
|
orders?: {
|
|
4796
4890
|
id: string;
|
|
4797
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4891
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4798
4892
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4799
4893
|
createdAt: string;
|
|
4800
4894
|
updatedAt: string;
|
|
@@ -4814,7 +4908,7 @@ declare class Core {
|
|
|
4814
4908
|
reverse: (positionId: string, body: HttpTypes.CreateTradeReverse, headers?: ClientHeaders) => Promise<{
|
|
4815
4909
|
execution: {
|
|
4816
4910
|
id: string;
|
|
4817
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4911
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4818
4912
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4819
4913
|
createdAt: string;
|
|
4820
4914
|
updatedAt: string;
|
|
@@ -4838,7 +4932,7 @@ declare class Core {
|
|
|
4838
4932
|
error?: string | undefined;
|
|
4839
4933
|
orders?: {
|
|
4840
4934
|
id: string;
|
|
4841
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4935
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4842
4936
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4843
4937
|
createdAt: string;
|
|
4844
4938
|
updatedAt: string;
|
|
@@ -4855,7 +4949,7 @@ declare class Core {
|
|
|
4855
4949
|
}[] | undefined;
|
|
4856
4950
|
} | {
|
|
4857
4951
|
id: string;
|
|
4858
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4952
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4859
4953
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4860
4954
|
createdAt: string;
|
|
4861
4955
|
updatedAt: string;
|
|
@@ -4883,7 +4977,7 @@ declare class Core {
|
|
|
4883
4977
|
error?: string | undefined;
|
|
4884
4978
|
orders?: {
|
|
4885
4979
|
id: string;
|
|
4886
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4980
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4887
4981
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4888
4982
|
createdAt: string;
|
|
4889
4983
|
updatedAt: string;
|
|
@@ -4900,7 +4994,7 @@ declare class Core {
|
|
|
4900
4994
|
}[] | undefined;
|
|
4901
4995
|
} | {
|
|
4902
4996
|
id: string;
|
|
4903
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
4997
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4904
4998
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4905
4999
|
createdAt: string;
|
|
4906
5000
|
updatedAt: string;
|
|
@@ -4913,7 +5007,7 @@ declare class Core {
|
|
|
4913
5007
|
error?: string | undefined;
|
|
4914
5008
|
orders?: {
|
|
4915
5009
|
id: string;
|
|
4916
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5010
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4917
5011
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4918
5012
|
createdAt: string;
|
|
4919
5013
|
updatedAt: string;
|
|
@@ -4930,7 +5024,7 @@ declare class Core {
|
|
|
4930
5024
|
}[] | undefined;
|
|
4931
5025
|
} | {
|
|
4932
5026
|
id: string;
|
|
4933
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5027
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4934
5028
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4935
5029
|
createdAt: string;
|
|
4936
5030
|
updatedAt: string;
|
|
@@ -4943,7 +5037,7 @@ declare class Core {
|
|
|
4943
5037
|
error?: string | undefined;
|
|
4944
5038
|
orders?: {
|
|
4945
5039
|
id: string;
|
|
4946
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5040
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4947
5041
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4948
5042
|
createdAt: string;
|
|
4949
5043
|
updatedAt: string;
|
|
@@ -4963,7 +5057,7 @@ declare class Core {
|
|
|
4963
5057
|
closeAll: (body: HttpTypes.CreateTradeCloseAll, headers?: ClientHeaders) => Promise<{
|
|
4964
5058
|
executions: ({
|
|
4965
5059
|
id: string;
|
|
4966
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5060
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4967
5061
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
4968
5062
|
createdAt: string;
|
|
4969
5063
|
updatedAt: string;
|
|
@@ -4987,7 +5081,7 @@ declare class Core {
|
|
|
4987
5081
|
error?: string | undefined;
|
|
4988
5082
|
orders?: {
|
|
4989
5083
|
id: string;
|
|
4990
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5084
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
4991
5085
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
4992
5086
|
createdAt: string;
|
|
4993
5087
|
updatedAt: string;
|
|
@@ -5004,7 +5098,7 @@ declare class Core {
|
|
|
5004
5098
|
}[] | undefined;
|
|
5005
5099
|
} | {
|
|
5006
5100
|
id: string;
|
|
5007
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5101
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5008
5102
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
5009
5103
|
createdAt: string;
|
|
5010
5104
|
updatedAt: string;
|
|
@@ -5032,7 +5126,7 @@ declare class Core {
|
|
|
5032
5126
|
error?: string | undefined;
|
|
5033
5127
|
orders?: {
|
|
5034
5128
|
id: string;
|
|
5035
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5129
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5036
5130
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
5037
5131
|
createdAt: string;
|
|
5038
5132
|
updatedAt: string;
|
|
@@ -5049,7 +5143,7 @@ declare class Core {
|
|
|
5049
5143
|
}[] | undefined;
|
|
5050
5144
|
} | {
|
|
5051
5145
|
id: string;
|
|
5052
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5146
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5053
5147
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
5054
5148
|
createdAt: string;
|
|
5055
5149
|
updatedAt: string;
|
|
@@ -5062,7 +5156,7 @@ declare class Core {
|
|
|
5062
5156
|
error?: string | undefined;
|
|
5063
5157
|
orders?: {
|
|
5064
5158
|
id: string;
|
|
5065
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5159
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5066
5160
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
5067
5161
|
createdAt: string;
|
|
5068
5162
|
updatedAt: string;
|
|
@@ -5079,7 +5173,7 @@ declare class Core {
|
|
|
5079
5173
|
}[] | undefined;
|
|
5080
5174
|
} | {
|
|
5081
5175
|
id: string;
|
|
5082
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5176
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5083
5177
|
status: "CANCELLED" | "ACTIVE" | "COMPLETED" | "IDLE" | "FAILED";
|
|
5084
5178
|
createdAt: string;
|
|
5085
5179
|
updatedAt: string;
|
|
@@ -5092,7 +5186,7 @@ declare class Core {
|
|
|
5092
5186
|
error?: string | undefined;
|
|
5093
5187
|
orders?: {
|
|
5094
5188
|
id: string;
|
|
5095
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5189
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5096
5190
|
status: "CANCELLED" | "PENDING" | "PARTIAL" | "FILLED" | "REJECTED";
|
|
5097
5191
|
createdAt: string;
|
|
5098
5192
|
updatedAt: string;
|
|
@@ -5110,6 +5204,10 @@ declare class Core {
|
|
|
5110
5204
|
})[];
|
|
5111
5205
|
}>;
|
|
5112
5206
|
setLeverage: (body: HttpTypes.SetLeverage, headers?: ClientHeaders) => Promise<Record<string, never>>;
|
|
5207
|
+
/** Add or remove margin from an isolated position without changing its size. */
|
|
5208
|
+
adjustIsolatedMargin: (body: HttpTypes.AdjustIsolatedMargin, headers?: ClientHeaders) => Promise<{
|
|
5209
|
+
adjustmentId: string;
|
|
5210
|
+
}>;
|
|
5113
5211
|
};
|
|
5114
5212
|
triggers: {
|
|
5115
5213
|
list: (query: HttpTypes.TriggerListParamsInput, headers?: ClientHeaders) => Promise<{
|
|
@@ -5117,7 +5215,7 @@ declare class Core {
|
|
|
5117
5215
|
triggers: ({
|
|
5118
5216
|
id: string;
|
|
5119
5217
|
tradeAccountId: string;
|
|
5120
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5218
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5121
5219
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5122
5220
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5123
5221
|
createdAt: string;
|
|
@@ -5156,7 +5254,7 @@ declare class Core {
|
|
|
5156
5254
|
} | {
|
|
5157
5255
|
type: "funding_rate";
|
|
5158
5256
|
data: {
|
|
5159
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5257
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5160
5258
|
symbol: string;
|
|
5161
5259
|
track: "PEAK" | "TROUGH";
|
|
5162
5260
|
threshold: number;
|
|
@@ -5209,7 +5307,7 @@ declare class Core {
|
|
|
5209
5307
|
tradeAccountId: string;
|
|
5210
5308
|
symbol: string;
|
|
5211
5309
|
positionId: string;
|
|
5212
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5310
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5213
5311
|
side: "BUY" | "SELL";
|
|
5214
5312
|
reduceOnly: boolean;
|
|
5215
5313
|
isExternal: boolean;
|
|
@@ -5231,7 +5329,7 @@ declare class Core {
|
|
|
5231
5329
|
} | {
|
|
5232
5330
|
id: string;
|
|
5233
5331
|
tradeAccountId: string;
|
|
5234
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5332
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5235
5333
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5236
5334
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5237
5335
|
createdAt: string;
|
|
@@ -5291,7 +5389,7 @@ declare class Core {
|
|
|
5291
5389
|
} | {
|
|
5292
5390
|
type: "funding_rate";
|
|
5293
5391
|
data: {
|
|
5294
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5392
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5295
5393
|
symbol: string;
|
|
5296
5394
|
track: "PEAK" | "TROUGH";
|
|
5297
5395
|
threshold: number;
|
|
@@ -5346,7 +5444,7 @@ declare class Core {
|
|
|
5346
5444
|
tradeAccountId: string;
|
|
5347
5445
|
symbol: string;
|
|
5348
5446
|
positionId: string;
|
|
5349
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5447
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5350
5448
|
side: "BUY" | "SELL";
|
|
5351
5449
|
reduceOnly: boolean;
|
|
5352
5450
|
isExternal: boolean;
|
|
@@ -5376,7 +5474,7 @@ declare class Core {
|
|
|
5376
5474
|
} | {
|
|
5377
5475
|
id: string;
|
|
5378
5476
|
tradeAccountId: string;
|
|
5379
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5477
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5380
5478
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5381
5479
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5382
5480
|
createdAt: string;
|
|
@@ -5474,7 +5572,7 @@ declare class Core {
|
|
|
5474
5572
|
} | {
|
|
5475
5573
|
type: "funding_rate";
|
|
5476
5574
|
data: {
|
|
5477
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5575
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5478
5576
|
symbol: string;
|
|
5479
5577
|
track: "PEAK" | "TROUGH";
|
|
5480
5578
|
threshold: number;
|
|
@@ -5514,7 +5612,7 @@ declare class Core {
|
|
|
5514
5612
|
tradeAccountId: string;
|
|
5515
5613
|
symbol: string;
|
|
5516
5614
|
positionId: string;
|
|
5517
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5615
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5518
5616
|
side: "BUY" | "SELL";
|
|
5519
5617
|
reduceOnly: boolean;
|
|
5520
5618
|
isExternal: boolean;
|
|
@@ -5544,7 +5642,7 @@ declare class Core {
|
|
|
5544
5642
|
} | {
|
|
5545
5643
|
id: string;
|
|
5546
5644
|
tradeAccountId: string;
|
|
5547
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5645
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5548
5646
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5549
5647
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5550
5648
|
createdAt: string;
|
|
@@ -5604,7 +5702,7 @@ declare class Core {
|
|
|
5604
5702
|
} | {
|
|
5605
5703
|
type: "funding_rate";
|
|
5606
5704
|
data: {
|
|
5607
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5705
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5608
5706
|
symbol: string;
|
|
5609
5707
|
track: "PEAK" | "TROUGH";
|
|
5610
5708
|
threshold: number;
|
|
@@ -5662,7 +5760,7 @@ declare class Core {
|
|
|
5662
5760
|
tradeAccountId: string;
|
|
5663
5761
|
symbol: string;
|
|
5664
5762
|
positionId: string;
|
|
5665
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5763
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5666
5764
|
side: "BUY" | "SELL";
|
|
5667
5765
|
reduceOnly: boolean;
|
|
5668
5766
|
isExternal: boolean;
|
|
@@ -5693,7 +5791,7 @@ declare class Core {
|
|
|
5693
5791
|
} | {
|
|
5694
5792
|
id: string;
|
|
5695
5793
|
tradeAccountId: string;
|
|
5696
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5794
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5697
5795
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5698
5796
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5699
5797
|
createdAt: string;
|
|
@@ -5791,7 +5889,7 @@ declare class Core {
|
|
|
5791
5889
|
} | {
|
|
5792
5890
|
type: "funding_rate";
|
|
5793
5891
|
data: {
|
|
5794
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5892
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5795
5893
|
symbol: string;
|
|
5796
5894
|
track: "PEAK" | "TROUGH";
|
|
5797
5895
|
threshold: number;
|
|
@@ -5837,7 +5935,7 @@ declare class Core {
|
|
|
5837
5935
|
tradeAccountId: string;
|
|
5838
5936
|
symbol: string;
|
|
5839
5937
|
positionId: string;
|
|
5840
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5938
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5841
5939
|
side: "BUY" | "SELL";
|
|
5842
5940
|
reduceOnly: boolean;
|
|
5843
5941
|
isExternal: boolean;
|
|
@@ -5872,7 +5970,7 @@ declare class Core {
|
|
|
5872
5970
|
trigger: {
|
|
5873
5971
|
id: string;
|
|
5874
5972
|
tradeAccountId: string;
|
|
5875
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
5973
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5876
5974
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5877
5975
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5878
5976
|
createdAt: string;
|
|
@@ -5911,7 +6009,7 @@ declare class Core {
|
|
|
5911
6009
|
} | {
|
|
5912
6010
|
type: "funding_rate";
|
|
5913
6011
|
data: {
|
|
5914
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6012
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5915
6013
|
symbol: string;
|
|
5916
6014
|
track: "PEAK" | "TROUGH";
|
|
5917
6015
|
threshold: number;
|
|
@@ -5964,7 +6062,7 @@ declare class Core {
|
|
|
5964
6062
|
tradeAccountId: string;
|
|
5965
6063
|
symbol: string;
|
|
5966
6064
|
positionId: string;
|
|
5967
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6065
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5968
6066
|
side: "BUY" | "SELL";
|
|
5969
6067
|
reduceOnly: boolean;
|
|
5970
6068
|
isExternal: boolean;
|
|
@@ -5986,7 +6084,7 @@ declare class Core {
|
|
|
5986
6084
|
} | {
|
|
5987
6085
|
id: string;
|
|
5988
6086
|
tradeAccountId: string;
|
|
5989
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6087
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
5990
6088
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
5991
6089
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
5992
6090
|
createdAt: string;
|
|
@@ -6046,7 +6144,7 @@ declare class Core {
|
|
|
6046
6144
|
} | {
|
|
6047
6145
|
type: "funding_rate";
|
|
6048
6146
|
data: {
|
|
6049
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6147
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6050
6148
|
symbol: string;
|
|
6051
6149
|
track: "PEAK" | "TROUGH";
|
|
6052
6150
|
threshold: number;
|
|
@@ -6101,7 +6199,7 @@ declare class Core {
|
|
|
6101
6199
|
tradeAccountId: string;
|
|
6102
6200
|
symbol: string;
|
|
6103
6201
|
positionId: string;
|
|
6104
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6202
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6105
6203
|
side: "BUY" | "SELL";
|
|
6106
6204
|
reduceOnly: boolean;
|
|
6107
6205
|
isExternal: boolean;
|
|
@@ -6131,7 +6229,7 @@ declare class Core {
|
|
|
6131
6229
|
} | {
|
|
6132
6230
|
id: string;
|
|
6133
6231
|
tradeAccountId: string;
|
|
6134
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6232
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6135
6233
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
6136
6234
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6137
6235
|
createdAt: string;
|
|
@@ -6229,7 +6327,7 @@ declare class Core {
|
|
|
6229
6327
|
} | {
|
|
6230
6328
|
type: "funding_rate";
|
|
6231
6329
|
data: {
|
|
6232
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6330
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6233
6331
|
symbol: string;
|
|
6234
6332
|
track: "PEAK" | "TROUGH";
|
|
6235
6333
|
threshold: number;
|
|
@@ -6269,7 +6367,7 @@ declare class Core {
|
|
|
6269
6367
|
tradeAccountId: string;
|
|
6270
6368
|
symbol: string;
|
|
6271
6369
|
positionId: string;
|
|
6272
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6370
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6273
6371
|
side: "BUY" | "SELL";
|
|
6274
6372
|
reduceOnly: boolean;
|
|
6275
6373
|
isExternal: boolean;
|
|
@@ -6299,7 +6397,7 @@ declare class Core {
|
|
|
6299
6397
|
} | {
|
|
6300
6398
|
id: string;
|
|
6301
6399
|
tradeAccountId: string;
|
|
6302
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6400
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6303
6401
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
6304
6402
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6305
6403
|
createdAt: string;
|
|
@@ -6359,7 +6457,7 @@ declare class Core {
|
|
|
6359
6457
|
} | {
|
|
6360
6458
|
type: "funding_rate";
|
|
6361
6459
|
data: {
|
|
6362
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6460
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6363
6461
|
symbol: string;
|
|
6364
6462
|
track: "PEAK" | "TROUGH";
|
|
6365
6463
|
threshold: number;
|
|
@@ -6417,7 +6515,7 @@ declare class Core {
|
|
|
6417
6515
|
tradeAccountId: string;
|
|
6418
6516
|
symbol: string;
|
|
6419
6517
|
positionId: string;
|
|
6420
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6518
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6421
6519
|
side: "BUY" | "SELL";
|
|
6422
6520
|
reduceOnly: boolean;
|
|
6423
6521
|
isExternal: boolean;
|
|
@@ -6448,7 +6546,7 @@ declare class Core {
|
|
|
6448
6546
|
} | {
|
|
6449
6547
|
id: string;
|
|
6450
6548
|
tradeAccountId: string;
|
|
6451
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6549
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6452
6550
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
6453
6551
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6454
6552
|
createdAt: string;
|
|
@@ -6546,7 +6644,7 @@ declare class Core {
|
|
|
6546
6644
|
} | {
|
|
6547
6645
|
type: "funding_rate";
|
|
6548
6646
|
data: {
|
|
6549
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6647
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6550
6648
|
symbol: string;
|
|
6551
6649
|
track: "PEAK" | "TROUGH";
|
|
6552
6650
|
threshold: number;
|
|
@@ -6592,7 +6690,7 @@ declare class Core {
|
|
|
6592
6690
|
tradeAccountId: string;
|
|
6593
6691
|
symbol: string;
|
|
6594
6692
|
positionId: string;
|
|
6595
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6693
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6596
6694
|
side: "BUY" | "SELL";
|
|
6597
6695
|
reduceOnly: boolean;
|
|
6598
6696
|
isExternal: boolean;
|
|
@@ -6626,7 +6724,7 @@ declare class Core {
|
|
|
6626
6724
|
trigger: {
|
|
6627
6725
|
id: string;
|
|
6628
6726
|
tradeAccountId: string;
|
|
6629
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6727
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6630
6728
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
6631
6729
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6632
6730
|
createdAt: string;
|
|
@@ -6665,7 +6763,7 @@ declare class Core {
|
|
|
6665
6763
|
} | {
|
|
6666
6764
|
type: "funding_rate";
|
|
6667
6765
|
data: {
|
|
6668
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6766
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6669
6767
|
symbol: string;
|
|
6670
6768
|
track: "PEAK" | "TROUGH";
|
|
6671
6769
|
threshold: number;
|
|
@@ -6718,7 +6816,7 @@ declare class Core {
|
|
|
6718
6816
|
tradeAccountId: string;
|
|
6719
6817
|
symbol: string;
|
|
6720
6818
|
positionId: string;
|
|
6721
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6819
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6722
6820
|
side: "BUY" | "SELL";
|
|
6723
6821
|
reduceOnly: boolean;
|
|
6724
6822
|
isExternal: boolean;
|
|
@@ -6740,7 +6838,7 @@ declare class Core {
|
|
|
6740
6838
|
} | {
|
|
6741
6839
|
id: string;
|
|
6742
6840
|
tradeAccountId: string;
|
|
6743
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6841
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6744
6842
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
6745
6843
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6746
6844
|
createdAt: string;
|
|
@@ -6800,7 +6898,7 @@ declare class Core {
|
|
|
6800
6898
|
} | {
|
|
6801
6899
|
type: "funding_rate";
|
|
6802
6900
|
data: {
|
|
6803
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6901
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6804
6902
|
symbol: string;
|
|
6805
6903
|
track: "PEAK" | "TROUGH";
|
|
6806
6904
|
threshold: number;
|
|
@@ -6855,7 +6953,7 @@ declare class Core {
|
|
|
6855
6953
|
tradeAccountId: string;
|
|
6856
6954
|
symbol: string;
|
|
6857
6955
|
positionId: string;
|
|
6858
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6956
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6859
6957
|
side: "BUY" | "SELL";
|
|
6860
6958
|
reduceOnly: boolean;
|
|
6861
6959
|
isExternal: boolean;
|
|
@@ -6885,7 +6983,7 @@ declare class Core {
|
|
|
6885
6983
|
} | {
|
|
6886
6984
|
id: string;
|
|
6887
6985
|
tradeAccountId: string;
|
|
6888
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
6986
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6889
6987
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
6890
6988
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
6891
6989
|
createdAt: string;
|
|
@@ -6983,7 +7081,7 @@ declare class Core {
|
|
|
6983
7081
|
} | {
|
|
6984
7082
|
type: "funding_rate";
|
|
6985
7083
|
data: {
|
|
6986
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7084
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
6987
7085
|
symbol: string;
|
|
6988
7086
|
track: "PEAK" | "TROUGH";
|
|
6989
7087
|
threshold: number;
|
|
@@ -7023,7 +7121,7 @@ declare class Core {
|
|
|
7023
7121
|
tradeAccountId: string;
|
|
7024
7122
|
symbol: string;
|
|
7025
7123
|
positionId: string;
|
|
7026
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7124
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7027
7125
|
side: "BUY" | "SELL";
|
|
7028
7126
|
reduceOnly: boolean;
|
|
7029
7127
|
isExternal: boolean;
|
|
@@ -7053,7 +7151,7 @@ declare class Core {
|
|
|
7053
7151
|
} | {
|
|
7054
7152
|
id: string;
|
|
7055
7153
|
tradeAccountId: string;
|
|
7056
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7154
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7057
7155
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
7058
7156
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
7059
7157
|
createdAt: string;
|
|
@@ -7113,7 +7211,7 @@ declare class Core {
|
|
|
7113
7211
|
} | {
|
|
7114
7212
|
type: "funding_rate";
|
|
7115
7213
|
data: {
|
|
7116
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7214
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7117
7215
|
symbol: string;
|
|
7118
7216
|
track: "PEAK" | "TROUGH";
|
|
7119
7217
|
threshold: number;
|
|
@@ -7171,7 +7269,7 @@ declare class Core {
|
|
|
7171
7269
|
tradeAccountId: string;
|
|
7172
7270
|
symbol: string;
|
|
7173
7271
|
positionId: string;
|
|
7174
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7272
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7175
7273
|
side: "BUY" | "SELL";
|
|
7176
7274
|
reduceOnly: boolean;
|
|
7177
7275
|
isExternal: boolean;
|
|
@@ -7202,7 +7300,7 @@ declare class Core {
|
|
|
7202
7300
|
} | {
|
|
7203
7301
|
id: string;
|
|
7204
7302
|
tradeAccountId: string;
|
|
7205
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7303
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7206
7304
|
status: "CANCELLED" | "ACTIVE" | "TRIGGERED";
|
|
7207
7305
|
bracketType: "STOP_LOSS" | "TAKE_PROFIT" | "NONE";
|
|
7208
7306
|
createdAt: string;
|
|
@@ -7300,7 +7398,7 @@ declare class Core {
|
|
|
7300
7398
|
} | {
|
|
7301
7399
|
type: "funding_rate";
|
|
7302
7400
|
data: {
|
|
7303
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7401
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7304
7402
|
symbol: string;
|
|
7305
7403
|
track: "PEAK" | "TROUGH";
|
|
7306
7404
|
threshold: number;
|
|
@@ -7346,7 +7444,7 @@ declare class Core {
|
|
|
7346
7444
|
tradeAccountId: string;
|
|
7347
7445
|
symbol: string;
|
|
7348
7446
|
positionId: string;
|
|
7349
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7447
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7350
7448
|
side: "BUY" | "SELL";
|
|
7351
7449
|
reduceOnly: boolean;
|
|
7352
7450
|
isExternal: boolean;
|
|
@@ -7388,7 +7486,7 @@ declare class Core {
|
|
|
7388
7486
|
profile: {
|
|
7389
7487
|
id: string;
|
|
7390
7488
|
displayName: string;
|
|
7391
|
-
role: "basic" | "pro";
|
|
7489
|
+
role: "basic" | "pro" | "vault";
|
|
7392
7490
|
address: string | null;
|
|
7393
7491
|
email: string | null;
|
|
7394
7492
|
emailVerified: boolean;
|
|
@@ -7412,6 +7510,39 @@ declare class Core {
|
|
|
7412
7510
|
};
|
|
7413
7511
|
misc: {
|
|
7414
7512
|
lighter: {
|
|
7513
|
+
/** Mints the Fun.xyz universal deposit addresses that credit a wallet's Lighter account. */
|
|
7514
|
+
createUda: (body: HttpTypes.CreateLighterUdaParams, headers?: ClientHeaders) => Promise<{
|
|
7515
|
+
uda: {
|
|
7516
|
+
status: "blocked";
|
|
7517
|
+
} | {
|
|
7518
|
+
status: "served";
|
|
7519
|
+
depositAddr: string;
|
|
7520
|
+
resolved: {
|
|
7521
|
+
toChainId: string;
|
|
7522
|
+
toTokenAddress: string;
|
|
7523
|
+
actionType: string;
|
|
7524
|
+
recipientAddr: string;
|
|
7525
|
+
userId: string;
|
|
7526
|
+
};
|
|
7527
|
+
solanaAddr?: string | undefined;
|
|
7528
|
+
tronAddr?: string | undefined;
|
|
7529
|
+
btcAddrSegwit?: string | undefined;
|
|
7530
|
+
};
|
|
7531
|
+
}>;
|
|
7532
|
+
/** Reads the deposits the Fun.xyz bridge has seen for one wallet. */
|
|
7533
|
+
listUdaDeposits: (walletAddress: string, headers?: ClientHeaders) => Promise<{
|
|
7534
|
+
transactions: {
|
|
7535
|
+
fromChainId: string;
|
|
7536
|
+
fromTokenAddress: string;
|
|
7537
|
+
fromAmountBaseUnit: string;
|
|
7538
|
+
toChainId: string;
|
|
7539
|
+
toTokenAddress: string;
|
|
7540
|
+
status: string;
|
|
7541
|
+
depositAddr: string;
|
|
7542
|
+
txHash?: string | undefined;
|
|
7543
|
+
createdTimeMs?: number | undefined;
|
|
7544
|
+
}[];
|
|
7545
|
+
}>;
|
|
7415
7546
|
createApiKey: (body: HttpTypes.CreateLighterApiKeyParams, headers?: ClientHeaders) => Promise<{
|
|
7416
7547
|
privateKey: string;
|
|
7417
7548
|
publicKey: string;
|
|
@@ -7432,14 +7563,14 @@ declare class Core {
|
|
|
7432
7563
|
createAuthToken: (body: HttpTypes.CreateAuthTokenParams, headers?: ClientHeaders) => Promise<{
|
|
7433
7564
|
token: string;
|
|
7434
7565
|
}>;
|
|
7435
|
-
/** Prepares a fast
|
|
7566
|
+
/** Prepares a fast collateral withdrawal for L1 wallet authorization. */
|
|
7436
7567
|
prepareFastWithdraw: (body: HttpTypes.PrepareLighterFastWithdrawParams, headers?: ClientHeaders) => Promise<{
|
|
7437
7568
|
messageToSign: string;
|
|
7438
7569
|
txInfo: string;
|
|
7439
7570
|
fee: number;
|
|
7440
7571
|
availableBalance: number;
|
|
7441
7572
|
}>;
|
|
7442
|
-
/** Submits a wallet-authorized fast
|
|
7573
|
+
/** Submits a wallet-authorized fast collateral withdrawal. */
|
|
7443
7574
|
submitFastWithdraw: (body: HttpTypes.SubmitLighterFastWithdrawParams, headers?: ClientHeaders) => Promise<{
|
|
7444
7575
|
txHash: string;
|
|
7445
7576
|
}>;
|
|
@@ -7447,41 +7578,50 @@ declare class Core {
|
|
|
7447
7578
|
changeAccountTier: (body: HttpTypes.ChangeLighterAccountTierParams, headers?: ClientHeaders) => Promise<{
|
|
7448
7579
|
tier: "standard" | "plus" | "premium";
|
|
7449
7580
|
}>;
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
toChainId: string;
|
|
7459
|
-
toTokenAddress: string;
|
|
7460
|
-
actionType: string;
|
|
7461
|
-
recipientAddr: string;
|
|
7462
|
-
userId: string;
|
|
7463
|
-
};
|
|
7464
|
-
solanaAddr?: string | undefined;
|
|
7465
|
-
tronAddr?: string | undefined;
|
|
7466
|
-
btcAddrSegwit?: string | undefined;
|
|
7467
|
-
};
|
|
7581
|
+
};
|
|
7582
|
+
lighterRhc: {
|
|
7583
|
+
createApiKey: (body: HttpTypes.CreateLighterApiKeyParams, headers?: ClientHeaders) => Promise<{
|
|
7584
|
+
privateKey: string;
|
|
7585
|
+
publicKey: string;
|
|
7586
|
+
apiKeyIndex: number;
|
|
7587
|
+
messageToSign: string;
|
|
7588
|
+
txInfo: string;
|
|
7468
7589
|
}>;
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7590
|
+
changePubKey: (body: HttpTypes.SubmitChangePubKeyParams, headers?: ClientHeaders) => Promise<{
|
|
7591
|
+
txHash: string;
|
|
7592
|
+
}>;
|
|
7593
|
+
prepareApproveIntegrator: (body: HttpTypes.PrepareApproveIntegratorParams, headers?: ClientHeaders) => Promise<{
|
|
7594
|
+
messageToSign: string;
|
|
7595
|
+
txInfo: string;
|
|
7596
|
+
}>;
|
|
7597
|
+
submitApproveIntegrator: (body: HttpTypes.SubmitApproveIntegratorParams, headers?: ClientHeaders) => Promise<{
|
|
7598
|
+
txHash: string;
|
|
7599
|
+
}>;
|
|
7600
|
+
createAuthToken: (body: HttpTypes.CreateAuthTokenParams, headers?: ClientHeaders) => Promise<{
|
|
7601
|
+
token: string;
|
|
7602
|
+
}>;
|
|
7603
|
+
/** Prepares a fast collateral withdrawal for L1 wallet authorization. */
|
|
7604
|
+
prepareFastWithdraw: (body: HttpTypes.PrepareLighterFastWithdrawParams, headers?: ClientHeaders) => Promise<{
|
|
7605
|
+
messageToSign: string;
|
|
7606
|
+
txInfo: string;
|
|
7607
|
+
fee: number;
|
|
7608
|
+
availableBalance: number;
|
|
7609
|
+
}>;
|
|
7610
|
+
/** Submits a wallet-authorized fast collateral withdrawal. */
|
|
7611
|
+
submitFastWithdraw: (body: HttpTypes.SubmitLighterFastWithdrawParams, headers?: ClientHeaders) => Promise<{
|
|
7612
|
+
txHash: string;
|
|
7613
|
+
}>;
|
|
7614
|
+
/** Moves a Lighter account onto the standard, plus, or premium tier. */
|
|
7615
|
+
changeAccountTier: (body: HttpTypes.ChangeLighterAccountTierParams, headers?: ClientHeaders) => Promise<{
|
|
7616
|
+
tier: "standard" | "plus" | "premium";
|
|
7482
7617
|
}>;
|
|
7483
7618
|
};
|
|
7484
7619
|
};
|
|
7620
|
+
/**
|
|
7621
|
+
* The signer routes every Lighter deployment exposes, bound to one deployment's base path.
|
|
7622
|
+
* zkLighter and Robinhood Chain share this whole surface; only the deployment behind it differs.
|
|
7623
|
+
*/
|
|
7624
|
+
private buildLighterMiscRoutes;
|
|
7485
7625
|
statistics: {
|
|
7486
7626
|
volume: (query: HttpTypes.VolumeStatisticsQueryParamsInput, headers?: ClientHeaders) => Promise<{
|
|
7487
7627
|
data: {
|
|
@@ -7512,7 +7652,7 @@ declare class Core {
|
|
|
7512
7652
|
data: {
|
|
7513
7653
|
tradeAccountId: string;
|
|
7514
7654
|
userId: string;
|
|
7515
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7655
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7516
7656
|
volume: string;
|
|
7517
7657
|
grossRealizedPnl: string;
|
|
7518
7658
|
grossUpnl: string;
|
|
@@ -7535,7 +7675,7 @@ declare class Core {
|
|
|
7535
7675
|
id: string;
|
|
7536
7676
|
fillId: string;
|
|
7537
7677
|
tradeAccountId: string;
|
|
7538
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7678
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7539
7679
|
symbol: string;
|
|
7540
7680
|
status: "FINAL";
|
|
7541
7681
|
createdAt: string;
|
|
@@ -7567,7 +7707,7 @@ declare class Core {
|
|
|
7567
7707
|
id: string;
|
|
7568
7708
|
executionId: string;
|
|
7569
7709
|
legIndex: number;
|
|
7570
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7710
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7571
7711
|
symbol: string;
|
|
7572
7712
|
side: "BUY" | "SELL";
|
|
7573
7713
|
source: string;
|
|
@@ -7589,7 +7729,7 @@ declare class Core {
|
|
|
7589
7729
|
id: string;
|
|
7590
7730
|
executionId: string;
|
|
7591
7731
|
tradeAccountId: string;
|
|
7592
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7732
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7593
7733
|
fillCount: number;
|
|
7594
7734
|
status: "FINAL";
|
|
7595
7735
|
createdAt: string;
|
|
@@ -7622,7 +7762,7 @@ declare class Core {
|
|
|
7622
7762
|
id: string;
|
|
7623
7763
|
fillId: string;
|
|
7624
7764
|
tradeAccountId: string;
|
|
7625
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7765
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7626
7766
|
symbol: string;
|
|
7627
7767
|
status: "FINAL";
|
|
7628
7768
|
createdAt: string;
|
|
@@ -7654,7 +7794,7 @@ declare class Core {
|
|
|
7654
7794
|
id: string;
|
|
7655
7795
|
executionId: string;
|
|
7656
7796
|
legIndex: number;
|
|
7657
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7797
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7658
7798
|
symbol: string;
|
|
7659
7799
|
side: "BUY" | "SELL";
|
|
7660
7800
|
source: string;
|
|
@@ -7680,7 +7820,7 @@ declare class Core {
|
|
|
7680
7820
|
id: string;
|
|
7681
7821
|
executionId: string;
|
|
7682
7822
|
tradeAccountId: string;
|
|
7683
|
-
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter";
|
|
7823
|
+
connector: "hyperliquid" | "binance" | "bybit" | "okx" | "lighter" | "lighter_rhc";
|
|
7684
7824
|
fillCount: number;
|
|
7685
7825
|
status: "FINAL";
|
|
7686
7826
|
createdAt: string;
|