@lifi/perps-types 0.1.1-alpha.3 → 0.1.1-alpha.4
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/package.json +8 -2
- package/src/_cjs/providers/hyperliquid/types.js +0 -178
- package/src/_cjs/providers/hyperliquid/types.js.map +1 -1
- package/src/_esm/providers/hyperliquid/types.js +2 -200
- package/src/_esm/providers/hyperliquid/types.js.map +1 -1
- package/src/_types/providers/hyperliquid/types.d.ts +175 -338
- package/src/_types/providers/hyperliquid/types.d.ts.map +1 -1
- package/src/providers/hyperliquid/types.ts +175 -244
|
@@ -1,340 +1,177 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}>;
|
|
19
|
-
export type HlMeta = Static<typeof HlMetaSchema>;
|
|
20
|
-
export declare const HlAssetCtxSchema: import("@sinclair/typebox").TObject<{
|
|
21
|
-
funding: import("@sinclair/typebox").TString;
|
|
22
|
-
openInterest: import("@sinclair/typebox").TString;
|
|
23
|
-
dayNtlVlm: import("@sinclair/typebox").TString;
|
|
24
|
-
markPx: import("@sinclair/typebox").TString;
|
|
25
|
-
}>;
|
|
26
|
-
export type HlAssetCtx = Static<typeof HlAssetCtxSchema>;
|
|
27
|
-
export declare const HlMetaAndAssetCtxsSchema: import("@sinclair/typebox").TTuple<[import("@sinclair/typebox").TObject<{
|
|
28
|
-
universe: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
29
|
-
name: import("@sinclair/typebox").TString;
|
|
30
|
-
szDecimals: import("@sinclair/typebox").TNumber;
|
|
31
|
-
maxLeverage: import("@sinclair/typebox").TNumber;
|
|
32
|
-
onlyIsolated: import("@sinclair/typebox").TBoolean;
|
|
33
|
-
isDelisted: import("@sinclair/typebox").TBoolean;
|
|
34
|
-
}>>;
|
|
35
|
-
}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
36
|
-
funding: import("@sinclair/typebox").TString;
|
|
37
|
-
openInterest: import("@sinclair/typebox").TString;
|
|
38
|
-
dayNtlVlm: import("@sinclair/typebox").TString;
|
|
39
|
-
markPx: import("@sinclair/typebox").TString;
|
|
40
|
-
}>>]>;
|
|
41
|
-
export type HlMetaAndAssetCtxs = Static<typeof HlMetaAndAssetCtxsSchema>;
|
|
1
|
+
export type HlUniverseItem = {
|
|
2
|
+
name: string;
|
|
3
|
+
szDecimals: number;
|
|
4
|
+
maxLeverage: number;
|
|
5
|
+
onlyIsolated: boolean;
|
|
6
|
+
isDelisted: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type HlMeta = {
|
|
9
|
+
universe: HlUniverseItem[];
|
|
10
|
+
};
|
|
11
|
+
export type HlAssetCtx = {
|
|
12
|
+
funding: string;
|
|
13
|
+
openInterest: string;
|
|
14
|
+
dayNtlVlm: string;
|
|
15
|
+
markPx: string;
|
|
16
|
+
};
|
|
17
|
+
export type HlMetaAndAssetCtxs = [HlMeta, HlAssetCtx[]];
|
|
42
18
|
export type HlUniverse = HlMeta['universe'];
|
|
43
|
-
export
|
|
44
|
-
export type
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export type
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
export type
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
export
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
export
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
tid: import("@sinclair/typebox").TNumber;
|
|
202
|
-
coin: import("@sinclair/typebox").TString;
|
|
203
|
-
side: import("@sinclair/typebox").TString;
|
|
204
|
-
sz: import("@sinclair/typebox").TString;
|
|
205
|
-
px: import("@sinclair/typebox").TString;
|
|
206
|
-
dir: import("@sinclair/typebox").TString;
|
|
207
|
-
fee: import("@sinclair/typebox").TString;
|
|
208
|
-
closedPnl: import("@sinclair/typebox").TString;
|
|
209
|
-
time: import("@sinclair/typebox").TNumber;
|
|
210
|
-
}>>;
|
|
211
|
-
export type HlUserFills = Static<typeof HlUserFillsSchema>;
|
|
212
|
-
export declare const HlUserFillsByTimeSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
213
|
-
tid: import("@sinclair/typebox").TNumber;
|
|
214
|
-
coin: import("@sinclair/typebox").TString;
|
|
215
|
-
side: import("@sinclair/typebox").TString;
|
|
216
|
-
sz: import("@sinclair/typebox").TString;
|
|
217
|
-
px: import("@sinclair/typebox").TString;
|
|
218
|
-
dir: import("@sinclair/typebox").TString;
|
|
219
|
-
fee: import("@sinclair/typebox").TString;
|
|
220
|
-
closedPnl: import("@sinclair/typebox").TString;
|
|
221
|
-
time: import("@sinclair/typebox").TNumber;
|
|
222
|
-
}>>;
|
|
223
|
-
export type HlUserFillsByTime = Static<typeof HlUserFillsByTimeSchema>;
|
|
224
|
-
export declare const HlOrderDetailSchema: import("@sinclair/typebox").TObject<{
|
|
225
|
-
order: import("@sinclair/typebox").TObject<{
|
|
226
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
227
|
-
coin: import("@sinclair/typebox").TString;
|
|
228
|
-
side: import("@sinclair/typebox").TString;
|
|
229
|
-
sz: import("@sinclair/typebox").TString;
|
|
230
|
-
limitPx: import("@sinclair/typebox").TString;
|
|
231
|
-
orderType: import("@sinclair/typebox").TString;
|
|
232
|
-
origSz: import("@sinclair/typebox").TString;
|
|
233
|
-
reduceOnly: import("@sinclair/typebox").TBoolean;
|
|
234
|
-
timestamp: import("@sinclair/typebox").TNumber;
|
|
235
|
-
tif: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
236
|
-
cloid: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
237
|
-
triggerCondition: import("@sinclair/typebox").TString;
|
|
238
|
-
triggerPx: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
239
|
-
}>;
|
|
240
|
-
status: import("@sinclair/typebox").TString;
|
|
241
|
-
statusTimestamp: import("@sinclair/typebox").TNumber;
|
|
242
|
-
}>;
|
|
243
|
-
export type HlOrderDetail = Static<typeof HlOrderDetailSchema>;
|
|
244
|
-
export declare const HlOrderStatusFoundSchema: import("@sinclair/typebox").TObject<{
|
|
245
|
-
status: import("@sinclair/typebox").TLiteral<"order">;
|
|
246
|
-
order: import("@sinclair/typebox").TObject<{
|
|
247
|
-
order: import("@sinclair/typebox").TObject<{
|
|
248
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
249
|
-
coin: import("@sinclair/typebox").TString;
|
|
250
|
-
side: import("@sinclair/typebox").TString;
|
|
251
|
-
sz: import("@sinclair/typebox").TString;
|
|
252
|
-
limitPx: import("@sinclair/typebox").TString;
|
|
253
|
-
orderType: import("@sinclair/typebox").TString;
|
|
254
|
-
origSz: import("@sinclair/typebox").TString;
|
|
255
|
-
reduceOnly: import("@sinclair/typebox").TBoolean;
|
|
256
|
-
timestamp: import("@sinclair/typebox").TNumber;
|
|
257
|
-
tif: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
258
|
-
cloid: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
259
|
-
triggerCondition: import("@sinclair/typebox").TString;
|
|
260
|
-
triggerPx: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
261
|
-
}>;
|
|
262
|
-
status: import("@sinclair/typebox").TString;
|
|
263
|
-
statusTimestamp: import("@sinclair/typebox").TNumber;
|
|
264
|
-
}>;
|
|
265
|
-
}>;
|
|
266
|
-
export type HlOrderStatusFound = Static<typeof HlOrderStatusFoundSchema>;
|
|
267
|
-
export declare const HlOrderStatusResponseSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
268
|
-
status: import("@sinclair/typebox").TLiteral<"order">;
|
|
269
|
-
order: import("@sinclair/typebox").TObject<{
|
|
270
|
-
order: import("@sinclair/typebox").TObject<{
|
|
271
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
272
|
-
coin: import("@sinclair/typebox").TString;
|
|
273
|
-
side: import("@sinclair/typebox").TString;
|
|
274
|
-
sz: import("@sinclair/typebox").TString;
|
|
275
|
-
limitPx: import("@sinclair/typebox").TString;
|
|
276
|
-
orderType: import("@sinclair/typebox").TString;
|
|
277
|
-
origSz: import("@sinclair/typebox").TString;
|
|
278
|
-
reduceOnly: import("@sinclair/typebox").TBoolean;
|
|
279
|
-
timestamp: import("@sinclair/typebox").TNumber;
|
|
280
|
-
tif: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
281
|
-
cloid: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
282
|
-
triggerCondition: import("@sinclair/typebox").TString;
|
|
283
|
-
triggerPx: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
284
|
-
}>;
|
|
285
|
-
status: import("@sinclair/typebox").TString;
|
|
286
|
-
statusTimestamp: import("@sinclair/typebox").TNumber;
|
|
287
|
-
}>;
|
|
288
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
289
|
-
status: import("@sinclair/typebox").TLiteral<"unknownOid">;
|
|
290
|
-
}>]>;
|
|
291
|
-
export type HlOrderStatusResponse = Static<typeof HlOrderStatusResponseSchema>;
|
|
292
|
-
export declare const HlPerpDexsSchema: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TObject<{
|
|
293
|
-
name: import("@sinclair/typebox").TString;
|
|
294
|
-
}>]>>;
|
|
295
|
-
export type HlPerpDexs = Static<typeof HlPerpDexsSchema>;
|
|
296
|
-
export declare const HlExchangeRequestSchema: import("@sinclair/typebox").TObject<{
|
|
297
|
-
action: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>;
|
|
298
|
-
signature: import("@sinclair/typebox").TObject<{
|
|
299
|
-
r: import("@sinclair/typebox").TString;
|
|
300
|
-
s: import("@sinclair/typebox").TString;
|
|
301
|
-
v: import("@sinclair/typebox").TNumber;
|
|
302
|
-
}>;
|
|
303
|
-
nonce: import("@sinclair/typebox").TNumber;
|
|
304
|
-
vaultAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
305
|
-
}>;
|
|
306
|
-
export type HlExchangeRequest = Static<typeof HlExchangeRequestSchema>;
|
|
307
|
-
export declare const HlExchangeResponseSchema: import("@sinclair/typebox").TObject<{
|
|
308
|
-
status: import("@sinclair/typebox").TString;
|
|
309
|
-
response: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
310
|
-
type: import("@sinclair/typebox").TString;
|
|
311
|
-
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
312
|
-
statuses: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
313
|
-
filled: import("@sinclair/typebox").TObject<{
|
|
314
|
-
totalSz: import("@sinclair/typebox").TString;
|
|
315
|
-
avgPx: import("@sinclair/typebox").TString;
|
|
316
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
317
|
-
}>;
|
|
318
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
319
|
-
resting: import("@sinclair/typebox").TObject<{
|
|
320
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
321
|
-
}>;
|
|
322
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
323
|
-
waitingForFill: import("@sinclair/typebox").TObject<{
|
|
324
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
325
|
-
}>;
|
|
326
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
327
|
-
waitingForTrigger: import("@sinclair/typebox").TObject<{
|
|
328
|
-
oid: import("@sinclair/typebox").TNumber;
|
|
329
|
-
}>;
|
|
330
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
331
|
-
success: import("@sinclair/typebox").TLiteral<true>;
|
|
332
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
333
|
-
error: import("@sinclair/typebox").TString;
|
|
334
|
-
}>]>>>;
|
|
335
|
-
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
336
|
-
}>>;
|
|
337
|
-
}>]>>;
|
|
338
|
-
}>;
|
|
339
|
-
export type HlExchangeResponse = Static<typeof HlExchangeResponseSchema>;
|
|
19
|
+
export type HlAllMids = Record<string, string>;
|
|
20
|
+
export type HlCandle = {
|
|
21
|
+
t: number;
|
|
22
|
+
o: string;
|
|
23
|
+
h: string;
|
|
24
|
+
l: string;
|
|
25
|
+
c: string;
|
|
26
|
+
v: string;
|
|
27
|
+
};
|
|
28
|
+
export type HlCandleSnapshot = HlCandle[];
|
|
29
|
+
export type HlLevel = {
|
|
30
|
+
px: string;
|
|
31
|
+
sz: string;
|
|
32
|
+
n: number;
|
|
33
|
+
};
|
|
34
|
+
export type HlL2Book = {
|
|
35
|
+
levels: [HlLevel[], HlLevel[]];
|
|
36
|
+
time: number;
|
|
37
|
+
};
|
|
38
|
+
export type HlPosition = {
|
|
39
|
+
coin: string;
|
|
40
|
+
szi: string;
|
|
41
|
+
entryPx: string;
|
|
42
|
+
positionValue: string;
|
|
43
|
+
liquidationPx: string;
|
|
44
|
+
unrealizedPnl: string;
|
|
45
|
+
marginUsed: string;
|
|
46
|
+
leverage: {
|
|
47
|
+
type: string;
|
|
48
|
+
value: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export type HlAssetPosition = {
|
|
52
|
+
position: HlPosition;
|
|
53
|
+
};
|
|
54
|
+
export type HlClearinghouseState = {
|
|
55
|
+
assetPositions: HlAssetPosition[];
|
|
56
|
+
marginSummary: {
|
|
57
|
+
accountValue: string;
|
|
58
|
+
totalMarginUsed: string;
|
|
59
|
+
};
|
|
60
|
+
crossMarginSummary: {
|
|
61
|
+
accountValue: string;
|
|
62
|
+
totalMarginUsed: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export type HlSpotBalance = {
|
|
66
|
+
coin: string;
|
|
67
|
+
token: number;
|
|
68
|
+
total: string;
|
|
69
|
+
hold: string;
|
|
70
|
+
entryNtl: string;
|
|
71
|
+
};
|
|
72
|
+
export type HlSpotClearinghouseState = {
|
|
73
|
+
balances: HlSpotBalance[];
|
|
74
|
+
};
|
|
75
|
+
export type HlUserFees = {
|
|
76
|
+
userAddRate: string;
|
|
77
|
+
userCrossRate: string;
|
|
78
|
+
activeReferralDiscount: string;
|
|
79
|
+
};
|
|
80
|
+
export type HlFrontendOpenOrder = {
|
|
81
|
+
oid: number;
|
|
82
|
+
coin: string;
|
|
83
|
+
side: string;
|
|
84
|
+
sz: string;
|
|
85
|
+
limitPx: string;
|
|
86
|
+
orderType: string;
|
|
87
|
+
origSz: string;
|
|
88
|
+
reduceOnly: boolean;
|
|
89
|
+
timestamp: number;
|
|
90
|
+
};
|
|
91
|
+
export type HlFrontendOpenOrders = HlFrontendOpenOrder[];
|
|
92
|
+
export type HlExtraAgents = Record<string, unknown>[];
|
|
93
|
+
export type HlUserFill = {
|
|
94
|
+
tid: number;
|
|
95
|
+
coin: string;
|
|
96
|
+
side: string;
|
|
97
|
+
sz: string;
|
|
98
|
+
px: string;
|
|
99
|
+
dir: string;
|
|
100
|
+
fee: string;
|
|
101
|
+
closedPnl: string;
|
|
102
|
+
time: number;
|
|
103
|
+
};
|
|
104
|
+
export type HlUserFills = HlUserFill[];
|
|
105
|
+
export type HlUserFillsByTime = HlUserFill[];
|
|
106
|
+
export type HlOrderDetail = {
|
|
107
|
+
order: {
|
|
108
|
+
oid: number;
|
|
109
|
+
coin: string;
|
|
110
|
+
side: string;
|
|
111
|
+
sz: string;
|
|
112
|
+
limitPx: string;
|
|
113
|
+
orderType: string;
|
|
114
|
+
origSz: string;
|
|
115
|
+
reduceOnly: boolean;
|
|
116
|
+
timestamp: number;
|
|
117
|
+
tif: string | null;
|
|
118
|
+
cloid: string | null;
|
|
119
|
+
triggerCondition: string;
|
|
120
|
+
triggerPx: string | null;
|
|
121
|
+
};
|
|
122
|
+
status: string;
|
|
123
|
+
statusTimestamp: number;
|
|
124
|
+
};
|
|
125
|
+
export type HlOrderStatusFound = {
|
|
126
|
+
status: 'order';
|
|
127
|
+
order: HlOrderDetail;
|
|
128
|
+
};
|
|
129
|
+
export type HlOrderStatusResponse = HlOrderStatusFound | {
|
|
130
|
+
status: 'unknownOid';
|
|
131
|
+
};
|
|
132
|
+
export type HlPerpDexs = (null | {
|
|
133
|
+
name: string;
|
|
134
|
+
})[];
|
|
135
|
+
export type HlExchangeRequest = {
|
|
136
|
+
action: Record<string, unknown>;
|
|
137
|
+
signature: {
|
|
138
|
+
r: string;
|
|
139
|
+
s: string;
|
|
140
|
+
v: number;
|
|
141
|
+
};
|
|
142
|
+
nonce: number;
|
|
143
|
+
vaultAddress?: string | null;
|
|
144
|
+
};
|
|
145
|
+
export type HlExchangeResponse = {
|
|
146
|
+
status: string;
|
|
147
|
+
response?: string | {
|
|
148
|
+
type: string;
|
|
149
|
+
data?: {
|
|
150
|
+
statuses?: (string | {
|
|
151
|
+
filled: {
|
|
152
|
+
totalSz: string;
|
|
153
|
+
avgPx: string;
|
|
154
|
+
oid: number;
|
|
155
|
+
};
|
|
156
|
+
} | {
|
|
157
|
+
resting: {
|
|
158
|
+
oid: number;
|
|
159
|
+
};
|
|
160
|
+
} | {
|
|
161
|
+
waitingForFill: {
|
|
162
|
+
oid: number;
|
|
163
|
+
};
|
|
164
|
+
} | {
|
|
165
|
+
waitingForTrigger: {
|
|
166
|
+
oid: number;
|
|
167
|
+
};
|
|
168
|
+
} | {
|
|
169
|
+
success: true;
|
|
170
|
+
} | {
|
|
171
|
+
error: string;
|
|
172
|
+
})[];
|
|
173
|
+
status?: unknown;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
340
177
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../providers/hyperliquid/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../providers/hyperliquid/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,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