@bulletxyz/bullet-sdk 0.49.8 → 0.49.10
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/browser/bullet_wasm_bg.wasm +0 -0
- package/dist/browser/index.js +175 -103
- package/dist/browser/index.js.map +7 -6
- package/dist/node/bullet_wasm_bg.wasm +0 -0
- package/dist/node/index.js +175 -103
- package/dist/node/index.js.map +7 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/bullet-wasm/wasm-glue.d.ts +4 -4
- package/dist/types/client.d.ts +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/rollupTypes.d.ts +4 -4
- package/dist/types/rollupTypes.d.ts.map +1 -1
- package/dist/types/types.d.ts +6 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/zod-types/rest.d.ts +1822 -473
- package/dist/types/zod-types/rest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -156,6 +156,369 @@ declare const Order: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
|
156
156
|
expiry_timestamp: bigint | null;
|
|
157
157
|
};
|
|
158
158
|
}>>]>]>;
|
|
159
|
+
/** Unwraps nested PricingEngine enum (V1 current, V0 legacy) */
|
|
160
|
+
declare const PricingEngine: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
161
|
+
V1: z.ZodObject<{
|
|
162
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
163
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
164
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
166
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
167
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
168
|
+
price: import("decimal.js").Decimal;
|
|
169
|
+
last_update_timestamp: bigint | null;
|
|
170
|
+
}>, Record<string, {
|
|
171
|
+
price: import("decimal.js").Decimal;
|
|
172
|
+
last_update_timestamp: bigint | null;
|
|
173
|
+
}>>>;
|
|
174
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
175
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
176
|
+
mark_price: z.ZodObject<{
|
|
177
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
178
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
179
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
180
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
accum_premium_index: z.ZodObject<{
|
|
183
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
184
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
185
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
funding_meta: z.ZodObject<{
|
|
188
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
189
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
190
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
191
|
+
config: z.ZodObject<{
|
|
192
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
193
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
194
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
195
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
196
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
200
|
+
market_id: number;
|
|
201
|
+
mark_price: {
|
|
202
|
+
price: import("decimal.js").Decimal;
|
|
203
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
204
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
205
|
+
last_update_timestamp: bigint | null;
|
|
206
|
+
};
|
|
207
|
+
accum_premium_index: {
|
|
208
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
209
|
+
duration_sum: bigint;
|
|
210
|
+
last_update_timestamp: bigint | null;
|
|
211
|
+
};
|
|
212
|
+
funding_meta: {
|
|
213
|
+
rate: import("decimal.js").Decimal;
|
|
214
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
215
|
+
last_update_timestamp: bigint;
|
|
216
|
+
config: {
|
|
217
|
+
interest_rate: import("decimal.js").Decimal;
|
|
218
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
219
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
220
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
221
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
}>, Record<string, {
|
|
225
|
+
market_id: number;
|
|
226
|
+
mark_price: {
|
|
227
|
+
price: import("decimal.js").Decimal;
|
|
228
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
229
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
230
|
+
last_update_timestamp: bigint | null;
|
|
231
|
+
};
|
|
232
|
+
accum_premium_index: {
|
|
233
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
234
|
+
duration_sum: bigint;
|
|
235
|
+
last_update_timestamp: bigint | null;
|
|
236
|
+
};
|
|
237
|
+
funding_meta: {
|
|
238
|
+
rate: import("decimal.js").Decimal;
|
|
239
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
240
|
+
last_update_timestamp: bigint;
|
|
241
|
+
config: {
|
|
242
|
+
interest_rate: import("decimal.js").Decimal;
|
|
243
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
244
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
245
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
246
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
}>>>;
|
|
250
|
+
rwa_pricing_config: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
251
|
+
reference_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
252
|
+
oracle_threshold_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
253
|
+
up_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
254
|
+
down_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
255
|
+
max_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
256
|
+
funding_dampening_multiplier: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
257
|
+
internal_pricing_time_constant: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
258
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
259
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
260
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
261
|
+
up_bound_n: number;
|
|
262
|
+
down_bound_n: number;
|
|
263
|
+
max_bound_n: number;
|
|
264
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
265
|
+
internal_pricing_time_constant: bigint;
|
|
266
|
+
}>, Record<string, {
|
|
267
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
268
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
269
|
+
up_bound_n: number;
|
|
270
|
+
down_bound_n: number;
|
|
271
|
+
max_bound_n: number;
|
|
272
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
273
|
+
internal_pricing_time_constant: bigint;
|
|
274
|
+
}>>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
277
|
+
pricing_frequency_seconds: number;
|
|
278
|
+
relaxed_pricing_frequency_seconds: number;
|
|
279
|
+
oracle_pricing: Map<number, {
|
|
280
|
+
price: import("decimal.js").Decimal;
|
|
281
|
+
last_update_timestamp: bigint | null;
|
|
282
|
+
}>;
|
|
283
|
+
perp_pricing: Map<number, {
|
|
284
|
+
market_id: number;
|
|
285
|
+
mark_price: {
|
|
286
|
+
price: import("decimal.js").Decimal;
|
|
287
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
288
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
289
|
+
last_update_timestamp: bigint | null;
|
|
290
|
+
};
|
|
291
|
+
accum_premium_index: {
|
|
292
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
293
|
+
duration_sum: bigint;
|
|
294
|
+
last_update_timestamp: bigint | null;
|
|
295
|
+
};
|
|
296
|
+
funding_meta: {
|
|
297
|
+
rate: import("decimal.js").Decimal;
|
|
298
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
299
|
+
last_update_timestamp: bigint;
|
|
300
|
+
config: {
|
|
301
|
+
interest_rate: import("decimal.js").Decimal;
|
|
302
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
303
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
304
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
305
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
}>;
|
|
309
|
+
rwa_pricing_config: Map<number, {
|
|
310
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
311
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
312
|
+
up_bound_n: number;
|
|
313
|
+
down_bound_n: number;
|
|
314
|
+
max_bound_n: number;
|
|
315
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
316
|
+
internal_pricing_time_constant: bigint;
|
|
317
|
+
}>;
|
|
318
|
+
}, {
|
|
319
|
+
V1: {
|
|
320
|
+
pricing_frequency_seconds: number;
|
|
321
|
+
relaxed_pricing_frequency_seconds: number;
|
|
322
|
+
oracle_pricing: Map<number, {
|
|
323
|
+
price: import("decimal.js").Decimal;
|
|
324
|
+
last_update_timestamp: bigint | null;
|
|
325
|
+
}>;
|
|
326
|
+
perp_pricing: Map<number, {
|
|
327
|
+
market_id: number;
|
|
328
|
+
mark_price: {
|
|
329
|
+
price: import("decimal.js").Decimal;
|
|
330
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
331
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
332
|
+
last_update_timestamp: bigint | null;
|
|
333
|
+
};
|
|
334
|
+
accum_premium_index: {
|
|
335
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
336
|
+
duration_sum: bigint;
|
|
337
|
+
last_update_timestamp: bigint | null;
|
|
338
|
+
};
|
|
339
|
+
funding_meta: {
|
|
340
|
+
rate: import("decimal.js").Decimal;
|
|
341
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
342
|
+
last_update_timestamp: bigint;
|
|
343
|
+
config: {
|
|
344
|
+
interest_rate: import("decimal.js").Decimal;
|
|
345
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
346
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
347
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
348
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}>;
|
|
352
|
+
rwa_pricing_config: Map<number, {
|
|
353
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
354
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
355
|
+
up_bound_n: number;
|
|
356
|
+
down_bound_n: number;
|
|
357
|
+
max_bound_n: number;
|
|
358
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
359
|
+
internal_pricing_time_constant: bigint;
|
|
360
|
+
}>;
|
|
361
|
+
};
|
|
362
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
363
|
+
V0: z.ZodObject<{
|
|
364
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
365
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
366
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
367
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
368
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
369
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
370
|
+
price: import("decimal.js").Decimal;
|
|
371
|
+
last_update_timestamp: bigint | null;
|
|
372
|
+
}>, Record<string, {
|
|
373
|
+
price: import("decimal.js").Decimal;
|
|
374
|
+
last_update_timestamp: bigint | null;
|
|
375
|
+
}>>>;
|
|
376
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
377
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
378
|
+
mark_price: z.ZodObject<{
|
|
379
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
380
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
381
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
382
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
accum_premium_index: z.ZodObject<{
|
|
385
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
386
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
387
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
funding_meta: z.ZodObject<{
|
|
390
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
391
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
392
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
393
|
+
config: z.ZodObject<{
|
|
394
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
395
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
396
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
397
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
398
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
402
|
+
market_id: number;
|
|
403
|
+
mark_price: {
|
|
404
|
+
price: import("decimal.js").Decimal;
|
|
405
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
406
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
407
|
+
last_update_timestamp: bigint | null;
|
|
408
|
+
};
|
|
409
|
+
accum_premium_index: {
|
|
410
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
411
|
+
duration_sum: bigint;
|
|
412
|
+
last_update_timestamp: bigint | null;
|
|
413
|
+
};
|
|
414
|
+
funding_meta: {
|
|
415
|
+
rate: import("decimal.js").Decimal;
|
|
416
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
417
|
+
last_update_timestamp: bigint;
|
|
418
|
+
config: {
|
|
419
|
+
interest_rate: import("decimal.js").Decimal;
|
|
420
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
421
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
422
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
423
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
}>, Record<string, {
|
|
427
|
+
market_id: number;
|
|
428
|
+
mark_price: {
|
|
429
|
+
price: import("decimal.js").Decimal;
|
|
430
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
431
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
432
|
+
last_update_timestamp: bigint | null;
|
|
433
|
+
};
|
|
434
|
+
accum_premium_index: {
|
|
435
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
436
|
+
duration_sum: bigint;
|
|
437
|
+
last_update_timestamp: bigint | null;
|
|
438
|
+
};
|
|
439
|
+
funding_meta: {
|
|
440
|
+
rate: import("decimal.js").Decimal;
|
|
441
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
442
|
+
last_update_timestamp: bigint;
|
|
443
|
+
config: {
|
|
444
|
+
interest_rate: import("decimal.js").Decimal;
|
|
445
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
446
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
447
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
448
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
}>>>;
|
|
452
|
+
}, z.core.$strip>;
|
|
453
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
454
|
+
pricing_frequency_seconds: number;
|
|
455
|
+
relaxed_pricing_frequency_seconds: number;
|
|
456
|
+
oracle_pricing: Map<number, {
|
|
457
|
+
price: import("decimal.js").Decimal;
|
|
458
|
+
last_update_timestamp: bigint | null;
|
|
459
|
+
}>;
|
|
460
|
+
perp_pricing: Map<number, {
|
|
461
|
+
market_id: number;
|
|
462
|
+
mark_price: {
|
|
463
|
+
price: import("decimal.js").Decimal;
|
|
464
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
465
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
466
|
+
last_update_timestamp: bigint | null;
|
|
467
|
+
};
|
|
468
|
+
accum_premium_index: {
|
|
469
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
470
|
+
duration_sum: bigint;
|
|
471
|
+
last_update_timestamp: bigint | null;
|
|
472
|
+
};
|
|
473
|
+
funding_meta: {
|
|
474
|
+
rate: import("decimal.js").Decimal;
|
|
475
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
476
|
+
last_update_timestamp: bigint;
|
|
477
|
+
config: {
|
|
478
|
+
interest_rate: import("decimal.js").Decimal;
|
|
479
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
480
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
481
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
482
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
}>;
|
|
486
|
+
}, {
|
|
487
|
+
V0: {
|
|
488
|
+
pricing_frequency_seconds: number;
|
|
489
|
+
relaxed_pricing_frequency_seconds: number;
|
|
490
|
+
oracle_pricing: Map<number, {
|
|
491
|
+
price: import("decimal.js").Decimal;
|
|
492
|
+
last_update_timestamp: bigint | null;
|
|
493
|
+
}>;
|
|
494
|
+
perp_pricing: Map<number, {
|
|
495
|
+
market_id: number;
|
|
496
|
+
mark_price: {
|
|
497
|
+
price: import("decimal.js").Decimal;
|
|
498
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
499
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
500
|
+
last_update_timestamp: bigint | null;
|
|
501
|
+
};
|
|
502
|
+
accum_premium_index: {
|
|
503
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
504
|
+
duration_sum: bigint;
|
|
505
|
+
last_update_timestamp: bigint | null;
|
|
506
|
+
};
|
|
507
|
+
funding_meta: {
|
|
508
|
+
rate: import("decimal.js").Decimal;
|
|
509
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
510
|
+
last_update_timestamp: bigint;
|
|
511
|
+
config: {
|
|
512
|
+
interest_rate: import("decimal.js").Decimal;
|
|
513
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
514
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
515
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
516
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
}>;
|
|
520
|
+
};
|
|
521
|
+
}>>]>;
|
|
159
522
|
declare const BorrowLendPool: z.ZodObject<{
|
|
160
523
|
asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
161
524
|
is_active: z.ZodBoolean;
|
|
@@ -179,6 +542,80 @@ declare const BorrowLendPool: z.ZodObject<{
|
|
|
179
542
|
}, z.core.$strip>;
|
|
180
543
|
export declare const Schemas: {
|
|
181
544
|
readonly DummyValue: z.ZodNumber;
|
|
545
|
+
readonly ExchangeInfoV3: z.ZodObject<{
|
|
546
|
+
global_config: z.ZodObject<{
|
|
547
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
548
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
549
|
+
max_orders_per_batch_msg: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
550
|
+
max_trigger_orders_to_execute_per_msg: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
551
|
+
min_notional_twap_value: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
552
|
+
min_notional_twap_value_per_order: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
553
|
+
twap_execution_interval_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
554
|
+
user_deposit_limits_per_asset: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<number, import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>;
|
|
555
|
+
whitelisted_users_for_deposit: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodString>>, z.ZodTransform<Set<string>, string[]>>;
|
|
556
|
+
pyth_lazer_trusted_signers: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<string, number[]>>>, z.ZodTransform<Set<string>, string[]>>;
|
|
557
|
+
}, z.core.$strip>;
|
|
558
|
+
global_vault_config: z.ZodObject<{
|
|
559
|
+
leader_minimum_holding_percentage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
560
|
+
creation_fee_usdc: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
561
|
+
min_deposit_value: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
admins: z.ZodObject<{
|
|
564
|
+
protocol: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
565
|
+
funding: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
566
|
+
pricing: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
567
|
+
fee_tier: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
568
|
+
credits: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
569
|
+
referrals: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
570
|
+
}, z.core.$strip>;
|
|
571
|
+
assets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
572
|
+
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
573
|
+
name: z.ZodString;
|
|
574
|
+
token_id: z.ZodNullable<z.ZodString>;
|
|
575
|
+
decimals: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
576
|
+
withdraw_fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
577
|
+
pyth_lazer_feed_id: z.ZodNullable<z.ZodNumber>;
|
|
578
|
+
pyth_lazer_quote_feed_id: z.ZodNullable<z.ZodNumber>;
|
|
579
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
580
|
+
id: number;
|
|
581
|
+
name: string;
|
|
582
|
+
token_id: string | null;
|
|
583
|
+
decimals: number;
|
|
584
|
+
withdraw_fee: import("decimal.js").Decimal;
|
|
585
|
+
pyth_lazer_feed_id: number | null;
|
|
586
|
+
pyth_lazer_quote_feed_id: number | null;
|
|
587
|
+
}>, Record<string, {
|
|
588
|
+
id: number;
|
|
589
|
+
name: string;
|
|
590
|
+
token_id: string | null;
|
|
591
|
+
decimals: number;
|
|
592
|
+
withdraw_fee: import("decimal.js").Decimal;
|
|
593
|
+
pyth_lazer_feed_id: number | null;
|
|
594
|
+
pyth_lazer_quote_feed_id: number | null;
|
|
595
|
+
}>>>;
|
|
596
|
+
markets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
597
|
+
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
598
|
+
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
599
|
+
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
600
|
+
name: z.ZodString;
|
|
601
|
+
trading_mode: z.ZodEnum<{
|
|
602
|
+
iso: "iso";
|
|
603
|
+
cross: "cross";
|
|
604
|
+
}>;
|
|
605
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
606
|
+
id: number;
|
|
607
|
+
base_asset_id: number;
|
|
608
|
+
quote_asset_id: number;
|
|
609
|
+
name: string;
|
|
610
|
+
trading_mode: "iso" | "cross";
|
|
611
|
+
}>, Record<string, {
|
|
612
|
+
id: number;
|
|
613
|
+
base_asset_id: number;
|
|
614
|
+
quote_asset_id: number;
|
|
615
|
+
name: string;
|
|
616
|
+
trading_mode: "iso" | "cross";
|
|
617
|
+
}>>>;
|
|
618
|
+
}, z.core.$strip>;
|
|
182
619
|
readonly ExchangeInfoV2: z.ZodObject<{
|
|
183
620
|
global_config: z.ZodObject<{
|
|
184
621
|
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -230,6 +667,7 @@ export declare const Schemas: {
|
|
|
230
667
|
kind: z.ZodEnum<{
|
|
231
668
|
perp: "perp";
|
|
232
669
|
spot: "spot";
|
|
670
|
+
rwa_perp: "rwa_perp";
|
|
233
671
|
}>;
|
|
234
672
|
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
235
673
|
name: z.ZodString;
|
|
@@ -239,13 +677,13 @@ export declare const Schemas: {
|
|
|
239
677
|
}>;
|
|
240
678
|
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
241
679
|
id: number;
|
|
242
|
-
kind: "perp" | "spot";
|
|
680
|
+
kind: "perp" | "spot" | "rwa_perp";
|
|
243
681
|
base_asset_id: number;
|
|
244
682
|
name: string;
|
|
245
683
|
trading_mode: "iso" | "cross";
|
|
246
684
|
}>, Record<string, {
|
|
247
685
|
id: number;
|
|
248
|
-
kind: "perp" | "spot";
|
|
686
|
+
kind: "perp" | "spot" | "rwa_perp";
|
|
249
687
|
base_asset_id: number;
|
|
250
688
|
name: string;
|
|
251
689
|
trading_mode: "iso" | "cross";
|
|
@@ -364,6 +802,7 @@ export declare const Schemas: {
|
|
|
364
802
|
kind: z.ZodEnum<{
|
|
365
803
|
perp: "perp";
|
|
366
804
|
spot: "spot";
|
|
805
|
+
rwa_perp: "rwa_perp";
|
|
367
806
|
}>;
|
|
368
807
|
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
369
808
|
name: z.ZodString;
|
|
@@ -373,13 +812,13 @@ export declare const Schemas: {
|
|
|
373
812
|
}>;
|
|
374
813
|
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
375
814
|
id: number;
|
|
376
|
-
kind: "perp" | "spot";
|
|
815
|
+
kind: "perp" | "spot" | "rwa_perp";
|
|
377
816
|
base_asset_id: number;
|
|
378
817
|
name: string;
|
|
379
818
|
trading_mode: "iso" | "cross";
|
|
380
819
|
}>, Record<string, {
|
|
381
820
|
id: number;
|
|
382
|
-
kind: "perp" | "spot";
|
|
821
|
+
kind: "perp" | "spot" | "rwa_perp";
|
|
383
822
|
base_asset_id: number;
|
|
384
823
|
name: string;
|
|
385
824
|
trading_mode: "iso" | "cross";
|
|
@@ -3262,56 +3701,246 @@ export declare const Schemas: {
|
|
|
3262
3701
|
flags: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3263
3702
|
}, z.core.$strip>;
|
|
3264
3703
|
}, z.core.$strip>;
|
|
3265
|
-
readonly
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
price: import("decimal.js").Decimal;
|
|
3274
|
-
last_update_timestamp: bigint | null;
|
|
3275
|
-
}>, Record<string, {
|
|
3276
|
-
price: import("decimal.js").Decimal;
|
|
3277
|
-
last_update_timestamp: bigint | null;
|
|
3278
|
-
}>>>;
|
|
3279
|
-
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3280
|
-
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3281
|
-
mark_price: z.ZodObject<{
|
|
3282
|
-
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3283
|
-
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3284
|
-
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3285
|
-
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3286
|
-
}, z.core.$strip>;
|
|
3287
|
-
accum_premium_index: z.ZodObject<{
|
|
3288
|
-
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3289
|
-
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3290
|
-
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3291
|
-
}, z.core.$strip>;
|
|
3292
|
-
funding_meta: z.ZodObject<{
|
|
3293
|
-
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3294
|
-
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3295
|
-
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3296
|
-
config: z.ZodObject<{
|
|
3297
|
-
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3298
|
-
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3299
|
-
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3300
|
-
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3301
|
-
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3302
|
-
}, z.core.$strip>;
|
|
3704
|
+
readonly RiskEngineV1: z.ZodObject<{
|
|
3705
|
+
margin_config: z.ZodPipe<z.ZodObject<{
|
|
3706
|
+
V0: z.ZodObject<{
|
|
3707
|
+
perp_liquidation_config: z.ZodObject<{
|
|
3708
|
+
liquidation_ioc_buffer: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3709
|
+
backstop_liquidation_threshold: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3710
|
+
liquidation_fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3711
|
+
liquidation_protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3303
3712
|
}, z.core.$strip>;
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3713
|
+
perp_leverage_tables: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3714
|
+
tiers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3715
|
+
max_leverage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3716
|
+
mmr: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3717
|
+
maintenance_amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3718
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3719
|
+
max_leverage: number;
|
|
3720
|
+
mmr: import("decimal.js").Decimal;
|
|
3721
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
3722
|
+
}>, Record<string, {
|
|
3723
|
+
max_leverage: number;
|
|
3724
|
+
mmr: import("decimal.js").Decimal;
|
|
3725
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
3726
|
+
}>>>;
|
|
3727
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
3728
|
+
tiers: Map<string, {
|
|
3729
|
+
max_leverage: number;
|
|
3730
|
+
mmr: import("decimal.js").Decimal;
|
|
3731
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
3732
|
+
}>;
|
|
3733
|
+
}>, Record<string, {
|
|
3734
|
+
tiers: Map<string, {
|
|
3735
|
+
max_leverage: number;
|
|
3736
|
+
mmr: import("decimal.js").Decimal;
|
|
3737
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
3738
|
+
}>;
|
|
3739
|
+
}>>>;
|
|
3740
|
+
borrow_lend_risk_configs: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3741
|
+
liquidation_total_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3742
|
+
liability_liquidation_limit_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3743
|
+
asset_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3744
|
+
initial_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3745
|
+
maintenance_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3746
|
+
protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3747
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
3748
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
3749
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3750
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3751
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3752
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3753
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3754
|
+
}>, Record<string, {
|
|
3755
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
3756
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3757
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3758
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3759
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3760
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3761
|
+
}>>>;
|
|
3762
|
+
}, z.core.$strip>;
|
|
3763
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3764
|
+
perp_liquidation_config: {
|
|
3765
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
3766
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
3767
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
3768
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3769
|
+
};
|
|
3770
|
+
perp_leverage_tables: Map<number, {
|
|
3771
|
+
tiers: Map<string, {
|
|
3772
|
+
max_leverage: number;
|
|
3773
|
+
mmr: import("decimal.js").Decimal;
|
|
3774
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
3775
|
+
}>;
|
|
3776
|
+
}>;
|
|
3777
|
+
borrow_lend_risk_configs: Map<number, {
|
|
3778
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
3779
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3780
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3781
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3782
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3783
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3784
|
+
}>;
|
|
3785
|
+
}, {
|
|
3786
|
+
V0: {
|
|
3787
|
+
perp_liquidation_config: {
|
|
3788
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
3789
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
3790
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
3791
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3792
|
+
};
|
|
3793
|
+
perp_leverage_tables: Map<number, {
|
|
3794
|
+
tiers: Map<string, {
|
|
3795
|
+
max_leverage: number;
|
|
3796
|
+
mmr: import("decimal.js").Decimal;
|
|
3797
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
3798
|
+
}>;
|
|
3799
|
+
}>;
|
|
3800
|
+
borrow_lend_risk_configs: Map<number, {
|
|
3801
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
3802
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3803
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3804
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3805
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3806
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3807
|
+
}>;
|
|
3808
|
+
};
|
|
3809
|
+
}>>;
|
|
3810
|
+
pricing_engine: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3811
|
+
V1: z.ZodObject<{
|
|
3812
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3813
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3814
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3815
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3816
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3817
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
3818
|
+
price: import("decimal.js").Decimal;
|
|
3819
|
+
last_update_timestamp: bigint | null;
|
|
3820
|
+
}>, Record<string, {
|
|
3821
|
+
price: import("decimal.js").Decimal;
|
|
3822
|
+
last_update_timestamp: bigint | null;
|
|
3823
|
+
}>>>;
|
|
3824
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3825
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3826
|
+
mark_price: z.ZodObject<{
|
|
3827
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3828
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3829
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3830
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3831
|
+
}, z.core.$strip>;
|
|
3832
|
+
accum_premium_index: z.ZodObject<{
|
|
3833
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3834
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3835
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3836
|
+
}, z.core.$strip>;
|
|
3837
|
+
funding_meta: z.ZodObject<{
|
|
3838
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3839
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3840
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3841
|
+
config: z.ZodObject<{
|
|
3842
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3843
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3844
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3845
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3846
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3847
|
+
}, z.core.$strip>;
|
|
3848
|
+
}, z.core.$strip>;
|
|
3849
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
3850
|
+
market_id: number;
|
|
3851
|
+
mark_price: {
|
|
3852
|
+
price: import("decimal.js").Decimal;
|
|
3853
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
3854
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
3855
|
+
last_update_timestamp: bigint | null;
|
|
3856
|
+
};
|
|
3857
|
+
accum_premium_index: {
|
|
3858
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
3859
|
+
duration_sum: bigint;
|
|
3860
|
+
last_update_timestamp: bigint | null;
|
|
3861
|
+
};
|
|
3862
|
+
funding_meta: {
|
|
3863
|
+
rate: import("decimal.js").Decimal;
|
|
3864
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
3865
|
+
last_update_timestamp: bigint;
|
|
3866
|
+
config: {
|
|
3867
|
+
interest_rate: import("decimal.js").Decimal;
|
|
3868
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
3869
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
3870
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3871
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3872
|
+
};
|
|
3873
|
+
};
|
|
3874
|
+
}>, Record<string, {
|
|
3875
|
+
market_id: number;
|
|
3876
|
+
mark_price: {
|
|
3877
|
+
price: import("decimal.js").Decimal;
|
|
3878
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
3879
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
3880
|
+
last_update_timestamp: bigint | null;
|
|
3881
|
+
};
|
|
3882
|
+
accum_premium_index: {
|
|
3883
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
3884
|
+
duration_sum: bigint;
|
|
3885
|
+
last_update_timestamp: bigint | null;
|
|
3886
|
+
};
|
|
3887
|
+
funding_meta: {
|
|
3888
|
+
rate: import("decimal.js").Decimal;
|
|
3889
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
3890
|
+
last_update_timestamp: bigint;
|
|
3891
|
+
config: {
|
|
3892
|
+
interest_rate: import("decimal.js").Decimal;
|
|
3893
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
3894
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
3895
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3896
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3897
|
+
};
|
|
3898
|
+
};
|
|
3899
|
+
}>>>;
|
|
3900
|
+
rwa_pricing_config: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3901
|
+
reference_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
3902
|
+
oracle_threshold_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3903
|
+
up_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3904
|
+
down_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3905
|
+
max_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3906
|
+
funding_dampening_multiplier: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3907
|
+
internal_pricing_time_constant: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3908
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
3909
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
3910
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
3911
|
+
up_bound_n: number;
|
|
3912
|
+
down_bound_n: number;
|
|
3913
|
+
max_bound_n: number;
|
|
3914
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
3915
|
+
internal_pricing_time_constant: bigint;
|
|
3916
|
+
}>, Record<string, {
|
|
3917
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
3918
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
3919
|
+
up_bound_n: number;
|
|
3920
|
+
down_bound_n: number;
|
|
3921
|
+
max_bound_n: number;
|
|
3922
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
3923
|
+
internal_pricing_time_constant: bigint;
|
|
3924
|
+
}>>>;
|
|
3925
|
+
}, z.core.$strip>;
|
|
3926
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3927
|
+
pricing_frequency_seconds: number;
|
|
3928
|
+
relaxed_pricing_frequency_seconds: number;
|
|
3929
|
+
oracle_pricing: Map<number, {
|
|
3930
|
+
price: import("decimal.js").Decimal;
|
|
3931
|
+
last_update_timestamp: bigint | null;
|
|
3932
|
+
}>;
|
|
3933
|
+
perp_pricing: Map<number, {
|
|
3934
|
+
market_id: number;
|
|
3935
|
+
mark_price: {
|
|
3936
|
+
price: import("decimal.js").Decimal;
|
|
3937
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
3938
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
3939
|
+
last_update_timestamp: bigint | null;
|
|
3940
|
+
};
|
|
3941
|
+
accum_premium_index: {
|
|
3942
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
3943
|
+
duration_sum: bigint;
|
|
3315
3944
|
last_update_timestamp: bigint | null;
|
|
3316
3945
|
};
|
|
3317
3946
|
funding_meta: {
|
|
@@ -3326,7 +3955,159 @@ export declare const Schemas: {
|
|
|
3326
3955
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3327
3956
|
};
|
|
3328
3957
|
};
|
|
3329
|
-
}
|
|
3958
|
+
}>;
|
|
3959
|
+
rwa_pricing_config: Map<number, {
|
|
3960
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
3961
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
3962
|
+
up_bound_n: number;
|
|
3963
|
+
down_bound_n: number;
|
|
3964
|
+
max_bound_n: number;
|
|
3965
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
3966
|
+
internal_pricing_time_constant: bigint;
|
|
3967
|
+
}>;
|
|
3968
|
+
}, {
|
|
3969
|
+
V1: {
|
|
3970
|
+
pricing_frequency_seconds: number;
|
|
3971
|
+
relaxed_pricing_frequency_seconds: number;
|
|
3972
|
+
oracle_pricing: Map<number, {
|
|
3973
|
+
price: import("decimal.js").Decimal;
|
|
3974
|
+
last_update_timestamp: bigint | null;
|
|
3975
|
+
}>;
|
|
3976
|
+
perp_pricing: Map<number, {
|
|
3977
|
+
market_id: number;
|
|
3978
|
+
mark_price: {
|
|
3979
|
+
price: import("decimal.js").Decimal;
|
|
3980
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
3981
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
3982
|
+
last_update_timestamp: bigint | null;
|
|
3983
|
+
};
|
|
3984
|
+
accum_premium_index: {
|
|
3985
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
3986
|
+
duration_sum: bigint;
|
|
3987
|
+
last_update_timestamp: bigint | null;
|
|
3988
|
+
};
|
|
3989
|
+
funding_meta: {
|
|
3990
|
+
rate: import("decimal.js").Decimal;
|
|
3991
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
3992
|
+
last_update_timestamp: bigint;
|
|
3993
|
+
config: {
|
|
3994
|
+
interest_rate: import("decimal.js").Decimal;
|
|
3995
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
3996
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
3997
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3998
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3999
|
+
};
|
|
4000
|
+
};
|
|
4001
|
+
}>;
|
|
4002
|
+
rwa_pricing_config: Map<number, {
|
|
4003
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
4004
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
4005
|
+
up_bound_n: number;
|
|
4006
|
+
down_bound_n: number;
|
|
4007
|
+
max_bound_n: number;
|
|
4008
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
4009
|
+
internal_pricing_time_constant: bigint;
|
|
4010
|
+
}>;
|
|
4011
|
+
};
|
|
4012
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
4013
|
+
V0: z.ZodObject<{
|
|
4014
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4015
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4016
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4017
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4018
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
4019
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4020
|
+
price: import("decimal.js").Decimal;
|
|
4021
|
+
last_update_timestamp: bigint | null;
|
|
4022
|
+
}>, Record<string, {
|
|
4023
|
+
price: import("decimal.js").Decimal;
|
|
4024
|
+
last_update_timestamp: bigint | null;
|
|
4025
|
+
}>>>;
|
|
4026
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4027
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4028
|
+
mark_price: z.ZodObject<{
|
|
4029
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4030
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4031
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4032
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
4033
|
+
}, z.core.$strip>;
|
|
4034
|
+
accum_premium_index: z.ZodObject<{
|
|
4035
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4036
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
4037
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
4038
|
+
}, z.core.$strip>;
|
|
4039
|
+
funding_meta: z.ZodObject<{
|
|
4040
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4041
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4042
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
4043
|
+
config: z.ZodObject<{
|
|
4044
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4045
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4046
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4047
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4048
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4049
|
+
}, z.core.$strip>;
|
|
4050
|
+
}, z.core.$strip>;
|
|
4051
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4052
|
+
market_id: number;
|
|
4053
|
+
mark_price: {
|
|
4054
|
+
price: import("decimal.js").Decimal;
|
|
4055
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
4056
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
4057
|
+
last_update_timestamp: bigint | null;
|
|
4058
|
+
};
|
|
4059
|
+
accum_premium_index: {
|
|
4060
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
4061
|
+
duration_sum: bigint;
|
|
4062
|
+
last_update_timestamp: bigint | null;
|
|
4063
|
+
};
|
|
4064
|
+
funding_meta: {
|
|
4065
|
+
rate: import("decimal.js").Decimal;
|
|
4066
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
4067
|
+
last_update_timestamp: bigint;
|
|
4068
|
+
config: {
|
|
4069
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4070
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4071
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4072
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4073
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4074
|
+
};
|
|
4075
|
+
};
|
|
4076
|
+
}>, Record<string, {
|
|
4077
|
+
market_id: number;
|
|
4078
|
+
mark_price: {
|
|
4079
|
+
price: import("decimal.js").Decimal;
|
|
4080
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
4081
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
4082
|
+
last_update_timestamp: bigint | null;
|
|
4083
|
+
};
|
|
4084
|
+
accum_premium_index: {
|
|
4085
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
4086
|
+
duration_sum: bigint;
|
|
4087
|
+
last_update_timestamp: bigint | null;
|
|
4088
|
+
};
|
|
4089
|
+
funding_meta: {
|
|
4090
|
+
rate: import("decimal.js").Decimal;
|
|
4091
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
4092
|
+
last_update_timestamp: bigint;
|
|
4093
|
+
config: {
|
|
4094
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4095
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4096
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4097
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4098
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4099
|
+
};
|
|
4100
|
+
};
|
|
4101
|
+
}>>>;
|
|
4102
|
+
}, z.core.$strip>;
|
|
4103
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
4104
|
+
pricing_frequency_seconds: number;
|
|
4105
|
+
relaxed_pricing_frequency_seconds: number;
|
|
4106
|
+
oracle_pricing: Map<number, {
|
|
4107
|
+
price: import("decimal.js").Decimal;
|
|
4108
|
+
last_update_timestamp: bigint | null;
|
|
4109
|
+
}>;
|
|
4110
|
+
perp_pricing: Map<number, {
|
|
3330
4111
|
market_id: number;
|
|
3331
4112
|
mark_price: {
|
|
3332
4113
|
price: import("decimal.js").Decimal;
|
|
@@ -3351,8 +4132,45 @@ export declare const Schemas: {
|
|
|
3351
4132
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
3352
4133
|
};
|
|
3353
4134
|
};
|
|
3354
|
-
}
|
|
3355
|
-
},
|
|
4135
|
+
}>;
|
|
4136
|
+
}, {
|
|
4137
|
+
V0: {
|
|
4138
|
+
pricing_frequency_seconds: number;
|
|
4139
|
+
relaxed_pricing_frequency_seconds: number;
|
|
4140
|
+
oracle_pricing: Map<number, {
|
|
4141
|
+
price: import("decimal.js").Decimal;
|
|
4142
|
+
last_update_timestamp: bigint | null;
|
|
4143
|
+
}>;
|
|
4144
|
+
perp_pricing: Map<number, {
|
|
4145
|
+
market_id: number;
|
|
4146
|
+
mark_price: {
|
|
4147
|
+
price: import("decimal.js").Decimal;
|
|
4148
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
4149
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
4150
|
+
last_update_timestamp: bigint | null;
|
|
4151
|
+
};
|
|
4152
|
+
accum_premium_index: {
|
|
4153
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
4154
|
+
duration_sum: bigint;
|
|
4155
|
+
last_update_timestamp: bigint | null;
|
|
4156
|
+
};
|
|
4157
|
+
funding_meta: {
|
|
4158
|
+
rate: import("decimal.js").Decimal;
|
|
4159
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
4160
|
+
last_update_timestamp: bigint;
|
|
4161
|
+
config: {
|
|
4162
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4163
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4164
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4165
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4166
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4167
|
+
};
|
|
4168
|
+
};
|
|
4169
|
+
}>;
|
|
4170
|
+
};
|
|
4171
|
+
}>>]>;
|
|
4172
|
+
}, z.core.$strip>;
|
|
4173
|
+
readonly RiskEngineV0: z.ZodObject<{
|
|
3356
4174
|
margin_config: z.ZodObject<{
|
|
3357
4175
|
perp_liquidation_config: z.ZodObject<{
|
|
3358
4176
|
liquidation_ioc_buffer: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -3410,73 +4228,163 @@ export declare const Schemas: {
|
|
|
3410
4228
|
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
3411
4229
|
}>>>;
|
|
3412
4230
|
}, z.core.$strip>;
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
config: z.ZodObject<{
|
|
3423
|
-
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3424
|
-
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3425
|
-
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3426
|
-
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3427
|
-
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3428
|
-
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3429
|
-
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3430
|
-
taker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3431
|
-
maker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3432
|
-
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3433
|
-
max_trigger_to_comparison_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3434
|
-
max_order_to_trigger_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3435
|
-
}, z.core.$strip>;
|
|
3436
|
-
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3437
|
-
last_trade_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
3438
|
-
orderbook: z.ZodObject<{
|
|
3439
|
-
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3440
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
3441
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3442
|
-
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3443
|
-
}, z.core.$strip>>;
|
|
3444
|
-
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3445
|
-
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3446
|
-
nodes: {
|
|
3447
|
-
order_id: bigint;
|
|
3448
|
-
owner: string;
|
|
3449
|
-
}[];
|
|
3450
|
-
total_size: import("decimal.js").Decimal;
|
|
3451
|
-
}>, Record<string, {
|
|
3452
|
-
nodes: {
|
|
3453
|
-
order_id: bigint;
|
|
3454
|
-
owner: string;
|
|
3455
|
-
}[];
|
|
3456
|
-
total_size: import("decimal.js").Decimal;
|
|
3457
|
-
}>>>;
|
|
3458
|
-
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3459
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
3460
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3461
|
-
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3462
|
-
}, z.core.$strip>>;
|
|
3463
|
-
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3464
|
-
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3465
|
-
nodes: {
|
|
3466
|
-
order_id: bigint;
|
|
3467
|
-
owner: string;
|
|
3468
|
-
}[];
|
|
3469
|
-
total_size: import("decimal.js").Decimal;
|
|
4231
|
+
pricing_engine: z.ZodObject<{
|
|
4232
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4233
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4234
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4235
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4236
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
4237
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4238
|
+
price: import("decimal.js").Decimal;
|
|
4239
|
+
last_update_timestamp: bigint | null;
|
|
3470
4240
|
}>, Record<string, {
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
owner: string;
|
|
3474
|
-
}[];
|
|
3475
|
-
total_size: import("decimal.js").Decimal;
|
|
4241
|
+
price: import("decimal.js").Decimal;
|
|
4242
|
+
last_update_timestamp: bigint | null;
|
|
3476
4243
|
}>>>;
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
4244
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4245
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4246
|
+
mark_price: z.ZodObject<{
|
|
4247
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4248
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4249
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4250
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
4251
|
+
}, z.core.$strip>;
|
|
4252
|
+
accum_premium_index: z.ZodObject<{
|
|
4253
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4254
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
4255
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
4256
|
+
}, z.core.$strip>;
|
|
4257
|
+
funding_meta: z.ZodObject<{
|
|
4258
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4259
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4260
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
4261
|
+
config: z.ZodObject<{
|
|
4262
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4263
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4264
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4265
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4266
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4267
|
+
}, z.core.$strip>;
|
|
4268
|
+
}, z.core.$strip>;
|
|
4269
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4270
|
+
market_id: number;
|
|
4271
|
+
mark_price: {
|
|
4272
|
+
price: import("decimal.js").Decimal;
|
|
4273
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
4274
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
4275
|
+
last_update_timestamp: bigint | null;
|
|
4276
|
+
};
|
|
4277
|
+
accum_premium_index: {
|
|
4278
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
4279
|
+
duration_sum: bigint;
|
|
4280
|
+
last_update_timestamp: bigint | null;
|
|
4281
|
+
};
|
|
4282
|
+
funding_meta: {
|
|
4283
|
+
rate: import("decimal.js").Decimal;
|
|
4284
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
4285
|
+
last_update_timestamp: bigint;
|
|
4286
|
+
config: {
|
|
4287
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4288
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4289
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4290
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4291
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4292
|
+
};
|
|
4293
|
+
};
|
|
4294
|
+
}>, Record<string, {
|
|
4295
|
+
market_id: number;
|
|
4296
|
+
mark_price: {
|
|
4297
|
+
price: import("decimal.js").Decimal;
|
|
4298
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
4299
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
4300
|
+
last_update_timestamp: bigint | null;
|
|
4301
|
+
};
|
|
4302
|
+
accum_premium_index: {
|
|
4303
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
4304
|
+
duration_sum: bigint;
|
|
4305
|
+
last_update_timestamp: bigint | null;
|
|
4306
|
+
};
|
|
4307
|
+
funding_meta: {
|
|
4308
|
+
rate: import("decimal.js").Decimal;
|
|
4309
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
4310
|
+
last_update_timestamp: bigint;
|
|
4311
|
+
config: {
|
|
4312
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4313
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4314
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4315
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4316
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4317
|
+
};
|
|
4318
|
+
};
|
|
4319
|
+
}>>>;
|
|
4320
|
+
}, z.core.$strip>;
|
|
4321
|
+
}, z.core.$strip>;
|
|
4322
|
+
readonly PerpMarketV0: z.ZodObject<{
|
|
4323
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4324
|
+
trading_status: z.ZodEnum<{
|
|
4325
|
+
active: "active";
|
|
4326
|
+
halted: "halted";
|
|
4327
|
+
cleaning: "cleaning";
|
|
4328
|
+
cleaned: "cleaned";
|
|
4329
|
+
}>;
|
|
4330
|
+
config: z.ZodObject<{
|
|
4331
|
+
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4332
|
+
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4333
|
+
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4334
|
+
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4335
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4336
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4337
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4338
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
4339
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
4340
|
+
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4341
|
+
max_trigger_to_comparison_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4342
|
+
max_order_to_trigger_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4343
|
+
}, z.core.$strip>;
|
|
4344
|
+
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4345
|
+
last_trade_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
4346
|
+
orderbook: z.ZodObject<{
|
|
4347
|
+
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4348
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
4349
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
4350
|
+
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
4351
|
+
}, z.core.$strip>>;
|
|
4352
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4353
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
4354
|
+
nodes: {
|
|
4355
|
+
order_id: bigint;
|
|
4356
|
+
owner: string;
|
|
4357
|
+
}[];
|
|
4358
|
+
total_size: import("decimal.js").Decimal;
|
|
4359
|
+
}>, Record<string, {
|
|
4360
|
+
nodes: {
|
|
4361
|
+
order_id: bigint;
|
|
4362
|
+
owner: string;
|
|
4363
|
+
}[];
|
|
4364
|
+
total_size: import("decimal.js").Decimal;
|
|
4365
|
+
}>>>;
|
|
4366
|
+
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4367
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
4368
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
4369
|
+
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
4370
|
+
}, z.core.$strip>>;
|
|
4371
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4372
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
4373
|
+
nodes: {
|
|
4374
|
+
order_id: bigint;
|
|
4375
|
+
owner: string;
|
|
4376
|
+
}[];
|
|
4377
|
+
total_size: import("decimal.js").Decimal;
|
|
4378
|
+
}>, Record<string, {
|
|
4379
|
+
nodes: {
|
|
4380
|
+
order_id: bigint;
|
|
4381
|
+
owner: string;
|
|
4382
|
+
}[];
|
|
4383
|
+
total_size: import("decimal.js").Decimal;
|
|
4384
|
+
}>>>;
|
|
4385
|
+
}, z.core.$strip>;
|
|
4386
|
+
trigger_nodes_store: z.ZodObject<{
|
|
4387
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
3480
4388
|
active: z.ZodArray<z.ZodAny>;
|
|
3481
4389
|
}, z.core.$strip>;
|
|
3482
4390
|
twap_nodes_store: z.ZodObject<{
|
|
@@ -3514,8 +4422,8 @@ export declare const Schemas: {
|
|
|
3514
4422
|
cleaning: "cleaning";
|
|
3515
4423
|
cleaned: "cleaned";
|
|
3516
4424
|
}>;
|
|
3517
|
-
|
|
3518
|
-
|
|
4425
|
+
_base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4426
|
+
_quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3519
4427
|
config: z.ZodObject<{
|
|
3520
4428
|
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3521
4429
|
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -3597,137 +4505,9 @@ export declare const ResponseSchemas: {
|
|
|
3597
4505
|
readonly DummyValue: z.ZodObject<{
|
|
3598
4506
|
value: z.ZodNullable<z.ZodNumber>;
|
|
3599
4507
|
}, z.core.$strip>;
|
|
3600
|
-
readonly Order: z.ZodObject<{
|
|
3601
|
-
key: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3602
|
-
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
3603
|
-
side: z.ZodEnum<{
|
|
3604
|
-
bid: "bid";
|
|
3605
|
-
ask: "ask";
|
|
3606
|
-
}>;
|
|
3607
|
-
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3608
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3609
|
-
client_order_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3610
|
-
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3611
|
-
remaining_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3612
|
-
reduce_only: z.ZodBoolean;
|
|
3613
|
-
filled_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3614
|
-
filled_cot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3615
|
-
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3616
|
-
reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
|
|
3617
|
-
expiry_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3618
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
3619
|
-
V1: z.ZodObject<{
|
|
3620
|
-
side: z.ZodEnum<{
|
|
3621
|
-
bid: "bid";
|
|
3622
|
-
ask: "ask";
|
|
3623
|
-
}>;
|
|
3624
|
-
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3625
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3626
|
-
client_order_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3627
|
-
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3628
|
-
remaining_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3629
|
-
reduce_only: z.ZodBoolean;
|
|
3630
|
-
filled_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3631
|
-
filled_cot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3632
|
-
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3633
|
-
reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
|
|
3634
|
-
expiry_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3635
|
-
}, z.core.$strip>;
|
|
3636
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
3637
|
-
side: "bid" | "ask";
|
|
3638
|
-
market_id: number;
|
|
3639
|
-
order_id: bigint;
|
|
3640
|
-
client_order_id: bigint | null;
|
|
3641
|
-
price: import("decimal.js").Decimal;
|
|
3642
|
-
remaining_size: import("decimal.js").Decimal;
|
|
3643
|
-
reduce_only: boolean;
|
|
3644
|
-
filled_size: import("decimal.js").Decimal;
|
|
3645
|
-
filled_cot: import("decimal.js").Decimal;
|
|
3646
|
-
owner: string;
|
|
3647
|
-
reserved_pending_tpsl_pair_ids: string | null;
|
|
3648
|
-
expiry_timestamp: bigint | null;
|
|
3649
|
-
}, {
|
|
3650
|
-
V1: {
|
|
3651
|
-
side: "bid" | "ask";
|
|
3652
|
-
market_id: number;
|
|
3653
|
-
order_id: bigint;
|
|
3654
|
-
client_order_id: bigint | null;
|
|
3655
|
-
price: import("decimal.js").Decimal;
|
|
3656
|
-
remaining_size: import("decimal.js").Decimal;
|
|
3657
|
-
reduce_only: boolean;
|
|
3658
|
-
filled_size: import("decimal.js").Decimal;
|
|
3659
|
-
filled_cot: import("decimal.js").Decimal;
|
|
3660
|
-
owner: string;
|
|
3661
|
-
reserved_pending_tpsl_pair_ids: string | null;
|
|
3662
|
-
expiry_timestamp: bigint | null;
|
|
3663
|
-
};
|
|
3664
|
-
}>>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
3665
|
-
side: z.ZodEnum<{
|
|
3666
|
-
bid: "bid";
|
|
3667
|
-
ask: "ask";
|
|
3668
|
-
}>;
|
|
3669
|
-
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3670
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3671
|
-
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3672
|
-
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3673
|
-
client_order_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3674
|
-
quote_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3675
|
-
remaining_base_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3676
|
-
filled_base_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3677
|
-
filled_cot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3678
|
-
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3679
|
-
expiry_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3680
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
3681
|
-
V1: z.ZodObject<{
|
|
3682
|
-
side: z.ZodEnum<{
|
|
3683
|
-
bid: "bid";
|
|
3684
|
-
ask: "ask";
|
|
3685
|
-
}>;
|
|
3686
|
-
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3687
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3688
|
-
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3689
|
-
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3690
|
-
client_order_id: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3691
|
-
quote_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3692
|
-
remaining_base_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3693
|
-
filled_base_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3694
|
-
filled_cot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3695
|
-
owner: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3696
|
-
expiry_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
3697
|
-
}, z.core.$strip>;
|
|
3698
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
3699
|
-
side: "bid" | "ask";
|
|
3700
|
-
market_id: number;
|
|
3701
|
-
order_id: bigint;
|
|
3702
|
-
quote_asset_id: number;
|
|
3703
|
-
base_asset_id: number;
|
|
3704
|
-
client_order_id: bigint | null;
|
|
3705
|
-
quote_lots: import("decimal.js").Decimal;
|
|
3706
|
-
remaining_base_lots: import("decimal.js").Decimal;
|
|
3707
|
-
filled_base_lots: import("decimal.js").Decimal;
|
|
3708
|
-
filled_cot: import("decimal.js").Decimal;
|
|
3709
|
-
owner: string;
|
|
3710
|
-
expiry_timestamp: bigint | null;
|
|
3711
|
-
}, {
|
|
3712
|
-
V1: {
|
|
3713
|
-
side: "bid" | "ask";
|
|
3714
|
-
market_id: number;
|
|
3715
|
-
order_id: bigint;
|
|
3716
|
-
quote_asset_id: number;
|
|
3717
|
-
base_asset_id: number;
|
|
3718
|
-
client_order_id: bigint | null;
|
|
3719
|
-
quote_lots: import("decimal.js").Decimal;
|
|
3720
|
-
remaining_base_lots: import("decimal.js").Decimal;
|
|
3721
|
-
filled_base_lots: import("decimal.js").Decimal;
|
|
3722
|
-
filled_cot: import("decimal.js").Decimal;
|
|
3723
|
-
owner: string;
|
|
3724
|
-
expiry_timestamp: bigint | null;
|
|
3725
|
-
};
|
|
3726
|
-
}>>]>]>>;
|
|
3727
|
-
}, z.core.$strip>;
|
|
3728
4508
|
readonly ExchangeInfo: z.ZodObject<{
|
|
3729
4509
|
value: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
3730
|
-
|
|
4510
|
+
V3: z.ZodObject<{
|
|
3731
4511
|
global_config: z.ZodObject<{
|
|
3732
4512
|
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3733
4513
|
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -3740,6 +4520,11 @@ export declare const ResponseSchemas: {
|
|
|
3740
4520
|
whitelisted_users_for_deposit: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodString>>, z.ZodTransform<Set<string>, string[]>>;
|
|
3741
4521
|
pyth_lazer_trusted_signers: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<string, number[]>>>, z.ZodTransform<Set<string>, string[]>>;
|
|
3742
4522
|
}, z.core.$strip>;
|
|
4523
|
+
global_vault_config: z.ZodObject<{
|
|
4524
|
+
leader_minimum_holding_percentage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4525
|
+
creation_fee_usdc: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4526
|
+
min_deposit_value: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4527
|
+
}, z.core.$strip>;
|
|
3743
4528
|
admins: z.ZodObject<{
|
|
3744
4529
|
protocol: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3745
4530
|
funding: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
@@ -3775,11 +4560,8 @@ export declare const ResponseSchemas: {
|
|
|
3775
4560
|
}>>>;
|
|
3776
4561
|
markets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3777
4562
|
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3778
|
-
kind: z.ZodEnum<{
|
|
3779
|
-
perp: "perp";
|
|
3780
|
-
spot: "spot";
|
|
3781
|
-
}>;
|
|
3782
4563
|
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4564
|
+
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3783
4565
|
name: z.ZodString;
|
|
3784
4566
|
trading_mode: z.ZodEnum<{
|
|
3785
4567
|
iso: "iso";
|
|
@@ -3787,89 +4569,20 @@ export declare const ResponseSchemas: {
|
|
|
3787
4569
|
}>;
|
|
3788
4570
|
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
3789
4571
|
id: number;
|
|
3790
|
-
kind: "perp" | "spot";
|
|
3791
4572
|
base_asset_id: number;
|
|
4573
|
+
quote_asset_id: number;
|
|
3792
4574
|
name: string;
|
|
3793
4575
|
trading_mode: "iso" | "cross";
|
|
3794
4576
|
}>, Record<string, {
|
|
3795
4577
|
id: number;
|
|
3796
|
-
kind: "perp" | "spot";
|
|
3797
4578
|
base_asset_id: number;
|
|
4579
|
+
quote_asset_id: number;
|
|
3798
4580
|
name: string;
|
|
3799
4581
|
trading_mode: "iso" | "cross";
|
|
3800
4582
|
}>>>;
|
|
3801
|
-
vaults: z.ZodObject<{
|
|
3802
|
-
vaults: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3803
|
-
leader: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3804
|
-
name: z.ZodString;
|
|
3805
|
-
description: z.ZodString;
|
|
3806
|
-
deposit_asset_ids: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3807
|
-
withdraw_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3808
|
-
deposit_limit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3809
|
-
leader_minimum_holding_percentage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3810
|
-
withdraw_lockup_period_hours: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3811
|
-
profit_share_percentage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3812
|
-
withdrawal_fee_bps: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3813
|
-
total_shares: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3814
|
-
high_watermark: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3815
|
-
queued_withdrawals: z.ZodArray<z.ZodObject<{
|
|
3816
|
-
user: z.ZodPipe<z.ZodString, z.ZodString>;
|
|
3817
|
-
shares: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3818
|
-
timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3819
|
-
}, z.core.$strip>>;
|
|
3820
|
-
whitelist_deposits: z.ZodBoolean;
|
|
3821
|
-
whitelisted_depositors: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodString>>;
|
|
3822
|
-
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3823
|
-
leader: string;
|
|
3824
|
-
name: string;
|
|
3825
|
-
description: string;
|
|
3826
|
-
deposit_asset_ids: number[];
|
|
3827
|
-
withdraw_asset_id: number;
|
|
3828
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
3829
|
-
leader_minimum_holding_percentage: number;
|
|
3830
|
-
withdraw_lockup_period_hours: number;
|
|
3831
|
-
profit_share_percentage: number;
|
|
3832
|
-
withdrawal_fee_bps: number;
|
|
3833
|
-
total_shares: import("decimal.js").Decimal;
|
|
3834
|
-
high_watermark: import("decimal.js").Decimal;
|
|
3835
|
-
queued_withdrawals: {
|
|
3836
|
-
user: string;
|
|
3837
|
-
shares: import("decimal.js").Decimal;
|
|
3838
|
-
timestamp: bigint;
|
|
3839
|
-
}[];
|
|
3840
|
-
whitelist_deposits: boolean;
|
|
3841
|
-
whitelisted_depositors: string[];
|
|
3842
|
-
}>, Record<string, {
|
|
3843
|
-
leader: string;
|
|
3844
|
-
name: string;
|
|
3845
|
-
description: string;
|
|
3846
|
-
deposit_asset_ids: number[];
|
|
3847
|
-
withdraw_asset_id: number;
|
|
3848
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
3849
|
-
leader_minimum_holding_percentage: number;
|
|
3850
|
-
withdraw_lockup_period_hours: number;
|
|
3851
|
-
profit_share_percentage: number;
|
|
3852
|
-
withdrawal_fee_bps: number;
|
|
3853
|
-
total_shares: import("decimal.js").Decimal;
|
|
3854
|
-
high_watermark: import("decimal.js").Decimal;
|
|
3855
|
-
queued_withdrawals: {
|
|
3856
|
-
user: string;
|
|
3857
|
-
shares: import("decimal.js").Decimal;
|
|
3858
|
-
timestamp: bigint;
|
|
3859
|
-
}[];
|
|
3860
|
-
whitelist_deposits: boolean;
|
|
3861
|
-
whitelisted_depositors: string[];
|
|
3862
|
-
}>>>;
|
|
3863
|
-
config: z.ZodObject<{
|
|
3864
|
-
leader_minimum_holding_percentage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3865
|
-
creation_fee_usdc: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3866
|
-
min_deposit_value: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3867
|
-
}, z.core.$strip>;
|
|
3868
|
-
depositor_state: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<string, import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>>, z.ZodTransform<Map<string, Map<string, import("decimal.js").Decimal>>, Record<string, Map<string, import("decimal.js").Decimal>>>>;
|
|
3869
|
-
}, z.core.$strip>;
|
|
3870
4583
|
}, z.core.$strip>;
|
|
3871
4584
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3872
|
-
version: "
|
|
4585
|
+
version: "V3";
|
|
3873
4586
|
data: {
|
|
3874
4587
|
global_config: {
|
|
3875
4588
|
max_orders_per_user: number;
|
|
@@ -3883,6 +4596,11 @@ export declare const ResponseSchemas: {
|
|
|
3883
4596
|
whitelisted_users_for_deposit: Set<string>;
|
|
3884
4597
|
pyth_lazer_trusted_signers: Set<string>;
|
|
3885
4598
|
};
|
|
4599
|
+
global_vault_config: {
|
|
4600
|
+
leader_minimum_holding_percentage: number;
|
|
4601
|
+
creation_fee_usdc: import("decimal.js").Decimal;
|
|
4602
|
+
min_deposit_value: import("decimal.js").Decimal;
|
|
4603
|
+
};
|
|
3886
4604
|
admins: {
|
|
3887
4605
|
protocol: string;
|
|
3888
4606
|
funding: string;
|
|
@@ -3902,43 +4620,14 @@ export declare const ResponseSchemas: {
|
|
|
3902
4620
|
}>;
|
|
3903
4621
|
markets: Map<number, {
|
|
3904
4622
|
id: number;
|
|
3905
|
-
kind: "perp" | "spot";
|
|
3906
4623
|
base_asset_id: number;
|
|
4624
|
+
quote_asset_id: number;
|
|
3907
4625
|
name: string;
|
|
3908
4626
|
trading_mode: "iso" | "cross";
|
|
3909
4627
|
}>;
|
|
3910
|
-
vaults: {
|
|
3911
|
-
vaults: Map<string, {
|
|
3912
|
-
leader: string;
|
|
3913
|
-
name: string;
|
|
3914
|
-
description: string;
|
|
3915
|
-
deposit_asset_ids: number[];
|
|
3916
|
-
withdraw_asset_id: number;
|
|
3917
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
3918
|
-
leader_minimum_holding_percentage: number;
|
|
3919
|
-
withdraw_lockup_period_hours: number;
|
|
3920
|
-
profit_share_percentage: number;
|
|
3921
|
-
withdrawal_fee_bps: number;
|
|
3922
|
-
total_shares: import("decimal.js").Decimal;
|
|
3923
|
-
high_watermark: import("decimal.js").Decimal;
|
|
3924
|
-
queued_withdrawals: {
|
|
3925
|
-
user: string;
|
|
3926
|
-
shares: import("decimal.js").Decimal;
|
|
3927
|
-
timestamp: bigint;
|
|
3928
|
-
}[];
|
|
3929
|
-
whitelist_deposits: boolean;
|
|
3930
|
-
whitelisted_depositors: string[];
|
|
3931
|
-
}>;
|
|
3932
|
-
config: {
|
|
3933
|
-
leader_minimum_holding_percentage: number;
|
|
3934
|
-
creation_fee_usdc: import("decimal.js").Decimal;
|
|
3935
|
-
min_deposit_value: import("decimal.js").Decimal;
|
|
3936
|
-
};
|
|
3937
|
-
depositor_state: Map<string, Map<string, import("decimal.js").Decimal>>;
|
|
3938
|
-
};
|
|
3939
4628
|
};
|
|
3940
4629
|
}, {
|
|
3941
|
-
|
|
4630
|
+
V3: {
|
|
3942
4631
|
global_config: {
|
|
3943
4632
|
max_orders_per_user: number;
|
|
3944
4633
|
max_trigger_orders_per_user: number;
|
|
@@ -3951,6 +4640,11 @@ export declare const ResponseSchemas: {
|
|
|
3951
4640
|
whitelisted_users_for_deposit: Set<string>;
|
|
3952
4641
|
pyth_lazer_trusted_signers: Set<string>;
|
|
3953
4642
|
};
|
|
4643
|
+
global_vault_config: {
|
|
4644
|
+
leader_minimum_holding_percentage: number;
|
|
4645
|
+
creation_fee_usdc: import("decimal.js").Decimal;
|
|
4646
|
+
min_deposit_value: import("decimal.js").Decimal;
|
|
4647
|
+
};
|
|
3954
4648
|
admins: {
|
|
3955
4649
|
protocol: string;
|
|
3956
4650
|
funding: string;
|
|
@@ -3970,40 +4664,11 @@ export declare const ResponseSchemas: {
|
|
|
3970
4664
|
}>;
|
|
3971
4665
|
markets: Map<number, {
|
|
3972
4666
|
id: number;
|
|
3973
|
-
kind: "perp" | "spot";
|
|
3974
4667
|
base_asset_id: number;
|
|
4668
|
+
quote_asset_id: number;
|
|
3975
4669
|
name: string;
|
|
3976
4670
|
trading_mode: "iso" | "cross";
|
|
3977
4671
|
}>;
|
|
3978
|
-
vaults: {
|
|
3979
|
-
vaults: Map<string, {
|
|
3980
|
-
leader: string;
|
|
3981
|
-
name: string;
|
|
3982
|
-
description: string;
|
|
3983
|
-
deposit_asset_ids: number[];
|
|
3984
|
-
withdraw_asset_id: number;
|
|
3985
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
3986
|
-
leader_minimum_holding_percentage: number;
|
|
3987
|
-
withdraw_lockup_period_hours: number;
|
|
3988
|
-
profit_share_percentage: number;
|
|
3989
|
-
withdrawal_fee_bps: number;
|
|
3990
|
-
total_shares: import("decimal.js").Decimal;
|
|
3991
|
-
high_watermark: import("decimal.js").Decimal;
|
|
3992
|
-
queued_withdrawals: {
|
|
3993
|
-
user: string;
|
|
3994
|
-
shares: import("decimal.js").Decimal;
|
|
3995
|
-
timestamp: bigint;
|
|
3996
|
-
}[];
|
|
3997
|
-
whitelist_deposits: boolean;
|
|
3998
|
-
whitelisted_depositors: string[];
|
|
3999
|
-
}>;
|
|
4000
|
-
config: {
|
|
4001
|
-
leader_minimum_holding_percentage: number;
|
|
4002
|
-
creation_fee_usdc: import("decimal.js").Decimal;
|
|
4003
|
-
min_deposit_value: import("decimal.js").Decimal;
|
|
4004
|
-
};
|
|
4005
|
-
depositor_state: Map<string, Map<string, import("decimal.js").Decimal>>;
|
|
4006
|
-
};
|
|
4007
4672
|
};
|
|
4008
4673
|
}>>>;
|
|
4009
4674
|
}, z.core.$strip>;
|
|
@@ -4221,8 +4886,65 @@ export declare const ResponseSchemas: {
|
|
|
4221
4886
|
}>>>;
|
|
4222
4887
|
}, z.core.$strip>;
|
|
4223
4888
|
readonly RiskEngine: z.ZodObject<{
|
|
4224
|
-
value: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
4889
|
+
value: z.ZodNullable<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
4225
4890
|
V0: z.ZodObject<{
|
|
4891
|
+
margin_config: z.ZodObject<{
|
|
4892
|
+
perp_liquidation_config: z.ZodObject<{
|
|
4893
|
+
liquidation_ioc_buffer: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4894
|
+
backstop_liquidation_threshold: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4895
|
+
liquidation_fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4896
|
+
liquidation_protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4897
|
+
}, z.core.$strip>;
|
|
4898
|
+
perp_leverage_tables: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4899
|
+
tiers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4900
|
+
max_leverage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4901
|
+
mmr: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4902
|
+
maintenance_amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4903
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
4904
|
+
max_leverage: number;
|
|
4905
|
+
mmr: import("decimal.js").Decimal;
|
|
4906
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
4907
|
+
}>, Record<string, {
|
|
4908
|
+
max_leverage: number;
|
|
4909
|
+
mmr: import("decimal.js").Decimal;
|
|
4910
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
4911
|
+
}>>>;
|
|
4912
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4913
|
+
tiers: Map<string, {
|
|
4914
|
+
max_leverage: number;
|
|
4915
|
+
mmr: import("decimal.js").Decimal;
|
|
4916
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
4917
|
+
}>;
|
|
4918
|
+
}>, Record<string, {
|
|
4919
|
+
tiers: Map<string, {
|
|
4920
|
+
max_leverage: number;
|
|
4921
|
+
mmr: import("decimal.js").Decimal;
|
|
4922
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
4923
|
+
}>;
|
|
4924
|
+
}>>>;
|
|
4925
|
+
borrow_lend_risk_configs: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4926
|
+
liquidation_total_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4927
|
+
liability_liquidation_limit_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4928
|
+
asset_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4929
|
+
initial_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4930
|
+
maintenance_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4931
|
+
protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4932
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4933
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
4934
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4935
|
+
asset_weight: import("decimal.js").Decimal;
|
|
4936
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
4937
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4938
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
4939
|
+
}>, Record<string, {
|
|
4940
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
4941
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4942
|
+
asset_weight: import("decimal.js").Decimal;
|
|
4943
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
4944
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4945
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
4946
|
+
}>>>;
|
|
4947
|
+
}, z.core.$strip>;
|
|
4226
4948
|
pricing_engine: z.ZodObject<{
|
|
4227
4949
|
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4228
4950
|
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -4286,7 +5008,563 @@ export declare const ResponseSchemas: {
|
|
|
4286
5008
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4287
5009
|
};
|
|
4288
5010
|
};
|
|
4289
|
-
}>, Record<string, {
|
|
5011
|
+
}>, Record<string, {
|
|
5012
|
+
market_id: number;
|
|
5013
|
+
mark_price: {
|
|
5014
|
+
price: import("decimal.js").Decimal;
|
|
5015
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5016
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5017
|
+
last_update_timestamp: bigint | null;
|
|
5018
|
+
};
|
|
5019
|
+
accum_premium_index: {
|
|
5020
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5021
|
+
duration_sum: bigint;
|
|
5022
|
+
last_update_timestamp: bigint | null;
|
|
5023
|
+
};
|
|
5024
|
+
funding_meta: {
|
|
5025
|
+
rate: import("decimal.js").Decimal;
|
|
5026
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5027
|
+
last_update_timestamp: bigint;
|
|
5028
|
+
config: {
|
|
5029
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5030
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5031
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5032
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5033
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5034
|
+
};
|
|
5035
|
+
};
|
|
5036
|
+
}>>>;
|
|
5037
|
+
}, z.core.$strip>;
|
|
5038
|
+
}, z.core.$strip>;
|
|
5039
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5040
|
+
version: "V0";
|
|
5041
|
+
data: {
|
|
5042
|
+
margin_config: {
|
|
5043
|
+
perp_liquidation_config: {
|
|
5044
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5045
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5046
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5047
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5048
|
+
};
|
|
5049
|
+
perp_leverage_tables: Map<number, {
|
|
5050
|
+
tiers: Map<string, {
|
|
5051
|
+
max_leverage: number;
|
|
5052
|
+
mmr: import("decimal.js").Decimal;
|
|
5053
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5054
|
+
}>;
|
|
5055
|
+
}>;
|
|
5056
|
+
borrow_lend_risk_configs: Map<number, {
|
|
5057
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
5058
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5059
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5060
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5061
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5062
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5063
|
+
}>;
|
|
5064
|
+
};
|
|
5065
|
+
pricing_engine: {
|
|
5066
|
+
pricing_frequency_seconds: number;
|
|
5067
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5068
|
+
oracle_pricing: Map<number, {
|
|
5069
|
+
price: import("decimal.js").Decimal;
|
|
5070
|
+
last_update_timestamp: bigint | null;
|
|
5071
|
+
}>;
|
|
5072
|
+
perp_pricing: Map<number, {
|
|
5073
|
+
market_id: number;
|
|
5074
|
+
mark_price: {
|
|
5075
|
+
price: import("decimal.js").Decimal;
|
|
5076
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5077
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5078
|
+
last_update_timestamp: bigint | null;
|
|
5079
|
+
};
|
|
5080
|
+
accum_premium_index: {
|
|
5081
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5082
|
+
duration_sum: bigint;
|
|
5083
|
+
last_update_timestamp: bigint | null;
|
|
5084
|
+
};
|
|
5085
|
+
funding_meta: {
|
|
5086
|
+
rate: import("decimal.js").Decimal;
|
|
5087
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5088
|
+
last_update_timestamp: bigint;
|
|
5089
|
+
config: {
|
|
5090
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5091
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5092
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5093
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5094
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5095
|
+
};
|
|
5096
|
+
};
|
|
5097
|
+
}>;
|
|
5098
|
+
};
|
|
5099
|
+
};
|
|
5100
|
+
}, {
|
|
5101
|
+
V0: {
|
|
5102
|
+
margin_config: {
|
|
5103
|
+
perp_liquidation_config: {
|
|
5104
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5105
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5106
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5107
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5108
|
+
};
|
|
5109
|
+
perp_leverage_tables: Map<number, {
|
|
5110
|
+
tiers: Map<string, {
|
|
5111
|
+
max_leverage: number;
|
|
5112
|
+
mmr: import("decimal.js").Decimal;
|
|
5113
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5114
|
+
}>;
|
|
5115
|
+
}>;
|
|
5116
|
+
borrow_lend_risk_configs: Map<number, {
|
|
5117
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
5118
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5119
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5120
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5121
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5122
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5123
|
+
}>;
|
|
5124
|
+
};
|
|
5125
|
+
pricing_engine: {
|
|
5126
|
+
pricing_frequency_seconds: number;
|
|
5127
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5128
|
+
oracle_pricing: Map<number, {
|
|
5129
|
+
price: import("decimal.js").Decimal;
|
|
5130
|
+
last_update_timestamp: bigint | null;
|
|
5131
|
+
}>;
|
|
5132
|
+
perp_pricing: Map<number, {
|
|
5133
|
+
market_id: number;
|
|
5134
|
+
mark_price: {
|
|
5135
|
+
price: import("decimal.js").Decimal;
|
|
5136
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5137
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5138
|
+
last_update_timestamp: bigint | null;
|
|
5139
|
+
};
|
|
5140
|
+
accum_premium_index: {
|
|
5141
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5142
|
+
duration_sum: bigint;
|
|
5143
|
+
last_update_timestamp: bigint | null;
|
|
5144
|
+
};
|
|
5145
|
+
funding_meta: {
|
|
5146
|
+
rate: import("decimal.js").Decimal;
|
|
5147
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5148
|
+
last_update_timestamp: bigint;
|
|
5149
|
+
config: {
|
|
5150
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5151
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5152
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5153
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5154
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5155
|
+
};
|
|
5156
|
+
};
|
|
5157
|
+
}>;
|
|
5158
|
+
};
|
|
5159
|
+
};
|
|
5160
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5161
|
+
V1: z.ZodObject<{
|
|
5162
|
+
margin_config: z.ZodPipe<z.ZodObject<{
|
|
5163
|
+
V0: z.ZodObject<{
|
|
5164
|
+
perp_liquidation_config: z.ZodObject<{
|
|
5165
|
+
liquidation_ioc_buffer: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5166
|
+
backstop_liquidation_threshold: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5167
|
+
liquidation_fee: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5168
|
+
liquidation_protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5169
|
+
}, z.core.$strip>;
|
|
5170
|
+
perp_leverage_tables: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5171
|
+
tiers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5172
|
+
max_leverage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5173
|
+
mmr: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5174
|
+
maintenance_amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5175
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
5176
|
+
max_leverage: number;
|
|
5177
|
+
mmr: import("decimal.js").Decimal;
|
|
5178
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5179
|
+
}>, Record<string, {
|
|
5180
|
+
max_leverage: number;
|
|
5181
|
+
mmr: import("decimal.js").Decimal;
|
|
5182
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5183
|
+
}>>>;
|
|
5184
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5185
|
+
tiers: Map<string, {
|
|
5186
|
+
max_leverage: number;
|
|
5187
|
+
mmr: import("decimal.js").Decimal;
|
|
5188
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5189
|
+
}>;
|
|
5190
|
+
}>, Record<string, {
|
|
5191
|
+
tiers: Map<string, {
|
|
5192
|
+
max_leverage: number;
|
|
5193
|
+
mmr: import("decimal.js").Decimal;
|
|
5194
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5195
|
+
}>;
|
|
5196
|
+
}>>>;
|
|
5197
|
+
borrow_lend_risk_configs: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5198
|
+
liquidation_total_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5199
|
+
liability_liquidation_limit_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5200
|
+
asset_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5201
|
+
initial_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5202
|
+
maintenance_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5203
|
+
protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5204
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5205
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
5206
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5207
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5208
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5209
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5210
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5211
|
+
}>, Record<string, {
|
|
5212
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
5213
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5214
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5215
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5216
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5217
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5218
|
+
}>>>;
|
|
5219
|
+
}, z.core.$strip>;
|
|
5220
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5221
|
+
perp_liquidation_config: {
|
|
5222
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5223
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5224
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5225
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5226
|
+
};
|
|
5227
|
+
perp_leverage_tables: Map<number, {
|
|
5228
|
+
tiers: Map<string, {
|
|
5229
|
+
max_leverage: number;
|
|
5230
|
+
mmr: import("decimal.js").Decimal;
|
|
5231
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5232
|
+
}>;
|
|
5233
|
+
}>;
|
|
5234
|
+
borrow_lend_risk_configs: Map<number, {
|
|
5235
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
5236
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5237
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5238
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5239
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5240
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5241
|
+
}>;
|
|
5242
|
+
}, {
|
|
5243
|
+
V0: {
|
|
5244
|
+
perp_liquidation_config: {
|
|
5245
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5246
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5247
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5248
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5249
|
+
};
|
|
5250
|
+
perp_leverage_tables: Map<number, {
|
|
5251
|
+
tiers: Map<string, {
|
|
5252
|
+
max_leverage: number;
|
|
5253
|
+
mmr: import("decimal.js").Decimal;
|
|
5254
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
5255
|
+
}>;
|
|
5256
|
+
}>;
|
|
5257
|
+
borrow_lend_risk_configs: Map<number, {
|
|
5258
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
5259
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5260
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5261
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5262
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5263
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5264
|
+
}>;
|
|
5265
|
+
};
|
|
5266
|
+
}>>;
|
|
5267
|
+
pricing_engine: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
5268
|
+
V1: z.ZodObject<{
|
|
5269
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5270
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5271
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5272
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5273
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
5274
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5275
|
+
price: import("decimal.js").Decimal;
|
|
5276
|
+
last_update_timestamp: bigint | null;
|
|
5277
|
+
}>, Record<string, {
|
|
5278
|
+
price: import("decimal.js").Decimal;
|
|
5279
|
+
last_update_timestamp: bigint | null;
|
|
5280
|
+
}>>>;
|
|
5281
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5282
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5283
|
+
mark_price: z.ZodObject<{
|
|
5284
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5285
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5286
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5287
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
5288
|
+
}, z.core.$strip>;
|
|
5289
|
+
accum_premium_index: z.ZodObject<{
|
|
5290
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5291
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
5292
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
5293
|
+
}, z.core.$strip>;
|
|
5294
|
+
funding_meta: z.ZodObject<{
|
|
5295
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5296
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5297
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
5298
|
+
config: z.ZodObject<{
|
|
5299
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5300
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5301
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5302
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5303
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5304
|
+
}, z.core.$strip>;
|
|
5305
|
+
}, z.core.$strip>;
|
|
5306
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5307
|
+
market_id: number;
|
|
5308
|
+
mark_price: {
|
|
5309
|
+
price: import("decimal.js").Decimal;
|
|
5310
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5311
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5312
|
+
last_update_timestamp: bigint | null;
|
|
5313
|
+
};
|
|
5314
|
+
accum_premium_index: {
|
|
5315
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5316
|
+
duration_sum: bigint;
|
|
5317
|
+
last_update_timestamp: bigint | null;
|
|
5318
|
+
};
|
|
5319
|
+
funding_meta: {
|
|
5320
|
+
rate: import("decimal.js").Decimal;
|
|
5321
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5322
|
+
last_update_timestamp: bigint;
|
|
5323
|
+
config: {
|
|
5324
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5325
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5326
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5327
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5328
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5329
|
+
};
|
|
5330
|
+
};
|
|
5331
|
+
}>, Record<string, {
|
|
5332
|
+
market_id: number;
|
|
5333
|
+
mark_price: {
|
|
5334
|
+
price: import("decimal.js").Decimal;
|
|
5335
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5336
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5337
|
+
last_update_timestamp: bigint | null;
|
|
5338
|
+
};
|
|
5339
|
+
accum_premium_index: {
|
|
5340
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5341
|
+
duration_sum: bigint;
|
|
5342
|
+
last_update_timestamp: bigint | null;
|
|
5343
|
+
};
|
|
5344
|
+
funding_meta: {
|
|
5345
|
+
rate: import("decimal.js").Decimal;
|
|
5346
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5347
|
+
last_update_timestamp: bigint;
|
|
5348
|
+
config: {
|
|
5349
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5350
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5351
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5352
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5353
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5354
|
+
};
|
|
5355
|
+
};
|
|
5356
|
+
}>>>;
|
|
5357
|
+
rwa_pricing_config: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5358
|
+
reference_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
5359
|
+
oracle_threshold_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5360
|
+
up_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5361
|
+
down_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5362
|
+
max_bound_n: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5363
|
+
funding_dampening_multiplier: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5364
|
+
internal_pricing_time_constant: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
5365
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5366
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
5367
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
5368
|
+
up_bound_n: number;
|
|
5369
|
+
down_bound_n: number;
|
|
5370
|
+
max_bound_n: number;
|
|
5371
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
5372
|
+
internal_pricing_time_constant: bigint;
|
|
5373
|
+
}>, Record<string, {
|
|
5374
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
5375
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
5376
|
+
up_bound_n: number;
|
|
5377
|
+
down_bound_n: number;
|
|
5378
|
+
max_bound_n: number;
|
|
5379
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
5380
|
+
internal_pricing_time_constant: bigint;
|
|
5381
|
+
}>>>;
|
|
5382
|
+
}, z.core.$strip>;
|
|
5383
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5384
|
+
pricing_frequency_seconds: number;
|
|
5385
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5386
|
+
oracle_pricing: Map<number, {
|
|
5387
|
+
price: import("decimal.js").Decimal;
|
|
5388
|
+
last_update_timestamp: bigint | null;
|
|
5389
|
+
}>;
|
|
5390
|
+
perp_pricing: Map<number, {
|
|
5391
|
+
market_id: number;
|
|
5392
|
+
mark_price: {
|
|
5393
|
+
price: import("decimal.js").Decimal;
|
|
5394
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5395
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5396
|
+
last_update_timestamp: bigint | null;
|
|
5397
|
+
};
|
|
5398
|
+
accum_premium_index: {
|
|
5399
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5400
|
+
duration_sum: bigint;
|
|
5401
|
+
last_update_timestamp: bigint | null;
|
|
5402
|
+
};
|
|
5403
|
+
funding_meta: {
|
|
5404
|
+
rate: import("decimal.js").Decimal;
|
|
5405
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5406
|
+
last_update_timestamp: bigint;
|
|
5407
|
+
config: {
|
|
5408
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5409
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5410
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5411
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5412
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5413
|
+
};
|
|
5414
|
+
};
|
|
5415
|
+
}>;
|
|
5416
|
+
rwa_pricing_config: Map<number, {
|
|
5417
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
5418
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
5419
|
+
up_bound_n: number;
|
|
5420
|
+
down_bound_n: number;
|
|
5421
|
+
max_bound_n: number;
|
|
5422
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
5423
|
+
internal_pricing_time_constant: bigint;
|
|
5424
|
+
}>;
|
|
5425
|
+
}, {
|
|
5426
|
+
V1: {
|
|
5427
|
+
pricing_frequency_seconds: number;
|
|
5428
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5429
|
+
oracle_pricing: Map<number, {
|
|
5430
|
+
price: import("decimal.js").Decimal;
|
|
5431
|
+
last_update_timestamp: bigint | null;
|
|
5432
|
+
}>;
|
|
5433
|
+
perp_pricing: Map<number, {
|
|
5434
|
+
market_id: number;
|
|
5435
|
+
mark_price: {
|
|
5436
|
+
price: import("decimal.js").Decimal;
|
|
5437
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5438
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5439
|
+
last_update_timestamp: bigint | null;
|
|
5440
|
+
};
|
|
5441
|
+
accum_premium_index: {
|
|
5442
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5443
|
+
duration_sum: bigint;
|
|
5444
|
+
last_update_timestamp: bigint | null;
|
|
5445
|
+
};
|
|
5446
|
+
funding_meta: {
|
|
5447
|
+
rate: import("decimal.js").Decimal;
|
|
5448
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5449
|
+
last_update_timestamp: bigint;
|
|
5450
|
+
config: {
|
|
5451
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5452
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5453
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5454
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5455
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5456
|
+
};
|
|
5457
|
+
};
|
|
5458
|
+
}>;
|
|
5459
|
+
rwa_pricing_config: Map<number, {
|
|
5460
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
5461
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
5462
|
+
up_bound_n: number;
|
|
5463
|
+
down_bound_n: number;
|
|
5464
|
+
max_bound_n: number;
|
|
5465
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
5466
|
+
internal_pricing_time_constant: bigint;
|
|
5467
|
+
}>;
|
|
5468
|
+
};
|
|
5469
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
5470
|
+
V0: z.ZodObject<{
|
|
5471
|
+
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5472
|
+
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5473
|
+
oracle_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5474
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5475
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
5476
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5477
|
+
price: import("decimal.js").Decimal;
|
|
5478
|
+
last_update_timestamp: bigint | null;
|
|
5479
|
+
}>, Record<string, {
|
|
5480
|
+
price: import("decimal.js").Decimal;
|
|
5481
|
+
last_update_timestamp: bigint | null;
|
|
5482
|
+
}>>>;
|
|
5483
|
+
perp_pricing: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5484
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
5485
|
+
mark_price: z.ZodObject<{
|
|
5486
|
+
price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5487
|
+
last_oracle_diff_ema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5488
|
+
last_median_cex_price: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5489
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
5490
|
+
}, z.core.$strip>;
|
|
5491
|
+
accum_premium_index: z.ZodObject<{
|
|
5492
|
+
weighted_premium_sum: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5493
|
+
duration_sum: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
5494
|
+
last_update_timestamp: z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>>;
|
|
5495
|
+
}, z.core.$strip>;
|
|
5496
|
+
funding_meta: z.ZodObject<{
|
|
5497
|
+
rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5498
|
+
accum_per_lot: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5499
|
+
last_update_timestamp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
5500
|
+
config: z.ZodObject<{
|
|
5501
|
+
interest_rate: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5502
|
+
min_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5503
|
+
max_interest_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5504
|
+
min_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5505
|
+
max_funding_rate_clamp: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
5506
|
+
}, z.core.$strip>;
|
|
5507
|
+
}, z.core.$strip>;
|
|
5508
|
+
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
5509
|
+
market_id: number;
|
|
5510
|
+
mark_price: {
|
|
5511
|
+
price: import("decimal.js").Decimal;
|
|
5512
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5513
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5514
|
+
last_update_timestamp: bigint | null;
|
|
5515
|
+
};
|
|
5516
|
+
accum_premium_index: {
|
|
5517
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5518
|
+
duration_sum: bigint;
|
|
5519
|
+
last_update_timestamp: bigint | null;
|
|
5520
|
+
};
|
|
5521
|
+
funding_meta: {
|
|
5522
|
+
rate: import("decimal.js").Decimal;
|
|
5523
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5524
|
+
last_update_timestamp: bigint;
|
|
5525
|
+
config: {
|
|
5526
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5527
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5528
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5529
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5530
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5531
|
+
};
|
|
5532
|
+
};
|
|
5533
|
+
}>, Record<string, {
|
|
5534
|
+
market_id: number;
|
|
5535
|
+
mark_price: {
|
|
5536
|
+
price: import("decimal.js").Decimal;
|
|
5537
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5538
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5539
|
+
last_update_timestamp: bigint | null;
|
|
5540
|
+
};
|
|
5541
|
+
accum_premium_index: {
|
|
5542
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5543
|
+
duration_sum: bigint;
|
|
5544
|
+
last_update_timestamp: bigint | null;
|
|
5545
|
+
};
|
|
5546
|
+
funding_meta: {
|
|
5547
|
+
rate: import("decimal.js").Decimal;
|
|
5548
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5549
|
+
last_update_timestamp: bigint;
|
|
5550
|
+
config: {
|
|
5551
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5552
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5553
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5554
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5555
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5556
|
+
};
|
|
5557
|
+
};
|
|
5558
|
+
}>>>;
|
|
5559
|
+
}, z.core.$strip>;
|
|
5560
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5561
|
+
pricing_frequency_seconds: number;
|
|
5562
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5563
|
+
oracle_pricing: Map<number, {
|
|
5564
|
+
price: import("decimal.js").Decimal;
|
|
5565
|
+
last_update_timestamp: bigint | null;
|
|
5566
|
+
}>;
|
|
5567
|
+
perp_pricing: Map<number, {
|
|
4290
5568
|
market_id: number;
|
|
4291
5569
|
mark_price: {
|
|
4292
5570
|
price: import("decimal.js").Decimal;
|
|
@@ -4311,69 +5589,70 @@ export declare const ResponseSchemas: {
|
|
|
4311
5589
|
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4312
5590
|
};
|
|
4313
5591
|
};
|
|
4314
|
-
}
|
|
4315
|
-
},
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
}, z.core.$strip>;
|
|
4323
|
-
perp_leverage_tables: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4324
|
-
tiers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4325
|
-
max_leverage: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
4326
|
-
mmr: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4327
|
-
maintenance_amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4328
|
-
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
4329
|
-
max_leverage: number;
|
|
4330
|
-
mmr: import("decimal.js").Decimal;
|
|
4331
|
-
maintenance_amount: import("decimal.js").Decimal;
|
|
4332
|
-
}>, Record<string, {
|
|
4333
|
-
max_leverage: number;
|
|
4334
|
-
mmr: import("decimal.js").Decimal;
|
|
4335
|
-
maintenance_amount: import("decimal.js").Decimal;
|
|
4336
|
-
}>>>;
|
|
4337
|
-
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4338
|
-
tiers: Map<string, {
|
|
4339
|
-
max_leverage: number;
|
|
4340
|
-
mmr: import("decimal.js").Decimal;
|
|
4341
|
-
maintenance_amount: import("decimal.js").Decimal;
|
|
5592
|
+
}>;
|
|
5593
|
+
}, {
|
|
5594
|
+
V0: {
|
|
5595
|
+
pricing_frequency_seconds: number;
|
|
5596
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5597
|
+
oracle_pricing: Map<number, {
|
|
5598
|
+
price: import("decimal.js").Decimal;
|
|
5599
|
+
last_update_timestamp: bigint | null;
|
|
4342
5600
|
}>;
|
|
4343
|
-
|
|
5601
|
+
perp_pricing: Map<number, {
|
|
5602
|
+
market_id: number;
|
|
5603
|
+
mark_price: {
|
|
5604
|
+
price: import("decimal.js").Decimal;
|
|
5605
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5606
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5607
|
+
last_update_timestamp: bigint | null;
|
|
5608
|
+
};
|
|
5609
|
+
accum_premium_index: {
|
|
5610
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5611
|
+
duration_sum: bigint;
|
|
5612
|
+
last_update_timestamp: bigint | null;
|
|
5613
|
+
};
|
|
5614
|
+
funding_meta: {
|
|
5615
|
+
rate: import("decimal.js").Decimal;
|
|
5616
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5617
|
+
last_update_timestamp: bigint;
|
|
5618
|
+
config: {
|
|
5619
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5620
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5621
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5622
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5623
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5624
|
+
};
|
|
5625
|
+
};
|
|
5626
|
+
}>;
|
|
5627
|
+
};
|
|
5628
|
+
}>>]>;
|
|
5629
|
+
}, z.core.$strip>;
|
|
5630
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
5631
|
+
version: "V1";
|
|
5632
|
+
data: {
|
|
5633
|
+
margin_config: {
|
|
5634
|
+
perp_liquidation_config: {
|
|
5635
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5636
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5637
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5638
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
5639
|
+
};
|
|
5640
|
+
perp_leverage_tables: Map<number, {
|
|
4344
5641
|
tiers: Map<string, {
|
|
4345
5642
|
max_leverage: number;
|
|
4346
5643
|
mmr: import("decimal.js").Decimal;
|
|
4347
5644
|
maintenance_amount: import("decimal.js").Decimal;
|
|
4348
5645
|
}>;
|
|
4349
|
-
}
|
|
4350
|
-
borrow_lend_risk_configs:
|
|
4351
|
-
liquidation_total_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4352
|
-
liability_liquidation_limit_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4353
|
-
asset_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4354
|
-
initial_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4355
|
-
maintenance_liability_weight: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4356
|
-
protocol_reward_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
4357
|
-
}, z.core.$strip>>, z.ZodTransform<Map<number, {
|
|
4358
|
-
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
4359
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4360
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4361
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4362
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4363
|
-
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
4364
|
-
}>, Record<string, {
|
|
5646
|
+
}>;
|
|
5647
|
+
borrow_lend_risk_configs: Map<number, {
|
|
4365
5648
|
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
4366
5649
|
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
4367
5650
|
asset_weight: import("decimal.js").Decimal;
|
|
4368
5651
|
initial_liability_weight: import("decimal.js").Decimal;
|
|
4369
5652
|
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4370
5653
|
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
4371
|
-
}
|
|
4372
|
-
}
|
|
4373
|
-
}, z.core.$strip>;
|
|
4374
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
4375
|
-
version: "V0";
|
|
4376
|
-
data: {
|
|
5654
|
+
}>;
|
|
5655
|
+
};
|
|
4377
5656
|
pricing_engine: {
|
|
4378
5657
|
pricing_frequency_seconds: number;
|
|
4379
5658
|
relaxed_pricing_frequency_seconds: number;
|
|
@@ -4407,7 +5686,52 @@ export declare const ResponseSchemas: {
|
|
|
4407
5686
|
};
|
|
4408
5687
|
};
|
|
4409
5688
|
}>;
|
|
5689
|
+
rwa_pricing_config: Map<number, {
|
|
5690
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
5691
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
5692
|
+
up_bound_n: number;
|
|
5693
|
+
down_bound_n: number;
|
|
5694
|
+
max_bound_n: number;
|
|
5695
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
5696
|
+
internal_pricing_time_constant: bigint;
|
|
5697
|
+
}>;
|
|
5698
|
+
} | {
|
|
5699
|
+
pricing_frequency_seconds: number;
|
|
5700
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5701
|
+
oracle_pricing: Map<number, {
|
|
5702
|
+
price: import("decimal.js").Decimal;
|
|
5703
|
+
last_update_timestamp: bigint | null;
|
|
5704
|
+
}>;
|
|
5705
|
+
perp_pricing: Map<number, {
|
|
5706
|
+
market_id: number;
|
|
5707
|
+
mark_price: {
|
|
5708
|
+
price: import("decimal.js").Decimal;
|
|
5709
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5710
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5711
|
+
last_update_timestamp: bigint | null;
|
|
5712
|
+
};
|
|
5713
|
+
accum_premium_index: {
|
|
5714
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5715
|
+
duration_sum: bigint;
|
|
5716
|
+
last_update_timestamp: bigint | null;
|
|
5717
|
+
};
|
|
5718
|
+
funding_meta: {
|
|
5719
|
+
rate: import("decimal.js").Decimal;
|
|
5720
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5721
|
+
last_update_timestamp: bigint;
|
|
5722
|
+
config: {
|
|
5723
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5724
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5725
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5726
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5727
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5728
|
+
};
|
|
5729
|
+
};
|
|
5730
|
+
}>;
|
|
4410
5731
|
};
|
|
5732
|
+
};
|
|
5733
|
+
}, {
|
|
5734
|
+
V1: {
|
|
4411
5735
|
margin_config: {
|
|
4412
5736
|
perp_liquidation_config: {
|
|
4413
5737
|
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
@@ -4431,9 +5755,6 @@ export declare const ResponseSchemas: {
|
|
|
4431
5755
|
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
4432
5756
|
}>;
|
|
4433
5757
|
};
|
|
4434
|
-
};
|
|
4435
|
-
}, {
|
|
4436
|
-
V0: {
|
|
4437
5758
|
pricing_engine: {
|
|
4438
5759
|
pricing_frequency_seconds: number;
|
|
4439
5760
|
relaxed_pricing_frequency_seconds: number;
|
|
@@ -4467,32 +5788,51 @@ export declare const ResponseSchemas: {
|
|
|
4467
5788
|
};
|
|
4468
5789
|
};
|
|
4469
5790
|
}>;
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
perp_leverage_tables: Map<number, {
|
|
4479
|
-
tiers: Map<string, {
|
|
4480
|
-
max_leverage: number;
|
|
4481
|
-
mmr: import("decimal.js").Decimal;
|
|
4482
|
-
maintenance_amount: import("decimal.js").Decimal;
|
|
4483
|
-
}>;
|
|
5791
|
+
rwa_pricing_config: Map<number, {
|
|
5792
|
+
reference_price: import("decimal.js").Decimal | null;
|
|
5793
|
+
oracle_threshold_ratio: import("decimal.js").Decimal;
|
|
5794
|
+
up_bound_n: number;
|
|
5795
|
+
down_bound_n: number;
|
|
5796
|
+
max_bound_n: number;
|
|
5797
|
+
funding_dampening_multiplier: import("decimal.js").Decimal;
|
|
5798
|
+
internal_pricing_time_constant: bigint;
|
|
4484
5799
|
}>;
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
5800
|
+
} | {
|
|
5801
|
+
pricing_frequency_seconds: number;
|
|
5802
|
+
relaxed_pricing_frequency_seconds: number;
|
|
5803
|
+
oracle_pricing: Map<number, {
|
|
5804
|
+
price: import("decimal.js").Decimal;
|
|
5805
|
+
last_update_timestamp: bigint | null;
|
|
5806
|
+
}>;
|
|
5807
|
+
perp_pricing: Map<number, {
|
|
5808
|
+
market_id: number;
|
|
5809
|
+
mark_price: {
|
|
5810
|
+
price: import("decimal.js").Decimal;
|
|
5811
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
5812
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
5813
|
+
last_update_timestamp: bigint | null;
|
|
5814
|
+
};
|
|
5815
|
+
accum_premium_index: {
|
|
5816
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
5817
|
+
duration_sum: bigint;
|
|
5818
|
+
last_update_timestamp: bigint | null;
|
|
5819
|
+
};
|
|
5820
|
+
funding_meta: {
|
|
5821
|
+
rate: import("decimal.js").Decimal;
|
|
5822
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
5823
|
+
last_update_timestamp: bigint;
|
|
5824
|
+
config: {
|
|
5825
|
+
interest_rate: import("decimal.js").Decimal;
|
|
5826
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5827
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5828
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5829
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5830
|
+
};
|
|
5831
|
+
};
|
|
4492
5832
|
}>;
|
|
4493
5833
|
};
|
|
4494
5834
|
};
|
|
4495
|
-
}
|
|
5835
|
+
}>>]>>;
|
|
4496
5836
|
}, z.core.$strip>;
|
|
4497
5837
|
readonly ExecutionIds: z.ZodObject<{
|
|
4498
5838
|
value: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
@@ -10494,8 +11834,8 @@ export declare const ResponseSchemas: {
|
|
|
10494
11834
|
cleaning: "cleaning";
|
|
10495
11835
|
cleaned: "cleaned";
|
|
10496
11836
|
}>;
|
|
10497
|
-
|
|
10498
|
-
|
|
11837
|
+
_base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
11838
|
+
_quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
10499
11839
|
config: z.ZodObject<{
|
|
10500
11840
|
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
10501
11841
|
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -10557,8 +11897,8 @@ export declare const ResponseSchemas: {
|
|
|
10557
11897
|
data: {
|
|
10558
11898
|
market_id: number;
|
|
10559
11899
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
10560
|
-
|
|
10561
|
-
|
|
11900
|
+
_base_asset_id: number;
|
|
11901
|
+
_quote_asset_id: number;
|
|
10562
11902
|
config: {
|
|
10563
11903
|
base_min_lot_size: import("decimal.js").Decimal;
|
|
10564
11904
|
quote_min_lot_size: import("decimal.js").Decimal;
|
|
@@ -10595,8 +11935,8 @@ export declare const ResponseSchemas: {
|
|
|
10595
11935
|
V0: {
|
|
10596
11936
|
market_id: number;
|
|
10597
11937
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
10598
|
-
|
|
10599
|
-
|
|
11938
|
+
_base_asset_id: number;
|
|
11939
|
+
_quote_asset_id: number;
|
|
10600
11940
|
config: {
|
|
10601
11941
|
base_min_lot_size: import("decimal.js").Decimal;
|
|
10602
11942
|
quote_min_lot_size: import("decimal.js").Decimal;
|
|
@@ -10676,7 +12016,9 @@ export declare const ResponseSchemas: {
|
|
|
10676
12016
|
type UserAccountConfigV0 = z.infer<typeof Schemas.UserAccountConfigV0>;
|
|
10677
12017
|
type PerpMarketV0 = z.infer<typeof Schemas.PerpMarketV0>;
|
|
10678
12018
|
type SpotMarketV0 = z.infer<typeof Schemas.SpotMarketV0>;
|
|
12019
|
+
type RiskEngineV1 = z.infer<typeof Schemas.RiskEngineV1>;
|
|
10679
12020
|
type RiskEngineV0 = z.infer<typeof Schemas.RiskEngineV0>;
|
|
12021
|
+
type ExchangeInfoV3 = z.infer<typeof Schemas.ExchangeInfoV3>;
|
|
10680
12022
|
type ExchangeInfoV2 = z.infer<typeof Schemas.ExchangeInfoV2>;
|
|
10681
12023
|
type ExchangeAssetsV0 = z.infer<typeof Schemas.ExchangeAssetsV0>;
|
|
10682
12024
|
type ExecutionIdsV0 = z.infer<typeof Schemas.ExecutionIdsV0>;
|
|
@@ -10704,6 +12046,9 @@ export type VersionedSpotMarket = {
|
|
|
10704
12046
|
data: SpotMarketV0;
|
|
10705
12047
|
};
|
|
10706
12048
|
export type VersionedExchangeInfo = {
|
|
12049
|
+
version: "V3";
|
|
12050
|
+
data: ExchangeInfoV3;
|
|
12051
|
+
} | {
|
|
10707
12052
|
version: "V2";
|
|
10708
12053
|
data: ExchangeInfoV2;
|
|
10709
12054
|
};
|
|
@@ -10713,9 +12058,13 @@ export type VersionedExecutionIds = {
|
|
|
10713
12058
|
data: ExecutionIdsV0;
|
|
10714
12059
|
};
|
|
10715
12060
|
export type VersionedRiskEngine = {
|
|
12061
|
+
version: "V1";
|
|
12062
|
+
data: RiskEngineV1;
|
|
12063
|
+
} | {
|
|
10716
12064
|
version: "V0";
|
|
10717
12065
|
data: RiskEngineV0;
|
|
10718
12066
|
};
|
|
12067
|
+
export type PricingEngine = z.infer<typeof PricingEngine>;
|
|
10719
12068
|
export type BorrowLendPool = z.infer<typeof BorrowLendPool>;
|
|
10720
12069
|
export type Delegate = z.infer<typeof Schemas.Delegate>;
|
|
10721
12070
|
export type Delegates = z.infer<typeof ResponseSchemas.Delegates>;
|