@bulletxyz/bullet-sdk 0.31.0-rc.1 → 0.31.0-rc.2

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.
@@ -112,7 +112,7 @@ declare const BorrowLendRiskConfig: z.ZodObject<{
112
112
  protocol_reward_ratio: string | number;
113
113
  }>;
114
114
  declare const Order: z.ZodUnion<[z.ZodObject<{
115
- side: z.ZodEnum<["Bid", "Ask"]>;
115
+ side: z.ZodEnum<["bid", "ask"]>;
116
116
  market_id: z.ZodNumber;
117
117
  order_id: z.ZodBigInt;
118
118
  client_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -124,7 +124,7 @@ declare const Order: z.ZodUnion<[z.ZodObject<{
124
124
  owner: z.ZodString;
125
125
  reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
126
126
  }, "strip", z.ZodTypeAny, {
127
- side: "Bid" | "Ask";
127
+ side: "bid" | "ask";
128
128
  market_id: number;
129
129
  order_id: bigint;
130
130
  client_order_id: bigint | null;
@@ -136,7 +136,7 @@ declare const Order: z.ZodUnion<[z.ZodObject<{
136
136
  owner: string;
137
137
  reserved_pending_tpsl_pair_ids: string | null;
138
138
  }, {
139
- side: "Bid" | "Ask";
139
+ side: "bid" | "ask";
140
140
  market_id: number;
141
141
  order_id: bigint;
142
142
  client_order_id: bigint | null;
@@ -148,7 +148,7 @@ declare const Order: z.ZodUnion<[z.ZodObject<{
148
148
  owner: string;
149
149
  reserved_pending_tpsl_pair_ids: string | null;
150
150
  }>, z.ZodObject<{
151
- side: z.ZodEnum<["Bid", "Ask"]>;
151
+ side: z.ZodEnum<["bid", "ask"]>;
152
152
  market_id: z.ZodNumber;
153
153
  order_id: z.ZodBigInt;
154
154
  quote_asset_id: z.ZodNumber;
@@ -160,7 +160,7 @@ declare const Order: z.ZodUnion<[z.ZodObject<{
160
160
  average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
161
161
  owner: z.ZodString;
162
162
  }, "strip", z.ZodTypeAny, {
163
- side: "Bid" | "Ask";
163
+ side: "bid" | "ask";
164
164
  market_id: number;
165
165
  order_id: bigint;
166
166
  client_order_id: bigint | null;
@@ -172,7 +172,7 @@ declare const Order: z.ZodUnion<[z.ZodObject<{
172
172
  remaining_base_lots: import("decimal.js").Decimal;
173
173
  filled_base_lots: import("decimal.js").Decimal;
174
174
  }, {
175
- side: "Bid" | "Ask";
175
+ side: "bid" | "ask";
176
176
  market_id: number;
177
177
  order_id: bigint;
178
178
  client_order_id: bigint | null;
@@ -223,30 +223,33 @@ export declare const Schemas: {
223
223
  minimum_usdc_token_amount: string | number;
224
224
  }>;
225
225
  readonly UserAccount: z.ZodObject<{
226
- account_variant: z.ZodUnion<[z.ZodObject<{
227
- Master: z.ZodArray<z.ZodNumber, "many">;
226
+ account_variant: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
227
+ type: z.ZodLiteral<"master">;
228
+ sub_account_indices: z.ZodArray<z.ZodNumber, "many">;
228
229
  }, "strip", z.ZodTypeAny, {
229
- Master: number[];
230
+ type: "master";
231
+ sub_account_indices: number[];
230
232
  }, {
231
- Master: number[];
233
+ type: "master";
234
+ sub_account_indices: number[];
232
235
  }>, z.ZodObject<{
233
- Sub: z.ZodNull;
236
+ type: z.ZodLiteral<"sub">;
234
237
  }, "strip", z.ZodTypeAny, {
235
- Sub: null;
238
+ type: "sub";
236
239
  }, {
237
- Sub: null;
240
+ type: "sub";
238
241
  }>, z.ZodObject<{
239
- Vault: z.ZodNull;
242
+ type: z.ZodLiteral<"vault">;
240
243
  }, "strip", z.ZodTypeAny, {
241
- Vault: null;
244
+ type: "vault";
242
245
  }, {
243
- Vault: null;
246
+ type: "vault";
244
247
  }>, z.ZodObject<{
245
- ProtocolVault: z.ZodNull;
248
+ type: z.ZodLiteral<"protocol_vault">;
246
249
  }, "strip", z.ZodTypeAny, {
247
- ProtocolVault: null;
250
+ type: "protocol_vault";
248
251
  }, {
249
- ProtocolVault: null;
252
+ type: "protocol_vault";
250
253
  }>]>;
251
254
  address: z.ZodString;
252
255
  usdc_ledger: z.ZodObject<{
@@ -296,7 +299,7 @@ export declare const Schemas: {
296
299
  }>>;
297
300
  perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
298
301
  orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
299
- side: z.ZodEnum<["Bid", "Ask"]>;
302
+ side: z.ZodEnum<["bid", "ask"]>;
300
303
  market_id: z.ZodNumber;
301
304
  order_id: z.ZodBigInt;
302
305
  client_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -308,7 +311,7 @@ export declare const Schemas: {
308
311
  owner: z.ZodString;
309
312
  reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
310
313
  }, "strip", z.ZodTypeAny, {
311
- side: "Bid" | "Ask";
314
+ side: "bid" | "ask";
312
315
  market_id: number;
313
316
  order_id: bigint;
314
317
  client_order_id: bigint | null;
@@ -320,7 +323,7 @@ export declare const Schemas: {
320
323
  owner: string;
321
324
  reserved_pending_tpsl_pair_ids: string | null;
322
325
  }, {
323
- side: "Bid" | "Ask";
326
+ side: "bid" | "ask";
324
327
  market_id: number;
325
328
  order_id: bigint;
326
329
  client_order_id: bigint | null;
@@ -332,7 +335,7 @@ export declare const Schemas: {
332
335
  owner: string;
333
336
  reserved_pending_tpsl_pair_ids: string | null;
334
337
  }>>, Map<bigint, {
335
- side: "Bid" | "Ask";
338
+ side: "bid" | "ask";
336
339
  market_id: number;
337
340
  order_id: bigint;
338
341
  client_order_id: bigint | null;
@@ -344,7 +347,7 @@ export declare const Schemas: {
344
347
  owner: string;
345
348
  reserved_pending_tpsl_pair_ids: string | null;
346
349
  }>, Record<string, {
347
- side: "Bid" | "Ask";
350
+ side: "bid" | "ask";
348
351
  market_id: number;
349
352
  order_id: bigint;
350
353
  client_order_id: bigint | null;
@@ -383,15 +386,15 @@ export declare const Schemas: {
383
386
  }>;
384
387
  user_selected_max_leverage: z.ZodNumber;
385
388
  trigger_orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
386
- side: z.ZodEnum<["Bid", "Ask"]>;
389
+ side: z.ZodEnum<["bid", "ask"]>;
387
390
  market_id: z.ZodNumber;
388
391
  trigger_order_id: z.ZodBigInt;
389
392
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
390
393
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
391
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
392
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
394
+ trigger_direction: z.ZodEnum<["greater_than_or_equal", "less_than_or_equal"]>;
395
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
393
396
  size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
394
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
397
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
395
398
  owner: z.ZodString;
396
399
  last_update_timestamp: z.ZodBigInt;
397
400
  linked_trigger_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -399,58 +402,58 @@ export declare const Schemas: {
399
402
  size: import("decimal.js").Decimal | null;
400
403
  order_price: import("decimal.js").Decimal;
401
404
  trigger_price: import("decimal.js").Decimal;
402
- price_condition: "Mark" | "Oracle" | "LastTrade";
403
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
404
- side: "Bid" | "Ask";
405
+ price_condition: "mark" | "oracle" | "last_trade";
406
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
407
+ side: "bid" | "ask";
405
408
  market_id: number;
406
409
  owner: string;
407
410
  trigger_order_id: bigint;
408
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
411
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
409
412
  last_update_timestamp: bigint;
410
413
  linked_trigger_order_id: bigint | null;
411
414
  }, {
412
415
  size: string | number | null;
413
416
  order_price: string | number;
414
417
  trigger_price: string | number;
415
- price_condition: "Mark" | "Oracle" | "LastTrade";
416
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
417
- side: "Bid" | "Ask";
418
+ price_condition: "mark" | "oracle" | "last_trade";
419
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
420
+ side: "bid" | "ask";
418
421
  market_id: number;
419
422
  owner: string;
420
423
  trigger_order_id: bigint;
421
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
424
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
422
425
  last_update_timestamp: bigint;
423
426
  linked_trigger_order_id: bigint | null;
424
427
  }>>, Map<bigint, {
425
428
  size: import("decimal.js").Decimal | null;
426
429
  order_price: import("decimal.js").Decimal;
427
430
  trigger_price: import("decimal.js").Decimal;
428
- price_condition: "Mark" | "Oracle" | "LastTrade";
429
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
430
- side: "Bid" | "Ask";
431
+ price_condition: "mark" | "oracle" | "last_trade";
432
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
433
+ side: "bid" | "ask";
431
434
  market_id: number;
432
435
  owner: string;
433
436
  trigger_order_id: bigint;
434
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
437
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
435
438
  last_update_timestamp: bigint;
436
439
  linked_trigger_order_id: bigint | null;
437
440
  }>, Record<string, {
438
441
  size: string | number | null;
439
442
  order_price: string | number;
440
443
  trigger_price: string | number;
441
- price_condition: "Mark" | "Oracle" | "LastTrade";
442
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
443
- side: "Bid" | "Ask";
444
+ price_condition: "mark" | "oracle" | "last_trade";
445
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
446
+ side: "bid" | "ask";
444
447
  market_id: number;
445
448
  owner: string;
446
449
  trigger_order_id: bigint;
447
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
450
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
448
451
  last_update_timestamp: bigint;
449
452
  linked_trigger_order_id: bigint | null;
450
453
  }>>;
451
454
  }, "strip", z.ZodTypeAny, {
452
455
  orders: Map<bigint, {
453
- side: "Bid" | "Ask";
456
+ side: "bid" | "ask";
454
457
  market_id: number;
455
458
  order_id: bigint;
456
459
  client_order_id: bigint | null;
@@ -476,19 +479,19 @@ export declare const Schemas: {
476
479
  size: import("decimal.js").Decimal | null;
477
480
  order_price: import("decimal.js").Decimal;
478
481
  trigger_price: import("decimal.js").Decimal;
479
- price_condition: "Mark" | "Oracle" | "LastTrade";
480
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
481
- side: "Bid" | "Ask";
482
+ price_condition: "mark" | "oracle" | "last_trade";
483
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
484
+ side: "bid" | "ask";
482
485
  market_id: number;
483
486
  owner: string;
484
487
  trigger_order_id: bigint;
485
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
488
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
486
489
  last_update_timestamp: bigint;
487
490
  linked_trigger_order_id: bigint | null;
488
491
  }>;
489
492
  }, {
490
493
  orders: Record<string, {
491
- side: "Bid" | "Ask";
494
+ side: "bid" | "ask";
492
495
  market_id: number;
493
496
  order_id: bigint;
494
497
  client_order_id: bigint | null;
@@ -514,19 +517,19 @@ export declare const Schemas: {
514
517
  size: string | number | null;
515
518
  order_price: string | number;
516
519
  trigger_price: string | number;
517
- price_condition: "Mark" | "Oracle" | "LastTrade";
518
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
519
- side: "Bid" | "Ask";
520
+ price_condition: "mark" | "oracle" | "last_trade";
521
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
522
+ side: "bid" | "ask";
520
523
  market_id: number;
521
524
  owner: string;
522
525
  trigger_order_id: bigint;
523
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
526
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
524
527
  last_update_timestamp: bigint;
525
528
  linked_trigger_order_id: bigint | null;
526
529
  }>;
527
530
  }>>, Map<number, {
528
531
  orders: Map<bigint, {
529
- side: "Bid" | "Ask";
532
+ side: "bid" | "ask";
530
533
  market_id: number;
531
534
  order_id: bigint;
532
535
  client_order_id: bigint | null;
@@ -552,19 +555,19 @@ export declare const Schemas: {
552
555
  size: import("decimal.js").Decimal | null;
553
556
  order_price: import("decimal.js").Decimal;
554
557
  trigger_price: import("decimal.js").Decimal;
555
- price_condition: "Mark" | "Oracle" | "LastTrade";
556
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
557
- side: "Bid" | "Ask";
558
+ price_condition: "mark" | "oracle" | "last_trade";
559
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
560
+ side: "bid" | "ask";
558
561
  market_id: number;
559
562
  owner: string;
560
563
  trigger_order_id: bigint;
561
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
564
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
562
565
  last_update_timestamp: bigint;
563
566
  linked_trigger_order_id: bigint | null;
564
567
  }>;
565
568
  }>, Record<string, {
566
569
  orders: Record<string, {
567
- side: "Bid" | "Ask";
570
+ side: "bid" | "ask";
568
571
  market_id: number;
569
572
  order_id: bigint;
570
573
  client_order_id: bigint | null;
@@ -590,20 +593,20 @@ export declare const Schemas: {
590
593
  size: string | number | null;
591
594
  order_price: string | number;
592
595
  trigger_price: string | number;
593
- price_condition: "Mark" | "Oracle" | "LastTrade";
594
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
595
- side: "Bid" | "Ask";
596
+ price_condition: "mark" | "oracle" | "last_trade";
597
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
598
+ side: "bid" | "ask";
596
599
  market_id: number;
597
600
  owner: string;
598
601
  trigger_order_id: bigint;
599
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
602
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
600
603
  last_update_timestamp: bigint;
601
604
  linked_trigger_order_id: bigint | null;
602
605
  }>;
603
606
  }>>;
604
607
  spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
605
608
  orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
606
- side: z.ZodEnum<["Bid", "Ask"]>;
609
+ side: z.ZodEnum<["bid", "ask"]>;
607
610
  market_id: z.ZodNumber;
608
611
  order_id: z.ZodBigInt;
609
612
  quote_asset_id: z.ZodNumber;
@@ -615,7 +618,7 @@ export declare const Schemas: {
615
618
  average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
616
619
  owner: z.ZodString;
617
620
  }, "strip", z.ZodTypeAny, {
618
- side: "Bid" | "Ask";
621
+ side: "bid" | "ask";
619
622
  market_id: number;
620
623
  order_id: bigint;
621
624
  client_order_id: bigint | null;
@@ -627,7 +630,7 @@ export declare const Schemas: {
627
630
  remaining_base_lots: import("decimal.js").Decimal;
628
631
  filled_base_lots: import("decimal.js").Decimal;
629
632
  }, {
630
- side: "Bid" | "Ask";
633
+ side: "bid" | "ask";
631
634
  market_id: number;
632
635
  order_id: bigint;
633
636
  client_order_id: bigint | null;
@@ -639,7 +642,7 @@ export declare const Schemas: {
639
642
  remaining_base_lots: string | number;
640
643
  filled_base_lots: string | number;
641
644
  }>>, Map<bigint, {
642
- side: "Bid" | "Ask";
645
+ side: "bid" | "ask";
643
646
  market_id: number;
644
647
  order_id: bigint;
645
648
  client_order_id: bigint | null;
@@ -651,7 +654,7 @@ export declare const Schemas: {
651
654
  remaining_base_lots: import("decimal.js").Decimal;
652
655
  filled_base_lots: import("decimal.js").Decimal;
653
656
  }>, Record<string, {
654
- side: "Bid" | "Ask";
657
+ side: "bid" | "ask";
655
658
  market_id: number;
656
659
  order_id: bigint;
657
660
  client_order_id: bigint | null;
@@ -664,15 +667,15 @@ export declare const Schemas: {
664
667
  filled_base_lots: string | number;
665
668
  }>>;
666
669
  trigger_orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
667
- side: z.ZodEnum<["Bid", "Ask"]>;
670
+ side: z.ZodEnum<["bid", "ask"]>;
668
671
  market_id: z.ZodNumber;
669
672
  trigger_order_id: z.ZodBigInt;
670
673
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
671
674
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
672
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
673
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
675
+ trigger_direction: z.ZodEnum<["greater_than_or_equal", "less_than_or_equal"]>;
676
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
674
677
  size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
675
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
678
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
676
679
  owner: z.ZodString;
677
680
  last_update_timestamp: z.ZodBigInt;
678
681
  linked_trigger_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -680,58 +683,58 @@ export declare const Schemas: {
680
683
  size: import("decimal.js").Decimal | null;
681
684
  order_price: import("decimal.js").Decimal;
682
685
  trigger_price: import("decimal.js").Decimal;
683
- price_condition: "Mark" | "Oracle" | "LastTrade";
684
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
685
- side: "Bid" | "Ask";
686
+ price_condition: "mark" | "oracle" | "last_trade";
687
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
688
+ side: "bid" | "ask";
686
689
  market_id: number;
687
690
  owner: string;
688
691
  trigger_order_id: bigint;
689
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
692
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
690
693
  last_update_timestamp: bigint;
691
694
  linked_trigger_order_id: bigint | null;
692
695
  }, {
693
696
  size: string | number | null;
694
697
  order_price: string | number;
695
698
  trigger_price: string | number;
696
- price_condition: "Mark" | "Oracle" | "LastTrade";
697
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
698
- side: "Bid" | "Ask";
699
+ price_condition: "mark" | "oracle" | "last_trade";
700
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
701
+ side: "bid" | "ask";
699
702
  market_id: number;
700
703
  owner: string;
701
704
  trigger_order_id: bigint;
702
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
705
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
703
706
  last_update_timestamp: bigint;
704
707
  linked_trigger_order_id: bigint | null;
705
708
  }>>, Map<bigint, {
706
709
  size: import("decimal.js").Decimal | null;
707
710
  order_price: import("decimal.js").Decimal;
708
711
  trigger_price: import("decimal.js").Decimal;
709
- price_condition: "Mark" | "Oracle" | "LastTrade";
710
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
711
- side: "Bid" | "Ask";
712
+ price_condition: "mark" | "oracle" | "last_trade";
713
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
714
+ side: "bid" | "ask";
712
715
  market_id: number;
713
716
  owner: string;
714
717
  trigger_order_id: bigint;
715
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
718
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
716
719
  last_update_timestamp: bigint;
717
720
  linked_trigger_order_id: bigint | null;
718
721
  }>, Record<string, {
719
722
  size: string | number | null;
720
723
  order_price: string | number;
721
724
  trigger_price: string | number;
722
- price_condition: "Mark" | "Oracle" | "LastTrade";
723
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
724
- side: "Bid" | "Ask";
725
+ price_condition: "mark" | "oracle" | "last_trade";
726
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
727
+ side: "bid" | "ask";
725
728
  market_id: number;
726
729
  owner: string;
727
730
  trigger_order_id: bigint;
728
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
731
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
729
732
  last_update_timestamp: bigint;
730
733
  linked_trigger_order_id: bigint | null;
731
734
  }>>;
732
735
  }, "strip", z.ZodTypeAny, {
733
736
  orders: Map<bigint, {
734
- side: "Bid" | "Ask";
737
+ side: "bid" | "ask";
735
738
  market_id: number;
736
739
  order_id: bigint;
737
740
  client_order_id: bigint | null;
@@ -747,19 +750,19 @@ export declare const Schemas: {
747
750
  size: import("decimal.js").Decimal | null;
748
751
  order_price: import("decimal.js").Decimal;
749
752
  trigger_price: import("decimal.js").Decimal;
750
- price_condition: "Mark" | "Oracle" | "LastTrade";
751
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
752
- side: "Bid" | "Ask";
753
+ price_condition: "mark" | "oracle" | "last_trade";
754
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
755
+ side: "bid" | "ask";
753
756
  market_id: number;
754
757
  owner: string;
755
758
  trigger_order_id: bigint;
756
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
759
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
757
760
  last_update_timestamp: bigint;
758
761
  linked_trigger_order_id: bigint | null;
759
762
  }>;
760
763
  }, {
761
764
  orders: Record<string, {
762
- side: "Bid" | "Ask";
765
+ side: "bid" | "ask";
763
766
  market_id: number;
764
767
  order_id: bigint;
765
768
  client_order_id: bigint | null;
@@ -775,19 +778,19 @@ export declare const Schemas: {
775
778
  size: string | number | null;
776
779
  order_price: string | number;
777
780
  trigger_price: string | number;
778
- price_condition: "Mark" | "Oracle" | "LastTrade";
779
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
780
- side: "Bid" | "Ask";
781
+ price_condition: "mark" | "oracle" | "last_trade";
782
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
783
+ side: "bid" | "ask";
781
784
  market_id: number;
782
785
  owner: string;
783
786
  trigger_order_id: bigint;
784
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
787
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
785
788
  last_update_timestamp: bigint;
786
789
  linked_trigger_order_id: bigint | null;
787
790
  }>;
788
791
  }>>, Map<number, {
789
792
  orders: Map<bigint, {
790
- side: "Bid" | "Ask";
793
+ side: "bid" | "ask";
791
794
  market_id: number;
792
795
  order_id: bigint;
793
796
  client_order_id: bigint | null;
@@ -803,19 +806,19 @@ export declare const Schemas: {
803
806
  size: import("decimal.js").Decimal | null;
804
807
  order_price: import("decimal.js").Decimal;
805
808
  trigger_price: import("decimal.js").Decimal;
806
- price_condition: "Mark" | "Oracle" | "LastTrade";
807
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
808
- side: "Bid" | "Ask";
809
+ price_condition: "mark" | "oracle" | "last_trade";
810
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
811
+ side: "bid" | "ask";
809
812
  market_id: number;
810
813
  owner: string;
811
814
  trigger_order_id: bigint;
812
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
815
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
813
816
  last_update_timestamp: bigint;
814
817
  linked_trigger_order_id: bigint | null;
815
818
  }>;
816
819
  }>, Record<string, {
817
820
  orders: Record<string, {
818
- side: "Bid" | "Ask";
821
+ side: "bid" | "ask";
819
822
  market_id: number;
820
823
  order_id: bigint;
821
824
  client_order_id: bigint | null;
@@ -831,77 +834,77 @@ export declare const Schemas: {
831
834
  size: string | number | null;
832
835
  order_price: string | number;
833
836
  trigger_price: string | number;
834
- price_condition: "Mark" | "Oracle" | "LastTrade";
835
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
836
- side: "Bid" | "Ask";
837
+ price_condition: "mark" | "oracle" | "last_trade";
838
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
839
+ side: "bid" | "ask";
837
840
  market_id: number;
838
841
  owner: string;
839
842
  trigger_order_id: bigint;
840
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
843
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
841
844
  last_update_timestamp: bigint;
842
845
  linked_trigger_order_id: bigint | null;
843
846
  }>;
844
847
  }>>;
845
- fee_tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEnum<["Tier0", "Tier1", "Tier2", "Tier3", "Tier4"]>>, Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">, Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">>;
848
+ fee_tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEnum<["tier0", "tier1", "tier2", "tier3", "tier4"]>>, Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">, Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">>;
846
849
  pending_tpsl_pairs: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
847
850
  tpsl_pair: z.ZodObject<{
848
851
  tp: z.ZodNullable<z.ZodObject<{
849
852
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
850
853
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
851
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
852
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
854
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
855
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
853
856
  }, "strip", z.ZodTypeAny, {
854
857
  order_price: import("decimal.js").Decimal;
855
858
  trigger_price: import("decimal.js").Decimal;
856
- price_condition: "Mark" | "Oracle" | "LastTrade";
857
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
859
+ price_condition: "mark" | "oracle" | "last_trade";
860
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
858
861
  }, {
859
862
  order_price: string | number;
860
863
  trigger_price: string | number;
861
- price_condition: "Mark" | "Oracle" | "LastTrade";
862
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
864
+ price_condition: "mark" | "oracle" | "last_trade";
865
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
863
866
  }>>;
864
867
  sl: z.ZodNullable<z.ZodObject<{
865
868
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
866
869
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
867
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
868
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
870
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
871
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
869
872
  }, "strip", z.ZodTypeAny, {
870
873
  order_price: import("decimal.js").Decimal;
871
874
  trigger_price: import("decimal.js").Decimal;
872
- price_condition: "Mark" | "Oracle" | "LastTrade";
873
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
875
+ price_condition: "mark" | "oracle" | "last_trade";
876
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
874
877
  }, {
875
878
  order_price: string | number;
876
879
  trigger_price: string | number;
877
- price_condition: "Mark" | "Oracle" | "LastTrade";
878
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
880
+ price_condition: "mark" | "oracle" | "last_trade";
881
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
879
882
  }>>;
880
883
  }, "strip", z.ZodTypeAny, {
881
884
  tp: {
882
885
  order_price: import("decimal.js").Decimal;
883
886
  trigger_price: import("decimal.js").Decimal;
884
- price_condition: "Mark" | "Oracle" | "LastTrade";
885
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
887
+ price_condition: "mark" | "oracle" | "last_trade";
888
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
886
889
  } | null;
887
890
  sl: {
888
891
  order_price: import("decimal.js").Decimal;
889
892
  trigger_price: import("decimal.js").Decimal;
890
- price_condition: "Mark" | "Oracle" | "LastTrade";
891
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
893
+ price_condition: "mark" | "oracle" | "last_trade";
894
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
892
895
  } | null;
893
896
  }, {
894
897
  tp: {
895
898
  order_price: string | number;
896
899
  trigger_price: string | number;
897
- price_condition: "Mark" | "Oracle" | "LastTrade";
898
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
900
+ price_condition: "mark" | "oracle" | "last_trade";
901
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
899
902
  } | null;
900
903
  sl: {
901
904
  order_price: string | number;
902
905
  trigger_price: string | number;
903
- price_condition: "Mark" | "Oracle" | "LastTrade";
904
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
906
+ price_condition: "mark" | "oracle" | "last_trade";
907
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
905
908
  } | null;
906
909
  }>;
907
910
  dynamic_size: z.ZodBoolean;
@@ -910,14 +913,14 @@ export declare const Schemas: {
910
913
  tp: {
911
914
  order_price: import("decimal.js").Decimal;
912
915
  trigger_price: import("decimal.js").Decimal;
913
- price_condition: "Mark" | "Oracle" | "LastTrade";
914
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
916
+ price_condition: "mark" | "oracle" | "last_trade";
917
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
915
918
  } | null;
916
919
  sl: {
917
920
  order_price: import("decimal.js").Decimal;
918
921
  trigger_price: import("decimal.js").Decimal;
919
- price_condition: "Mark" | "Oracle" | "LastTrade";
920
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
922
+ price_condition: "mark" | "oracle" | "last_trade";
923
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
921
924
  } | null;
922
925
  };
923
926
  dynamic_size: boolean;
@@ -926,14 +929,14 @@ export declare const Schemas: {
926
929
  tp: {
927
930
  order_price: string | number;
928
931
  trigger_price: string | number;
929
- price_condition: "Mark" | "Oracle" | "LastTrade";
930
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
932
+ price_condition: "mark" | "oracle" | "last_trade";
933
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
931
934
  } | null;
932
935
  sl: {
933
936
  order_price: string | number;
934
937
  trigger_price: string | number;
935
- price_condition: "Mark" | "Oracle" | "LastTrade";
936
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
938
+ price_condition: "mark" | "oracle" | "last_trade";
939
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
937
940
  } | null;
938
941
  };
939
942
  dynamic_size: boolean;
@@ -942,14 +945,14 @@ export declare const Schemas: {
942
945
  tp: {
943
946
  order_price: import("decimal.js").Decimal;
944
947
  trigger_price: import("decimal.js").Decimal;
945
- price_condition: "Mark" | "Oracle" | "LastTrade";
946
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
948
+ price_condition: "mark" | "oracle" | "last_trade";
949
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
947
950
  } | null;
948
951
  sl: {
949
952
  order_price: import("decimal.js").Decimal;
950
953
  trigger_price: import("decimal.js").Decimal;
951
- price_condition: "Mark" | "Oracle" | "LastTrade";
952
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
954
+ price_condition: "mark" | "oracle" | "last_trade";
955
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
953
956
  } | null;
954
957
  };
955
958
  dynamic_size: boolean;
@@ -958,14 +961,14 @@ export declare const Schemas: {
958
961
  tp: {
959
962
  order_price: string | number;
960
963
  trigger_price: string | number;
961
- price_condition: "Mark" | "Oracle" | "LastTrade";
962
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
964
+ price_condition: "mark" | "oracle" | "last_trade";
965
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
963
966
  } | null;
964
967
  sl: {
965
968
  order_price: string | number;
966
969
  trigger_price: string | number;
967
- price_condition: "Mark" | "Oracle" | "LastTrade";
968
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
970
+ price_condition: "mark" | "oracle" | "last_trade";
971
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
969
972
  } | null;
970
973
  };
971
974
  dynamic_size: boolean;
@@ -973,13 +976,14 @@ export declare const Schemas: {
973
976
  spot_collateral: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>, Map<number, import("decimal.js").Decimal>, Record<string, string | number>>;
974
977
  }, "strip", z.ZodTypeAny, {
975
978
  account_variant: {
976
- Master: number[];
979
+ type: "master";
980
+ sub_account_indices: number[];
977
981
  } | {
978
- Sub: null;
982
+ type: "sub";
979
983
  } | {
980
- Vault: null;
984
+ type: "vault";
981
985
  } | {
982
- ProtocolVault: null;
986
+ type: "protocol_vault";
983
987
  };
984
988
  address: string;
985
989
  usdc_ledger: {
@@ -997,7 +1001,7 @@ export declare const Schemas: {
997
1001
  }>;
998
1002
  perp_ledgers: Map<number, {
999
1003
  orders: Map<bigint, {
1000
- side: "Bid" | "Ask";
1004
+ side: "bid" | "ask";
1001
1005
  market_id: number;
1002
1006
  order_id: bigint;
1003
1007
  client_order_id: bigint | null;
@@ -1023,20 +1027,20 @@ export declare const Schemas: {
1023
1027
  size: import("decimal.js").Decimal | null;
1024
1028
  order_price: import("decimal.js").Decimal;
1025
1029
  trigger_price: import("decimal.js").Decimal;
1026
- price_condition: "Mark" | "Oracle" | "LastTrade";
1027
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1028
- side: "Bid" | "Ask";
1030
+ price_condition: "mark" | "oracle" | "last_trade";
1031
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1032
+ side: "bid" | "ask";
1029
1033
  market_id: number;
1030
1034
  owner: string;
1031
1035
  trigger_order_id: bigint;
1032
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1036
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
1033
1037
  last_update_timestamp: bigint;
1034
1038
  linked_trigger_order_id: bigint | null;
1035
1039
  }>;
1036
1040
  }>;
1037
1041
  spot_ledgers: Map<number, {
1038
1042
  orders: Map<bigint, {
1039
- side: "Bid" | "Ask";
1043
+ side: "bid" | "ask";
1040
1044
  market_id: number;
1041
1045
  order_id: bigint;
1042
1046
  client_order_id: bigint | null;
@@ -1052,31 +1056,31 @@ export declare const Schemas: {
1052
1056
  size: import("decimal.js").Decimal | null;
1053
1057
  order_price: import("decimal.js").Decimal;
1054
1058
  trigger_price: import("decimal.js").Decimal;
1055
- price_condition: "Mark" | "Oracle" | "LastTrade";
1056
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1057
- side: "Bid" | "Ask";
1059
+ price_condition: "mark" | "oracle" | "last_trade";
1060
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1061
+ side: "bid" | "ask";
1058
1062
  market_id: number;
1059
1063
  owner: string;
1060
1064
  trigger_order_id: bigint;
1061
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1065
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
1062
1066
  last_update_timestamp: bigint;
1063
1067
  linked_trigger_order_id: bigint | null;
1064
1068
  }>;
1065
1069
  }>;
1066
- fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
1070
+ fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
1067
1071
  pending_tpsl_pairs: Map<string, {
1068
1072
  tpsl_pair: {
1069
1073
  tp: {
1070
1074
  order_price: import("decimal.js").Decimal;
1071
1075
  trigger_price: import("decimal.js").Decimal;
1072
- price_condition: "Mark" | "Oracle" | "LastTrade";
1073
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1076
+ price_condition: "mark" | "oracle" | "last_trade";
1077
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1074
1078
  } | null;
1075
1079
  sl: {
1076
1080
  order_price: import("decimal.js").Decimal;
1077
1081
  trigger_price: import("decimal.js").Decimal;
1078
- price_condition: "Mark" | "Oracle" | "LastTrade";
1079
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1082
+ price_condition: "mark" | "oracle" | "last_trade";
1083
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1080
1084
  } | null;
1081
1085
  };
1082
1086
  dynamic_size: boolean;
@@ -1084,13 +1088,14 @@ export declare const Schemas: {
1084
1088
  spot_collateral: Map<number, import("decimal.js").Decimal>;
1085
1089
  }, {
1086
1090
  account_variant: {
1087
- Master: number[];
1091
+ type: "master";
1092
+ sub_account_indices: number[];
1088
1093
  } | {
1089
- Sub: null;
1094
+ type: "sub";
1090
1095
  } | {
1091
- Vault: null;
1096
+ type: "vault";
1092
1097
  } | {
1093
- ProtocolVault: null;
1098
+ type: "protocol_vault";
1094
1099
  };
1095
1100
  address: string;
1096
1101
  usdc_ledger: {
@@ -1108,7 +1113,7 @@ export declare const Schemas: {
1108
1113
  }>;
1109
1114
  perp_ledgers: Record<string, {
1110
1115
  orders: Record<string, {
1111
- side: "Bid" | "Ask";
1116
+ side: "bid" | "ask";
1112
1117
  market_id: number;
1113
1118
  order_id: bigint;
1114
1119
  client_order_id: bigint | null;
@@ -1134,20 +1139,20 @@ export declare const Schemas: {
1134
1139
  size: string | number | null;
1135
1140
  order_price: string | number;
1136
1141
  trigger_price: string | number;
1137
- price_condition: "Mark" | "Oracle" | "LastTrade";
1138
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1139
- side: "Bid" | "Ask";
1142
+ price_condition: "mark" | "oracle" | "last_trade";
1143
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1144
+ side: "bid" | "ask";
1140
1145
  market_id: number;
1141
1146
  owner: string;
1142
1147
  trigger_order_id: bigint;
1143
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1148
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
1144
1149
  last_update_timestamp: bigint;
1145
1150
  linked_trigger_order_id: bigint | null;
1146
1151
  }>;
1147
1152
  }>;
1148
1153
  spot_ledgers: Record<string, {
1149
1154
  orders: Record<string, {
1150
- side: "Bid" | "Ask";
1155
+ side: "bid" | "ask";
1151
1156
  market_id: number;
1152
1157
  order_id: bigint;
1153
1158
  client_order_id: bigint | null;
@@ -1163,31 +1168,31 @@ export declare const Schemas: {
1163
1168
  size: string | number | null;
1164
1169
  order_price: string | number;
1165
1170
  trigger_price: string | number;
1166
- price_condition: "Mark" | "Oracle" | "LastTrade";
1167
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1168
- side: "Bid" | "Ask";
1171
+ price_condition: "mark" | "oracle" | "last_trade";
1172
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1173
+ side: "bid" | "ask";
1169
1174
  market_id: number;
1170
1175
  owner: string;
1171
1176
  trigger_order_id: bigint;
1172
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1177
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
1173
1178
  last_update_timestamp: bigint;
1174
1179
  linked_trigger_order_id: bigint | null;
1175
1180
  }>;
1176
1181
  }>;
1177
- fee_tiers: Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
1182
+ fee_tiers: Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
1178
1183
  pending_tpsl_pairs: Record<string, {
1179
1184
  tpsl_pair: {
1180
1185
  tp: {
1181
1186
  order_price: string | number;
1182
1187
  trigger_price: string | number;
1183
- price_condition: "Mark" | "Oracle" | "LastTrade";
1184
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1188
+ price_condition: "mark" | "oracle" | "last_trade";
1189
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1185
1190
  } | null;
1186
1191
  sl: {
1187
1192
  order_price: string | number;
1188
1193
  trigger_price: string | number;
1189
- price_condition: "Mark" | "Oracle" | "LastTrade";
1190
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1194
+ price_condition: "mark" | "oracle" | "last_trade";
1195
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
1191
1196
  } | null;
1192
1197
  };
1193
1198
  dynamic_size: boolean;
@@ -2157,7 +2162,7 @@ export declare const ResponseSchemas: {
2157
2162
  readonly Order: z.ZodObject<{
2158
2163
  key: z.ZodBigInt;
2159
2164
  value: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
2160
- side: z.ZodEnum<["Bid", "Ask"]>;
2165
+ side: z.ZodEnum<["bid", "ask"]>;
2161
2166
  market_id: z.ZodNumber;
2162
2167
  order_id: z.ZodBigInt;
2163
2168
  client_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -2169,7 +2174,7 @@ export declare const ResponseSchemas: {
2169
2174
  owner: z.ZodString;
2170
2175
  reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
2171
2176
  }, "strip", z.ZodTypeAny, {
2172
- side: "Bid" | "Ask";
2177
+ side: "bid" | "ask";
2173
2178
  market_id: number;
2174
2179
  order_id: bigint;
2175
2180
  client_order_id: bigint | null;
@@ -2181,7 +2186,7 @@ export declare const ResponseSchemas: {
2181
2186
  owner: string;
2182
2187
  reserved_pending_tpsl_pair_ids: string | null;
2183
2188
  }, {
2184
- side: "Bid" | "Ask";
2189
+ side: "bid" | "ask";
2185
2190
  market_id: number;
2186
2191
  order_id: bigint;
2187
2192
  client_order_id: bigint | null;
@@ -2193,7 +2198,7 @@ export declare const ResponseSchemas: {
2193
2198
  owner: string;
2194
2199
  reserved_pending_tpsl_pair_ids: string | null;
2195
2200
  }>, z.ZodObject<{
2196
- side: z.ZodEnum<["Bid", "Ask"]>;
2201
+ side: z.ZodEnum<["bid", "ask"]>;
2197
2202
  market_id: z.ZodNumber;
2198
2203
  order_id: z.ZodBigInt;
2199
2204
  quote_asset_id: z.ZodNumber;
@@ -2205,7 +2210,7 @@ export declare const ResponseSchemas: {
2205
2210
  average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2206
2211
  owner: z.ZodString;
2207
2212
  }, "strip", z.ZodTypeAny, {
2208
- side: "Bid" | "Ask";
2213
+ side: "bid" | "ask";
2209
2214
  market_id: number;
2210
2215
  order_id: bigint;
2211
2216
  client_order_id: bigint | null;
@@ -2217,7 +2222,7 @@ export declare const ResponseSchemas: {
2217
2222
  remaining_base_lots: import("decimal.js").Decimal;
2218
2223
  filled_base_lots: import("decimal.js").Decimal;
2219
2224
  }, {
2220
- side: "Bid" | "Ask";
2225
+ side: "bid" | "ask";
2221
2226
  market_id: number;
2222
2227
  order_id: bigint;
2223
2228
  client_order_id: bigint | null;
@@ -2231,7 +2236,7 @@ export declare const ResponseSchemas: {
2231
2236
  }>]>>;
2232
2237
  }, "strip", z.ZodTypeAny, {
2233
2238
  value: {
2234
- side: "Bid" | "Ask";
2239
+ side: "bid" | "ask";
2235
2240
  market_id: number;
2236
2241
  order_id: bigint;
2237
2242
  client_order_id: bigint | null;
@@ -2243,7 +2248,7 @@ export declare const ResponseSchemas: {
2243
2248
  owner: string;
2244
2249
  reserved_pending_tpsl_pair_ids: string | null;
2245
2250
  } | {
2246
- side: "Bid" | "Ask";
2251
+ side: "bid" | "ask";
2247
2252
  market_id: number;
2248
2253
  order_id: bigint;
2249
2254
  client_order_id: bigint | null;
@@ -2258,7 +2263,7 @@ export declare const ResponseSchemas: {
2258
2263
  key: bigint;
2259
2264
  }, {
2260
2265
  value: {
2261
- side: "Bid" | "Ask";
2266
+ side: "bid" | "ask";
2262
2267
  market_id: number;
2263
2268
  order_id: bigint;
2264
2269
  client_order_id: bigint | null;
@@ -2270,7 +2275,7 @@ export declare const ResponseSchemas: {
2270
2275
  owner: string;
2271
2276
  reserved_pending_tpsl_pair_ids: string | null;
2272
2277
  } | {
2273
- side: "Bid" | "Ask";
2278
+ side: "bid" | "ask";
2274
2279
  market_id: number;
2275
2280
  order_id: bigint;
2276
2281
  client_order_id: bigint | null;
@@ -2862,30 +2867,33 @@ export declare const ResponseSchemas: {
2862
2867
  readonly Account: z.ZodObject<{
2863
2868
  address: z.ZodString;
2864
2869
  account: z.ZodObject<{
2865
- account_variant: z.ZodUnion<[z.ZodObject<{
2866
- Master: z.ZodArray<z.ZodNumber, "many">;
2870
+ account_variant: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2871
+ type: z.ZodLiteral<"master">;
2872
+ sub_account_indices: z.ZodArray<z.ZodNumber, "many">;
2867
2873
  }, "strip", z.ZodTypeAny, {
2868
- Master: number[];
2874
+ type: "master";
2875
+ sub_account_indices: number[];
2869
2876
  }, {
2870
- Master: number[];
2877
+ type: "master";
2878
+ sub_account_indices: number[];
2871
2879
  }>, z.ZodObject<{
2872
- Sub: z.ZodNull;
2880
+ type: z.ZodLiteral<"sub">;
2873
2881
  }, "strip", z.ZodTypeAny, {
2874
- Sub: null;
2882
+ type: "sub";
2875
2883
  }, {
2876
- Sub: null;
2884
+ type: "sub";
2877
2885
  }>, z.ZodObject<{
2878
- Vault: z.ZodNull;
2886
+ type: z.ZodLiteral<"vault">;
2879
2887
  }, "strip", z.ZodTypeAny, {
2880
- Vault: null;
2888
+ type: "vault";
2881
2889
  }, {
2882
- Vault: null;
2890
+ type: "vault";
2883
2891
  }>, z.ZodObject<{
2884
- ProtocolVault: z.ZodNull;
2892
+ type: z.ZodLiteral<"protocol_vault">;
2885
2893
  }, "strip", z.ZodTypeAny, {
2886
- ProtocolVault: null;
2894
+ type: "protocol_vault";
2887
2895
  }, {
2888
- ProtocolVault: null;
2896
+ type: "protocol_vault";
2889
2897
  }>]>;
2890
2898
  address: z.ZodString;
2891
2899
  usdc_ledger: z.ZodObject<{
@@ -2935,7 +2943,7 @@ export declare const ResponseSchemas: {
2935
2943
  }>>;
2936
2944
  perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2937
2945
  orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2938
- side: z.ZodEnum<["Bid", "Ask"]>;
2946
+ side: z.ZodEnum<["bid", "ask"]>;
2939
2947
  market_id: z.ZodNumber;
2940
2948
  order_id: z.ZodBigInt;
2941
2949
  client_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -2947,7 +2955,7 @@ export declare const ResponseSchemas: {
2947
2955
  owner: z.ZodString;
2948
2956
  reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
2949
2957
  }, "strip", z.ZodTypeAny, {
2950
- side: "Bid" | "Ask";
2958
+ side: "bid" | "ask";
2951
2959
  market_id: number;
2952
2960
  order_id: bigint;
2953
2961
  client_order_id: bigint | null;
@@ -2959,7 +2967,7 @@ export declare const ResponseSchemas: {
2959
2967
  owner: string;
2960
2968
  reserved_pending_tpsl_pair_ids: string | null;
2961
2969
  }, {
2962
- side: "Bid" | "Ask";
2970
+ side: "bid" | "ask";
2963
2971
  market_id: number;
2964
2972
  order_id: bigint;
2965
2973
  client_order_id: bigint | null;
@@ -2971,7 +2979,7 @@ export declare const ResponseSchemas: {
2971
2979
  owner: string;
2972
2980
  reserved_pending_tpsl_pair_ids: string | null;
2973
2981
  }>>, Map<bigint, {
2974
- side: "Bid" | "Ask";
2982
+ side: "bid" | "ask";
2975
2983
  market_id: number;
2976
2984
  order_id: bigint;
2977
2985
  client_order_id: bigint | null;
@@ -2983,7 +2991,7 @@ export declare const ResponseSchemas: {
2983
2991
  owner: string;
2984
2992
  reserved_pending_tpsl_pair_ids: string | null;
2985
2993
  }>, Record<string, {
2986
- side: "Bid" | "Ask";
2994
+ side: "bid" | "ask";
2987
2995
  market_id: number;
2988
2996
  order_id: bigint;
2989
2997
  client_order_id: bigint | null;
@@ -3022,15 +3030,15 @@ export declare const ResponseSchemas: {
3022
3030
  }>;
3023
3031
  user_selected_max_leverage: z.ZodNumber;
3024
3032
  trigger_orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3025
- side: z.ZodEnum<["Bid", "Ask"]>;
3033
+ side: z.ZodEnum<["bid", "ask"]>;
3026
3034
  market_id: z.ZodNumber;
3027
3035
  trigger_order_id: z.ZodBigInt;
3028
3036
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3029
3037
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3030
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
3031
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
3038
+ trigger_direction: z.ZodEnum<["greater_than_or_equal", "less_than_or_equal"]>;
3039
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
3032
3040
  size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
3033
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
3041
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
3034
3042
  owner: z.ZodString;
3035
3043
  last_update_timestamp: z.ZodBigInt;
3036
3044
  linked_trigger_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -3038,58 +3046,58 @@ export declare const ResponseSchemas: {
3038
3046
  size: import("decimal.js").Decimal | null;
3039
3047
  order_price: import("decimal.js").Decimal;
3040
3048
  trigger_price: import("decimal.js").Decimal;
3041
- price_condition: "Mark" | "Oracle" | "LastTrade";
3042
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3043
- side: "Bid" | "Ask";
3049
+ price_condition: "mark" | "oracle" | "last_trade";
3050
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3051
+ side: "bid" | "ask";
3044
3052
  market_id: number;
3045
3053
  owner: string;
3046
3054
  trigger_order_id: bigint;
3047
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3055
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3048
3056
  last_update_timestamp: bigint;
3049
3057
  linked_trigger_order_id: bigint | null;
3050
3058
  }, {
3051
3059
  size: string | number | null;
3052
3060
  order_price: string | number;
3053
3061
  trigger_price: string | number;
3054
- price_condition: "Mark" | "Oracle" | "LastTrade";
3055
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3056
- side: "Bid" | "Ask";
3062
+ price_condition: "mark" | "oracle" | "last_trade";
3063
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3064
+ side: "bid" | "ask";
3057
3065
  market_id: number;
3058
3066
  owner: string;
3059
3067
  trigger_order_id: bigint;
3060
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3068
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3061
3069
  last_update_timestamp: bigint;
3062
3070
  linked_trigger_order_id: bigint | null;
3063
3071
  }>>, Map<bigint, {
3064
3072
  size: import("decimal.js").Decimal | null;
3065
3073
  order_price: import("decimal.js").Decimal;
3066
3074
  trigger_price: import("decimal.js").Decimal;
3067
- price_condition: "Mark" | "Oracle" | "LastTrade";
3068
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3069
- side: "Bid" | "Ask";
3075
+ price_condition: "mark" | "oracle" | "last_trade";
3076
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3077
+ side: "bid" | "ask";
3070
3078
  market_id: number;
3071
3079
  owner: string;
3072
3080
  trigger_order_id: bigint;
3073
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3081
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3074
3082
  last_update_timestamp: bigint;
3075
3083
  linked_trigger_order_id: bigint | null;
3076
3084
  }>, Record<string, {
3077
3085
  size: string | number | null;
3078
3086
  order_price: string | number;
3079
3087
  trigger_price: string | number;
3080
- price_condition: "Mark" | "Oracle" | "LastTrade";
3081
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3082
- side: "Bid" | "Ask";
3088
+ price_condition: "mark" | "oracle" | "last_trade";
3089
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3090
+ side: "bid" | "ask";
3083
3091
  market_id: number;
3084
3092
  owner: string;
3085
3093
  trigger_order_id: bigint;
3086
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3094
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3087
3095
  last_update_timestamp: bigint;
3088
3096
  linked_trigger_order_id: bigint | null;
3089
3097
  }>>;
3090
3098
  }, "strip", z.ZodTypeAny, {
3091
3099
  orders: Map<bigint, {
3092
- side: "Bid" | "Ask";
3100
+ side: "bid" | "ask";
3093
3101
  market_id: number;
3094
3102
  order_id: bigint;
3095
3103
  client_order_id: bigint | null;
@@ -3115,19 +3123,19 @@ export declare const ResponseSchemas: {
3115
3123
  size: import("decimal.js").Decimal | null;
3116
3124
  order_price: import("decimal.js").Decimal;
3117
3125
  trigger_price: import("decimal.js").Decimal;
3118
- price_condition: "Mark" | "Oracle" | "LastTrade";
3119
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3120
- side: "Bid" | "Ask";
3126
+ price_condition: "mark" | "oracle" | "last_trade";
3127
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3128
+ side: "bid" | "ask";
3121
3129
  market_id: number;
3122
3130
  owner: string;
3123
3131
  trigger_order_id: bigint;
3124
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3132
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3125
3133
  last_update_timestamp: bigint;
3126
3134
  linked_trigger_order_id: bigint | null;
3127
3135
  }>;
3128
3136
  }, {
3129
3137
  orders: Record<string, {
3130
- side: "Bid" | "Ask";
3138
+ side: "bid" | "ask";
3131
3139
  market_id: number;
3132
3140
  order_id: bigint;
3133
3141
  client_order_id: bigint | null;
@@ -3153,19 +3161,19 @@ export declare const ResponseSchemas: {
3153
3161
  size: string | number | null;
3154
3162
  order_price: string | number;
3155
3163
  trigger_price: string | number;
3156
- price_condition: "Mark" | "Oracle" | "LastTrade";
3157
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3158
- side: "Bid" | "Ask";
3164
+ price_condition: "mark" | "oracle" | "last_trade";
3165
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3166
+ side: "bid" | "ask";
3159
3167
  market_id: number;
3160
3168
  owner: string;
3161
3169
  trigger_order_id: bigint;
3162
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3170
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3163
3171
  last_update_timestamp: bigint;
3164
3172
  linked_trigger_order_id: bigint | null;
3165
3173
  }>;
3166
3174
  }>>, Map<number, {
3167
3175
  orders: Map<bigint, {
3168
- side: "Bid" | "Ask";
3176
+ side: "bid" | "ask";
3169
3177
  market_id: number;
3170
3178
  order_id: bigint;
3171
3179
  client_order_id: bigint | null;
@@ -3191,19 +3199,19 @@ export declare const ResponseSchemas: {
3191
3199
  size: import("decimal.js").Decimal | null;
3192
3200
  order_price: import("decimal.js").Decimal;
3193
3201
  trigger_price: import("decimal.js").Decimal;
3194
- price_condition: "Mark" | "Oracle" | "LastTrade";
3195
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3196
- side: "Bid" | "Ask";
3202
+ price_condition: "mark" | "oracle" | "last_trade";
3203
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3204
+ side: "bid" | "ask";
3197
3205
  market_id: number;
3198
3206
  owner: string;
3199
3207
  trigger_order_id: bigint;
3200
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3208
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3201
3209
  last_update_timestamp: bigint;
3202
3210
  linked_trigger_order_id: bigint | null;
3203
3211
  }>;
3204
3212
  }>, Record<string, {
3205
3213
  orders: Record<string, {
3206
- side: "Bid" | "Ask";
3214
+ side: "bid" | "ask";
3207
3215
  market_id: number;
3208
3216
  order_id: bigint;
3209
3217
  client_order_id: bigint | null;
@@ -3229,20 +3237,20 @@ export declare const ResponseSchemas: {
3229
3237
  size: string | number | null;
3230
3238
  order_price: string | number;
3231
3239
  trigger_price: string | number;
3232
- price_condition: "Mark" | "Oracle" | "LastTrade";
3233
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3234
- side: "Bid" | "Ask";
3240
+ price_condition: "mark" | "oracle" | "last_trade";
3241
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3242
+ side: "bid" | "ask";
3235
3243
  market_id: number;
3236
3244
  owner: string;
3237
3245
  trigger_order_id: bigint;
3238
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3246
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3239
3247
  last_update_timestamp: bigint;
3240
3248
  linked_trigger_order_id: bigint | null;
3241
3249
  }>;
3242
3250
  }>>;
3243
3251
  spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3244
3252
  orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3245
- side: z.ZodEnum<["Bid", "Ask"]>;
3253
+ side: z.ZodEnum<["bid", "ask"]>;
3246
3254
  market_id: z.ZodNumber;
3247
3255
  order_id: z.ZodBigInt;
3248
3256
  quote_asset_id: z.ZodNumber;
@@ -3254,7 +3262,7 @@ export declare const ResponseSchemas: {
3254
3262
  average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3255
3263
  owner: z.ZodString;
3256
3264
  }, "strip", z.ZodTypeAny, {
3257
- side: "Bid" | "Ask";
3265
+ side: "bid" | "ask";
3258
3266
  market_id: number;
3259
3267
  order_id: bigint;
3260
3268
  client_order_id: bigint | null;
@@ -3266,7 +3274,7 @@ export declare const ResponseSchemas: {
3266
3274
  remaining_base_lots: import("decimal.js").Decimal;
3267
3275
  filled_base_lots: import("decimal.js").Decimal;
3268
3276
  }, {
3269
- side: "Bid" | "Ask";
3277
+ side: "bid" | "ask";
3270
3278
  market_id: number;
3271
3279
  order_id: bigint;
3272
3280
  client_order_id: bigint | null;
@@ -3278,7 +3286,7 @@ export declare const ResponseSchemas: {
3278
3286
  remaining_base_lots: string | number;
3279
3287
  filled_base_lots: string | number;
3280
3288
  }>>, Map<bigint, {
3281
- side: "Bid" | "Ask";
3289
+ side: "bid" | "ask";
3282
3290
  market_id: number;
3283
3291
  order_id: bigint;
3284
3292
  client_order_id: bigint | null;
@@ -3290,7 +3298,7 @@ export declare const ResponseSchemas: {
3290
3298
  remaining_base_lots: import("decimal.js").Decimal;
3291
3299
  filled_base_lots: import("decimal.js").Decimal;
3292
3300
  }>, Record<string, {
3293
- side: "Bid" | "Ask";
3301
+ side: "bid" | "ask";
3294
3302
  market_id: number;
3295
3303
  order_id: bigint;
3296
3304
  client_order_id: bigint | null;
@@ -3303,15 +3311,15 @@ export declare const ResponseSchemas: {
3303
3311
  filled_base_lots: string | number;
3304
3312
  }>>;
3305
3313
  trigger_orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3306
- side: z.ZodEnum<["Bid", "Ask"]>;
3314
+ side: z.ZodEnum<["bid", "ask"]>;
3307
3315
  market_id: z.ZodNumber;
3308
3316
  trigger_order_id: z.ZodBigInt;
3309
3317
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3310
3318
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3311
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
3312
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
3319
+ trigger_direction: z.ZodEnum<["greater_than_or_equal", "less_than_or_equal"]>;
3320
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
3313
3321
  size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
3314
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
3322
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
3315
3323
  owner: z.ZodString;
3316
3324
  last_update_timestamp: z.ZodBigInt;
3317
3325
  linked_trigger_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -3319,58 +3327,58 @@ export declare const ResponseSchemas: {
3319
3327
  size: import("decimal.js").Decimal | null;
3320
3328
  order_price: import("decimal.js").Decimal;
3321
3329
  trigger_price: import("decimal.js").Decimal;
3322
- price_condition: "Mark" | "Oracle" | "LastTrade";
3323
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3324
- side: "Bid" | "Ask";
3330
+ price_condition: "mark" | "oracle" | "last_trade";
3331
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3332
+ side: "bid" | "ask";
3325
3333
  market_id: number;
3326
3334
  owner: string;
3327
3335
  trigger_order_id: bigint;
3328
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3336
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3329
3337
  last_update_timestamp: bigint;
3330
3338
  linked_trigger_order_id: bigint | null;
3331
3339
  }, {
3332
3340
  size: string | number | null;
3333
3341
  order_price: string | number;
3334
3342
  trigger_price: string | number;
3335
- price_condition: "Mark" | "Oracle" | "LastTrade";
3336
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3337
- side: "Bid" | "Ask";
3343
+ price_condition: "mark" | "oracle" | "last_trade";
3344
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3345
+ side: "bid" | "ask";
3338
3346
  market_id: number;
3339
3347
  owner: string;
3340
3348
  trigger_order_id: bigint;
3341
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3349
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3342
3350
  last_update_timestamp: bigint;
3343
3351
  linked_trigger_order_id: bigint | null;
3344
3352
  }>>, Map<bigint, {
3345
3353
  size: import("decimal.js").Decimal | null;
3346
3354
  order_price: import("decimal.js").Decimal;
3347
3355
  trigger_price: import("decimal.js").Decimal;
3348
- price_condition: "Mark" | "Oracle" | "LastTrade";
3349
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3350
- side: "Bid" | "Ask";
3356
+ price_condition: "mark" | "oracle" | "last_trade";
3357
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3358
+ side: "bid" | "ask";
3351
3359
  market_id: number;
3352
3360
  owner: string;
3353
3361
  trigger_order_id: bigint;
3354
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3362
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3355
3363
  last_update_timestamp: bigint;
3356
3364
  linked_trigger_order_id: bigint | null;
3357
3365
  }>, Record<string, {
3358
3366
  size: string | number | null;
3359
3367
  order_price: string | number;
3360
3368
  trigger_price: string | number;
3361
- price_condition: "Mark" | "Oracle" | "LastTrade";
3362
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3363
- side: "Bid" | "Ask";
3369
+ price_condition: "mark" | "oracle" | "last_trade";
3370
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3371
+ side: "bid" | "ask";
3364
3372
  market_id: number;
3365
3373
  owner: string;
3366
3374
  trigger_order_id: bigint;
3367
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3375
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3368
3376
  last_update_timestamp: bigint;
3369
3377
  linked_trigger_order_id: bigint | null;
3370
3378
  }>>;
3371
3379
  }, "strip", z.ZodTypeAny, {
3372
3380
  orders: Map<bigint, {
3373
- side: "Bid" | "Ask";
3381
+ side: "bid" | "ask";
3374
3382
  market_id: number;
3375
3383
  order_id: bigint;
3376
3384
  client_order_id: bigint | null;
@@ -3386,19 +3394,19 @@ export declare const ResponseSchemas: {
3386
3394
  size: import("decimal.js").Decimal | null;
3387
3395
  order_price: import("decimal.js").Decimal;
3388
3396
  trigger_price: import("decimal.js").Decimal;
3389
- price_condition: "Mark" | "Oracle" | "LastTrade";
3390
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3391
- side: "Bid" | "Ask";
3397
+ price_condition: "mark" | "oracle" | "last_trade";
3398
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3399
+ side: "bid" | "ask";
3392
3400
  market_id: number;
3393
3401
  owner: string;
3394
3402
  trigger_order_id: bigint;
3395
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3403
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3396
3404
  last_update_timestamp: bigint;
3397
3405
  linked_trigger_order_id: bigint | null;
3398
3406
  }>;
3399
3407
  }, {
3400
3408
  orders: Record<string, {
3401
- side: "Bid" | "Ask";
3409
+ side: "bid" | "ask";
3402
3410
  market_id: number;
3403
3411
  order_id: bigint;
3404
3412
  client_order_id: bigint | null;
@@ -3414,19 +3422,19 @@ export declare const ResponseSchemas: {
3414
3422
  size: string | number | null;
3415
3423
  order_price: string | number;
3416
3424
  trigger_price: string | number;
3417
- price_condition: "Mark" | "Oracle" | "LastTrade";
3418
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3419
- side: "Bid" | "Ask";
3425
+ price_condition: "mark" | "oracle" | "last_trade";
3426
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3427
+ side: "bid" | "ask";
3420
3428
  market_id: number;
3421
3429
  owner: string;
3422
3430
  trigger_order_id: bigint;
3423
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3431
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3424
3432
  last_update_timestamp: bigint;
3425
3433
  linked_trigger_order_id: bigint | null;
3426
3434
  }>;
3427
3435
  }>>, Map<number, {
3428
3436
  orders: Map<bigint, {
3429
- side: "Bid" | "Ask";
3437
+ side: "bid" | "ask";
3430
3438
  market_id: number;
3431
3439
  order_id: bigint;
3432
3440
  client_order_id: bigint | null;
@@ -3442,19 +3450,19 @@ export declare const ResponseSchemas: {
3442
3450
  size: import("decimal.js").Decimal | null;
3443
3451
  order_price: import("decimal.js").Decimal;
3444
3452
  trigger_price: import("decimal.js").Decimal;
3445
- price_condition: "Mark" | "Oracle" | "LastTrade";
3446
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3447
- side: "Bid" | "Ask";
3453
+ price_condition: "mark" | "oracle" | "last_trade";
3454
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3455
+ side: "bid" | "ask";
3448
3456
  market_id: number;
3449
3457
  owner: string;
3450
3458
  trigger_order_id: bigint;
3451
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3459
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3452
3460
  last_update_timestamp: bigint;
3453
3461
  linked_trigger_order_id: bigint | null;
3454
3462
  }>;
3455
3463
  }>, Record<string, {
3456
3464
  orders: Record<string, {
3457
- side: "Bid" | "Ask";
3465
+ side: "bid" | "ask";
3458
3466
  market_id: number;
3459
3467
  order_id: bigint;
3460
3468
  client_order_id: bigint | null;
@@ -3470,77 +3478,77 @@ export declare const ResponseSchemas: {
3470
3478
  size: string | number | null;
3471
3479
  order_price: string | number;
3472
3480
  trigger_price: string | number;
3473
- price_condition: "Mark" | "Oracle" | "LastTrade";
3474
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3475
- side: "Bid" | "Ask";
3481
+ price_condition: "mark" | "oracle" | "last_trade";
3482
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3483
+ side: "bid" | "ask";
3476
3484
  market_id: number;
3477
3485
  owner: string;
3478
3486
  trigger_order_id: bigint;
3479
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3487
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3480
3488
  last_update_timestamp: bigint;
3481
3489
  linked_trigger_order_id: bigint | null;
3482
3490
  }>;
3483
3491
  }>>;
3484
- fee_tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEnum<["Tier0", "Tier1", "Tier2", "Tier3", "Tier4"]>>, Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">, Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">>;
3492
+ fee_tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEnum<["tier0", "tier1", "tier2", "tier3", "tier4"]>>, Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">, Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">>;
3485
3493
  pending_tpsl_pairs: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
3486
3494
  tpsl_pair: z.ZodObject<{
3487
3495
  tp: z.ZodNullable<z.ZodObject<{
3488
3496
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3489
3497
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3490
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
3491
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
3498
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
3499
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
3492
3500
  }, "strip", z.ZodTypeAny, {
3493
3501
  order_price: import("decimal.js").Decimal;
3494
3502
  trigger_price: import("decimal.js").Decimal;
3495
- price_condition: "Mark" | "Oracle" | "LastTrade";
3496
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3503
+ price_condition: "mark" | "oracle" | "last_trade";
3504
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3497
3505
  }, {
3498
3506
  order_price: string | number;
3499
3507
  trigger_price: string | number;
3500
- price_condition: "Mark" | "Oracle" | "LastTrade";
3501
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3508
+ price_condition: "mark" | "oracle" | "last_trade";
3509
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3502
3510
  }>>;
3503
3511
  sl: z.ZodNullable<z.ZodObject<{
3504
3512
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3505
3513
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
3506
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
3507
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
3514
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
3515
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
3508
3516
  }, "strip", z.ZodTypeAny, {
3509
3517
  order_price: import("decimal.js").Decimal;
3510
3518
  trigger_price: import("decimal.js").Decimal;
3511
- price_condition: "Mark" | "Oracle" | "LastTrade";
3512
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3519
+ price_condition: "mark" | "oracle" | "last_trade";
3520
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3513
3521
  }, {
3514
3522
  order_price: string | number;
3515
3523
  trigger_price: string | number;
3516
- price_condition: "Mark" | "Oracle" | "LastTrade";
3517
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3524
+ price_condition: "mark" | "oracle" | "last_trade";
3525
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3518
3526
  }>>;
3519
3527
  }, "strip", z.ZodTypeAny, {
3520
3528
  tp: {
3521
3529
  order_price: import("decimal.js").Decimal;
3522
3530
  trigger_price: import("decimal.js").Decimal;
3523
- price_condition: "Mark" | "Oracle" | "LastTrade";
3524
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3531
+ price_condition: "mark" | "oracle" | "last_trade";
3532
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3525
3533
  } | null;
3526
3534
  sl: {
3527
3535
  order_price: import("decimal.js").Decimal;
3528
3536
  trigger_price: import("decimal.js").Decimal;
3529
- price_condition: "Mark" | "Oracle" | "LastTrade";
3530
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3537
+ price_condition: "mark" | "oracle" | "last_trade";
3538
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3531
3539
  } | null;
3532
3540
  }, {
3533
3541
  tp: {
3534
3542
  order_price: string | number;
3535
3543
  trigger_price: string | number;
3536
- price_condition: "Mark" | "Oracle" | "LastTrade";
3537
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3544
+ price_condition: "mark" | "oracle" | "last_trade";
3545
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3538
3546
  } | null;
3539
3547
  sl: {
3540
3548
  order_price: string | number;
3541
3549
  trigger_price: string | number;
3542
- price_condition: "Mark" | "Oracle" | "LastTrade";
3543
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3550
+ price_condition: "mark" | "oracle" | "last_trade";
3551
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3544
3552
  } | null;
3545
3553
  }>;
3546
3554
  dynamic_size: z.ZodBoolean;
@@ -3549,14 +3557,14 @@ export declare const ResponseSchemas: {
3549
3557
  tp: {
3550
3558
  order_price: import("decimal.js").Decimal;
3551
3559
  trigger_price: import("decimal.js").Decimal;
3552
- price_condition: "Mark" | "Oracle" | "LastTrade";
3553
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3560
+ price_condition: "mark" | "oracle" | "last_trade";
3561
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3554
3562
  } | null;
3555
3563
  sl: {
3556
3564
  order_price: import("decimal.js").Decimal;
3557
3565
  trigger_price: import("decimal.js").Decimal;
3558
- price_condition: "Mark" | "Oracle" | "LastTrade";
3559
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3566
+ price_condition: "mark" | "oracle" | "last_trade";
3567
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3560
3568
  } | null;
3561
3569
  };
3562
3570
  dynamic_size: boolean;
@@ -3565,14 +3573,14 @@ export declare const ResponseSchemas: {
3565
3573
  tp: {
3566
3574
  order_price: string | number;
3567
3575
  trigger_price: string | number;
3568
- price_condition: "Mark" | "Oracle" | "LastTrade";
3569
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3576
+ price_condition: "mark" | "oracle" | "last_trade";
3577
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3570
3578
  } | null;
3571
3579
  sl: {
3572
3580
  order_price: string | number;
3573
3581
  trigger_price: string | number;
3574
- price_condition: "Mark" | "Oracle" | "LastTrade";
3575
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3582
+ price_condition: "mark" | "oracle" | "last_trade";
3583
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3576
3584
  } | null;
3577
3585
  };
3578
3586
  dynamic_size: boolean;
@@ -3581,14 +3589,14 @@ export declare const ResponseSchemas: {
3581
3589
  tp: {
3582
3590
  order_price: import("decimal.js").Decimal;
3583
3591
  trigger_price: import("decimal.js").Decimal;
3584
- price_condition: "Mark" | "Oracle" | "LastTrade";
3585
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3592
+ price_condition: "mark" | "oracle" | "last_trade";
3593
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3586
3594
  } | null;
3587
3595
  sl: {
3588
3596
  order_price: import("decimal.js").Decimal;
3589
3597
  trigger_price: import("decimal.js").Decimal;
3590
- price_condition: "Mark" | "Oracle" | "LastTrade";
3591
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3598
+ price_condition: "mark" | "oracle" | "last_trade";
3599
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3592
3600
  } | null;
3593
3601
  };
3594
3602
  dynamic_size: boolean;
@@ -3597,14 +3605,14 @@ export declare const ResponseSchemas: {
3597
3605
  tp: {
3598
3606
  order_price: string | number;
3599
3607
  trigger_price: string | number;
3600
- price_condition: "Mark" | "Oracle" | "LastTrade";
3601
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3608
+ price_condition: "mark" | "oracle" | "last_trade";
3609
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3602
3610
  } | null;
3603
3611
  sl: {
3604
3612
  order_price: string | number;
3605
3613
  trigger_price: string | number;
3606
- price_condition: "Mark" | "Oracle" | "LastTrade";
3607
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3614
+ price_condition: "mark" | "oracle" | "last_trade";
3615
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3608
3616
  } | null;
3609
3617
  };
3610
3618
  dynamic_size: boolean;
@@ -3612,13 +3620,14 @@ export declare const ResponseSchemas: {
3612
3620
  spot_collateral: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>, Map<number, import("decimal.js").Decimal>, Record<string, string | number>>;
3613
3621
  }, "strip", z.ZodTypeAny, {
3614
3622
  account_variant: {
3615
- Master: number[];
3623
+ type: "master";
3624
+ sub_account_indices: number[];
3616
3625
  } | {
3617
- Sub: null;
3626
+ type: "sub";
3618
3627
  } | {
3619
- Vault: null;
3628
+ type: "vault";
3620
3629
  } | {
3621
- ProtocolVault: null;
3630
+ type: "protocol_vault";
3622
3631
  };
3623
3632
  address: string;
3624
3633
  usdc_ledger: {
@@ -3636,7 +3645,7 @@ export declare const ResponseSchemas: {
3636
3645
  }>;
3637
3646
  perp_ledgers: Map<number, {
3638
3647
  orders: Map<bigint, {
3639
- side: "Bid" | "Ask";
3648
+ side: "bid" | "ask";
3640
3649
  market_id: number;
3641
3650
  order_id: bigint;
3642
3651
  client_order_id: bigint | null;
@@ -3662,20 +3671,20 @@ export declare const ResponseSchemas: {
3662
3671
  size: import("decimal.js").Decimal | null;
3663
3672
  order_price: import("decimal.js").Decimal;
3664
3673
  trigger_price: import("decimal.js").Decimal;
3665
- price_condition: "Mark" | "Oracle" | "LastTrade";
3666
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3667
- side: "Bid" | "Ask";
3674
+ price_condition: "mark" | "oracle" | "last_trade";
3675
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3676
+ side: "bid" | "ask";
3668
3677
  market_id: number;
3669
3678
  owner: string;
3670
3679
  trigger_order_id: bigint;
3671
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3680
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3672
3681
  last_update_timestamp: bigint;
3673
3682
  linked_trigger_order_id: bigint | null;
3674
3683
  }>;
3675
3684
  }>;
3676
3685
  spot_ledgers: Map<number, {
3677
3686
  orders: Map<bigint, {
3678
- side: "Bid" | "Ask";
3687
+ side: "bid" | "ask";
3679
3688
  market_id: number;
3680
3689
  order_id: bigint;
3681
3690
  client_order_id: bigint | null;
@@ -3691,31 +3700,31 @@ export declare const ResponseSchemas: {
3691
3700
  size: import("decimal.js").Decimal | null;
3692
3701
  order_price: import("decimal.js").Decimal;
3693
3702
  trigger_price: import("decimal.js").Decimal;
3694
- price_condition: "Mark" | "Oracle" | "LastTrade";
3695
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3696
- side: "Bid" | "Ask";
3703
+ price_condition: "mark" | "oracle" | "last_trade";
3704
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3705
+ side: "bid" | "ask";
3697
3706
  market_id: number;
3698
3707
  owner: string;
3699
3708
  trigger_order_id: bigint;
3700
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3709
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3701
3710
  last_update_timestamp: bigint;
3702
3711
  linked_trigger_order_id: bigint | null;
3703
3712
  }>;
3704
3713
  }>;
3705
- fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
3714
+ fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
3706
3715
  pending_tpsl_pairs: Map<string, {
3707
3716
  tpsl_pair: {
3708
3717
  tp: {
3709
3718
  order_price: import("decimal.js").Decimal;
3710
3719
  trigger_price: import("decimal.js").Decimal;
3711
- price_condition: "Mark" | "Oracle" | "LastTrade";
3712
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3720
+ price_condition: "mark" | "oracle" | "last_trade";
3721
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3713
3722
  } | null;
3714
3723
  sl: {
3715
3724
  order_price: import("decimal.js").Decimal;
3716
3725
  trigger_price: import("decimal.js").Decimal;
3717
- price_condition: "Mark" | "Oracle" | "LastTrade";
3718
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3726
+ price_condition: "mark" | "oracle" | "last_trade";
3727
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3719
3728
  } | null;
3720
3729
  };
3721
3730
  dynamic_size: boolean;
@@ -3723,13 +3732,14 @@ export declare const ResponseSchemas: {
3723
3732
  spot_collateral: Map<number, import("decimal.js").Decimal>;
3724
3733
  }, {
3725
3734
  account_variant: {
3726
- Master: number[];
3735
+ type: "master";
3736
+ sub_account_indices: number[];
3727
3737
  } | {
3728
- Sub: null;
3738
+ type: "sub";
3729
3739
  } | {
3730
- Vault: null;
3740
+ type: "vault";
3731
3741
  } | {
3732
- ProtocolVault: null;
3742
+ type: "protocol_vault";
3733
3743
  };
3734
3744
  address: string;
3735
3745
  usdc_ledger: {
@@ -3747,7 +3757,7 @@ export declare const ResponseSchemas: {
3747
3757
  }>;
3748
3758
  perp_ledgers: Record<string, {
3749
3759
  orders: Record<string, {
3750
- side: "Bid" | "Ask";
3760
+ side: "bid" | "ask";
3751
3761
  market_id: number;
3752
3762
  order_id: bigint;
3753
3763
  client_order_id: bigint | null;
@@ -3773,20 +3783,20 @@ export declare const ResponseSchemas: {
3773
3783
  size: string | number | null;
3774
3784
  order_price: string | number;
3775
3785
  trigger_price: string | number;
3776
- price_condition: "Mark" | "Oracle" | "LastTrade";
3777
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3778
- side: "Bid" | "Ask";
3786
+ price_condition: "mark" | "oracle" | "last_trade";
3787
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3788
+ side: "bid" | "ask";
3779
3789
  market_id: number;
3780
3790
  owner: string;
3781
3791
  trigger_order_id: bigint;
3782
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3792
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3783
3793
  last_update_timestamp: bigint;
3784
3794
  linked_trigger_order_id: bigint | null;
3785
3795
  }>;
3786
3796
  }>;
3787
3797
  spot_ledgers: Record<string, {
3788
3798
  orders: Record<string, {
3789
- side: "Bid" | "Ask";
3799
+ side: "bid" | "ask";
3790
3800
  market_id: number;
3791
3801
  order_id: bigint;
3792
3802
  client_order_id: bigint | null;
@@ -3802,31 +3812,31 @@ export declare const ResponseSchemas: {
3802
3812
  size: string | number | null;
3803
3813
  order_price: string | number;
3804
3814
  trigger_price: string | number;
3805
- price_condition: "Mark" | "Oracle" | "LastTrade";
3806
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3807
- side: "Bid" | "Ask";
3815
+ price_condition: "mark" | "oracle" | "last_trade";
3816
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3817
+ side: "bid" | "ask";
3808
3818
  market_id: number;
3809
3819
  owner: string;
3810
3820
  trigger_order_id: bigint;
3811
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3821
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3812
3822
  last_update_timestamp: bigint;
3813
3823
  linked_trigger_order_id: bigint | null;
3814
3824
  }>;
3815
3825
  }>;
3816
- fee_tiers: Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
3826
+ fee_tiers: Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
3817
3827
  pending_tpsl_pairs: Record<string, {
3818
3828
  tpsl_pair: {
3819
3829
  tp: {
3820
3830
  order_price: string | number;
3821
3831
  trigger_price: string | number;
3822
- price_condition: "Mark" | "Oracle" | "LastTrade";
3823
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3832
+ price_condition: "mark" | "oracle" | "last_trade";
3833
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3824
3834
  } | null;
3825
3835
  sl: {
3826
3836
  order_price: string | number;
3827
3837
  trigger_price: string | number;
3828
- price_condition: "Mark" | "Oracle" | "LastTrade";
3829
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3838
+ price_condition: "mark" | "oracle" | "last_trade";
3839
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3830
3840
  } | null;
3831
3841
  };
3832
3842
  dynamic_size: boolean;
@@ -3837,13 +3847,14 @@ export declare const ResponseSchemas: {
3837
3847
  address: string;
3838
3848
  account: {
3839
3849
  account_variant: {
3840
- Master: number[];
3850
+ type: "master";
3851
+ sub_account_indices: number[];
3841
3852
  } | {
3842
- Sub: null;
3853
+ type: "sub";
3843
3854
  } | {
3844
- Vault: null;
3855
+ type: "vault";
3845
3856
  } | {
3846
- ProtocolVault: null;
3857
+ type: "protocol_vault";
3847
3858
  };
3848
3859
  address: string;
3849
3860
  usdc_ledger: {
@@ -3861,7 +3872,7 @@ export declare const ResponseSchemas: {
3861
3872
  }>;
3862
3873
  perp_ledgers: Map<number, {
3863
3874
  orders: Map<bigint, {
3864
- side: "Bid" | "Ask";
3875
+ side: "bid" | "ask";
3865
3876
  market_id: number;
3866
3877
  order_id: bigint;
3867
3878
  client_order_id: bigint | null;
@@ -3887,20 +3898,20 @@ export declare const ResponseSchemas: {
3887
3898
  size: import("decimal.js").Decimal | null;
3888
3899
  order_price: import("decimal.js").Decimal;
3889
3900
  trigger_price: import("decimal.js").Decimal;
3890
- price_condition: "Mark" | "Oracle" | "LastTrade";
3891
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3892
- side: "Bid" | "Ask";
3901
+ price_condition: "mark" | "oracle" | "last_trade";
3902
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3903
+ side: "bid" | "ask";
3893
3904
  market_id: number;
3894
3905
  owner: string;
3895
3906
  trigger_order_id: bigint;
3896
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3907
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3897
3908
  last_update_timestamp: bigint;
3898
3909
  linked_trigger_order_id: bigint | null;
3899
3910
  }>;
3900
3911
  }>;
3901
3912
  spot_ledgers: Map<number, {
3902
3913
  orders: Map<bigint, {
3903
- side: "Bid" | "Ask";
3914
+ side: "bid" | "ask";
3904
3915
  market_id: number;
3905
3916
  order_id: bigint;
3906
3917
  client_order_id: bigint | null;
@@ -3916,31 +3927,31 @@ export declare const ResponseSchemas: {
3916
3927
  size: import("decimal.js").Decimal | null;
3917
3928
  order_price: import("decimal.js").Decimal;
3918
3929
  trigger_price: import("decimal.js").Decimal;
3919
- price_condition: "Mark" | "Oracle" | "LastTrade";
3920
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3921
- side: "Bid" | "Ask";
3930
+ price_condition: "mark" | "oracle" | "last_trade";
3931
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3932
+ side: "bid" | "ask";
3922
3933
  market_id: number;
3923
3934
  owner: string;
3924
3935
  trigger_order_id: bigint;
3925
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
3936
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
3926
3937
  last_update_timestamp: bigint;
3927
3938
  linked_trigger_order_id: bigint | null;
3928
3939
  }>;
3929
3940
  }>;
3930
- fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
3941
+ fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
3931
3942
  pending_tpsl_pairs: Map<string, {
3932
3943
  tpsl_pair: {
3933
3944
  tp: {
3934
3945
  order_price: import("decimal.js").Decimal;
3935
3946
  trigger_price: import("decimal.js").Decimal;
3936
- price_condition: "Mark" | "Oracle" | "LastTrade";
3937
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3947
+ price_condition: "mark" | "oracle" | "last_trade";
3948
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3938
3949
  } | null;
3939
3950
  sl: {
3940
3951
  order_price: import("decimal.js").Decimal;
3941
3952
  trigger_price: import("decimal.js").Decimal;
3942
- price_condition: "Mark" | "Oracle" | "LastTrade";
3943
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
3953
+ price_condition: "mark" | "oracle" | "last_trade";
3954
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
3944
3955
  } | null;
3945
3956
  };
3946
3957
  dynamic_size: boolean;
@@ -3951,13 +3962,14 @@ export declare const ResponseSchemas: {
3951
3962
  address: string;
3952
3963
  account: {
3953
3964
  account_variant: {
3954
- Master: number[];
3965
+ type: "master";
3966
+ sub_account_indices: number[];
3955
3967
  } | {
3956
- Sub: null;
3968
+ type: "sub";
3957
3969
  } | {
3958
- Vault: null;
3970
+ type: "vault";
3959
3971
  } | {
3960
- ProtocolVault: null;
3972
+ type: "protocol_vault";
3961
3973
  };
3962
3974
  address: string;
3963
3975
  usdc_ledger: {
@@ -3975,7 +3987,7 @@ export declare const ResponseSchemas: {
3975
3987
  }>;
3976
3988
  perp_ledgers: Record<string, {
3977
3989
  orders: Record<string, {
3978
- side: "Bid" | "Ask";
3990
+ side: "bid" | "ask";
3979
3991
  market_id: number;
3980
3992
  order_id: bigint;
3981
3993
  client_order_id: bigint | null;
@@ -4001,20 +4013,20 @@ export declare const ResponseSchemas: {
4001
4013
  size: string | number | null;
4002
4014
  order_price: string | number;
4003
4015
  trigger_price: string | number;
4004
- price_condition: "Mark" | "Oracle" | "LastTrade";
4005
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4006
- side: "Bid" | "Ask";
4016
+ price_condition: "mark" | "oracle" | "last_trade";
4017
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4018
+ side: "bid" | "ask";
4007
4019
  market_id: number;
4008
4020
  owner: string;
4009
4021
  trigger_order_id: bigint;
4010
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4022
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4011
4023
  last_update_timestamp: bigint;
4012
4024
  linked_trigger_order_id: bigint | null;
4013
4025
  }>;
4014
4026
  }>;
4015
4027
  spot_ledgers: Record<string, {
4016
4028
  orders: Record<string, {
4017
- side: "Bid" | "Ask";
4029
+ side: "bid" | "ask";
4018
4030
  market_id: number;
4019
4031
  order_id: bigint;
4020
4032
  client_order_id: bigint | null;
@@ -4030,31 +4042,31 @@ export declare const ResponseSchemas: {
4030
4042
  size: string | number | null;
4031
4043
  order_price: string | number;
4032
4044
  trigger_price: string | number;
4033
- price_condition: "Mark" | "Oracle" | "LastTrade";
4034
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4035
- side: "Bid" | "Ask";
4045
+ price_condition: "mark" | "oracle" | "last_trade";
4046
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4047
+ side: "bid" | "ask";
4036
4048
  market_id: number;
4037
4049
  owner: string;
4038
4050
  trigger_order_id: bigint;
4039
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4051
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4040
4052
  last_update_timestamp: bigint;
4041
4053
  linked_trigger_order_id: bigint | null;
4042
4054
  }>;
4043
4055
  }>;
4044
- fee_tiers: Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
4056
+ fee_tiers: Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
4045
4057
  pending_tpsl_pairs: Record<string, {
4046
4058
  tpsl_pair: {
4047
4059
  tp: {
4048
4060
  order_price: string | number;
4049
4061
  trigger_price: string | number;
4050
- price_condition: "Mark" | "Oracle" | "LastTrade";
4051
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4062
+ price_condition: "mark" | "oracle" | "last_trade";
4063
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4052
4064
  } | null;
4053
4065
  sl: {
4054
4066
  order_price: string | number;
4055
4067
  trigger_price: string | number;
4056
- price_condition: "Mark" | "Oracle" | "LastTrade";
4057
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4068
+ price_condition: "mark" | "oracle" | "last_trade";
4069
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4058
4070
  } | null;
4059
4071
  };
4060
4072
  dynamic_size: boolean;
@@ -4064,30 +4076,33 @@ export declare const ResponseSchemas: {
4064
4076
  }>;
4065
4077
  readonly AccountBulk: z.ZodObject<{
4066
4078
  found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4067
- account_variant: z.ZodUnion<[z.ZodObject<{
4068
- Master: z.ZodArray<z.ZodNumber, "many">;
4079
+ account_variant: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4080
+ type: z.ZodLiteral<"master">;
4081
+ sub_account_indices: z.ZodArray<z.ZodNumber, "many">;
4069
4082
  }, "strip", z.ZodTypeAny, {
4070
- Master: number[];
4083
+ type: "master";
4084
+ sub_account_indices: number[];
4071
4085
  }, {
4072
- Master: number[];
4086
+ type: "master";
4087
+ sub_account_indices: number[];
4073
4088
  }>, z.ZodObject<{
4074
- Sub: z.ZodNull;
4089
+ type: z.ZodLiteral<"sub">;
4075
4090
  }, "strip", z.ZodTypeAny, {
4076
- Sub: null;
4091
+ type: "sub";
4077
4092
  }, {
4078
- Sub: null;
4093
+ type: "sub";
4079
4094
  }>, z.ZodObject<{
4080
- Vault: z.ZodNull;
4095
+ type: z.ZodLiteral<"vault">;
4081
4096
  }, "strip", z.ZodTypeAny, {
4082
- Vault: null;
4097
+ type: "vault";
4083
4098
  }, {
4084
- Vault: null;
4099
+ type: "vault";
4085
4100
  }>, z.ZodObject<{
4086
- ProtocolVault: z.ZodNull;
4101
+ type: z.ZodLiteral<"protocol_vault">;
4087
4102
  }, "strip", z.ZodTypeAny, {
4088
- ProtocolVault: null;
4103
+ type: "protocol_vault";
4089
4104
  }, {
4090
- ProtocolVault: null;
4105
+ type: "protocol_vault";
4091
4106
  }>]>;
4092
4107
  address: z.ZodString;
4093
4108
  usdc_ledger: z.ZodObject<{
@@ -4137,7 +4152,7 @@ export declare const ResponseSchemas: {
4137
4152
  }>>;
4138
4153
  perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4139
4154
  orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4140
- side: z.ZodEnum<["Bid", "Ask"]>;
4155
+ side: z.ZodEnum<["bid", "ask"]>;
4141
4156
  market_id: z.ZodNumber;
4142
4157
  order_id: z.ZodBigInt;
4143
4158
  client_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -4149,7 +4164,7 @@ export declare const ResponseSchemas: {
4149
4164
  owner: z.ZodString;
4150
4165
  reserved_pending_tpsl_pair_ids: z.ZodNullable<z.ZodString>;
4151
4166
  }, "strip", z.ZodTypeAny, {
4152
- side: "Bid" | "Ask";
4167
+ side: "bid" | "ask";
4153
4168
  market_id: number;
4154
4169
  order_id: bigint;
4155
4170
  client_order_id: bigint | null;
@@ -4161,7 +4176,7 @@ export declare const ResponseSchemas: {
4161
4176
  owner: string;
4162
4177
  reserved_pending_tpsl_pair_ids: string | null;
4163
4178
  }, {
4164
- side: "Bid" | "Ask";
4179
+ side: "bid" | "ask";
4165
4180
  market_id: number;
4166
4181
  order_id: bigint;
4167
4182
  client_order_id: bigint | null;
@@ -4173,7 +4188,7 @@ export declare const ResponseSchemas: {
4173
4188
  owner: string;
4174
4189
  reserved_pending_tpsl_pair_ids: string | null;
4175
4190
  }>>, Map<bigint, {
4176
- side: "Bid" | "Ask";
4191
+ side: "bid" | "ask";
4177
4192
  market_id: number;
4178
4193
  order_id: bigint;
4179
4194
  client_order_id: bigint | null;
@@ -4185,7 +4200,7 @@ export declare const ResponseSchemas: {
4185
4200
  owner: string;
4186
4201
  reserved_pending_tpsl_pair_ids: string | null;
4187
4202
  }>, Record<string, {
4188
- side: "Bid" | "Ask";
4203
+ side: "bid" | "ask";
4189
4204
  market_id: number;
4190
4205
  order_id: bigint;
4191
4206
  client_order_id: bigint | null;
@@ -4224,15 +4239,15 @@ export declare const ResponseSchemas: {
4224
4239
  }>;
4225
4240
  user_selected_max_leverage: z.ZodNumber;
4226
4241
  trigger_orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4227
- side: z.ZodEnum<["Bid", "Ask"]>;
4242
+ side: z.ZodEnum<["bid", "ask"]>;
4228
4243
  market_id: z.ZodNumber;
4229
4244
  trigger_order_id: z.ZodBigInt;
4230
4245
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4231
4246
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4232
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
4233
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
4247
+ trigger_direction: z.ZodEnum<["greater_than_or_equal", "less_than_or_equal"]>;
4248
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
4234
4249
  size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
4235
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
4250
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
4236
4251
  owner: z.ZodString;
4237
4252
  last_update_timestamp: z.ZodBigInt;
4238
4253
  linked_trigger_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -4240,58 +4255,58 @@ export declare const ResponseSchemas: {
4240
4255
  size: import("decimal.js").Decimal | null;
4241
4256
  order_price: import("decimal.js").Decimal;
4242
4257
  trigger_price: import("decimal.js").Decimal;
4243
- price_condition: "Mark" | "Oracle" | "LastTrade";
4244
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4245
- side: "Bid" | "Ask";
4258
+ price_condition: "mark" | "oracle" | "last_trade";
4259
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4260
+ side: "bid" | "ask";
4246
4261
  market_id: number;
4247
4262
  owner: string;
4248
4263
  trigger_order_id: bigint;
4249
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4264
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4250
4265
  last_update_timestamp: bigint;
4251
4266
  linked_trigger_order_id: bigint | null;
4252
4267
  }, {
4253
4268
  size: string | number | null;
4254
4269
  order_price: string | number;
4255
4270
  trigger_price: string | number;
4256
- price_condition: "Mark" | "Oracle" | "LastTrade";
4257
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4258
- side: "Bid" | "Ask";
4271
+ price_condition: "mark" | "oracle" | "last_trade";
4272
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4273
+ side: "bid" | "ask";
4259
4274
  market_id: number;
4260
4275
  owner: string;
4261
4276
  trigger_order_id: bigint;
4262
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4277
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4263
4278
  last_update_timestamp: bigint;
4264
4279
  linked_trigger_order_id: bigint | null;
4265
4280
  }>>, Map<bigint, {
4266
4281
  size: import("decimal.js").Decimal | null;
4267
4282
  order_price: import("decimal.js").Decimal;
4268
4283
  trigger_price: import("decimal.js").Decimal;
4269
- price_condition: "Mark" | "Oracle" | "LastTrade";
4270
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4271
- side: "Bid" | "Ask";
4284
+ price_condition: "mark" | "oracle" | "last_trade";
4285
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4286
+ side: "bid" | "ask";
4272
4287
  market_id: number;
4273
4288
  owner: string;
4274
4289
  trigger_order_id: bigint;
4275
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4290
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4276
4291
  last_update_timestamp: bigint;
4277
4292
  linked_trigger_order_id: bigint | null;
4278
4293
  }>, Record<string, {
4279
4294
  size: string | number | null;
4280
4295
  order_price: string | number;
4281
4296
  trigger_price: string | number;
4282
- price_condition: "Mark" | "Oracle" | "LastTrade";
4283
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4284
- side: "Bid" | "Ask";
4297
+ price_condition: "mark" | "oracle" | "last_trade";
4298
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4299
+ side: "bid" | "ask";
4285
4300
  market_id: number;
4286
4301
  owner: string;
4287
4302
  trigger_order_id: bigint;
4288
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4303
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4289
4304
  last_update_timestamp: bigint;
4290
4305
  linked_trigger_order_id: bigint | null;
4291
4306
  }>>;
4292
4307
  }, "strip", z.ZodTypeAny, {
4293
4308
  orders: Map<bigint, {
4294
- side: "Bid" | "Ask";
4309
+ side: "bid" | "ask";
4295
4310
  market_id: number;
4296
4311
  order_id: bigint;
4297
4312
  client_order_id: bigint | null;
@@ -4317,19 +4332,19 @@ export declare const ResponseSchemas: {
4317
4332
  size: import("decimal.js").Decimal | null;
4318
4333
  order_price: import("decimal.js").Decimal;
4319
4334
  trigger_price: import("decimal.js").Decimal;
4320
- price_condition: "Mark" | "Oracle" | "LastTrade";
4321
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4322
- side: "Bid" | "Ask";
4335
+ price_condition: "mark" | "oracle" | "last_trade";
4336
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4337
+ side: "bid" | "ask";
4323
4338
  market_id: number;
4324
4339
  owner: string;
4325
4340
  trigger_order_id: bigint;
4326
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4341
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4327
4342
  last_update_timestamp: bigint;
4328
4343
  linked_trigger_order_id: bigint | null;
4329
4344
  }>;
4330
4345
  }, {
4331
4346
  orders: Record<string, {
4332
- side: "Bid" | "Ask";
4347
+ side: "bid" | "ask";
4333
4348
  market_id: number;
4334
4349
  order_id: bigint;
4335
4350
  client_order_id: bigint | null;
@@ -4355,19 +4370,19 @@ export declare const ResponseSchemas: {
4355
4370
  size: string | number | null;
4356
4371
  order_price: string | number;
4357
4372
  trigger_price: string | number;
4358
- price_condition: "Mark" | "Oracle" | "LastTrade";
4359
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4360
- side: "Bid" | "Ask";
4373
+ price_condition: "mark" | "oracle" | "last_trade";
4374
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4375
+ side: "bid" | "ask";
4361
4376
  market_id: number;
4362
4377
  owner: string;
4363
4378
  trigger_order_id: bigint;
4364
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4379
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4365
4380
  last_update_timestamp: bigint;
4366
4381
  linked_trigger_order_id: bigint | null;
4367
4382
  }>;
4368
4383
  }>>, Map<number, {
4369
4384
  orders: Map<bigint, {
4370
- side: "Bid" | "Ask";
4385
+ side: "bid" | "ask";
4371
4386
  market_id: number;
4372
4387
  order_id: bigint;
4373
4388
  client_order_id: bigint | null;
@@ -4393,19 +4408,19 @@ export declare const ResponseSchemas: {
4393
4408
  size: import("decimal.js").Decimal | null;
4394
4409
  order_price: import("decimal.js").Decimal;
4395
4410
  trigger_price: import("decimal.js").Decimal;
4396
- price_condition: "Mark" | "Oracle" | "LastTrade";
4397
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4398
- side: "Bid" | "Ask";
4411
+ price_condition: "mark" | "oracle" | "last_trade";
4412
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4413
+ side: "bid" | "ask";
4399
4414
  market_id: number;
4400
4415
  owner: string;
4401
4416
  trigger_order_id: bigint;
4402
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4417
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4403
4418
  last_update_timestamp: bigint;
4404
4419
  linked_trigger_order_id: bigint | null;
4405
4420
  }>;
4406
4421
  }>, Record<string, {
4407
4422
  orders: Record<string, {
4408
- side: "Bid" | "Ask";
4423
+ side: "bid" | "ask";
4409
4424
  market_id: number;
4410
4425
  order_id: bigint;
4411
4426
  client_order_id: bigint | null;
@@ -4431,20 +4446,20 @@ export declare const ResponseSchemas: {
4431
4446
  size: string | number | null;
4432
4447
  order_price: string | number;
4433
4448
  trigger_price: string | number;
4434
- price_condition: "Mark" | "Oracle" | "LastTrade";
4435
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4436
- side: "Bid" | "Ask";
4449
+ price_condition: "mark" | "oracle" | "last_trade";
4450
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4451
+ side: "bid" | "ask";
4437
4452
  market_id: number;
4438
4453
  owner: string;
4439
4454
  trigger_order_id: bigint;
4440
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4455
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4441
4456
  last_update_timestamp: bigint;
4442
4457
  linked_trigger_order_id: bigint | null;
4443
4458
  }>;
4444
4459
  }>>;
4445
4460
  spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4446
4461
  orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4447
- side: z.ZodEnum<["Bid", "Ask"]>;
4462
+ side: z.ZodEnum<["bid", "ask"]>;
4448
4463
  market_id: z.ZodNumber;
4449
4464
  order_id: z.ZodBigInt;
4450
4465
  quote_asset_id: z.ZodNumber;
@@ -4456,7 +4471,7 @@ export declare const ResponseSchemas: {
4456
4471
  average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4457
4472
  owner: z.ZodString;
4458
4473
  }, "strip", z.ZodTypeAny, {
4459
- side: "Bid" | "Ask";
4474
+ side: "bid" | "ask";
4460
4475
  market_id: number;
4461
4476
  order_id: bigint;
4462
4477
  client_order_id: bigint | null;
@@ -4468,7 +4483,7 @@ export declare const ResponseSchemas: {
4468
4483
  remaining_base_lots: import("decimal.js").Decimal;
4469
4484
  filled_base_lots: import("decimal.js").Decimal;
4470
4485
  }, {
4471
- side: "Bid" | "Ask";
4486
+ side: "bid" | "ask";
4472
4487
  market_id: number;
4473
4488
  order_id: bigint;
4474
4489
  client_order_id: bigint | null;
@@ -4480,7 +4495,7 @@ export declare const ResponseSchemas: {
4480
4495
  remaining_base_lots: string | number;
4481
4496
  filled_base_lots: string | number;
4482
4497
  }>>, Map<bigint, {
4483
- side: "Bid" | "Ask";
4498
+ side: "bid" | "ask";
4484
4499
  market_id: number;
4485
4500
  order_id: bigint;
4486
4501
  client_order_id: bigint | null;
@@ -4492,7 +4507,7 @@ export declare const ResponseSchemas: {
4492
4507
  remaining_base_lots: import("decimal.js").Decimal;
4493
4508
  filled_base_lots: import("decimal.js").Decimal;
4494
4509
  }>, Record<string, {
4495
- side: "Bid" | "Ask";
4510
+ side: "bid" | "ask";
4496
4511
  market_id: number;
4497
4512
  order_id: bigint;
4498
4513
  client_order_id: bigint | null;
@@ -4505,15 +4520,15 @@ export declare const ResponseSchemas: {
4505
4520
  filled_base_lots: string | number;
4506
4521
  }>>;
4507
4522
  trigger_orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4508
- side: z.ZodEnum<["Bid", "Ask"]>;
4523
+ side: z.ZodEnum<["bid", "ask"]>;
4509
4524
  market_id: z.ZodNumber;
4510
4525
  trigger_order_id: z.ZodBigInt;
4511
4526
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4512
4527
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4513
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
4514
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
4528
+ trigger_direction: z.ZodEnum<["greater_than_or_equal", "less_than_or_equal"]>;
4529
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
4515
4530
  size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
4516
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
4531
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
4517
4532
  owner: z.ZodString;
4518
4533
  last_update_timestamp: z.ZodBigInt;
4519
4534
  linked_trigger_order_id: z.ZodNullable<z.ZodBigInt>;
@@ -4521,58 +4536,58 @@ export declare const ResponseSchemas: {
4521
4536
  size: import("decimal.js").Decimal | null;
4522
4537
  order_price: import("decimal.js").Decimal;
4523
4538
  trigger_price: import("decimal.js").Decimal;
4524
- price_condition: "Mark" | "Oracle" | "LastTrade";
4525
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4526
- side: "Bid" | "Ask";
4539
+ price_condition: "mark" | "oracle" | "last_trade";
4540
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4541
+ side: "bid" | "ask";
4527
4542
  market_id: number;
4528
4543
  owner: string;
4529
4544
  trigger_order_id: bigint;
4530
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4545
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4531
4546
  last_update_timestamp: bigint;
4532
4547
  linked_trigger_order_id: bigint | null;
4533
4548
  }, {
4534
4549
  size: string | number | null;
4535
4550
  order_price: string | number;
4536
4551
  trigger_price: string | number;
4537
- price_condition: "Mark" | "Oracle" | "LastTrade";
4538
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4539
- side: "Bid" | "Ask";
4552
+ price_condition: "mark" | "oracle" | "last_trade";
4553
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4554
+ side: "bid" | "ask";
4540
4555
  market_id: number;
4541
4556
  owner: string;
4542
4557
  trigger_order_id: bigint;
4543
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4558
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4544
4559
  last_update_timestamp: bigint;
4545
4560
  linked_trigger_order_id: bigint | null;
4546
4561
  }>>, Map<bigint, {
4547
4562
  size: import("decimal.js").Decimal | null;
4548
4563
  order_price: import("decimal.js").Decimal;
4549
4564
  trigger_price: import("decimal.js").Decimal;
4550
- price_condition: "Mark" | "Oracle" | "LastTrade";
4551
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4552
- side: "Bid" | "Ask";
4565
+ price_condition: "mark" | "oracle" | "last_trade";
4566
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4567
+ side: "bid" | "ask";
4553
4568
  market_id: number;
4554
4569
  owner: string;
4555
4570
  trigger_order_id: bigint;
4556
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4571
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4557
4572
  last_update_timestamp: bigint;
4558
4573
  linked_trigger_order_id: bigint | null;
4559
4574
  }>, Record<string, {
4560
4575
  size: string | number | null;
4561
4576
  order_price: string | number;
4562
4577
  trigger_price: string | number;
4563
- price_condition: "Mark" | "Oracle" | "LastTrade";
4564
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4565
- side: "Bid" | "Ask";
4578
+ price_condition: "mark" | "oracle" | "last_trade";
4579
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4580
+ side: "bid" | "ask";
4566
4581
  market_id: number;
4567
4582
  owner: string;
4568
4583
  trigger_order_id: bigint;
4569
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4584
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4570
4585
  last_update_timestamp: bigint;
4571
4586
  linked_trigger_order_id: bigint | null;
4572
4587
  }>>;
4573
4588
  }, "strip", z.ZodTypeAny, {
4574
4589
  orders: Map<bigint, {
4575
- side: "Bid" | "Ask";
4590
+ side: "bid" | "ask";
4576
4591
  market_id: number;
4577
4592
  order_id: bigint;
4578
4593
  client_order_id: bigint | null;
@@ -4588,19 +4603,19 @@ export declare const ResponseSchemas: {
4588
4603
  size: import("decimal.js").Decimal | null;
4589
4604
  order_price: import("decimal.js").Decimal;
4590
4605
  trigger_price: import("decimal.js").Decimal;
4591
- price_condition: "Mark" | "Oracle" | "LastTrade";
4592
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4593
- side: "Bid" | "Ask";
4606
+ price_condition: "mark" | "oracle" | "last_trade";
4607
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4608
+ side: "bid" | "ask";
4594
4609
  market_id: number;
4595
4610
  owner: string;
4596
4611
  trigger_order_id: bigint;
4597
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4612
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4598
4613
  last_update_timestamp: bigint;
4599
4614
  linked_trigger_order_id: bigint | null;
4600
4615
  }>;
4601
4616
  }, {
4602
4617
  orders: Record<string, {
4603
- side: "Bid" | "Ask";
4618
+ side: "bid" | "ask";
4604
4619
  market_id: number;
4605
4620
  order_id: bigint;
4606
4621
  client_order_id: bigint | null;
@@ -4616,19 +4631,19 @@ export declare const ResponseSchemas: {
4616
4631
  size: string | number | null;
4617
4632
  order_price: string | number;
4618
4633
  trigger_price: string | number;
4619
- price_condition: "Mark" | "Oracle" | "LastTrade";
4620
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4621
- side: "Bid" | "Ask";
4634
+ price_condition: "mark" | "oracle" | "last_trade";
4635
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4636
+ side: "bid" | "ask";
4622
4637
  market_id: number;
4623
4638
  owner: string;
4624
4639
  trigger_order_id: bigint;
4625
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4640
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4626
4641
  last_update_timestamp: bigint;
4627
4642
  linked_trigger_order_id: bigint | null;
4628
4643
  }>;
4629
4644
  }>>, Map<number, {
4630
4645
  orders: Map<bigint, {
4631
- side: "Bid" | "Ask";
4646
+ side: "bid" | "ask";
4632
4647
  market_id: number;
4633
4648
  order_id: bigint;
4634
4649
  client_order_id: bigint | null;
@@ -4644,19 +4659,19 @@ export declare const ResponseSchemas: {
4644
4659
  size: import("decimal.js").Decimal | null;
4645
4660
  order_price: import("decimal.js").Decimal;
4646
4661
  trigger_price: import("decimal.js").Decimal;
4647
- price_condition: "Mark" | "Oracle" | "LastTrade";
4648
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4649
- side: "Bid" | "Ask";
4662
+ price_condition: "mark" | "oracle" | "last_trade";
4663
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4664
+ side: "bid" | "ask";
4650
4665
  market_id: number;
4651
4666
  owner: string;
4652
4667
  trigger_order_id: bigint;
4653
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4668
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4654
4669
  last_update_timestamp: bigint;
4655
4670
  linked_trigger_order_id: bigint | null;
4656
4671
  }>;
4657
4672
  }>, Record<string, {
4658
4673
  orders: Record<string, {
4659
- side: "Bid" | "Ask";
4674
+ side: "bid" | "ask";
4660
4675
  market_id: number;
4661
4676
  order_id: bigint;
4662
4677
  client_order_id: bigint | null;
@@ -4672,77 +4687,77 @@ export declare const ResponseSchemas: {
4672
4687
  size: string | number | null;
4673
4688
  order_price: string | number;
4674
4689
  trigger_price: string | number;
4675
- price_condition: "Mark" | "Oracle" | "LastTrade";
4676
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4677
- side: "Bid" | "Ask";
4690
+ price_condition: "mark" | "oracle" | "last_trade";
4691
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4692
+ side: "bid" | "ask";
4678
4693
  market_id: number;
4679
4694
  owner: string;
4680
4695
  trigger_order_id: bigint;
4681
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4696
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4682
4697
  last_update_timestamp: bigint;
4683
4698
  linked_trigger_order_id: bigint | null;
4684
4699
  }>;
4685
4700
  }>>;
4686
- fee_tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEnum<["Tier0", "Tier1", "Tier2", "Tier3", "Tier4"]>>, Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">, Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">>;
4701
+ fee_tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEnum<["tier0", "tier1", "tier2", "tier3", "tier4"]>>, Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">, Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">>;
4687
4702
  pending_tpsl_pairs: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
4688
4703
  tpsl_pair: z.ZodObject<{
4689
4704
  tp: z.ZodNullable<z.ZodObject<{
4690
4705
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4691
4706
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4692
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
4693
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
4707
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
4708
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
4694
4709
  }, "strip", z.ZodTypeAny, {
4695
4710
  order_price: import("decimal.js").Decimal;
4696
4711
  trigger_price: import("decimal.js").Decimal;
4697
- price_condition: "Mark" | "Oracle" | "LastTrade";
4698
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4712
+ price_condition: "mark" | "oracle" | "last_trade";
4713
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4699
4714
  }, {
4700
4715
  order_price: string | number;
4701
4716
  trigger_price: string | number;
4702
- price_condition: "Mark" | "Oracle" | "LastTrade";
4703
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4717
+ price_condition: "mark" | "oracle" | "last_trade";
4718
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4704
4719
  }>>;
4705
4720
  sl: z.ZodNullable<z.ZodObject<{
4706
4721
  order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4707
4722
  trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
4708
- price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
4709
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
4723
+ price_condition: z.ZodEnum<["mark", "oracle", "last_trade"]>;
4724
+ order_type: z.ZodEnum<["limit", "post_only", "fill_or_kill", "immediate_or_cancel", "post_only_slide", "post_only_front"]>;
4710
4725
  }, "strip", z.ZodTypeAny, {
4711
4726
  order_price: import("decimal.js").Decimal;
4712
4727
  trigger_price: import("decimal.js").Decimal;
4713
- price_condition: "Mark" | "Oracle" | "LastTrade";
4714
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4728
+ price_condition: "mark" | "oracle" | "last_trade";
4729
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4715
4730
  }, {
4716
4731
  order_price: string | number;
4717
4732
  trigger_price: string | number;
4718
- price_condition: "Mark" | "Oracle" | "LastTrade";
4719
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4733
+ price_condition: "mark" | "oracle" | "last_trade";
4734
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4720
4735
  }>>;
4721
4736
  }, "strip", z.ZodTypeAny, {
4722
4737
  tp: {
4723
4738
  order_price: import("decimal.js").Decimal;
4724
4739
  trigger_price: import("decimal.js").Decimal;
4725
- price_condition: "Mark" | "Oracle" | "LastTrade";
4726
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4740
+ price_condition: "mark" | "oracle" | "last_trade";
4741
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4727
4742
  } | null;
4728
4743
  sl: {
4729
4744
  order_price: import("decimal.js").Decimal;
4730
4745
  trigger_price: import("decimal.js").Decimal;
4731
- price_condition: "Mark" | "Oracle" | "LastTrade";
4732
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4746
+ price_condition: "mark" | "oracle" | "last_trade";
4747
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4733
4748
  } | null;
4734
4749
  }, {
4735
4750
  tp: {
4736
4751
  order_price: string | number;
4737
4752
  trigger_price: string | number;
4738
- price_condition: "Mark" | "Oracle" | "LastTrade";
4739
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4753
+ price_condition: "mark" | "oracle" | "last_trade";
4754
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4740
4755
  } | null;
4741
4756
  sl: {
4742
4757
  order_price: string | number;
4743
4758
  trigger_price: string | number;
4744
- price_condition: "Mark" | "Oracle" | "LastTrade";
4745
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4759
+ price_condition: "mark" | "oracle" | "last_trade";
4760
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4746
4761
  } | null;
4747
4762
  }>;
4748
4763
  dynamic_size: z.ZodBoolean;
@@ -4751,14 +4766,14 @@ export declare const ResponseSchemas: {
4751
4766
  tp: {
4752
4767
  order_price: import("decimal.js").Decimal;
4753
4768
  trigger_price: import("decimal.js").Decimal;
4754
- price_condition: "Mark" | "Oracle" | "LastTrade";
4755
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4769
+ price_condition: "mark" | "oracle" | "last_trade";
4770
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4756
4771
  } | null;
4757
4772
  sl: {
4758
4773
  order_price: import("decimal.js").Decimal;
4759
4774
  trigger_price: import("decimal.js").Decimal;
4760
- price_condition: "Mark" | "Oracle" | "LastTrade";
4761
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4775
+ price_condition: "mark" | "oracle" | "last_trade";
4776
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4762
4777
  } | null;
4763
4778
  };
4764
4779
  dynamic_size: boolean;
@@ -4767,14 +4782,14 @@ export declare const ResponseSchemas: {
4767
4782
  tp: {
4768
4783
  order_price: string | number;
4769
4784
  trigger_price: string | number;
4770
- price_condition: "Mark" | "Oracle" | "LastTrade";
4771
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4785
+ price_condition: "mark" | "oracle" | "last_trade";
4786
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4772
4787
  } | null;
4773
4788
  sl: {
4774
4789
  order_price: string | number;
4775
4790
  trigger_price: string | number;
4776
- price_condition: "Mark" | "Oracle" | "LastTrade";
4777
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4791
+ price_condition: "mark" | "oracle" | "last_trade";
4792
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4778
4793
  } | null;
4779
4794
  };
4780
4795
  dynamic_size: boolean;
@@ -4783,14 +4798,14 @@ export declare const ResponseSchemas: {
4783
4798
  tp: {
4784
4799
  order_price: import("decimal.js").Decimal;
4785
4800
  trigger_price: import("decimal.js").Decimal;
4786
- price_condition: "Mark" | "Oracle" | "LastTrade";
4787
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4801
+ price_condition: "mark" | "oracle" | "last_trade";
4802
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4788
4803
  } | null;
4789
4804
  sl: {
4790
4805
  order_price: import("decimal.js").Decimal;
4791
4806
  trigger_price: import("decimal.js").Decimal;
4792
- price_condition: "Mark" | "Oracle" | "LastTrade";
4793
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4807
+ price_condition: "mark" | "oracle" | "last_trade";
4808
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4794
4809
  } | null;
4795
4810
  };
4796
4811
  dynamic_size: boolean;
@@ -4799,14 +4814,14 @@ export declare const ResponseSchemas: {
4799
4814
  tp: {
4800
4815
  order_price: string | number;
4801
4816
  trigger_price: string | number;
4802
- price_condition: "Mark" | "Oracle" | "LastTrade";
4803
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4817
+ price_condition: "mark" | "oracle" | "last_trade";
4818
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4804
4819
  } | null;
4805
4820
  sl: {
4806
4821
  order_price: string | number;
4807
4822
  trigger_price: string | number;
4808
- price_condition: "Mark" | "Oracle" | "LastTrade";
4809
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4823
+ price_condition: "mark" | "oracle" | "last_trade";
4824
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4810
4825
  } | null;
4811
4826
  };
4812
4827
  dynamic_size: boolean;
@@ -4814,13 +4829,14 @@ export declare const ResponseSchemas: {
4814
4829
  spot_collateral: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>, Map<number, import("decimal.js").Decimal>, Record<string, string | number>>;
4815
4830
  }, "strip", z.ZodTypeAny, {
4816
4831
  account_variant: {
4817
- Master: number[];
4832
+ type: "master";
4833
+ sub_account_indices: number[];
4818
4834
  } | {
4819
- Sub: null;
4835
+ type: "sub";
4820
4836
  } | {
4821
- Vault: null;
4837
+ type: "vault";
4822
4838
  } | {
4823
- ProtocolVault: null;
4839
+ type: "protocol_vault";
4824
4840
  };
4825
4841
  address: string;
4826
4842
  usdc_ledger: {
@@ -4838,7 +4854,7 @@ export declare const ResponseSchemas: {
4838
4854
  }>;
4839
4855
  perp_ledgers: Map<number, {
4840
4856
  orders: Map<bigint, {
4841
- side: "Bid" | "Ask";
4857
+ side: "bid" | "ask";
4842
4858
  market_id: number;
4843
4859
  order_id: bigint;
4844
4860
  client_order_id: bigint | null;
@@ -4864,20 +4880,20 @@ export declare const ResponseSchemas: {
4864
4880
  size: import("decimal.js").Decimal | null;
4865
4881
  order_price: import("decimal.js").Decimal;
4866
4882
  trigger_price: import("decimal.js").Decimal;
4867
- price_condition: "Mark" | "Oracle" | "LastTrade";
4868
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4869
- side: "Bid" | "Ask";
4883
+ price_condition: "mark" | "oracle" | "last_trade";
4884
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4885
+ side: "bid" | "ask";
4870
4886
  market_id: number;
4871
4887
  owner: string;
4872
4888
  trigger_order_id: bigint;
4873
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4889
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4874
4890
  last_update_timestamp: bigint;
4875
4891
  linked_trigger_order_id: bigint | null;
4876
4892
  }>;
4877
4893
  }>;
4878
4894
  spot_ledgers: Map<number, {
4879
4895
  orders: Map<bigint, {
4880
- side: "Bid" | "Ask";
4896
+ side: "bid" | "ask";
4881
4897
  market_id: number;
4882
4898
  order_id: bigint;
4883
4899
  client_order_id: bigint | null;
@@ -4893,31 +4909,31 @@ export declare const ResponseSchemas: {
4893
4909
  size: import("decimal.js").Decimal | null;
4894
4910
  order_price: import("decimal.js").Decimal;
4895
4911
  trigger_price: import("decimal.js").Decimal;
4896
- price_condition: "Mark" | "Oracle" | "LastTrade";
4897
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4898
- side: "Bid" | "Ask";
4912
+ price_condition: "mark" | "oracle" | "last_trade";
4913
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4914
+ side: "bid" | "ask";
4899
4915
  market_id: number;
4900
4916
  owner: string;
4901
4917
  trigger_order_id: bigint;
4902
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
4918
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4903
4919
  last_update_timestamp: bigint;
4904
4920
  linked_trigger_order_id: bigint | null;
4905
4921
  }>;
4906
4922
  }>;
4907
- fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
4923
+ fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
4908
4924
  pending_tpsl_pairs: Map<string, {
4909
4925
  tpsl_pair: {
4910
4926
  tp: {
4911
4927
  order_price: import("decimal.js").Decimal;
4912
4928
  trigger_price: import("decimal.js").Decimal;
4913
- price_condition: "Mark" | "Oracle" | "LastTrade";
4914
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4929
+ price_condition: "mark" | "oracle" | "last_trade";
4930
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4915
4931
  } | null;
4916
4932
  sl: {
4917
4933
  order_price: import("decimal.js").Decimal;
4918
4934
  trigger_price: import("decimal.js").Decimal;
4919
- price_condition: "Mark" | "Oracle" | "LastTrade";
4920
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4935
+ price_condition: "mark" | "oracle" | "last_trade";
4936
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4921
4937
  } | null;
4922
4938
  };
4923
4939
  dynamic_size: boolean;
@@ -4925,13 +4941,14 @@ export declare const ResponseSchemas: {
4925
4941
  spot_collateral: Map<number, import("decimal.js").Decimal>;
4926
4942
  }, {
4927
4943
  account_variant: {
4928
- Master: number[];
4944
+ type: "master";
4945
+ sub_account_indices: number[];
4929
4946
  } | {
4930
- Sub: null;
4947
+ type: "sub";
4931
4948
  } | {
4932
- Vault: null;
4949
+ type: "vault";
4933
4950
  } | {
4934
- ProtocolVault: null;
4951
+ type: "protocol_vault";
4935
4952
  };
4936
4953
  address: string;
4937
4954
  usdc_ledger: {
@@ -4949,7 +4966,7 @@ export declare const ResponseSchemas: {
4949
4966
  }>;
4950
4967
  perp_ledgers: Record<string, {
4951
4968
  orders: Record<string, {
4952
- side: "Bid" | "Ask";
4969
+ side: "bid" | "ask";
4953
4970
  market_id: number;
4954
4971
  order_id: bigint;
4955
4972
  client_order_id: bigint | null;
@@ -4975,20 +4992,20 @@ export declare const ResponseSchemas: {
4975
4992
  size: string | number | null;
4976
4993
  order_price: string | number;
4977
4994
  trigger_price: string | number;
4978
- price_condition: "Mark" | "Oracle" | "LastTrade";
4979
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
4980
- side: "Bid" | "Ask";
4995
+ price_condition: "mark" | "oracle" | "last_trade";
4996
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
4997
+ side: "bid" | "ask";
4981
4998
  market_id: number;
4982
4999
  owner: string;
4983
5000
  trigger_order_id: bigint;
4984
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5001
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
4985
5002
  last_update_timestamp: bigint;
4986
5003
  linked_trigger_order_id: bigint | null;
4987
5004
  }>;
4988
5005
  }>;
4989
5006
  spot_ledgers: Record<string, {
4990
5007
  orders: Record<string, {
4991
- side: "Bid" | "Ask";
5008
+ side: "bid" | "ask";
4992
5009
  market_id: number;
4993
5010
  order_id: bigint;
4994
5011
  client_order_id: bigint | null;
@@ -5004,31 +5021,31 @@ export declare const ResponseSchemas: {
5004
5021
  size: string | number | null;
5005
5022
  order_price: string | number;
5006
5023
  trigger_price: string | number;
5007
- price_condition: "Mark" | "Oracle" | "LastTrade";
5008
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5009
- side: "Bid" | "Ask";
5024
+ price_condition: "mark" | "oracle" | "last_trade";
5025
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5026
+ side: "bid" | "ask";
5010
5027
  market_id: number;
5011
5028
  owner: string;
5012
5029
  trigger_order_id: bigint;
5013
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5030
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5014
5031
  last_update_timestamp: bigint;
5015
5032
  linked_trigger_order_id: bigint | null;
5016
5033
  }>;
5017
5034
  }>;
5018
- fee_tiers: Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
5035
+ fee_tiers: Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
5019
5036
  pending_tpsl_pairs: Record<string, {
5020
5037
  tpsl_pair: {
5021
5038
  tp: {
5022
5039
  order_price: string | number;
5023
5040
  trigger_price: string | number;
5024
- price_condition: "Mark" | "Oracle" | "LastTrade";
5025
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5041
+ price_condition: "mark" | "oracle" | "last_trade";
5042
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5026
5043
  } | null;
5027
5044
  sl: {
5028
5045
  order_price: string | number;
5029
5046
  trigger_price: string | number;
5030
- price_condition: "Mark" | "Oracle" | "LastTrade";
5031
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5047
+ price_condition: "mark" | "oracle" | "last_trade";
5048
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5032
5049
  } | null;
5033
5050
  };
5034
5051
  dynamic_size: boolean;
@@ -5036,13 +5053,14 @@ export declare const ResponseSchemas: {
5036
5053
  spot_collateral: Record<string, string | number>;
5037
5054
  }>>, Map<string, {
5038
5055
  account_variant: {
5039
- Master: number[];
5056
+ type: "master";
5057
+ sub_account_indices: number[];
5040
5058
  } | {
5041
- Sub: null;
5059
+ type: "sub";
5042
5060
  } | {
5043
- Vault: null;
5061
+ type: "vault";
5044
5062
  } | {
5045
- ProtocolVault: null;
5063
+ type: "protocol_vault";
5046
5064
  };
5047
5065
  address: string;
5048
5066
  usdc_ledger: {
@@ -5060,7 +5078,7 @@ export declare const ResponseSchemas: {
5060
5078
  }>;
5061
5079
  perp_ledgers: Map<number, {
5062
5080
  orders: Map<bigint, {
5063
- side: "Bid" | "Ask";
5081
+ side: "bid" | "ask";
5064
5082
  market_id: number;
5065
5083
  order_id: bigint;
5066
5084
  client_order_id: bigint | null;
@@ -5086,20 +5104,20 @@ export declare const ResponseSchemas: {
5086
5104
  size: import("decimal.js").Decimal | null;
5087
5105
  order_price: import("decimal.js").Decimal;
5088
5106
  trigger_price: import("decimal.js").Decimal;
5089
- price_condition: "Mark" | "Oracle" | "LastTrade";
5090
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5091
- side: "Bid" | "Ask";
5107
+ price_condition: "mark" | "oracle" | "last_trade";
5108
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5109
+ side: "bid" | "ask";
5092
5110
  market_id: number;
5093
5111
  owner: string;
5094
5112
  trigger_order_id: bigint;
5095
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5113
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5096
5114
  last_update_timestamp: bigint;
5097
5115
  linked_trigger_order_id: bigint | null;
5098
5116
  }>;
5099
5117
  }>;
5100
5118
  spot_ledgers: Map<number, {
5101
5119
  orders: Map<bigint, {
5102
- side: "Bid" | "Ask";
5120
+ side: "bid" | "ask";
5103
5121
  market_id: number;
5104
5122
  order_id: bigint;
5105
5123
  client_order_id: bigint | null;
@@ -5115,31 +5133,31 @@ export declare const ResponseSchemas: {
5115
5133
  size: import("decimal.js").Decimal | null;
5116
5134
  order_price: import("decimal.js").Decimal;
5117
5135
  trigger_price: import("decimal.js").Decimal;
5118
- price_condition: "Mark" | "Oracle" | "LastTrade";
5119
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5120
- side: "Bid" | "Ask";
5136
+ price_condition: "mark" | "oracle" | "last_trade";
5137
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5138
+ side: "bid" | "ask";
5121
5139
  market_id: number;
5122
5140
  owner: string;
5123
5141
  trigger_order_id: bigint;
5124
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5142
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5125
5143
  last_update_timestamp: bigint;
5126
5144
  linked_trigger_order_id: bigint | null;
5127
5145
  }>;
5128
5146
  }>;
5129
- fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
5147
+ fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
5130
5148
  pending_tpsl_pairs: Map<string, {
5131
5149
  tpsl_pair: {
5132
5150
  tp: {
5133
5151
  order_price: import("decimal.js").Decimal;
5134
5152
  trigger_price: import("decimal.js").Decimal;
5135
- price_condition: "Mark" | "Oracle" | "LastTrade";
5136
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5153
+ price_condition: "mark" | "oracle" | "last_trade";
5154
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5137
5155
  } | null;
5138
5156
  sl: {
5139
5157
  order_price: import("decimal.js").Decimal;
5140
5158
  trigger_price: import("decimal.js").Decimal;
5141
- price_condition: "Mark" | "Oracle" | "LastTrade";
5142
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5159
+ price_condition: "mark" | "oracle" | "last_trade";
5160
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5143
5161
  } | null;
5144
5162
  };
5145
5163
  dynamic_size: boolean;
@@ -5147,13 +5165,14 @@ export declare const ResponseSchemas: {
5147
5165
  spot_collateral: Map<number, import("decimal.js").Decimal>;
5148
5166
  }>, Record<string, {
5149
5167
  account_variant: {
5150
- Master: number[];
5168
+ type: "master";
5169
+ sub_account_indices: number[];
5151
5170
  } | {
5152
- Sub: null;
5171
+ type: "sub";
5153
5172
  } | {
5154
- Vault: null;
5173
+ type: "vault";
5155
5174
  } | {
5156
- ProtocolVault: null;
5175
+ type: "protocol_vault";
5157
5176
  };
5158
5177
  address: string;
5159
5178
  usdc_ledger: {
@@ -5171,7 +5190,7 @@ export declare const ResponseSchemas: {
5171
5190
  }>;
5172
5191
  perp_ledgers: Record<string, {
5173
5192
  orders: Record<string, {
5174
- side: "Bid" | "Ask";
5193
+ side: "bid" | "ask";
5175
5194
  market_id: number;
5176
5195
  order_id: bigint;
5177
5196
  client_order_id: bigint | null;
@@ -5197,20 +5216,20 @@ export declare const ResponseSchemas: {
5197
5216
  size: string | number | null;
5198
5217
  order_price: string | number;
5199
5218
  trigger_price: string | number;
5200
- price_condition: "Mark" | "Oracle" | "LastTrade";
5201
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5202
- side: "Bid" | "Ask";
5219
+ price_condition: "mark" | "oracle" | "last_trade";
5220
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5221
+ side: "bid" | "ask";
5203
5222
  market_id: number;
5204
5223
  owner: string;
5205
5224
  trigger_order_id: bigint;
5206
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5225
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5207
5226
  last_update_timestamp: bigint;
5208
5227
  linked_trigger_order_id: bigint | null;
5209
5228
  }>;
5210
5229
  }>;
5211
5230
  spot_ledgers: Record<string, {
5212
5231
  orders: Record<string, {
5213
- side: "Bid" | "Ask";
5232
+ side: "bid" | "ask";
5214
5233
  market_id: number;
5215
5234
  order_id: bigint;
5216
5235
  client_order_id: bigint | null;
@@ -5226,31 +5245,31 @@ export declare const ResponseSchemas: {
5226
5245
  size: string | number | null;
5227
5246
  order_price: string | number;
5228
5247
  trigger_price: string | number;
5229
- price_condition: "Mark" | "Oracle" | "LastTrade";
5230
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5231
- side: "Bid" | "Ask";
5248
+ price_condition: "mark" | "oracle" | "last_trade";
5249
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5250
+ side: "bid" | "ask";
5232
5251
  market_id: number;
5233
5252
  owner: string;
5234
5253
  trigger_order_id: bigint;
5235
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5254
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5236
5255
  last_update_timestamp: bigint;
5237
5256
  linked_trigger_order_id: bigint | null;
5238
5257
  }>;
5239
5258
  }>;
5240
- fee_tiers: Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
5259
+ fee_tiers: Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
5241
5260
  pending_tpsl_pairs: Record<string, {
5242
5261
  tpsl_pair: {
5243
5262
  tp: {
5244
5263
  order_price: string | number;
5245
5264
  trigger_price: string | number;
5246
- price_condition: "Mark" | "Oracle" | "LastTrade";
5247
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5265
+ price_condition: "mark" | "oracle" | "last_trade";
5266
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5248
5267
  } | null;
5249
5268
  sl: {
5250
5269
  order_price: string | number;
5251
5270
  trigger_price: string | number;
5252
- price_condition: "Mark" | "Oracle" | "LastTrade";
5253
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5271
+ price_condition: "mark" | "oracle" | "last_trade";
5272
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5254
5273
  } | null;
5255
5274
  };
5256
5275
  dynamic_size: boolean;
@@ -5261,13 +5280,14 @@ export declare const ResponseSchemas: {
5261
5280
  }, "strip", z.ZodTypeAny, {
5262
5281
  found: Map<string, {
5263
5282
  account_variant: {
5264
- Master: number[];
5283
+ type: "master";
5284
+ sub_account_indices: number[];
5265
5285
  } | {
5266
- Sub: null;
5286
+ type: "sub";
5267
5287
  } | {
5268
- Vault: null;
5288
+ type: "vault";
5269
5289
  } | {
5270
- ProtocolVault: null;
5290
+ type: "protocol_vault";
5271
5291
  };
5272
5292
  address: string;
5273
5293
  usdc_ledger: {
@@ -5285,7 +5305,7 @@ export declare const ResponseSchemas: {
5285
5305
  }>;
5286
5306
  perp_ledgers: Map<number, {
5287
5307
  orders: Map<bigint, {
5288
- side: "Bid" | "Ask";
5308
+ side: "bid" | "ask";
5289
5309
  market_id: number;
5290
5310
  order_id: bigint;
5291
5311
  client_order_id: bigint | null;
@@ -5311,20 +5331,20 @@ export declare const ResponseSchemas: {
5311
5331
  size: import("decimal.js").Decimal | null;
5312
5332
  order_price: import("decimal.js").Decimal;
5313
5333
  trigger_price: import("decimal.js").Decimal;
5314
- price_condition: "Mark" | "Oracle" | "LastTrade";
5315
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5316
- side: "Bid" | "Ask";
5334
+ price_condition: "mark" | "oracle" | "last_trade";
5335
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5336
+ side: "bid" | "ask";
5317
5337
  market_id: number;
5318
5338
  owner: string;
5319
5339
  trigger_order_id: bigint;
5320
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5340
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5321
5341
  last_update_timestamp: bigint;
5322
5342
  linked_trigger_order_id: bigint | null;
5323
5343
  }>;
5324
5344
  }>;
5325
5345
  spot_ledgers: Map<number, {
5326
5346
  orders: Map<bigint, {
5327
- side: "Bid" | "Ask";
5347
+ side: "bid" | "ask";
5328
5348
  market_id: number;
5329
5349
  order_id: bigint;
5330
5350
  client_order_id: bigint | null;
@@ -5340,31 +5360,31 @@ export declare const ResponseSchemas: {
5340
5360
  size: import("decimal.js").Decimal | null;
5341
5361
  order_price: import("decimal.js").Decimal;
5342
5362
  trigger_price: import("decimal.js").Decimal;
5343
- price_condition: "Mark" | "Oracle" | "LastTrade";
5344
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5345
- side: "Bid" | "Ask";
5363
+ price_condition: "mark" | "oracle" | "last_trade";
5364
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5365
+ side: "bid" | "ask";
5346
5366
  market_id: number;
5347
5367
  owner: string;
5348
5368
  trigger_order_id: bigint;
5349
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5369
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5350
5370
  last_update_timestamp: bigint;
5351
5371
  linked_trigger_order_id: bigint | null;
5352
5372
  }>;
5353
5373
  }>;
5354
- fee_tiers: Map<number, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
5374
+ fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
5355
5375
  pending_tpsl_pairs: Map<string, {
5356
5376
  tpsl_pair: {
5357
5377
  tp: {
5358
5378
  order_price: import("decimal.js").Decimal;
5359
5379
  trigger_price: import("decimal.js").Decimal;
5360
- price_condition: "Mark" | "Oracle" | "LastTrade";
5361
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5380
+ price_condition: "mark" | "oracle" | "last_trade";
5381
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5362
5382
  } | null;
5363
5383
  sl: {
5364
5384
  order_price: import("decimal.js").Decimal;
5365
5385
  trigger_price: import("decimal.js").Decimal;
5366
- price_condition: "Mark" | "Oracle" | "LastTrade";
5367
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5386
+ price_condition: "mark" | "oracle" | "last_trade";
5387
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5368
5388
  } | null;
5369
5389
  };
5370
5390
  dynamic_size: boolean;
@@ -5375,13 +5395,14 @@ export declare const ResponseSchemas: {
5375
5395
  }, {
5376
5396
  found: Record<string, {
5377
5397
  account_variant: {
5378
- Master: number[];
5398
+ type: "master";
5399
+ sub_account_indices: number[];
5379
5400
  } | {
5380
- Sub: null;
5401
+ type: "sub";
5381
5402
  } | {
5382
- Vault: null;
5403
+ type: "vault";
5383
5404
  } | {
5384
- ProtocolVault: null;
5405
+ type: "protocol_vault";
5385
5406
  };
5386
5407
  address: string;
5387
5408
  usdc_ledger: {
@@ -5399,7 +5420,7 @@ export declare const ResponseSchemas: {
5399
5420
  }>;
5400
5421
  perp_ledgers: Record<string, {
5401
5422
  orders: Record<string, {
5402
- side: "Bid" | "Ask";
5423
+ side: "bid" | "ask";
5403
5424
  market_id: number;
5404
5425
  order_id: bigint;
5405
5426
  client_order_id: bigint | null;
@@ -5425,20 +5446,20 @@ export declare const ResponseSchemas: {
5425
5446
  size: string | number | null;
5426
5447
  order_price: string | number;
5427
5448
  trigger_price: string | number;
5428
- price_condition: "Mark" | "Oracle" | "LastTrade";
5429
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5430
- side: "Bid" | "Ask";
5449
+ price_condition: "mark" | "oracle" | "last_trade";
5450
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5451
+ side: "bid" | "ask";
5431
5452
  market_id: number;
5432
5453
  owner: string;
5433
5454
  trigger_order_id: bigint;
5434
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5455
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5435
5456
  last_update_timestamp: bigint;
5436
5457
  linked_trigger_order_id: bigint | null;
5437
5458
  }>;
5438
5459
  }>;
5439
5460
  spot_ledgers: Record<string, {
5440
5461
  orders: Record<string, {
5441
- side: "Bid" | "Ask";
5462
+ side: "bid" | "ask";
5442
5463
  market_id: number;
5443
5464
  order_id: bigint;
5444
5465
  client_order_id: bigint | null;
@@ -5454,31 +5475,31 @@ export declare const ResponseSchemas: {
5454
5475
  size: string | number | null;
5455
5476
  order_price: string | number;
5456
5477
  trigger_price: string | number;
5457
- price_condition: "Mark" | "Oracle" | "LastTrade";
5458
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5459
- side: "Bid" | "Ask";
5478
+ price_condition: "mark" | "oracle" | "last_trade";
5479
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5480
+ side: "bid" | "ask";
5460
5481
  market_id: number;
5461
5482
  owner: string;
5462
5483
  trigger_order_id: bigint;
5463
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
5484
+ trigger_direction: "greater_than_or_equal" | "less_than_or_equal";
5464
5485
  last_update_timestamp: bigint;
5465
5486
  linked_trigger_order_id: bigint | null;
5466
5487
  }>;
5467
5488
  }>;
5468
- fee_tiers: Record<string, "Tier0" | "Tier1" | "Tier2" | "Tier3" | "Tier4">;
5489
+ fee_tiers: Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
5469
5490
  pending_tpsl_pairs: Record<string, {
5470
5491
  tpsl_pair: {
5471
5492
  tp: {
5472
5493
  order_price: string | number;
5473
5494
  trigger_price: string | number;
5474
- price_condition: "Mark" | "Oracle" | "LastTrade";
5475
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5495
+ price_condition: "mark" | "oracle" | "last_trade";
5496
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5476
5497
  } | null;
5477
5498
  sl: {
5478
5499
  order_price: string | number;
5479
5500
  trigger_price: string | number;
5480
- price_condition: "Mark" | "Oracle" | "LastTrade";
5481
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
5501
+ price_condition: "mark" | "oracle" | "last_trade";
5502
+ order_type: "limit" | "post_only" | "fill_or_kill" | "immediate_or_cancel" | "post_only_slide" | "post_only_front";
5482
5503
  } | null;
5483
5504
  };
5484
5505
  dynamic_size: boolean;