@pear-protocol/types 0.0.6 → 0.0.8
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/connector/index.d.ts +3 -3
- package/dist/connector/index.js +1 -1
- package/dist/execution/entities.d.ts +20 -20
- package/dist/execution/queries.d.ts +1 -1
- package/dist/execution/responses.d.ts +6 -6
- package/dist/fill/entities.d.ts +1 -1
- package/dist/fill/queries.d.ts +1 -1
- package/dist/fill/responses.d.ts +2 -2
- package/dist/funding/queries.d.ts +1 -1
- package/dist/instrument/entities.d.ts +1 -1
- package/dist/instrument/entities.js +2 -2
- package/dist/instrument/queries.d.ts +1 -1
- package/dist/instrument/responses.d.ts +1 -1
- package/dist/order/entities.d.ts +2 -2
- package/dist/position/entities.d.ts +1 -1
- package/dist/position/queries.d.ts +1 -1
- package/dist/position/responses.d.ts +1 -1
- package/dist/price/queries.d.ts +1 -1
- package/dist/schedule/entities.d.ts +10 -10
- package/dist/schedule/payloads.d.ts +8 -8
- package/dist/schedule/payloads.js +9 -5
- package/dist/schedule/queries.d.ts +1 -1
- package/dist/schedule/responses.d.ts +8 -8
- package/dist/trade/responses.d.ts +24 -24
- package/dist/trade-accounts/entities.d.ts +1 -1
- package/dist/trade-accounts/payloads.d.ts +4 -4
- package/dist/trade-accounts/payloads.js +9 -9
- package/dist/trade-accounts/response.d.ts +3 -3
- package/dist/trade-accounts/response.js +3 -3
- package/dist/trigger/entities/index.d.ts +20 -20
- package/dist/trigger/queries.d.ts +1 -1
- package/dist/trigger/responses.d.ts +12 -12
- package/dist/users/payloads.d.ts +1 -1
- package/dist/users/payloads.js +19 -3
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare const ScheduleListResponse: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodUUID;
|
|
7
7
|
connector: z.ZodEnum<{
|
|
8
8
|
hyperliquid: "hyperliquid";
|
|
9
|
-
|
|
9
|
+
binance: "binance";
|
|
10
10
|
bybit: "bybit";
|
|
11
11
|
okx: "okx";
|
|
12
12
|
}>;
|
|
@@ -39,7 +39,7 @@ export declare const ScheduleListResponse: z.ZodObject<{
|
|
|
39
39
|
positionId: z.ZodUUID;
|
|
40
40
|
connector: z.ZodEnum<{
|
|
41
41
|
hyperliquid: "hyperliquid";
|
|
42
|
-
|
|
42
|
+
binance: "binance";
|
|
43
43
|
bybit: "bybit";
|
|
44
44
|
okx: "okx";
|
|
45
45
|
}>;
|
|
@@ -75,7 +75,7 @@ export declare const ScheduleListResponse: z.ZodObject<{
|
|
|
75
75
|
id: z.ZodUUID;
|
|
76
76
|
connector: z.ZodEnum<{
|
|
77
77
|
hyperliquid: "hyperliquid";
|
|
78
|
-
|
|
78
|
+
binance: "binance";
|
|
79
79
|
bybit: "bybit";
|
|
80
80
|
okx: "okx";
|
|
81
81
|
}>;
|
|
@@ -108,7 +108,7 @@ export declare const ScheduleListResponse: z.ZodObject<{
|
|
|
108
108
|
positionId: z.ZodUUID;
|
|
109
109
|
connector: z.ZodEnum<{
|
|
110
110
|
hyperliquid: "hyperliquid";
|
|
111
|
-
|
|
111
|
+
binance: "binance";
|
|
112
112
|
bybit: "bybit";
|
|
113
113
|
okx: "okx";
|
|
114
114
|
}>;
|
|
@@ -140,7 +140,7 @@ export declare const CreateScheduleResponse: z.ZodObject<{
|
|
|
140
140
|
id: z.ZodUUID;
|
|
141
141
|
connector: z.ZodEnum<{
|
|
142
142
|
hyperliquid: "hyperliquid";
|
|
143
|
-
|
|
143
|
+
binance: "binance";
|
|
144
144
|
bybit: "bybit";
|
|
145
145
|
okx: "okx";
|
|
146
146
|
}>;
|
|
@@ -173,7 +173,7 @@ export declare const CreateScheduleResponse: z.ZodObject<{
|
|
|
173
173
|
positionId: z.ZodUUID;
|
|
174
174
|
connector: z.ZodEnum<{
|
|
175
175
|
hyperliquid: "hyperliquid";
|
|
176
|
-
|
|
176
|
+
binance: "binance";
|
|
177
177
|
bybit: "bybit";
|
|
178
178
|
okx: "okx";
|
|
179
179
|
}>;
|
|
@@ -209,7 +209,7 @@ export declare const CreateScheduleResponse: z.ZodObject<{
|
|
|
209
209
|
id: z.ZodUUID;
|
|
210
210
|
connector: z.ZodEnum<{
|
|
211
211
|
hyperliquid: "hyperliquid";
|
|
212
|
-
|
|
212
|
+
binance: "binance";
|
|
213
213
|
bybit: "bybit";
|
|
214
214
|
okx: "okx";
|
|
215
215
|
}>;
|
|
@@ -242,7 +242,7 @@ export declare const CreateScheduleResponse: z.ZodObject<{
|
|
|
242
242
|
positionId: z.ZodUUID;
|
|
243
243
|
connector: z.ZodEnum<{
|
|
244
244
|
hyperliquid: "hyperliquid";
|
|
245
|
-
|
|
245
|
+
binance: "binance";
|
|
246
246
|
bybit: "bybit";
|
|
247
247
|
okx: "okx";
|
|
248
248
|
}>;
|
|
@@ -4,7 +4,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
4
4
|
id: z.ZodUUID;
|
|
5
5
|
connector: z.ZodEnum<{
|
|
6
6
|
hyperliquid: "hyperliquid";
|
|
7
|
-
|
|
7
|
+
binance: "binance";
|
|
8
8
|
bybit: "bybit";
|
|
9
9
|
okx: "okx";
|
|
10
10
|
}>;
|
|
@@ -22,7 +22,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
22
22
|
id: z.ZodUUID;
|
|
23
23
|
connector: z.ZodEnum<{
|
|
24
24
|
hyperliquid: "hyperliquid";
|
|
25
|
-
|
|
25
|
+
binance: "binance";
|
|
26
26
|
bybit: "bybit";
|
|
27
27
|
okx: "okx";
|
|
28
28
|
}>;
|
|
@@ -80,7 +80,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
80
80
|
id: z.ZodUUID;
|
|
81
81
|
connector: z.ZodEnum<{
|
|
82
82
|
hyperliquid: "hyperliquid";
|
|
83
|
-
|
|
83
|
+
binance: "binance";
|
|
84
84
|
bybit: "bybit";
|
|
85
85
|
okx: "okx";
|
|
86
86
|
}>;
|
|
@@ -98,7 +98,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
98
98
|
id: z.ZodUUID;
|
|
99
99
|
connector: z.ZodEnum<{
|
|
100
100
|
hyperliquid: "hyperliquid";
|
|
101
|
-
|
|
101
|
+
binance: "binance";
|
|
102
102
|
bybit: "bybit";
|
|
103
103
|
okx: "okx";
|
|
104
104
|
}>;
|
|
@@ -160,7 +160,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
160
160
|
id: z.ZodUUID;
|
|
161
161
|
connector: z.ZodEnum<{
|
|
162
162
|
hyperliquid: "hyperliquid";
|
|
163
|
-
|
|
163
|
+
binance: "binance";
|
|
164
164
|
bybit: "bybit";
|
|
165
165
|
okx: "okx";
|
|
166
166
|
}>;
|
|
@@ -178,7 +178,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
|
|
|
178
178
|
id: z.ZodUUID;
|
|
179
179
|
connector: z.ZodEnum<{
|
|
180
180
|
hyperliquid: "hyperliquid";
|
|
181
|
-
|
|
181
|
+
binance: "binance";
|
|
182
182
|
bybit: "bybit";
|
|
183
183
|
okx: "okx";
|
|
184
184
|
}>;
|
|
@@ -219,7 +219,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
219
219
|
id: z.ZodUUID;
|
|
220
220
|
connector: z.ZodEnum<{
|
|
221
221
|
hyperliquid: "hyperliquid";
|
|
222
|
-
|
|
222
|
+
binance: "binance";
|
|
223
223
|
bybit: "bybit";
|
|
224
224
|
okx: "okx";
|
|
225
225
|
}>;
|
|
@@ -237,7 +237,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
237
237
|
id: z.ZodUUID;
|
|
238
238
|
connector: z.ZodEnum<{
|
|
239
239
|
hyperliquid: "hyperliquid";
|
|
240
|
-
|
|
240
|
+
binance: "binance";
|
|
241
241
|
bybit: "bybit";
|
|
242
242
|
okx: "okx";
|
|
243
243
|
}>;
|
|
@@ -295,7 +295,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
295
295
|
id: z.ZodUUID;
|
|
296
296
|
connector: z.ZodEnum<{
|
|
297
297
|
hyperliquid: "hyperliquid";
|
|
298
|
-
|
|
298
|
+
binance: "binance";
|
|
299
299
|
bybit: "bybit";
|
|
300
300
|
okx: "okx";
|
|
301
301
|
}>;
|
|
@@ -313,7 +313,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
313
313
|
id: z.ZodUUID;
|
|
314
314
|
connector: z.ZodEnum<{
|
|
315
315
|
hyperliquid: "hyperliquid";
|
|
316
|
-
|
|
316
|
+
binance: "binance";
|
|
317
317
|
bybit: "bybit";
|
|
318
318
|
okx: "okx";
|
|
319
319
|
}>;
|
|
@@ -375,7 +375,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
375
375
|
id: z.ZodUUID;
|
|
376
376
|
connector: z.ZodEnum<{
|
|
377
377
|
hyperliquid: "hyperliquid";
|
|
378
|
-
|
|
378
|
+
binance: "binance";
|
|
379
379
|
bybit: "bybit";
|
|
380
380
|
okx: "okx";
|
|
381
381
|
}>;
|
|
@@ -393,7 +393,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
|
|
|
393
393
|
id: z.ZodUUID;
|
|
394
394
|
connector: z.ZodEnum<{
|
|
395
395
|
hyperliquid: "hyperliquid";
|
|
396
|
-
|
|
396
|
+
binance: "binance";
|
|
397
397
|
bybit: "bybit";
|
|
398
398
|
okx: "okx";
|
|
399
399
|
}>;
|
|
@@ -434,7 +434,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
434
434
|
id: z.ZodUUID;
|
|
435
435
|
connector: z.ZodEnum<{
|
|
436
436
|
hyperliquid: "hyperliquid";
|
|
437
|
-
|
|
437
|
+
binance: "binance";
|
|
438
438
|
bybit: "bybit";
|
|
439
439
|
okx: "okx";
|
|
440
440
|
}>;
|
|
@@ -452,7 +452,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
452
452
|
id: z.ZodUUID;
|
|
453
453
|
connector: z.ZodEnum<{
|
|
454
454
|
hyperliquid: "hyperliquid";
|
|
455
|
-
|
|
455
|
+
binance: "binance";
|
|
456
456
|
bybit: "bybit";
|
|
457
457
|
okx: "okx";
|
|
458
458
|
}>;
|
|
@@ -510,7 +510,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
510
510
|
id: z.ZodUUID;
|
|
511
511
|
connector: z.ZodEnum<{
|
|
512
512
|
hyperliquid: "hyperliquid";
|
|
513
|
-
|
|
513
|
+
binance: "binance";
|
|
514
514
|
bybit: "bybit";
|
|
515
515
|
okx: "okx";
|
|
516
516
|
}>;
|
|
@@ -528,7 +528,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
528
528
|
id: z.ZodUUID;
|
|
529
529
|
connector: z.ZodEnum<{
|
|
530
530
|
hyperliquid: "hyperliquid";
|
|
531
|
-
|
|
531
|
+
binance: "binance";
|
|
532
532
|
bybit: "bybit";
|
|
533
533
|
okx: "okx";
|
|
534
534
|
}>;
|
|
@@ -590,7 +590,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
590
590
|
id: z.ZodUUID;
|
|
591
591
|
connector: z.ZodEnum<{
|
|
592
592
|
hyperliquid: "hyperliquid";
|
|
593
|
-
|
|
593
|
+
binance: "binance";
|
|
594
594
|
bybit: "bybit";
|
|
595
595
|
okx: "okx";
|
|
596
596
|
}>;
|
|
@@ -608,7 +608,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
|
|
|
608
608
|
id: z.ZodUUID;
|
|
609
609
|
connector: z.ZodEnum<{
|
|
610
610
|
hyperliquid: "hyperliquid";
|
|
611
|
-
|
|
611
|
+
binance: "binance";
|
|
612
612
|
bybit: "bybit";
|
|
613
613
|
okx: "okx";
|
|
614
614
|
}>;
|
|
@@ -649,7 +649,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
649
649
|
id: z.ZodUUID;
|
|
650
650
|
connector: z.ZodEnum<{
|
|
651
651
|
hyperliquid: "hyperliquid";
|
|
652
|
-
|
|
652
|
+
binance: "binance";
|
|
653
653
|
bybit: "bybit";
|
|
654
654
|
okx: "okx";
|
|
655
655
|
}>;
|
|
@@ -667,7 +667,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
667
667
|
id: z.ZodUUID;
|
|
668
668
|
connector: z.ZodEnum<{
|
|
669
669
|
hyperliquid: "hyperliquid";
|
|
670
|
-
|
|
670
|
+
binance: "binance";
|
|
671
671
|
bybit: "bybit";
|
|
672
672
|
okx: "okx";
|
|
673
673
|
}>;
|
|
@@ -725,7 +725,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
725
725
|
id: z.ZodUUID;
|
|
726
726
|
connector: z.ZodEnum<{
|
|
727
727
|
hyperliquid: "hyperliquid";
|
|
728
|
-
|
|
728
|
+
binance: "binance";
|
|
729
729
|
bybit: "bybit";
|
|
730
730
|
okx: "okx";
|
|
731
731
|
}>;
|
|
@@ -743,7 +743,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
743
743
|
id: z.ZodUUID;
|
|
744
744
|
connector: z.ZodEnum<{
|
|
745
745
|
hyperliquid: "hyperliquid";
|
|
746
|
-
|
|
746
|
+
binance: "binance";
|
|
747
747
|
bybit: "bybit";
|
|
748
748
|
okx: "okx";
|
|
749
749
|
}>;
|
|
@@ -805,7 +805,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
805
805
|
id: z.ZodUUID;
|
|
806
806
|
connector: z.ZodEnum<{
|
|
807
807
|
hyperliquid: "hyperliquid";
|
|
808
|
-
|
|
808
|
+
binance: "binance";
|
|
809
809
|
bybit: "bybit";
|
|
810
810
|
okx: "okx";
|
|
811
811
|
}>;
|
|
@@ -823,7 +823,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
|
|
|
823
823
|
id: z.ZodUUID;
|
|
824
824
|
connector: z.ZodEnum<{
|
|
825
825
|
hyperliquid: "hyperliquid";
|
|
826
|
-
|
|
826
|
+
binance: "binance";
|
|
827
827
|
bybit: "bybit";
|
|
828
828
|
okx: "okx";
|
|
829
829
|
}>;
|
|
@@ -15,7 +15,7 @@ declare const CreateHyperliquidMetadata: z.ZodObject<{
|
|
|
15
15
|
/**
|
|
16
16
|
* Binance USDM connector credentials
|
|
17
17
|
*/
|
|
18
|
-
declare const
|
|
18
|
+
declare const CreateBinanceCredentials: z.ZodObject<{
|
|
19
19
|
api_key: z.ZodString;
|
|
20
20
|
api_secret: z.ZodString;
|
|
21
21
|
}, z.core.$strip>;
|
|
@@ -49,7 +49,7 @@ export declare const CreateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
49
49
|
isSubaccount: z.ZodBoolean;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
connector: z.ZodLiteral<"
|
|
52
|
+
connector: z.ZodLiteral<"binance">;
|
|
53
53
|
alias: z.ZodString;
|
|
54
54
|
credentials: z.ZodObject<{
|
|
55
55
|
api_key: z.ZodString;
|
|
@@ -88,7 +88,7 @@ export declare const UpdateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
88
88
|
isSubaccount: z.ZodBoolean;
|
|
89
89
|
}, z.core.$strip>>;
|
|
90
90
|
}, z.core.$strip>, z.ZodObject<{
|
|
91
|
-
connector: z.ZodLiteral<"
|
|
91
|
+
connector: z.ZodLiteral<"binance">;
|
|
92
92
|
alias: z.ZodOptional<z.ZodString>;
|
|
93
93
|
credentials: z.ZodOptional<z.ZodObject<{
|
|
94
94
|
api_key: z.ZodString;
|
|
@@ -115,7 +115,7 @@ export declare const UpdateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
115
115
|
}, z.core.$strip>], "connector">;
|
|
116
116
|
export type CreateHyperliquidCredentials = z.infer<typeof CreateHyperliquidCredentials>;
|
|
117
117
|
export type CreateHyperliquidMetadata = z.infer<typeof CreateHyperliquidMetadata>;
|
|
118
|
-
export type
|
|
118
|
+
export type CreateBinanceCredentials = z.infer<typeof CreateBinanceCredentials>;
|
|
119
119
|
export type CreateBybitCredentials = z.infer<typeof CreateBybitCredentials>;
|
|
120
120
|
export type CreateOkxCredentials = z.infer<typeof CreateOkxCredentials>;
|
|
121
121
|
export type CreateTradeAccountInput = z.input<typeof CreateTradeAccount>;
|
|
@@ -7,7 +7,7 @@ const CreateHyperliquidMetadata = z.object({
|
|
|
7
7
|
agentWalletAddress: z.string().regex(/^0x[a-fA-F0-9]{40}$/, "Invalid Ethereum address"),
|
|
8
8
|
isSubaccount: z.boolean()
|
|
9
9
|
});
|
|
10
|
-
const
|
|
10
|
+
const CreateBinanceCredentials = z.object({
|
|
11
11
|
api_key: z.string().min(1, "API key is required"),
|
|
12
12
|
api_secret: z.string().min(1, "API secret is required")
|
|
13
13
|
});
|
|
@@ -28,10 +28,10 @@ const CreateHyperliquidAccount = z.object({
|
|
|
28
28
|
credentials: CreateHyperliquidCredentials,
|
|
29
29
|
metadata: CreateHyperliquidMetadata
|
|
30
30
|
});
|
|
31
|
-
const
|
|
32
|
-
connector: z.literal("
|
|
31
|
+
const CreateBinanceAccount = z.object({
|
|
32
|
+
connector: z.literal("binance"),
|
|
33
33
|
alias: AccountAlias,
|
|
34
|
-
credentials:
|
|
34
|
+
credentials: CreateBinanceCredentials,
|
|
35
35
|
metadata: z.void({}).transform(() => void 0)
|
|
36
36
|
});
|
|
37
37
|
const CreateBybitAccount = z.object({
|
|
@@ -52,10 +52,10 @@ const UpdateHyperliquidAccount = z.object({
|
|
|
52
52
|
credentials: CreateHyperliquidCredentials.optional(),
|
|
53
53
|
metadata: CreateHyperliquidMetadata.optional()
|
|
54
54
|
});
|
|
55
|
-
const
|
|
56
|
-
connector: z.literal("
|
|
55
|
+
const UpdateBinanceAccount = z.object({
|
|
56
|
+
connector: z.literal("binance"),
|
|
57
57
|
alias: AccountAlias.optional(),
|
|
58
|
-
credentials:
|
|
58
|
+
credentials: CreateBinanceCredentials.optional(),
|
|
59
59
|
metadata: z.void({}).transform(() => void 0)
|
|
60
60
|
});
|
|
61
61
|
const UpdateBybitAccount = z.object({
|
|
@@ -72,13 +72,13 @@ const UpdateOkxAccount = z.object({
|
|
|
72
72
|
});
|
|
73
73
|
const CreateTradeAccount = z.discriminatedUnion("connector", [
|
|
74
74
|
CreateHyperliquidAccount,
|
|
75
|
-
|
|
75
|
+
CreateBinanceAccount,
|
|
76
76
|
CreateBybitAccount,
|
|
77
77
|
CreateOkxAccount
|
|
78
78
|
]);
|
|
79
79
|
const UpdateTradeAccount = z.discriminatedUnion("connector", [
|
|
80
80
|
UpdateHyperliquidAccount,
|
|
81
|
-
|
|
81
|
+
UpdateBinanceAccount,
|
|
82
82
|
UpdateBybitAccount,
|
|
83
83
|
UpdateOkxAccount
|
|
84
84
|
]);
|
|
@@ -5,7 +5,7 @@ export declare const TradeAccountResponse: z.ZodObject<{
|
|
|
5
5
|
alias: z.ZodString;
|
|
6
6
|
connector: z.ZodEnum<{
|
|
7
7
|
hyperliquid: "hyperliquid";
|
|
8
|
-
|
|
8
|
+
binance: "binance";
|
|
9
9
|
bybit: "bybit";
|
|
10
10
|
okx: "okx";
|
|
11
11
|
}>;
|
|
@@ -26,7 +26,7 @@ export declare const TradeAccountListResponse: z.ZodObject<{
|
|
|
26
26
|
alias: z.ZodString;
|
|
27
27
|
connector: z.ZodEnum<{
|
|
28
28
|
hyperliquid: "hyperliquid";
|
|
29
|
-
|
|
29
|
+
binance: "binance";
|
|
30
30
|
bybit: "bybit";
|
|
31
31
|
okx: "okx";
|
|
32
32
|
}>;
|
|
@@ -47,7 +47,7 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
47
47
|
signer_key: z.ZodString;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
49
|
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
connector: z.ZodLiteral<"
|
|
50
|
+
connector: z.ZodLiteral<"binance">;
|
|
51
51
|
credentials: z.ZodObject<{
|
|
52
52
|
api_key: z.ZodString;
|
|
53
53
|
api_secret: z.ZodString;
|
|
@@ -9,8 +9,8 @@ const HyperliquidCredentialsResponse = z.object({
|
|
|
9
9
|
signer_key: z.string()
|
|
10
10
|
})
|
|
11
11
|
});
|
|
12
|
-
const
|
|
13
|
-
connector: z.literal("
|
|
12
|
+
const BinanceCredentialsResponse = z.object({
|
|
13
|
+
connector: z.literal("binance"),
|
|
14
14
|
credentials: z.object({
|
|
15
15
|
api_key: z.string(),
|
|
16
16
|
api_secret: z.string()
|
|
@@ -33,7 +33,7 @@ const OkxCredentialsResponse = z.object({
|
|
|
33
33
|
});
|
|
34
34
|
const ExchangeCredentialsResponse = z.discriminatedUnion("connector", [
|
|
35
35
|
HyperliquidCredentialsResponse,
|
|
36
|
-
|
|
36
|
+
BinanceCredentialsResponse,
|
|
37
37
|
BybitCredentialsResponse,
|
|
38
38
|
OkxCredentialsResponse
|
|
39
39
|
]);
|
|
@@ -26,7 +26,7 @@ declare const BaseTrigger: z.ZodObject<{
|
|
|
26
26
|
tradeAccountId: z.ZodUUID;
|
|
27
27
|
connector: z.ZodEnum<{
|
|
28
28
|
hyperliquid: "hyperliquid";
|
|
29
|
-
|
|
29
|
+
binance: "binance";
|
|
30
30
|
bybit: "bybit";
|
|
31
31
|
okx: "okx";
|
|
32
32
|
}>;
|
|
@@ -50,7 +50,7 @@ declare const BaseTrigger: z.ZodObject<{
|
|
|
50
50
|
positionId: z.ZodUUID;
|
|
51
51
|
connector: z.ZodEnum<{
|
|
52
52
|
hyperliquid: "hyperliquid";
|
|
53
|
-
|
|
53
|
+
binance: "binance";
|
|
54
54
|
bybit: "bybit";
|
|
55
55
|
okx: "okx";
|
|
56
56
|
}>;
|
|
@@ -77,7 +77,7 @@ export declare const TriggerMarketOpen: z.ZodObject<{
|
|
|
77
77
|
tradeAccountId: z.ZodUUID;
|
|
78
78
|
connector: z.ZodEnum<{
|
|
79
79
|
hyperliquid: "hyperliquid";
|
|
80
|
-
|
|
80
|
+
binance: "binance";
|
|
81
81
|
bybit: "bybit";
|
|
82
82
|
okx: "okx";
|
|
83
83
|
}>;
|
|
@@ -101,7 +101,7 @@ export declare const TriggerMarketOpen: z.ZodObject<{
|
|
|
101
101
|
positionId: z.ZodUUID;
|
|
102
102
|
connector: z.ZodEnum<{
|
|
103
103
|
hyperliquid: "hyperliquid";
|
|
104
|
-
|
|
104
|
+
binance: "binance";
|
|
105
105
|
bybit: "bybit";
|
|
106
106
|
okx: "okx";
|
|
107
107
|
}>;
|
|
@@ -224,7 +224,7 @@ export declare const TriggerMarketAdjust: z.ZodObject<{
|
|
|
224
224
|
tradeAccountId: z.ZodUUID;
|
|
225
225
|
connector: z.ZodEnum<{
|
|
226
226
|
hyperliquid: "hyperliquid";
|
|
227
|
-
|
|
227
|
+
binance: "binance";
|
|
228
228
|
bybit: "bybit";
|
|
229
229
|
okx: "okx";
|
|
230
230
|
}>;
|
|
@@ -248,7 +248,7 @@ export declare const TriggerMarketAdjust: z.ZodObject<{
|
|
|
248
248
|
positionId: z.ZodUUID;
|
|
249
249
|
connector: z.ZodEnum<{
|
|
250
250
|
hyperliquid: "hyperliquid";
|
|
251
|
-
|
|
251
|
+
binance: "binance";
|
|
252
252
|
bybit: "bybit";
|
|
253
253
|
okx: "okx";
|
|
254
254
|
}>;
|
|
@@ -416,7 +416,7 @@ export declare const TriggerMarketClose: z.ZodObject<{
|
|
|
416
416
|
tradeAccountId: z.ZodUUID;
|
|
417
417
|
connector: z.ZodEnum<{
|
|
418
418
|
hyperliquid: "hyperliquid";
|
|
419
|
-
|
|
419
|
+
binance: "binance";
|
|
420
420
|
bybit: "bybit";
|
|
421
421
|
okx: "okx";
|
|
422
422
|
}>;
|
|
@@ -440,7 +440,7 @@ export declare const TriggerMarketClose: z.ZodObject<{
|
|
|
440
440
|
positionId: z.ZodUUID;
|
|
441
441
|
connector: z.ZodEnum<{
|
|
442
442
|
hyperliquid: "hyperliquid";
|
|
443
|
-
|
|
443
|
+
binance: "binance";
|
|
444
444
|
bybit: "bybit";
|
|
445
445
|
okx: "okx";
|
|
446
446
|
}>;
|
|
@@ -583,7 +583,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
583
583
|
tradeAccountId: z.ZodUUID;
|
|
584
584
|
connector: z.ZodEnum<{
|
|
585
585
|
hyperliquid: "hyperliquid";
|
|
586
|
-
|
|
586
|
+
binance: "binance";
|
|
587
587
|
bybit: "bybit";
|
|
588
588
|
okx: "okx";
|
|
589
589
|
}>;
|
|
@@ -607,7 +607,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
607
607
|
positionId: z.ZodUUID;
|
|
608
608
|
connector: z.ZodEnum<{
|
|
609
609
|
hyperliquid: "hyperliquid";
|
|
610
|
-
|
|
610
|
+
binance: "binance";
|
|
611
611
|
bybit: "bybit";
|
|
612
612
|
okx: "okx";
|
|
613
613
|
}>;
|
|
@@ -729,7 +729,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
729
729
|
tradeAccountId: z.ZodUUID;
|
|
730
730
|
connector: z.ZodEnum<{
|
|
731
731
|
hyperliquid: "hyperliquid";
|
|
732
|
-
|
|
732
|
+
binance: "binance";
|
|
733
733
|
bybit: "bybit";
|
|
734
734
|
okx: "okx";
|
|
735
735
|
}>;
|
|
@@ -753,7 +753,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
753
753
|
positionId: z.ZodUUID;
|
|
754
754
|
connector: z.ZodEnum<{
|
|
755
755
|
hyperliquid: "hyperliquid";
|
|
756
|
-
|
|
756
|
+
binance: "binance";
|
|
757
757
|
bybit: "bybit";
|
|
758
758
|
okx: "okx";
|
|
759
759
|
}>;
|
|
@@ -920,7 +920,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
920
920
|
tradeAccountId: z.ZodUUID;
|
|
921
921
|
connector: z.ZodEnum<{
|
|
922
922
|
hyperliquid: "hyperliquid";
|
|
923
|
-
|
|
923
|
+
binance: "binance";
|
|
924
924
|
bybit: "bybit";
|
|
925
925
|
okx: "okx";
|
|
926
926
|
}>;
|
|
@@ -944,7 +944,7 @@ export declare const TriggerMarket: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
944
944
|
positionId: z.ZodUUID;
|
|
945
945
|
connector: z.ZodEnum<{
|
|
946
946
|
hyperliquid: "hyperliquid";
|
|
947
|
-
|
|
947
|
+
binance: "binance";
|
|
948
948
|
bybit: "bybit";
|
|
949
949
|
okx: "okx";
|
|
950
950
|
}>;
|
|
@@ -1087,7 +1087,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
1087
1087
|
tradeAccountId: z.ZodUUID;
|
|
1088
1088
|
connector: z.ZodEnum<{
|
|
1089
1089
|
hyperliquid: "hyperliquid";
|
|
1090
|
-
|
|
1090
|
+
binance: "binance";
|
|
1091
1091
|
bybit: "bybit";
|
|
1092
1092
|
okx: "okx";
|
|
1093
1093
|
}>;
|
|
@@ -1111,7 +1111,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
1111
1111
|
positionId: z.ZodUUID;
|
|
1112
1112
|
connector: z.ZodEnum<{
|
|
1113
1113
|
hyperliquid: "hyperliquid";
|
|
1114
|
-
|
|
1114
|
+
binance: "binance";
|
|
1115
1115
|
bybit: "bybit";
|
|
1116
1116
|
okx: "okx";
|
|
1117
1117
|
}>;
|
|
@@ -1233,7 +1233,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
1233
1233
|
tradeAccountId: z.ZodUUID;
|
|
1234
1234
|
connector: z.ZodEnum<{
|
|
1235
1235
|
hyperliquid: "hyperliquid";
|
|
1236
|
-
|
|
1236
|
+
binance: "binance";
|
|
1237
1237
|
bybit: "bybit";
|
|
1238
1238
|
okx: "okx";
|
|
1239
1239
|
}>;
|
|
@@ -1257,7 +1257,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
1257
1257
|
positionId: z.ZodUUID;
|
|
1258
1258
|
connector: z.ZodEnum<{
|
|
1259
1259
|
hyperliquid: "hyperliquid";
|
|
1260
|
-
|
|
1260
|
+
binance: "binance";
|
|
1261
1261
|
bybit: "bybit";
|
|
1262
1262
|
okx: "okx";
|
|
1263
1263
|
}>;
|
|
@@ -1424,7 +1424,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
1424
1424
|
tradeAccountId: z.ZodUUID;
|
|
1425
1425
|
connector: z.ZodEnum<{
|
|
1426
1426
|
hyperliquid: "hyperliquid";
|
|
1427
|
-
|
|
1427
|
+
binance: "binance";
|
|
1428
1428
|
bybit: "bybit";
|
|
1429
1429
|
okx: "okx";
|
|
1430
1430
|
}>;
|
|
@@ -1448,7 +1448,7 @@ export declare const Trigger: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[
|
|
|
1448
1448
|
positionId: z.ZodUUID;
|
|
1449
1449
|
connector: z.ZodEnum<{
|
|
1450
1450
|
hyperliquid: "hyperliquid";
|
|
1451
|
-
|
|
1451
|
+
binance: "binance";
|
|
1452
1452
|
bybit: "bybit";
|
|
1453
1453
|
okx: "okx";
|
|
1454
1454
|
}>;
|