@bulletxyz/bullet-sdk 0.20.0-rc.1 → 0.21.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +307 -213
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +307 -213
- package/dist/node/index.js.map +2 -2
- package/dist/types/bullet-wasm/index.d.ts +16 -16
- package/dist/types/calc.d.ts +20 -19
- package/dist/types/client.d.ts +11 -10
- package/dist/types/connection.d.ts +1 -0
- package/dist/types/exchange.d.ts +15 -10
- package/dist/types/rollupTypes.d.ts +8 -2
- package/dist/types/types.d.ts +12 -3
- package/dist/types/zod-types/rest.d.ts +1891 -502
- package/package.json +1 -1
|
@@ -363,8 +363,43 @@ export declare const BaseResponseSchemas: {
|
|
|
363
363
|
}>;
|
|
364
364
|
};
|
|
365
365
|
declare const PriceLevel: z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>;
|
|
366
|
-
declare const
|
|
366
|
+
declare const Order: z.ZodObject<{
|
|
367
367
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
368
|
+
asset_id: z.ZodNumber;
|
|
369
|
+
order_id: z.ZodBigInt;
|
|
370
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
371
|
+
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
372
|
+
reduce_only: z.ZodBoolean;
|
|
373
|
+
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
374
|
+
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
375
|
+
owner: z.ZodString;
|
|
376
|
+
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
side: "Bid" | "Ask";
|
|
379
|
+
asset_id: number;
|
|
380
|
+
order_id: bigint;
|
|
381
|
+
price: import("decimal.js").Decimal;
|
|
382
|
+
remaining_size: import("decimal.js").Decimal;
|
|
383
|
+
reduce_only: boolean;
|
|
384
|
+
filled_size: import("decimal.js").Decimal;
|
|
385
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
386
|
+
owner: string;
|
|
387
|
+
tpsl_order_ids: bigint[];
|
|
388
|
+
}, {
|
|
389
|
+
side: "Bid" | "Ask";
|
|
390
|
+
asset_id: number;
|
|
391
|
+
order_id: bigint;
|
|
392
|
+
price: string | number;
|
|
393
|
+
remaining_size: string | number;
|
|
394
|
+
reduce_only: boolean;
|
|
395
|
+
filled_size: string | number;
|
|
396
|
+
average_filled_price: string | number;
|
|
397
|
+
owner: string;
|
|
398
|
+
tpsl_order_ids: bigint[];
|
|
399
|
+
}>;
|
|
400
|
+
declare const Tpsl: z.ZodObject<{
|
|
401
|
+
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
402
|
+
asset_id: z.ZodNumber;
|
|
368
403
|
tpsl_order_id: z.ZodBigInt;
|
|
369
404
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
370
405
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -373,10 +408,13 @@ declare const StrippedTpsl: z.ZodObject<{
|
|
|
373
408
|
active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
374
409
|
full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
375
410
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
411
|
+
owner: z.ZodString;
|
|
376
412
|
parent_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
377
413
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
378
414
|
}, "strip", z.ZodTypeAny, {
|
|
379
415
|
side: "Bid" | "Ask";
|
|
416
|
+
asset_id: number;
|
|
417
|
+
owner: string;
|
|
380
418
|
tpsl_order_id: bigint;
|
|
381
419
|
order_price: import("decimal.js").Decimal;
|
|
382
420
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -389,6 +427,8 @@ declare const StrippedTpsl: z.ZodObject<{
|
|
|
389
427
|
linked_tpsl_order_ids: bigint[];
|
|
390
428
|
}, {
|
|
391
429
|
side: "Bid" | "Ask";
|
|
430
|
+
asset_id: number;
|
|
431
|
+
owner: string;
|
|
392
432
|
tpsl_order_id: bigint;
|
|
393
433
|
order_price: string | number;
|
|
394
434
|
trigger_price: string | number;
|
|
@@ -402,40 +442,6 @@ declare const StrippedTpsl: z.ZodObject<{
|
|
|
402
442
|
}>;
|
|
403
443
|
export declare const Schemas: {
|
|
404
444
|
readonly DummyValue: z.ZodNumber;
|
|
405
|
-
readonly Order: z.ZodObject<{
|
|
406
|
-
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
407
|
-
asset_id: z.ZodNumber;
|
|
408
|
-
order_id: z.ZodBigInt;
|
|
409
|
-
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
410
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
411
|
-
reduce_only: z.ZodBoolean;
|
|
412
|
-
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
413
|
-
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
414
|
-
owner: z.ZodString;
|
|
415
|
-
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
416
|
-
}, "strip", z.ZodTypeAny, {
|
|
417
|
-
size: import("decimal.js").Decimal;
|
|
418
|
-
price: import("decimal.js").Decimal;
|
|
419
|
-
side: "Bid" | "Ask";
|
|
420
|
-
order_id: bigint;
|
|
421
|
-
reduce_only: boolean;
|
|
422
|
-
filled_size: import("decimal.js").Decimal;
|
|
423
|
-
average_filled_price: import("decimal.js").Decimal;
|
|
424
|
-
tpsl_order_ids: bigint[];
|
|
425
|
-
asset_id: number;
|
|
426
|
-
owner: string;
|
|
427
|
-
}, {
|
|
428
|
-
size: string | number;
|
|
429
|
-
price: string | number;
|
|
430
|
-
side: "Bid" | "Ask";
|
|
431
|
-
order_id: bigint;
|
|
432
|
-
reduce_only: boolean;
|
|
433
|
-
filled_size: string | number;
|
|
434
|
-
average_filled_price: string | number;
|
|
435
|
-
tpsl_order_ids: bigint[];
|
|
436
|
-
asset_id: number;
|
|
437
|
-
owner: string;
|
|
438
|
-
}>;
|
|
439
445
|
readonly OrderbookL2: z.ZodObject<{
|
|
440
446
|
asset_id: z.ZodNumber;
|
|
441
447
|
bids: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
@@ -473,6 +479,7 @@ export declare const Schemas: {
|
|
|
473
479
|
minimum_usdc_token_amount: string | number;
|
|
474
480
|
}>;
|
|
475
481
|
readonly UserAccount: z.ZodObject<{
|
|
482
|
+
address: z.ZodString;
|
|
476
483
|
usdc_ledger: z.ZodObject<{
|
|
477
484
|
ledger: z.ZodObject<{
|
|
478
485
|
weights: z.ZodObject<{
|
|
@@ -585,49 +592,59 @@ export declare const Schemas: {
|
|
|
585
592
|
}>>;
|
|
586
593
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
587
594
|
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
588
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
589
|
-
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
590
595
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
596
|
+
asset_id: z.ZodNumber;
|
|
591
597
|
order_id: z.ZodBigInt;
|
|
598
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
599
|
+
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
592
600
|
reduce_only: z.ZodBoolean;
|
|
593
601
|
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
594
602
|
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
603
|
+
owner: z.ZodString;
|
|
595
604
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
596
605
|
}, "strip", z.ZodTypeAny, {
|
|
597
|
-
size: import("decimal.js").Decimal;
|
|
598
|
-
price: import("decimal.js").Decimal;
|
|
599
606
|
side: "Bid" | "Ask";
|
|
607
|
+
asset_id: number;
|
|
600
608
|
order_id: bigint;
|
|
609
|
+
price: import("decimal.js").Decimal;
|
|
610
|
+
remaining_size: import("decimal.js").Decimal;
|
|
601
611
|
reduce_only: boolean;
|
|
602
612
|
filled_size: import("decimal.js").Decimal;
|
|
603
613
|
average_filled_price: import("decimal.js").Decimal;
|
|
614
|
+
owner: string;
|
|
604
615
|
tpsl_order_ids: bigint[];
|
|
605
616
|
}, {
|
|
606
|
-
size: string | number;
|
|
607
|
-
price: string | number;
|
|
608
617
|
side: "Bid" | "Ask";
|
|
618
|
+
asset_id: number;
|
|
609
619
|
order_id: bigint;
|
|
620
|
+
price: string | number;
|
|
621
|
+
remaining_size: string | number;
|
|
610
622
|
reduce_only: boolean;
|
|
611
623
|
filled_size: string | number;
|
|
612
624
|
average_filled_price: string | number;
|
|
625
|
+
owner: string;
|
|
613
626
|
tpsl_order_ids: bigint[];
|
|
614
627
|
}>>, Map<bigint, {
|
|
615
|
-
size: import("decimal.js").Decimal;
|
|
616
|
-
price: import("decimal.js").Decimal;
|
|
617
628
|
side: "Bid" | "Ask";
|
|
629
|
+
asset_id: number;
|
|
618
630
|
order_id: bigint;
|
|
631
|
+
price: import("decimal.js").Decimal;
|
|
632
|
+
remaining_size: import("decimal.js").Decimal;
|
|
619
633
|
reduce_only: boolean;
|
|
620
634
|
filled_size: import("decimal.js").Decimal;
|
|
621
635
|
average_filled_price: import("decimal.js").Decimal;
|
|
636
|
+
owner: string;
|
|
622
637
|
tpsl_order_ids: bigint[];
|
|
623
638
|
}>, Record<string, {
|
|
624
|
-
size: string | number;
|
|
625
|
-
price: string | number;
|
|
626
639
|
side: "Bid" | "Ask";
|
|
640
|
+
asset_id: number;
|
|
627
641
|
order_id: bigint;
|
|
642
|
+
price: string | number;
|
|
643
|
+
remaining_size: string | number;
|
|
628
644
|
reduce_only: boolean;
|
|
629
645
|
filled_size: string | number;
|
|
630
646
|
average_filled_price: string | number;
|
|
647
|
+
owner: string;
|
|
631
648
|
tpsl_order_ids: bigint[];
|
|
632
649
|
}>>;
|
|
633
650
|
position: z.ZodObject<{
|
|
@@ -658,6 +675,7 @@ export declare const Schemas: {
|
|
|
658
675
|
user_selected_max_leverage: z.ZodNumber;
|
|
659
676
|
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
660
677
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
678
|
+
asset_id: z.ZodNumber;
|
|
661
679
|
tpsl_order_id: z.ZodBigInt;
|
|
662
680
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
663
681
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -666,10 +684,13 @@ export declare const Schemas: {
|
|
|
666
684
|
active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
667
685
|
full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
668
686
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
687
|
+
owner: z.ZodString;
|
|
669
688
|
parent_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
670
689
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
671
690
|
}, "strip", z.ZodTypeAny, {
|
|
672
691
|
side: "Bid" | "Ask";
|
|
692
|
+
asset_id: number;
|
|
693
|
+
owner: string;
|
|
673
694
|
tpsl_order_id: bigint;
|
|
674
695
|
order_price: import("decimal.js").Decimal;
|
|
675
696
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -682,6 +703,8 @@ export declare const Schemas: {
|
|
|
682
703
|
linked_tpsl_order_ids: bigint[];
|
|
683
704
|
}, {
|
|
684
705
|
side: "Bid" | "Ask";
|
|
706
|
+
asset_id: number;
|
|
707
|
+
owner: string;
|
|
685
708
|
tpsl_order_id: bigint;
|
|
686
709
|
order_price: string | number;
|
|
687
710
|
trigger_price: string | number;
|
|
@@ -694,6 +717,8 @@ export declare const Schemas: {
|
|
|
694
717
|
linked_tpsl_order_ids: bigint[];
|
|
695
718
|
}>>, Map<bigint, {
|
|
696
719
|
side: "Bid" | "Ask";
|
|
720
|
+
asset_id: number;
|
|
721
|
+
owner: string;
|
|
697
722
|
tpsl_order_id: bigint;
|
|
698
723
|
order_price: import("decimal.js").Decimal;
|
|
699
724
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -706,6 +731,8 @@ export declare const Schemas: {
|
|
|
706
731
|
linked_tpsl_order_ids: bigint[];
|
|
707
732
|
}>, Record<string, {
|
|
708
733
|
side: "Bid" | "Ask";
|
|
734
|
+
asset_id: number;
|
|
735
|
+
owner: string;
|
|
709
736
|
tpsl_order_id: bigint;
|
|
710
737
|
order_price: string | number;
|
|
711
738
|
trigger_price: string | number;
|
|
@@ -719,13 +746,15 @@ export declare const Schemas: {
|
|
|
719
746
|
}>>;
|
|
720
747
|
}, "strip", z.ZodTypeAny, {
|
|
721
748
|
orders: Map<bigint, {
|
|
722
|
-
size: import("decimal.js").Decimal;
|
|
723
|
-
price: import("decimal.js").Decimal;
|
|
724
749
|
side: "Bid" | "Ask";
|
|
750
|
+
asset_id: number;
|
|
725
751
|
order_id: bigint;
|
|
752
|
+
price: import("decimal.js").Decimal;
|
|
753
|
+
remaining_size: import("decimal.js").Decimal;
|
|
726
754
|
reduce_only: boolean;
|
|
727
755
|
filled_size: import("decimal.js").Decimal;
|
|
728
756
|
average_filled_price: import("decimal.js").Decimal;
|
|
757
|
+
owner: string;
|
|
729
758
|
tpsl_order_ids: bigint[];
|
|
730
759
|
}>;
|
|
731
760
|
position: {
|
|
@@ -740,6 +769,8 @@ export declare const Schemas: {
|
|
|
740
769
|
user_selected_max_leverage: number;
|
|
741
770
|
tpsls: Map<bigint, {
|
|
742
771
|
side: "Bid" | "Ask";
|
|
772
|
+
asset_id: number;
|
|
773
|
+
owner: string;
|
|
743
774
|
tpsl_order_id: bigint;
|
|
744
775
|
order_price: import("decimal.js").Decimal;
|
|
745
776
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -753,13 +784,15 @@ export declare const Schemas: {
|
|
|
753
784
|
}>;
|
|
754
785
|
}, {
|
|
755
786
|
orders: Record<string, {
|
|
756
|
-
size: string | number;
|
|
757
|
-
price: string | number;
|
|
758
787
|
side: "Bid" | "Ask";
|
|
788
|
+
asset_id: number;
|
|
759
789
|
order_id: bigint;
|
|
790
|
+
price: string | number;
|
|
791
|
+
remaining_size: string | number;
|
|
760
792
|
reduce_only: boolean;
|
|
761
793
|
filled_size: string | number;
|
|
762
794
|
average_filled_price: string | number;
|
|
795
|
+
owner: string;
|
|
763
796
|
tpsl_order_ids: bigint[];
|
|
764
797
|
}>;
|
|
765
798
|
position: {
|
|
@@ -774,6 +807,8 @@ export declare const Schemas: {
|
|
|
774
807
|
user_selected_max_leverage: number;
|
|
775
808
|
tpsls: Record<string, {
|
|
776
809
|
side: "Bid" | "Ask";
|
|
810
|
+
asset_id: number;
|
|
811
|
+
owner: string;
|
|
777
812
|
tpsl_order_id: bigint;
|
|
778
813
|
order_price: string | number;
|
|
779
814
|
trigger_price: string | number;
|
|
@@ -787,13 +822,15 @@ export declare const Schemas: {
|
|
|
787
822
|
}>;
|
|
788
823
|
}>>, Map<number, {
|
|
789
824
|
orders: Map<bigint, {
|
|
790
|
-
size: import("decimal.js").Decimal;
|
|
791
|
-
price: import("decimal.js").Decimal;
|
|
792
825
|
side: "Bid" | "Ask";
|
|
826
|
+
asset_id: number;
|
|
793
827
|
order_id: bigint;
|
|
828
|
+
price: import("decimal.js").Decimal;
|
|
829
|
+
remaining_size: import("decimal.js").Decimal;
|
|
794
830
|
reduce_only: boolean;
|
|
795
831
|
filled_size: import("decimal.js").Decimal;
|
|
796
832
|
average_filled_price: import("decimal.js").Decimal;
|
|
833
|
+
owner: string;
|
|
797
834
|
tpsl_order_ids: bigint[];
|
|
798
835
|
}>;
|
|
799
836
|
position: {
|
|
@@ -808,6 +845,8 @@ export declare const Schemas: {
|
|
|
808
845
|
user_selected_max_leverage: number;
|
|
809
846
|
tpsls: Map<bigint, {
|
|
810
847
|
side: "Bid" | "Ask";
|
|
848
|
+
asset_id: number;
|
|
849
|
+
owner: string;
|
|
811
850
|
tpsl_order_id: bigint;
|
|
812
851
|
order_price: import("decimal.js").Decimal;
|
|
813
852
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -821,13 +860,15 @@ export declare const Schemas: {
|
|
|
821
860
|
}>;
|
|
822
861
|
}>, Record<string, {
|
|
823
862
|
orders: Record<string, {
|
|
824
|
-
size: string | number;
|
|
825
|
-
price: string | number;
|
|
826
863
|
side: "Bid" | "Ask";
|
|
864
|
+
asset_id: number;
|
|
827
865
|
order_id: bigint;
|
|
866
|
+
price: string | number;
|
|
867
|
+
remaining_size: string | number;
|
|
828
868
|
reduce_only: boolean;
|
|
829
869
|
filled_size: string | number;
|
|
830
870
|
average_filled_price: string | number;
|
|
871
|
+
owner: string;
|
|
831
872
|
tpsl_order_ids: bigint[];
|
|
832
873
|
}>;
|
|
833
874
|
position: {
|
|
@@ -842,6 +883,8 @@ export declare const Schemas: {
|
|
|
842
883
|
user_selected_max_leverage: number;
|
|
843
884
|
tpsls: Record<string, {
|
|
844
885
|
side: "Bid" | "Ask";
|
|
886
|
+
asset_id: number;
|
|
887
|
+
owner: string;
|
|
845
888
|
tpsl_order_id: bigint;
|
|
846
889
|
order_price: string | number;
|
|
847
890
|
trigger_price: string | number;
|
|
@@ -855,6 +898,7 @@ export declare const Schemas: {
|
|
|
855
898
|
}>;
|
|
856
899
|
}>>;
|
|
857
900
|
}, "strip", z.ZodTypeAny, {
|
|
901
|
+
address: string;
|
|
858
902
|
usdc_ledger: {
|
|
859
903
|
ledger: {
|
|
860
904
|
weights: {
|
|
@@ -879,13 +923,15 @@ export declare const Schemas: {
|
|
|
879
923
|
}>;
|
|
880
924
|
perp_ledgers: Map<number, {
|
|
881
925
|
orders: Map<bigint, {
|
|
882
|
-
size: import("decimal.js").Decimal;
|
|
883
|
-
price: import("decimal.js").Decimal;
|
|
884
926
|
side: "Bid" | "Ask";
|
|
927
|
+
asset_id: number;
|
|
885
928
|
order_id: bigint;
|
|
929
|
+
price: import("decimal.js").Decimal;
|
|
930
|
+
remaining_size: import("decimal.js").Decimal;
|
|
886
931
|
reduce_only: boolean;
|
|
887
932
|
filled_size: import("decimal.js").Decimal;
|
|
888
933
|
average_filled_price: import("decimal.js").Decimal;
|
|
934
|
+
owner: string;
|
|
889
935
|
tpsl_order_ids: bigint[];
|
|
890
936
|
}>;
|
|
891
937
|
position: {
|
|
@@ -900,6 +946,8 @@ export declare const Schemas: {
|
|
|
900
946
|
user_selected_max_leverage: number;
|
|
901
947
|
tpsls: Map<bigint, {
|
|
902
948
|
side: "Bid" | "Ask";
|
|
949
|
+
asset_id: number;
|
|
950
|
+
owner: string;
|
|
903
951
|
tpsl_order_id: bigint;
|
|
904
952
|
order_price: import("decimal.js").Decimal;
|
|
905
953
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -913,6 +961,7 @@ export declare const Schemas: {
|
|
|
913
961
|
}>;
|
|
914
962
|
}>;
|
|
915
963
|
}, {
|
|
964
|
+
address: string;
|
|
916
965
|
usdc_ledger: {
|
|
917
966
|
ledger: {
|
|
918
967
|
weights: {
|
|
@@ -937,13 +986,15 @@ export declare const Schemas: {
|
|
|
937
986
|
}>;
|
|
938
987
|
perp_ledgers: Record<string, {
|
|
939
988
|
orders: Record<string, {
|
|
940
|
-
size: string | number;
|
|
941
|
-
price: string | number;
|
|
942
989
|
side: "Bid" | "Ask";
|
|
990
|
+
asset_id: number;
|
|
943
991
|
order_id: bigint;
|
|
992
|
+
price: string | number;
|
|
993
|
+
remaining_size: string | number;
|
|
944
994
|
reduce_only: boolean;
|
|
945
995
|
filled_size: string | number;
|
|
946
996
|
average_filled_price: string | number;
|
|
997
|
+
owner: string;
|
|
947
998
|
tpsl_order_ids: bigint[];
|
|
948
999
|
}>;
|
|
949
1000
|
position: {
|
|
@@ -958,6 +1009,8 @@ export declare const Schemas: {
|
|
|
958
1009
|
user_selected_max_leverage: number;
|
|
959
1010
|
tpsls: Record<string, {
|
|
960
1011
|
side: "Bid" | "Ask";
|
|
1012
|
+
asset_id: number;
|
|
1013
|
+
owner: string;
|
|
961
1014
|
tpsl_order_id: bigint;
|
|
962
1015
|
order_price: string | number;
|
|
963
1016
|
trigger_price: string | number;
|
|
@@ -971,30 +1024,20 @@ export declare const Schemas: {
|
|
|
971
1024
|
}>;
|
|
972
1025
|
}>;
|
|
973
1026
|
}>;
|
|
974
|
-
readonly
|
|
1027
|
+
readonly OraclePrices: z.ZodObject<{
|
|
975
1028
|
pricing_frequency_seconds: z.ZodNumber;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}>>, Map<number, {
|
|
989
|
-
mark_price: import("decimal.js").Decimal;
|
|
990
|
-
oracle_price: import("decimal.js").Decimal;
|
|
991
|
-
publish_timestamp: bigint;
|
|
992
|
-
}>, Record<string, {
|
|
993
|
-
mark_price: string | number;
|
|
994
|
-
oracle_price: string | number;
|
|
995
|
-
publish_timestamp: bigint;
|
|
996
|
-
}>>;
|
|
997
|
-
premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1029
|
+
oracle_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1030
|
+
}, "strip", z.ZodTypeAny, {
|
|
1031
|
+
pricing_frequency_seconds: number;
|
|
1032
|
+
oracle_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1033
|
+
}, {
|
|
1034
|
+
pricing_frequency_seconds: number;
|
|
1035
|
+
oracle_prices: Record<string, [string | number, bigint]>;
|
|
1036
|
+
}>;
|
|
1037
|
+
readonly PerpPrices: z.ZodObject<{
|
|
1038
|
+
pricing_frequency_seconds: z.ZodNumber;
|
|
1039
|
+
mark_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1040
|
+
accum_premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
998
1041
|
weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
999
1042
|
duration_sum: z.ZodBigInt;
|
|
1000
1043
|
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
@@ -1019,12 +1062,8 @@ export declare const Schemas: {
|
|
|
1019
1062
|
accum_funding_per_lot: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1020
1063
|
}, "strip", z.ZodTypeAny, {
|
|
1021
1064
|
pricing_frequency_seconds: number;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
oracle_price: import("decimal.js").Decimal;
|
|
1025
|
-
publish_timestamp: bigint;
|
|
1026
|
-
}>;
|
|
1027
|
-
premium_index: Map<number, {
|
|
1065
|
+
mark_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1066
|
+
accum_premium_index: Map<number, {
|
|
1028
1067
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1029
1068
|
duration_sum: bigint;
|
|
1030
1069
|
last_update_timestamp: bigint | null;
|
|
@@ -1033,12 +1072,8 @@ export declare const Schemas: {
|
|
|
1033
1072
|
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1034
1073
|
}, {
|
|
1035
1074
|
pricing_frequency_seconds: number;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
oracle_price: string | number;
|
|
1039
|
-
publish_timestamp: bigint;
|
|
1040
|
-
}>;
|
|
1041
|
-
premium_index: Record<string, {
|
|
1075
|
+
mark_prices: Record<string, [string | number, bigint]>;
|
|
1076
|
+
accum_premium_index: Record<string, {
|
|
1042
1077
|
weighted_premium_sum: string | number;
|
|
1043
1078
|
duration_sum: bigint;
|
|
1044
1079
|
last_update_timestamp: bigint | null;
|
|
@@ -1047,6 +1082,8 @@ export declare const Schemas: {
|
|
|
1047
1082
|
accum_funding_per_lot: Record<string, [string | number, bigint]>;
|
|
1048
1083
|
}>;
|
|
1049
1084
|
readonly BorrowLendMarket: z.ZodObject<{
|
|
1085
|
+
asset_id: z.ZodNumber;
|
|
1086
|
+
token_id: z.ZodString;
|
|
1050
1087
|
is_active: z.ZodBoolean;
|
|
1051
1088
|
last_update_timestamp: z.ZodBigInt;
|
|
1052
1089
|
decimals: z.ZodNumber;
|
|
@@ -1111,6 +1148,8 @@ export declare const Schemas: {
|
|
|
1111
1148
|
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1112
1149
|
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1113
1150
|
}, "strip", z.ZodTypeAny, {
|
|
1151
|
+
token_id: string;
|
|
1152
|
+
asset_id: number;
|
|
1114
1153
|
last_update_timestamp: bigint;
|
|
1115
1154
|
is_active: boolean;
|
|
1116
1155
|
decimals: number;
|
|
@@ -1137,6 +1176,8 @@ export declare const Schemas: {
|
|
|
1137
1176
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1138
1177
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1139
1178
|
}, {
|
|
1179
|
+
token_id: string;
|
|
1180
|
+
asset_id: number;
|
|
1140
1181
|
last_update_timestamp: bigint;
|
|
1141
1182
|
is_active: boolean;
|
|
1142
1183
|
decimals: number;
|
|
@@ -1164,35 +1205,56 @@ export declare const Schemas: {
|
|
|
1164
1205
|
accumulated_protocol_fees: string | number;
|
|
1165
1206
|
}>;
|
|
1166
1207
|
readonly PerpMarket: z.ZodObject<{
|
|
1208
|
+
asset_id: z.ZodNumber;
|
|
1167
1209
|
is_active: z.ZodBoolean;
|
|
1168
1210
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1169
1211
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1212
|
+
funding_market_args: z.ZodObject<{
|
|
1213
|
+
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1214
|
+
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1215
|
+
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1216
|
+
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1217
|
+
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1218
|
+
}, "strip", z.ZodTypeAny, {
|
|
1219
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1220
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1221
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1222
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1223
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1224
|
+
}, {
|
|
1225
|
+
interest_rate: string | number;
|
|
1226
|
+
min_interest_rate_clamp: string | number;
|
|
1227
|
+
max_interest_rate_clamp: string | number;
|
|
1228
|
+
min_funding_rate_clamp: string | number;
|
|
1229
|
+
max_funding_rate_clamp: string | number;
|
|
1230
|
+
}>;
|
|
1174
1231
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1175
|
-
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1176
1232
|
}, "strip", z.ZodTypeAny, {
|
|
1233
|
+
asset_id: number;
|
|
1177
1234
|
is_active: boolean;
|
|
1178
1235
|
min_tick_size: import("decimal.js").Decimal;
|
|
1179
1236
|
min_lot_size: import("decimal.js").Decimal;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1237
|
+
funding_market_args: {
|
|
1238
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1239
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1240
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1241
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1242
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1243
|
+
};
|
|
1184
1244
|
impact_margin: import("decimal.js").Decimal;
|
|
1185
|
-
interest_rate: import("decimal.js").Decimal;
|
|
1186
1245
|
}, {
|
|
1246
|
+
asset_id: number;
|
|
1187
1247
|
is_active: boolean;
|
|
1188
1248
|
min_tick_size: string | number;
|
|
1189
1249
|
min_lot_size: string | number;
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1250
|
+
funding_market_args: {
|
|
1251
|
+
interest_rate: string | number;
|
|
1252
|
+
min_interest_rate_clamp: string | number;
|
|
1253
|
+
max_interest_rate_clamp: string | number;
|
|
1254
|
+
min_funding_rate_clamp: string | number;
|
|
1255
|
+
max_funding_rate_clamp: string | number;
|
|
1256
|
+
};
|
|
1194
1257
|
impact_margin: string | number;
|
|
1195
|
-
interest_rate: string | number;
|
|
1196
1258
|
}>;
|
|
1197
1259
|
readonly MarginConfig: z.ZodObject<{
|
|
1198
1260
|
perp_leverage_tables: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1305,61 +1367,61 @@ export declare const ResponseSchemas: {
|
|
|
1305
1367
|
asset_id: z.ZodNumber;
|
|
1306
1368
|
order_id: z.ZodBigInt;
|
|
1307
1369
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1308
|
-
|
|
1370
|
+
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1309
1371
|
reduce_only: z.ZodBoolean;
|
|
1310
1372
|
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1311
1373
|
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1312
1374
|
owner: z.ZodString;
|
|
1313
1375
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1314
1376
|
}, "strip", z.ZodTypeAny, {
|
|
1315
|
-
size: import("decimal.js").Decimal;
|
|
1316
|
-
price: import("decimal.js").Decimal;
|
|
1317
1377
|
side: "Bid" | "Ask";
|
|
1378
|
+
asset_id: number;
|
|
1318
1379
|
order_id: bigint;
|
|
1380
|
+
price: import("decimal.js").Decimal;
|
|
1381
|
+
remaining_size: import("decimal.js").Decimal;
|
|
1319
1382
|
reduce_only: boolean;
|
|
1320
1383
|
filled_size: import("decimal.js").Decimal;
|
|
1321
1384
|
average_filled_price: import("decimal.js").Decimal;
|
|
1322
|
-
tpsl_order_ids: bigint[];
|
|
1323
|
-
asset_id: number;
|
|
1324
1385
|
owner: string;
|
|
1386
|
+
tpsl_order_ids: bigint[];
|
|
1325
1387
|
}, {
|
|
1326
|
-
size: string | number;
|
|
1327
|
-
price: string | number;
|
|
1328
1388
|
side: "Bid" | "Ask";
|
|
1389
|
+
asset_id: number;
|
|
1329
1390
|
order_id: bigint;
|
|
1391
|
+
price: string | number;
|
|
1392
|
+
remaining_size: string | number;
|
|
1330
1393
|
reduce_only: boolean;
|
|
1331
1394
|
filled_size: string | number;
|
|
1332
1395
|
average_filled_price: string | number;
|
|
1333
|
-
tpsl_order_ids: bigint[];
|
|
1334
|
-
asset_id: number;
|
|
1335
1396
|
owner: string;
|
|
1397
|
+
tpsl_order_ids: bigint[];
|
|
1336
1398
|
}>>;
|
|
1337
1399
|
}, "strip", z.ZodTypeAny, {
|
|
1338
1400
|
value: {
|
|
1339
|
-
size: import("decimal.js").Decimal;
|
|
1340
|
-
price: import("decimal.js").Decimal;
|
|
1341
1401
|
side: "Bid" | "Ask";
|
|
1402
|
+
asset_id: number;
|
|
1342
1403
|
order_id: bigint;
|
|
1404
|
+
price: import("decimal.js").Decimal;
|
|
1405
|
+
remaining_size: import("decimal.js").Decimal;
|
|
1343
1406
|
reduce_only: boolean;
|
|
1344
1407
|
filled_size: import("decimal.js").Decimal;
|
|
1345
1408
|
average_filled_price: import("decimal.js").Decimal;
|
|
1346
|
-
tpsl_order_ids: bigint[];
|
|
1347
|
-
asset_id: number;
|
|
1348
1409
|
owner: string;
|
|
1410
|
+
tpsl_order_ids: bigint[];
|
|
1349
1411
|
} | null;
|
|
1350
1412
|
key: bigint;
|
|
1351
1413
|
}, {
|
|
1352
1414
|
value: {
|
|
1353
|
-
size: string | number;
|
|
1354
|
-
price: string | number;
|
|
1355
1415
|
side: "Bid" | "Ask";
|
|
1416
|
+
asset_id: number;
|
|
1356
1417
|
order_id: bigint;
|
|
1418
|
+
price: string | number;
|
|
1419
|
+
remaining_size: string | number;
|
|
1357
1420
|
reduce_only: boolean;
|
|
1358
1421
|
filled_size: string | number;
|
|
1359
1422
|
average_filled_price: string | number;
|
|
1360
|
-
tpsl_order_ids: bigint[];
|
|
1361
|
-
asset_id: number;
|
|
1362
1423
|
owner: string;
|
|
1424
|
+
tpsl_order_ids: bigint[];
|
|
1363
1425
|
} | null;
|
|
1364
1426
|
key: bigint;
|
|
1365
1427
|
}>;
|
|
@@ -1367,16 +1429,16 @@ export declare const ResponseSchemas: {
|
|
|
1367
1429
|
}, "strip", z.ZodTypeAny, {
|
|
1368
1430
|
data: {
|
|
1369
1431
|
value: {
|
|
1370
|
-
size: import("decimal.js").Decimal;
|
|
1371
|
-
price: import("decimal.js").Decimal;
|
|
1372
1432
|
side: "Bid" | "Ask";
|
|
1433
|
+
asset_id: number;
|
|
1373
1434
|
order_id: bigint;
|
|
1435
|
+
price: import("decimal.js").Decimal;
|
|
1436
|
+
remaining_size: import("decimal.js").Decimal;
|
|
1374
1437
|
reduce_only: boolean;
|
|
1375
1438
|
filled_size: import("decimal.js").Decimal;
|
|
1376
1439
|
average_filled_price: import("decimal.js").Decimal;
|
|
1377
|
-
tpsl_order_ids: bigint[];
|
|
1378
|
-
asset_id: number;
|
|
1379
1440
|
owner: string;
|
|
1441
|
+
tpsl_order_ids: bigint[];
|
|
1380
1442
|
} | null;
|
|
1381
1443
|
key: bigint;
|
|
1382
1444
|
};
|
|
@@ -1384,47 +1446,68 @@ export declare const ResponseSchemas: {
|
|
|
1384
1446
|
}, {
|
|
1385
1447
|
data: {
|
|
1386
1448
|
value: {
|
|
1387
|
-
size: string | number;
|
|
1388
|
-
price: string | number;
|
|
1389
1449
|
side: "Bid" | "Ask";
|
|
1450
|
+
asset_id: number;
|
|
1390
1451
|
order_id: bigint;
|
|
1452
|
+
price: string | number;
|
|
1453
|
+
remaining_size: string | number;
|
|
1391
1454
|
reduce_only: boolean;
|
|
1392
1455
|
filled_size: string | number;
|
|
1393
1456
|
average_filled_price: string | number;
|
|
1394
|
-
tpsl_order_ids: bigint[];
|
|
1395
|
-
asset_id: number;
|
|
1396
1457
|
owner: string;
|
|
1458
|
+
tpsl_order_ids: bigint[];
|
|
1397
1459
|
} | null;
|
|
1398
1460
|
key: bigint;
|
|
1399
1461
|
};
|
|
1400
1462
|
meta: Record<string, unknown> | null;
|
|
1401
1463
|
}>;
|
|
1402
|
-
readonly
|
|
1464
|
+
readonly OraclePrices: z.ZodObject<{
|
|
1403
1465
|
data: z.ZodObject<{
|
|
1404
1466
|
value: z.ZodNullable<z.ZodObject<{
|
|
1405
1467
|
pricing_frequency_seconds: z.ZodNumber;
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1468
|
+
oracle_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1469
|
+
}, "strip", z.ZodTypeAny, {
|
|
1470
|
+
pricing_frequency_seconds: number;
|
|
1471
|
+
oracle_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1472
|
+
}, {
|
|
1473
|
+
pricing_frequency_seconds: number;
|
|
1474
|
+
oracle_prices: Record<string, [string | number, bigint]>;
|
|
1475
|
+
}>>;
|
|
1476
|
+
}, "strip", z.ZodTypeAny, {
|
|
1477
|
+
value: {
|
|
1478
|
+
pricing_frequency_seconds: number;
|
|
1479
|
+
oracle_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1480
|
+
} | null;
|
|
1481
|
+
}, {
|
|
1482
|
+
value: {
|
|
1483
|
+
pricing_frequency_seconds: number;
|
|
1484
|
+
oracle_prices: Record<string, [string | number, bigint]>;
|
|
1485
|
+
} | null;
|
|
1486
|
+
}>;
|
|
1487
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
1488
|
+
}, "strip", z.ZodTypeAny, {
|
|
1489
|
+
data: {
|
|
1490
|
+
value: {
|
|
1491
|
+
pricing_frequency_seconds: number;
|
|
1492
|
+
oracle_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1493
|
+
} | null;
|
|
1494
|
+
};
|
|
1495
|
+
meta: Map<unknown, unknown> | null;
|
|
1496
|
+
}, {
|
|
1497
|
+
data: {
|
|
1498
|
+
value: {
|
|
1499
|
+
pricing_frequency_seconds: number;
|
|
1500
|
+
oracle_prices: Record<string, [string | number, bigint]>;
|
|
1501
|
+
} | null;
|
|
1502
|
+
};
|
|
1503
|
+
meta: Record<string, unknown> | null;
|
|
1504
|
+
}>;
|
|
1505
|
+
readonly PerpPrices: z.ZodObject<{
|
|
1506
|
+
data: z.ZodObject<{
|
|
1507
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
1508
|
+
pricing_frequency_seconds: z.ZodNumber;
|
|
1509
|
+
mark_prices: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1510
|
+
accum_premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1428
1511
|
weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1429
1512
|
duration_sum: z.ZodBigInt;
|
|
1430
1513
|
last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
|
|
@@ -1449,12 +1532,8 @@ export declare const ResponseSchemas: {
|
|
|
1449
1532
|
accum_funding_per_lot: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
|
|
1450
1533
|
}, "strip", z.ZodTypeAny, {
|
|
1451
1534
|
pricing_frequency_seconds: number;
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
oracle_price: import("decimal.js").Decimal;
|
|
1455
|
-
publish_timestamp: bigint;
|
|
1456
|
-
}>;
|
|
1457
|
-
premium_index: Map<number, {
|
|
1535
|
+
mark_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1536
|
+
accum_premium_index: Map<number, {
|
|
1458
1537
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1459
1538
|
duration_sum: bigint;
|
|
1460
1539
|
last_update_timestamp: bigint | null;
|
|
@@ -1463,12 +1542,8 @@ export declare const ResponseSchemas: {
|
|
|
1463
1542
|
accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1464
1543
|
}, {
|
|
1465
1544
|
pricing_frequency_seconds: number;
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
oracle_price: string | number;
|
|
1469
|
-
publish_timestamp: bigint;
|
|
1470
|
-
}>;
|
|
1471
|
-
premium_index: Record<string, {
|
|
1545
|
+
mark_prices: Record<string, [string | number, bigint]>;
|
|
1546
|
+
accum_premium_index: Record<string, {
|
|
1472
1547
|
weighted_premium_sum: string | number;
|
|
1473
1548
|
duration_sum: bigint;
|
|
1474
1549
|
last_update_timestamp: bigint | null;
|
|
@@ -1479,12 +1554,8 @@ export declare const ResponseSchemas: {
|
|
|
1479
1554
|
}, "strip", z.ZodTypeAny, {
|
|
1480
1555
|
value: {
|
|
1481
1556
|
pricing_frequency_seconds: number;
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
oracle_price: import("decimal.js").Decimal;
|
|
1485
|
-
publish_timestamp: bigint;
|
|
1486
|
-
}>;
|
|
1487
|
-
premium_index: Map<number, {
|
|
1557
|
+
mark_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1558
|
+
accum_premium_index: Map<number, {
|
|
1488
1559
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1489
1560
|
duration_sum: bigint;
|
|
1490
1561
|
last_update_timestamp: bigint | null;
|
|
@@ -1495,12 +1566,8 @@ export declare const ResponseSchemas: {
|
|
|
1495
1566
|
}, {
|
|
1496
1567
|
value: {
|
|
1497
1568
|
pricing_frequency_seconds: number;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
oracle_price: string | number;
|
|
1501
|
-
publish_timestamp: bigint;
|
|
1502
|
-
}>;
|
|
1503
|
-
premium_index: Record<string, {
|
|
1569
|
+
mark_prices: Record<string, [string | number, bigint]>;
|
|
1570
|
+
accum_premium_index: Record<string, {
|
|
1504
1571
|
weighted_premium_sum: string | number;
|
|
1505
1572
|
duration_sum: bigint;
|
|
1506
1573
|
last_update_timestamp: bigint | null;
|
|
@@ -1514,12 +1581,8 @@ export declare const ResponseSchemas: {
|
|
|
1514
1581
|
data: {
|
|
1515
1582
|
value: {
|
|
1516
1583
|
pricing_frequency_seconds: number;
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
oracle_price: import("decimal.js").Decimal;
|
|
1520
|
-
publish_timestamp: bigint;
|
|
1521
|
-
}>;
|
|
1522
|
-
premium_index: Map<number, {
|
|
1584
|
+
mark_prices: Map<number, [import("decimal.js").Decimal, bigint]>;
|
|
1585
|
+
accum_premium_index: Map<number, {
|
|
1523
1586
|
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1524
1587
|
duration_sum: bigint;
|
|
1525
1588
|
last_update_timestamp: bigint | null;
|
|
@@ -1533,12 +1596,8 @@ export declare const ResponseSchemas: {
|
|
|
1533
1596
|
data: {
|
|
1534
1597
|
value: {
|
|
1535
1598
|
pricing_frequency_seconds: number;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
oracle_price: string | number;
|
|
1539
|
-
publish_timestamp: bigint;
|
|
1540
|
-
}>;
|
|
1541
|
-
premium_index: Record<string, {
|
|
1599
|
+
mark_prices: Record<string, [string | number, bigint]>;
|
|
1600
|
+
accum_premium_index: Record<string, {
|
|
1542
1601
|
weighted_premium_sum: string | number;
|
|
1543
1602
|
duration_sum: bigint;
|
|
1544
1603
|
last_update_timestamp: bigint | null;
|
|
@@ -1638,104 +1697,10 @@ export declare const ResponseSchemas: {
|
|
|
1638
1697
|
};
|
|
1639
1698
|
meta: Record<string, unknown> | null;
|
|
1640
1699
|
}>;
|
|
1641
|
-
readonly PerpMarket: z.ZodObject<{
|
|
1642
|
-
data: z.ZodObject<{
|
|
1643
|
-
key: z.ZodNumber;
|
|
1644
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1645
|
-
is_active: z.ZodBoolean;
|
|
1646
|
-
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1647
|
-
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1648
|
-
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1649
|
-
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1650
|
-
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1651
|
-
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1652
|
-
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1653
|
-
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1654
|
-
}, "strip", z.ZodTypeAny, {
|
|
1655
|
-
is_active: boolean;
|
|
1656
|
-
min_tick_size: import("decimal.js").Decimal;
|
|
1657
|
-
min_lot_size: import("decimal.js").Decimal;
|
|
1658
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1659
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1660
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1661
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1662
|
-
impact_margin: import("decimal.js").Decimal;
|
|
1663
|
-
interest_rate: import("decimal.js").Decimal;
|
|
1664
|
-
}, {
|
|
1665
|
-
is_active: boolean;
|
|
1666
|
-
min_tick_size: string | number;
|
|
1667
|
-
min_lot_size: string | number;
|
|
1668
|
-
min_interest_rate_clamp: string | number;
|
|
1669
|
-
max_interest_rate_clamp: string | number;
|
|
1670
|
-
min_funding_rate_clamp: string | number;
|
|
1671
|
-
max_funding_rate_clamp: string | number;
|
|
1672
|
-
impact_margin: string | number;
|
|
1673
|
-
interest_rate: string | number;
|
|
1674
|
-
}>>;
|
|
1675
|
-
}, "strip", z.ZodTypeAny, {
|
|
1676
|
-
value: {
|
|
1677
|
-
is_active: boolean;
|
|
1678
|
-
min_tick_size: import("decimal.js").Decimal;
|
|
1679
|
-
min_lot_size: import("decimal.js").Decimal;
|
|
1680
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1681
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1682
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1683
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1684
|
-
impact_margin: import("decimal.js").Decimal;
|
|
1685
|
-
interest_rate: import("decimal.js").Decimal;
|
|
1686
|
-
} | null;
|
|
1687
|
-
key: number;
|
|
1688
|
-
}, {
|
|
1689
|
-
value: {
|
|
1690
|
-
is_active: boolean;
|
|
1691
|
-
min_tick_size: string | number;
|
|
1692
|
-
min_lot_size: string | number;
|
|
1693
|
-
min_interest_rate_clamp: string | number;
|
|
1694
|
-
max_interest_rate_clamp: string | number;
|
|
1695
|
-
min_funding_rate_clamp: string | number;
|
|
1696
|
-
max_funding_rate_clamp: string | number;
|
|
1697
|
-
impact_margin: string | number;
|
|
1698
|
-
interest_rate: string | number;
|
|
1699
|
-
} | null;
|
|
1700
|
-
key: number;
|
|
1701
|
-
}>;
|
|
1702
|
-
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
1703
|
-
}, "strip", z.ZodTypeAny, {
|
|
1704
|
-
data: {
|
|
1705
|
-
value: {
|
|
1706
|
-
is_active: boolean;
|
|
1707
|
-
min_tick_size: import("decimal.js").Decimal;
|
|
1708
|
-
min_lot_size: import("decimal.js").Decimal;
|
|
1709
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1710
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1711
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1712
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1713
|
-
impact_margin: import("decimal.js").Decimal;
|
|
1714
|
-
interest_rate: import("decimal.js").Decimal;
|
|
1715
|
-
} | null;
|
|
1716
|
-
key: number;
|
|
1717
|
-
};
|
|
1718
|
-
meta: Map<unknown, unknown> | null;
|
|
1719
|
-
}, {
|
|
1720
|
-
data: {
|
|
1721
|
-
value: {
|
|
1722
|
-
is_active: boolean;
|
|
1723
|
-
min_tick_size: string | number;
|
|
1724
|
-
min_lot_size: string | number;
|
|
1725
|
-
min_interest_rate_clamp: string | number;
|
|
1726
|
-
max_interest_rate_clamp: string | number;
|
|
1727
|
-
min_funding_rate_clamp: string | number;
|
|
1728
|
-
max_funding_rate_clamp: string | number;
|
|
1729
|
-
impact_margin: string | number;
|
|
1730
|
-
interest_rate: string | number;
|
|
1731
|
-
} | null;
|
|
1732
|
-
key: number;
|
|
1733
|
-
};
|
|
1734
|
-
meta: Record<string, unknown> | null;
|
|
1735
|
-
}>;
|
|
1736
1700
|
readonly OrderbookL2: z.ZodObject<{
|
|
1737
1701
|
data: z.ZodObject<{
|
|
1738
|
-
|
|
1702
|
+
asset_id: z.ZodNumber;
|
|
1703
|
+
orderbook: z.ZodObject<{
|
|
1739
1704
|
asset_id: z.ZodNumber;
|
|
1740
1705
|
bids: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1741
1706
|
asks: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
@@ -1749,13 +1714,15 @@ export declare const ResponseSchemas: {
|
|
|
1749
1714
|
asks: [string | number, string | number][];
|
|
1750
1715
|
}>;
|
|
1751
1716
|
}, "strip", z.ZodTypeAny, {
|
|
1752
|
-
|
|
1717
|
+
asset_id: number;
|
|
1718
|
+
orderbook: {
|
|
1753
1719
|
asset_id: number;
|
|
1754
1720
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1755
1721
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1756
1722
|
};
|
|
1757
1723
|
}, {
|
|
1758
|
-
|
|
1724
|
+
asset_id: number;
|
|
1725
|
+
orderbook: {
|
|
1759
1726
|
asset_id: number;
|
|
1760
1727
|
bids: [string | number, string | number][];
|
|
1761
1728
|
asks: [string | number, string | number][];
|
|
@@ -1764,7 +1731,8 @@ export declare const ResponseSchemas: {
|
|
|
1764
1731
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
1765
1732
|
}, "strip", z.ZodTypeAny, {
|
|
1766
1733
|
data: {
|
|
1767
|
-
|
|
1734
|
+
asset_id: number;
|
|
1735
|
+
orderbook: {
|
|
1768
1736
|
asset_id: number;
|
|
1769
1737
|
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1770
1738
|
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
@@ -1773,7 +1741,8 @@ export declare const ResponseSchemas: {
|
|
|
1773
1741
|
meta: Map<unknown, unknown> | null;
|
|
1774
1742
|
}, {
|
|
1775
1743
|
data: {
|
|
1776
|
-
|
|
1744
|
+
asset_id: number;
|
|
1745
|
+
orderbook: {
|
|
1777
1746
|
asset_id: number;
|
|
1778
1747
|
bids: [string | number, string | number][];
|
|
1779
1748
|
asks: [string | number, string | number][];
|
|
@@ -1781,9 +1750,72 @@ export declare const ResponseSchemas: {
|
|
|
1781
1750
|
};
|
|
1782
1751
|
meta: Record<string, unknown> | null;
|
|
1783
1752
|
}>;
|
|
1784
|
-
readonly
|
|
1753
|
+
readonly OrderbookL2Bulk: z.ZodObject<{
|
|
1785
1754
|
data: z.ZodObject<{
|
|
1786
|
-
|
|
1755
|
+
found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1756
|
+
asset_id: z.ZodNumber;
|
|
1757
|
+
bids: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1758
|
+
asks: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>], null>, "many">;
|
|
1759
|
+
}, "strip", z.ZodTypeAny, {
|
|
1760
|
+
asset_id: number;
|
|
1761
|
+
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1762
|
+
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1763
|
+
}, {
|
|
1764
|
+
asset_id: number;
|
|
1765
|
+
bids: [string | number, string | number][];
|
|
1766
|
+
asks: [string | number, string | number][];
|
|
1767
|
+
}>>, Map<number, {
|
|
1768
|
+
asset_id: number;
|
|
1769
|
+
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1770
|
+
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1771
|
+
}>, Record<string, {
|
|
1772
|
+
asset_id: number;
|
|
1773
|
+
bids: [string | number, string | number][];
|
|
1774
|
+
asks: [string | number, string | number][];
|
|
1775
|
+
}>>;
|
|
1776
|
+
not_found: z.ZodArray<z.ZodNumber, "many">;
|
|
1777
|
+
}, "strip", z.ZodTypeAny, {
|
|
1778
|
+
found: Map<number, {
|
|
1779
|
+
asset_id: number;
|
|
1780
|
+
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1781
|
+
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1782
|
+
}>;
|
|
1783
|
+
not_found: number[];
|
|
1784
|
+
}, {
|
|
1785
|
+
found: Record<string, {
|
|
1786
|
+
asset_id: number;
|
|
1787
|
+
bids: [string | number, string | number][];
|
|
1788
|
+
asks: [string | number, string | number][];
|
|
1789
|
+
}>;
|
|
1790
|
+
not_found: number[];
|
|
1791
|
+
}>;
|
|
1792
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
1793
|
+
}, "strip", z.ZodTypeAny, {
|
|
1794
|
+
data: {
|
|
1795
|
+
found: Map<number, {
|
|
1796
|
+
asset_id: number;
|
|
1797
|
+
bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1798
|
+
asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
|
|
1799
|
+
}>;
|
|
1800
|
+
not_found: number[];
|
|
1801
|
+
};
|
|
1802
|
+
meta: Map<unknown, unknown> | null;
|
|
1803
|
+
}, {
|
|
1804
|
+
data: {
|
|
1805
|
+
found: Record<string, {
|
|
1806
|
+
asset_id: number;
|
|
1807
|
+
bids: [string | number, string | number][];
|
|
1808
|
+
asks: [string | number, string | number][];
|
|
1809
|
+
}>;
|
|
1810
|
+
not_found: number[];
|
|
1811
|
+
};
|
|
1812
|
+
meta: Record<string, unknown> | null;
|
|
1813
|
+
}>;
|
|
1814
|
+
readonly Account: z.ZodObject<{
|
|
1815
|
+
data: z.ZodObject<{
|
|
1816
|
+
address: z.ZodString;
|
|
1817
|
+
account: z.ZodObject<{
|
|
1818
|
+
address: z.ZodString;
|
|
1787
1819
|
usdc_ledger: z.ZodObject<{
|
|
1788
1820
|
ledger: z.ZodObject<{
|
|
1789
1821
|
weights: z.ZodObject<{
|
|
@@ -1896,49 +1928,59 @@ export declare const ResponseSchemas: {
|
|
|
1896
1928
|
}>>;
|
|
1897
1929
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1898
1930
|
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1899
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1900
|
-
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1901
1931
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
1932
|
+
asset_id: z.ZodNumber;
|
|
1902
1933
|
order_id: z.ZodBigInt;
|
|
1934
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1935
|
+
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1903
1936
|
reduce_only: z.ZodBoolean;
|
|
1904
1937
|
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1905
1938
|
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1939
|
+
owner: z.ZodString;
|
|
1906
1940
|
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1907
1941
|
}, "strip", z.ZodTypeAny, {
|
|
1908
|
-
size: import("decimal.js").Decimal;
|
|
1909
|
-
price: import("decimal.js").Decimal;
|
|
1910
1942
|
side: "Bid" | "Ask";
|
|
1943
|
+
asset_id: number;
|
|
1911
1944
|
order_id: bigint;
|
|
1945
|
+
price: import("decimal.js").Decimal;
|
|
1946
|
+
remaining_size: import("decimal.js").Decimal;
|
|
1912
1947
|
reduce_only: boolean;
|
|
1913
1948
|
filled_size: import("decimal.js").Decimal;
|
|
1914
1949
|
average_filled_price: import("decimal.js").Decimal;
|
|
1950
|
+
owner: string;
|
|
1915
1951
|
tpsl_order_ids: bigint[];
|
|
1916
1952
|
}, {
|
|
1917
|
-
size: string | number;
|
|
1918
|
-
price: string | number;
|
|
1919
1953
|
side: "Bid" | "Ask";
|
|
1954
|
+
asset_id: number;
|
|
1920
1955
|
order_id: bigint;
|
|
1956
|
+
price: string | number;
|
|
1957
|
+
remaining_size: string | number;
|
|
1921
1958
|
reduce_only: boolean;
|
|
1922
1959
|
filled_size: string | number;
|
|
1923
1960
|
average_filled_price: string | number;
|
|
1961
|
+
owner: string;
|
|
1924
1962
|
tpsl_order_ids: bigint[];
|
|
1925
1963
|
}>>, Map<bigint, {
|
|
1926
|
-
size: import("decimal.js").Decimal;
|
|
1927
|
-
price: import("decimal.js").Decimal;
|
|
1928
1964
|
side: "Bid" | "Ask";
|
|
1965
|
+
asset_id: number;
|
|
1929
1966
|
order_id: bigint;
|
|
1967
|
+
price: import("decimal.js").Decimal;
|
|
1968
|
+
remaining_size: import("decimal.js").Decimal;
|
|
1930
1969
|
reduce_only: boolean;
|
|
1931
1970
|
filled_size: import("decimal.js").Decimal;
|
|
1932
1971
|
average_filled_price: import("decimal.js").Decimal;
|
|
1972
|
+
owner: string;
|
|
1933
1973
|
tpsl_order_ids: bigint[];
|
|
1934
1974
|
}>, Record<string, {
|
|
1935
|
-
size: string | number;
|
|
1936
|
-
price: string | number;
|
|
1937
1975
|
side: "Bid" | "Ask";
|
|
1976
|
+
asset_id: number;
|
|
1938
1977
|
order_id: bigint;
|
|
1978
|
+
price: string | number;
|
|
1979
|
+
remaining_size: string | number;
|
|
1939
1980
|
reduce_only: boolean;
|
|
1940
1981
|
filled_size: string | number;
|
|
1941
1982
|
average_filled_price: string | number;
|
|
1983
|
+
owner: string;
|
|
1942
1984
|
tpsl_order_ids: bigint[];
|
|
1943
1985
|
}>>;
|
|
1944
1986
|
position: z.ZodObject<{
|
|
@@ -1969,6 +2011,7 @@ export declare const ResponseSchemas: {
|
|
|
1969
2011
|
user_selected_max_leverage: z.ZodNumber;
|
|
1970
2012
|
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1971
2013
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
2014
|
+
asset_id: z.ZodNumber;
|
|
1972
2015
|
tpsl_order_id: z.ZodBigInt;
|
|
1973
2016
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1974
2017
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1977,10 +2020,13 @@ export declare const ResponseSchemas: {
|
|
|
1977
2020
|
active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1978
2021
|
full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1979
2022
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
2023
|
+
owner: z.ZodString;
|
|
1980
2024
|
parent_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
1981
2025
|
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
1982
2026
|
}, "strip", z.ZodTypeAny, {
|
|
1983
2027
|
side: "Bid" | "Ask";
|
|
2028
|
+
asset_id: number;
|
|
2029
|
+
owner: string;
|
|
1984
2030
|
tpsl_order_id: bigint;
|
|
1985
2031
|
order_price: import("decimal.js").Decimal;
|
|
1986
2032
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -1993,6 +2039,8 @@ export declare const ResponseSchemas: {
|
|
|
1993
2039
|
linked_tpsl_order_ids: bigint[];
|
|
1994
2040
|
}, {
|
|
1995
2041
|
side: "Bid" | "Ask";
|
|
2042
|
+
asset_id: number;
|
|
2043
|
+
owner: string;
|
|
1996
2044
|
tpsl_order_id: bigint;
|
|
1997
2045
|
order_price: string | number;
|
|
1998
2046
|
trigger_price: string | number;
|
|
@@ -2005,6 +2053,8 @@ export declare const ResponseSchemas: {
|
|
|
2005
2053
|
linked_tpsl_order_ids: bigint[];
|
|
2006
2054
|
}>>, Map<bigint, {
|
|
2007
2055
|
side: "Bid" | "Ask";
|
|
2056
|
+
asset_id: number;
|
|
2057
|
+
owner: string;
|
|
2008
2058
|
tpsl_order_id: bigint;
|
|
2009
2059
|
order_price: import("decimal.js").Decimal;
|
|
2010
2060
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -2017,6 +2067,8 @@ export declare const ResponseSchemas: {
|
|
|
2017
2067
|
linked_tpsl_order_ids: bigint[];
|
|
2018
2068
|
}>, Record<string, {
|
|
2019
2069
|
side: "Bid" | "Ask";
|
|
2070
|
+
asset_id: number;
|
|
2071
|
+
owner: string;
|
|
2020
2072
|
tpsl_order_id: bigint;
|
|
2021
2073
|
order_price: string | number;
|
|
2022
2074
|
trigger_price: string | number;
|
|
@@ -2030,13 +2082,15 @@ export declare const ResponseSchemas: {
|
|
|
2030
2082
|
}>>;
|
|
2031
2083
|
}, "strip", z.ZodTypeAny, {
|
|
2032
2084
|
orders: Map<bigint, {
|
|
2033
|
-
size: import("decimal.js").Decimal;
|
|
2034
|
-
price: import("decimal.js").Decimal;
|
|
2035
2085
|
side: "Bid" | "Ask";
|
|
2086
|
+
asset_id: number;
|
|
2036
2087
|
order_id: bigint;
|
|
2088
|
+
price: import("decimal.js").Decimal;
|
|
2089
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2037
2090
|
reduce_only: boolean;
|
|
2038
2091
|
filled_size: import("decimal.js").Decimal;
|
|
2039
2092
|
average_filled_price: import("decimal.js").Decimal;
|
|
2093
|
+
owner: string;
|
|
2040
2094
|
tpsl_order_ids: bigint[];
|
|
2041
2095
|
}>;
|
|
2042
2096
|
position: {
|
|
@@ -2051,6 +2105,8 @@ export declare const ResponseSchemas: {
|
|
|
2051
2105
|
user_selected_max_leverage: number;
|
|
2052
2106
|
tpsls: Map<bigint, {
|
|
2053
2107
|
side: "Bid" | "Ask";
|
|
2108
|
+
asset_id: number;
|
|
2109
|
+
owner: string;
|
|
2054
2110
|
tpsl_order_id: bigint;
|
|
2055
2111
|
order_price: import("decimal.js").Decimal;
|
|
2056
2112
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -2064,13 +2120,15 @@ export declare const ResponseSchemas: {
|
|
|
2064
2120
|
}>;
|
|
2065
2121
|
}, {
|
|
2066
2122
|
orders: Record<string, {
|
|
2067
|
-
size: string | number;
|
|
2068
|
-
price: string | number;
|
|
2069
2123
|
side: "Bid" | "Ask";
|
|
2124
|
+
asset_id: number;
|
|
2070
2125
|
order_id: bigint;
|
|
2126
|
+
price: string | number;
|
|
2127
|
+
remaining_size: string | number;
|
|
2071
2128
|
reduce_only: boolean;
|
|
2072
2129
|
filled_size: string | number;
|
|
2073
2130
|
average_filled_price: string | number;
|
|
2131
|
+
owner: string;
|
|
2074
2132
|
tpsl_order_ids: bigint[];
|
|
2075
2133
|
}>;
|
|
2076
2134
|
position: {
|
|
@@ -2085,6 +2143,8 @@ export declare const ResponseSchemas: {
|
|
|
2085
2143
|
user_selected_max_leverage: number;
|
|
2086
2144
|
tpsls: Record<string, {
|
|
2087
2145
|
side: "Bid" | "Ask";
|
|
2146
|
+
asset_id: number;
|
|
2147
|
+
owner: string;
|
|
2088
2148
|
tpsl_order_id: bigint;
|
|
2089
2149
|
order_price: string | number;
|
|
2090
2150
|
trigger_price: string | number;
|
|
@@ -2098,13 +2158,15 @@ export declare const ResponseSchemas: {
|
|
|
2098
2158
|
}>;
|
|
2099
2159
|
}>>, Map<number, {
|
|
2100
2160
|
orders: Map<bigint, {
|
|
2101
|
-
size: import("decimal.js").Decimal;
|
|
2102
|
-
price: import("decimal.js").Decimal;
|
|
2103
2161
|
side: "Bid" | "Ask";
|
|
2162
|
+
asset_id: number;
|
|
2104
2163
|
order_id: bigint;
|
|
2164
|
+
price: import("decimal.js").Decimal;
|
|
2165
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2105
2166
|
reduce_only: boolean;
|
|
2106
2167
|
filled_size: import("decimal.js").Decimal;
|
|
2107
2168
|
average_filled_price: import("decimal.js").Decimal;
|
|
2169
|
+
owner: string;
|
|
2108
2170
|
tpsl_order_ids: bigint[];
|
|
2109
2171
|
}>;
|
|
2110
2172
|
position: {
|
|
@@ -2119,6 +2181,8 @@ export declare const ResponseSchemas: {
|
|
|
2119
2181
|
user_selected_max_leverage: number;
|
|
2120
2182
|
tpsls: Map<bigint, {
|
|
2121
2183
|
side: "Bid" | "Ask";
|
|
2184
|
+
asset_id: number;
|
|
2185
|
+
owner: string;
|
|
2122
2186
|
tpsl_order_id: bigint;
|
|
2123
2187
|
order_price: import("decimal.js").Decimal;
|
|
2124
2188
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -2132,13 +2196,15 @@ export declare const ResponseSchemas: {
|
|
|
2132
2196
|
}>;
|
|
2133
2197
|
}>, Record<string, {
|
|
2134
2198
|
orders: Record<string, {
|
|
2135
|
-
size: string | number;
|
|
2136
|
-
price: string | number;
|
|
2137
2199
|
side: "Bid" | "Ask";
|
|
2200
|
+
asset_id: number;
|
|
2138
2201
|
order_id: bigint;
|
|
2202
|
+
price: string | number;
|
|
2203
|
+
remaining_size: string | number;
|
|
2139
2204
|
reduce_only: boolean;
|
|
2140
2205
|
filled_size: string | number;
|
|
2141
2206
|
average_filled_price: string | number;
|
|
2207
|
+
owner: string;
|
|
2142
2208
|
tpsl_order_ids: bigint[];
|
|
2143
2209
|
}>;
|
|
2144
2210
|
position: {
|
|
@@ -2153,6 +2219,8 @@ export declare const ResponseSchemas: {
|
|
|
2153
2219
|
user_selected_max_leverage: number;
|
|
2154
2220
|
tpsls: Record<string, {
|
|
2155
2221
|
side: "Bid" | "Ask";
|
|
2222
|
+
asset_id: number;
|
|
2223
|
+
owner: string;
|
|
2156
2224
|
tpsl_order_id: bigint;
|
|
2157
2225
|
order_price: string | number;
|
|
2158
2226
|
trigger_price: string | number;
|
|
@@ -2166,6 +2234,7 @@ export declare const ResponseSchemas: {
|
|
|
2166
2234
|
}>;
|
|
2167
2235
|
}>>;
|
|
2168
2236
|
}, "strip", z.ZodTypeAny, {
|
|
2237
|
+
address: string;
|
|
2169
2238
|
usdc_ledger: {
|
|
2170
2239
|
ledger: {
|
|
2171
2240
|
weights: {
|
|
@@ -2190,13 +2259,15 @@ export declare const ResponseSchemas: {
|
|
|
2190
2259
|
}>;
|
|
2191
2260
|
perp_ledgers: Map<number, {
|
|
2192
2261
|
orders: Map<bigint, {
|
|
2193
|
-
size: import("decimal.js").Decimal;
|
|
2194
|
-
price: import("decimal.js").Decimal;
|
|
2195
2262
|
side: "Bid" | "Ask";
|
|
2263
|
+
asset_id: number;
|
|
2196
2264
|
order_id: bigint;
|
|
2265
|
+
price: import("decimal.js").Decimal;
|
|
2266
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2197
2267
|
reduce_only: boolean;
|
|
2198
2268
|
filled_size: import("decimal.js").Decimal;
|
|
2199
2269
|
average_filled_price: import("decimal.js").Decimal;
|
|
2270
|
+
owner: string;
|
|
2200
2271
|
tpsl_order_ids: bigint[];
|
|
2201
2272
|
}>;
|
|
2202
2273
|
position: {
|
|
@@ -2211,6 +2282,8 @@ export declare const ResponseSchemas: {
|
|
|
2211
2282
|
user_selected_max_leverage: number;
|
|
2212
2283
|
tpsls: Map<bigint, {
|
|
2213
2284
|
side: "Bid" | "Ask";
|
|
2285
|
+
asset_id: number;
|
|
2286
|
+
owner: string;
|
|
2214
2287
|
tpsl_order_id: bigint;
|
|
2215
2288
|
order_price: import("decimal.js").Decimal;
|
|
2216
2289
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -2224,6 +2297,7 @@ export declare const ResponseSchemas: {
|
|
|
2224
2297
|
}>;
|
|
2225
2298
|
}>;
|
|
2226
2299
|
}, {
|
|
2300
|
+
address: string;
|
|
2227
2301
|
usdc_ledger: {
|
|
2228
2302
|
ledger: {
|
|
2229
2303
|
weights: {
|
|
@@ -2248,13 +2322,15 @@ export declare const ResponseSchemas: {
|
|
|
2248
2322
|
}>;
|
|
2249
2323
|
perp_ledgers: Record<string, {
|
|
2250
2324
|
orders: Record<string, {
|
|
2251
|
-
size: string | number;
|
|
2252
|
-
price: string | number;
|
|
2253
2325
|
side: "Bid" | "Ask";
|
|
2326
|
+
asset_id: number;
|
|
2254
2327
|
order_id: bigint;
|
|
2328
|
+
price: string | number;
|
|
2329
|
+
remaining_size: string | number;
|
|
2255
2330
|
reduce_only: boolean;
|
|
2256
2331
|
filled_size: string | number;
|
|
2257
2332
|
average_filled_price: string | number;
|
|
2333
|
+
owner: string;
|
|
2258
2334
|
tpsl_order_ids: bigint[];
|
|
2259
2335
|
}>;
|
|
2260
2336
|
position: {
|
|
@@ -2269,6 +2345,8 @@ export declare const ResponseSchemas: {
|
|
|
2269
2345
|
user_selected_max_leverage: number;
|
|
2270
2346
|
tpsls: Record<string, {
|
|
2271
2347
|
side: "Bid" | "Ask";
|
|
2348
|
+
asset_id: number;
|
|
2349
|
+
owner: string;
|
|
2272
2350
|
tpsl_order_id: bigint;
|
|
2273
2351
|
order_price: string | number;
|
|
2274
2352
|
trigger_price: string | number;
|
|
@@ -2281,7 +2359,11 @@ export declare const ResponseSchemas: {
|
|
|
2281
2359
|
linked_tpsl_order_ids: bigint[];
|
|
2282
2360
|
}>;
|
|
2283
2361
|
}>;
|
|
2284
|
-
}
|
|
2362
|
+
}>;
|
|
2363
|
+
}, "strip", z.ZodTypeAny, {
|
|
2364
|
+
address: string;
|
|
2365
|
+
account: {
|
|
2366
|
+
address: string;
|
|
2285
2367
|
usdc_ledger: {
|
|
2286
2368
|
ledger: {
|
|
2287
2369
|
weights: {
|
|
@@ -2306,13 +2388,15 @@ export declare const ResponseSchemas: {
|
|
|
2306
2388
|
}>;
|
|
2307
2389
|
perp_ledgers: Map<number, {
|
|
2308
2390
|
orders: Map<bigint, {
|
|
2309
|
-
size: import("decimal.js").Decimal;
|
|
2310
|
-
price: import("decimal.js").Decimal;
|
|
2311
2391
|
side: "Bid" | "Ask";
|
|
2392
|
+
asset_id: number;
|
|
2312
2393
|
order_id: bigint;
|
|
2394
|
+
price: import("decimal.js").Decimal;
|
|
2395
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2313
2396
|
reduce_only: boolean;
|
|
2314
2397
|
filled_size: import("decimal.js").Decimal;
|
|
2315
2398
|
average_filled_price: import("decimal.js").Decimal;
|
|
2399
|
+
owner: string;
|
|
2316
2400
|
tpsl_order_ids: bigint[];
|
|
2317
2401
|
}>;
|
|
2318
2402
|
position: {
|
|
@@ -2327,6 +2411,8 @@ export declare const ResponseSchemas: {
|
|
|
2327
2411
|
user_selected_max_leverage: number;
|
|
2328
2412
|
tpsls: Map<bigint, {
|
|
2329
2413
|
side: "Bid" | "Ask";
|
|
2414
|
+
asset_id: number;
|
|
2415
|
+
owner: string;
|
|
2330
2416
|
tpsl_order_id: bigint;
|
|
2331
2417
|
order_price: import("decimal.js").Decimal;
|
|
2332
2418
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -2339,7 +2425,11 @@ export declare const ResponseSchemas: {
|
|
|
2339
2425
|
linked_tpsl_order_ids: bigint[];
|
|
2340
2426
|
}>;
|
|
2341
2427
|
}>;
|
|
2342
|
-
}
|
|
2428
|
+
};
|
|
2429
|
+
}, {
|
|
2430
|
+
address: string;
|
|
2431
|
+
account: {
|
|
2432
|
+
address: string;
|
|
2343
2433
|
usdc_ledger: {
|
|
2344
2434
|
ledger: {
|
|
2345
2435
|
weights: {
|
|
@@ -2364,13 +2454,15 @@ export declare const ResponseSchemas: {
|
|
|
2364
2454
|
}>;
|
|
2365
2455
|
perp_ledgers: Record<string, {
|
|
2366
2456
|
orders: Record<string, {
|
|
2367
|
-
size: string | number;
|
|
2368
|
-
price: string | number;
|
|
2369
2457
|
side: "Bid" | "Ask";
|
|
2458
|
+
asset_id: number;
|
|
2370
2459
|
order_id: bigint;
|
|
2460
|
+
price: string | number;
|
|
2461
|
+
remaining_size: string | number;
|
|
2371
2462
|
reduce_only: boolean;
|
|
2372
2463
|
filled_size: string | number;
|
|
2373
2464
|
average_filled_price: string | number;
|
|
2465
|
+
owner: string;
|
|
2374
2466
|
tpsl_order_ids: bigint[];
|
|
2375
2467
|
}>;
|
|
2376
2468
|
position: {
|
|
@@ -2385,6 +2477,8 @@ export declare const ResponseSchemas: {
|
|
|
2385
2477
|
user_selected_max_leverage: number;
|
|
2386
2478
|
tpsls: Record<string, {
|
|
2387
2479
|
side: "Bid" | "Ask";
|
|
2480
|
+
asset_id: number;
|
|
2481
|
+
owner: string;
|
|
2388
2482
|
tpsl_order_id: bigint;
|
|
2389
2483
|
order_price: string | number;
|
|
2390
2484
|
trigger_price: string | number;
|
|
@@ -2397,9 +2491,14 @@ export declare const ResponseSchemas: {
|
|
|
2397
2491
|
linked_tpsl_order_ids: bigint[];
|
|
2398
2492
|
}>;
|
|
2399
2493
|
}>;
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2494
|
+
};
|
|
2495
|
+
}>;
|
|
2496
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
2497
|
+
}, "strip", z.ZodTypeAny, {
|
|
2498
|
+
data: {
|
|
2499
|
+
address: string;
|
|
2500
|
+
account: {
|
|
2501
|
+
address: string;
|
|
2403
2502
|
usdc_ledger: {
|
|
2404
2503
|
ledger: {
|
|
2405
2504
|
weights: {
|
|
@@ -2424,13 +2523,15 @@ export declare const ResponseSchemas: {
|
|
|
2424
2523
|
}>;
|
|
2425
2524
|
perp_ledgers: Map<number, {
|
|
2426
2525
|
orders: Map<bigint, {
|
|
2427
|
-
size: import("decimal.js").Decimal;
|
|
2428
|
-
price: import("decimal.js").Decimal;
|
|
2429
2526
|
side: "Bid" | "Ask";
|
|
2527
|
+
asset_id: number;
|
|
2430
2528
|
order_id: bigint;
|
|
2529
|
+
price: import("decimal.js").Decimal;
|
|
2530
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2431
2531
|
reduce_only: boolean;
|
|
2432
2532
|
filled_size: import("decimal.js").Decimal;
|
|
2433
2533
|
average_filled_price: import("decimal.js").Decimal;
|
|
2534
|
+
owner: string;
|
|
2434
2535
|
tpsl_order_ids: bigint[];
|
|
2435
2536
|
}>;
|
|
2436
2537
|
position: {
|
|
@@ -2445,6 +2546,8 @@ export declare const ResponseSchemas: {
|
|
|
2445
2546
|
user_selected_max_leverage: number;
|
|
2446
2547
|
tpsls: Map<bigint, {
|
|
2447
2548
|
side: "Bid" | "Ask";
|
|
2549
|
+
asset_id: number;
|
|
2550
|
+
owner: string;
|
|
2448
2551
|
tpsl_order_id: bigint;
|
|
2449
2552
|
order_price: import("decimal.js").Decimal;
|
|
2450
2553
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -2457,9 +2560,14 @@ export declare const ResponseSchemas: {
|
|
|
2457
2560
|
linked_tpsl_order_ids: bigint[];
|
|
2458
2561
|
}>;
|
|
2459
2562
|
}>;
|
|
2460
|
-
}
|
|
2461
|
-
}
|
|
2462
|
-
|
|
2563
|
+
};
|
|
2564
|
+
};
|
|
2565
|
+
meta: Map<unknown, unknown> | null;
|
|
2566
|
+
}, {
|
|
2567
|
+
data: {
|
|
2568
|
+
address: string;
|
|
2569
|
+
account: {
|
|
2570
|
+
address: string;
|
|
2463
2571
|
usdc_ledger: {
|
|
2464
2572
|
ledger: {
|
|
2465
2573
|
weights: {
|
|
@@ -2484,13 +2592,15 @@ export declare const ResponseSchemas: {
|
|
|
2484
2592
|
}>;
|
|
2485
2593
|
perp_ledgers: Record<string, {
|
|
2486
2594
|
orders: Record<string, {
|
|
2487
|
-
size: string | number;
|
|
2488
|
-
price: string | number;
|
|
2489
2595
|
side: "Bid" | "Ask";
|
|
2596
|
+
asset_id: number;
|
|
2490
2597
|
order_id: bigint;
|
|
2598
|
+
price: string | number;
|
|
2599
|
+
remaining_size: string | number;
|
|
2491
2600
|
reduce_only: boolean;
|
|
2492
2601
|
filled_size: string | number;
|
|
2493
2602
|
average_filled_price: string | number;
|
|
2603
|
+
owner: string;
|
|
2494
2604
|
tpsl_order_ids: bigint[];
|
|
2495
2605
|
}>;
|
|
2496
2606
|
position: {
|
|
@@ -2505,6 +2615,8 @@ export declare const ResponseSchemas: {
|
|
|
2505
2615
|
user_selected_max_leverage: number;
|
|
2506
2616
|
tpsls: Record<string, {
|
|
2507
2617
|
side: "Bid" | "Ask";
|
|
2618
|
+
asset_id: number;
|
|
2619
|
+
owner: string;
|
|
2508
2620
|
tpsl_order_id: bigint;
|
|
2509
2621
|
order_price: string | number;
|
|
2510
2622
|
trigger_price: string | number;
|
|
@@ -2517,13 +2629,51 @@ export declare const ResponseSchemas: {
|
|
|
2517
2629
|
linked_tpsl_order_ids: bigint[];
|
|
2518
2630
|
}>;
|
|
2519
2631
|
}>;
|
|
2520
|
-
}
|
|
2521
|
-
}
|
|
2522
|
-
meta:
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
2634
|
+
meta: Record<string, unknown> | null;
|
|
2635
|
+
}>;
|
|
2636
|
+
readonly AccountBulk: z.ZodObject<{
|
|
2637
|
+
data: z.ZodObject<{
|
|
2638
|
+
found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2639
|
+
address: z.ZodString;
|
|
2640
|
+
usdc_ledger: z.ZodObject<{
|
|
2641
|
+
ledger: z.ZodObject<{
|
|
2642
|
+
weights: z.ZodObject<{
|
|
2643
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2644
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2645
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2646
|
+
}, "strip", z.ZodTypeAny, {
|
|
2647
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2648
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2649
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2650
|
+
}, {
|
|
2651
|
+
asset_weight: string | number;
|
|
2652
|
+
initial_liability_weight: string | number;
|
|
2653
|
+
maintenance_liability_weight: string | number;
|
|
2654
|
+
}>;
|
|
2655
|
+
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2656
|
+
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2657
|
+
}, "strip", z.ZodTypeAny, {
|
|
2658
|
+
weights: {
|
|
2659
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2660
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2661
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2662
|
+
};
|
|
2663
|
+
asset: import("decimal.js").Decimal;
|
|
2664
|
+
liability: import("decimal.js").Decimal;
|
|
2665
|
+
}, {
|
|
2666
|
+
weights: {
|
|
2667
|
+
asset_weight: string | number;
|
|
2668
|
+
initial_liability_weight: string | number;
|
|
2669
|
+
maintenance_liability_weight: string | number;
|
|
2670
|
+
};
|
|
2671
|
+
asset: string | number;
|
|
2672
|
+
liability: string | number;
|
|
2673
|
+
}>;
|
|
2674
|
+
unrealized_loss_borrow: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2675
|
+
unsettled_perp_profit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2676
|
+
}, "strip", z.ZodTypeAny, {
|
|
2527
2677
|
ledger: {
|
|
2528
2678
|
weights: {
|
|
2529
2679
|
asset_weight: import("decimal.js").Decimal;
|
|
@@ -2535,58 +2685,7 @@ export declare const ResponseSchemas: {
|
|
|
2535
2685
|
};
|
|
2536
2686
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
2537
2687
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
2538
|
-
}
|
|
2539
|
-
spot_ledgers: Map<number, {
|
|
2540
|
-
weights: {
|
|
2541
|
-
asset_weight: import("decimal.js").Decimal;
|
|
2542
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
2543
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2544
|
-
};
|
|
2545
|
-
asset: import("decimal.js").Decimal;
|
|
2546
|
-
liability: import("decimal.js").Decimal;
|
|
2547
|
-
}>;
|
|
2548
|
-
perp_ledgers: Map<number, {
|
|
2549
|
-
orders: Map<bigint, {
|
|
2550
|
-
size: import("decimal.js").Decimal;
|
|
2551
|
-
price: import("decimal.js").Decimal;
|
|
2552
|
-
side: "Bid" | "Ask";
|
|
2553
|
-
order_id: bigint;
|
|
2554
|
-
reduce_only: boolean;
|
|
2555
|
-
filled_size: import("decimal.js").Decimal;
|
|
2556
|
-
average_filled_price: import("decimal.js").Decimal;
|
|
2557
|
-
tpsl_order_ids: bigint[];
|
|
2558
|
-
}>;
|
|
2559
|
-
position: {
|
|
2560
|
-
size: import("decimal.js").Decimal;
|
|
2561
|
-
cost_of_trades: import("decimal.js").Decimal;
|
|
2562
|
-
realized_pnl: import("decimal.js").Decimal;
|
|
2563
|
-
cached_mark_price: import("decimal.js").Decimal;
|
|
2564
|
-
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
2565
|
-
funding_payments_on_side: import("decimal.js").Decimal;
|
|
2566
|
-
funding_payments_on_position: import("decimal.js").Decimal;
|
|
2567
|
-
};
|
|
2568
|
-
user_selected_max_leverage: number;
|
|
2569
|
-
tpsls: Map<bigint, {
|
|
2570
|
-
side: "Bid" | "Ask";
|
|
2571
|
-
tpsl_order_id: bigint;
|
|
2572
|
-
order_price: import("decimal.js").Decimal;
|
|
2573
|
-
trigger_price: import("decimal.js").Decimal;
|
|
2574
|
-
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2575
|
-
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2576
|
-
active_size: import("decimal.js").Decimal;
|
|
2577
|
-
full_size: import("decimal.js").Decimal;
|
|
2578
|
-
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2579
|
-
parent_order_id: bigint | null;
|
|
2580
|
-
linked_tpsl_order_ids: bigint[];
|
|
2581
|
-
}>;
|
|
2582
|
-
}>;
|
|
2583
|
-
} | null>;
|
|
2584
|
-
};
|
|
2585
|
-
meta: Map<unknown, unknown> | null;
|
|
2586
|
-
}, {
|
|
2587
|
-
data: {
|
|
2588
|
-
user_accounts: Record<string, {
|
|
2589
|
-
usdc_ledger: {
|
|
2688
|
+
}, {
|
|
2590
2689
|
ledger: {
|
|
2591
2690
|
weights: {
|
|
2592
2691
|
asset_weight: string | number;
|
|
@@ -2598,8 +2697,32 @@ export declare const ResponseSchemas: {
|
|
|
2598
2697
|
};
|
|
2599
2698
|
unrealized_loss_borrow: string | number;
|
|
2600
2699
|
unsettled_perp_profit: string | number;
|
|
2601
|
-
}
|
|
2602
|
-
spot_ledgers:
|
|
2700
|
+
}>;
|
|
2701
|
+
spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2702
|
+
weights: z.ZodObject<{
|
|
2703
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2704
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2705
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2706
|
+
}, "strip", z.ZodTypeAny, {
|
|
2707
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2708
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2709
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2710
|
+
}, {
|
|
2711
|
+
asset_weight: string | number;
|
|
2712
|
+
initial_liability_weight: string | number;
|
|
2713
|
+
maintenance_liability_weight: string | number;
|
|
2714
|
+
}>;
|
|
2715
|
+
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2716
|
+
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2717
|
+
}, "strip", z.ZodTypeAny, {
|
|
2718
|
+
weights: {
|
|
2719
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2720
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2721
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2722
|
+
};
|
|
2723
|
+
asset: import("decimal.js").Decimal;
|
|
2724
|
+
liability: import("decimal.js").Decimal;
|
|
2725
|
+
}, {
|
|
2603
2726
|
weights: {
|
|
2604
2727
|
asset_weight: string | number;
|
|
2605
2728
|
initial_liability_weight: string | number;
|
|
@@ -2607,49 +2730,1121 @@ export declare const ResponseSchemas: {
|
|
|
2607
2730
|
};
|
|
2608
2731
|
asset: string | number;
|
|
2609
2732
|
liability: string | number;
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2733
|
+
}>>, Map<number, {
|
|
2734
|
+
weights: {
|
|
2735
|
+
asset_weight: import("decimal.js").Decimal;
|
|
2736
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
2737
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2738
|
+
};
|
|
2739
|
+
asset: import("decimal.js").Decimal;
|
|
2740
|
+
liability: import("decimal.js").Decimal;
|
|
2741
|
+
}>, Record<string, {
|
|
2742
|
+
weights: {
|
|
2743
|
+
asset_weight: string | number;
|
|
2744
|
+
initial_liability_weight: string | number;
|
|
2745
|
+
maintenance_liability_weight: string | number;
|
|
2746
|
+
};
|
|
2747
|
+
asset: string | number;
|
|
2748
|
+
liability: string | number;
|
|
2749
|
+
}>>;
|
|
2750
|
+
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2751
|
+
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2752
|
+
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
2753
|
+
asset_id: z.ZodNumber;
|
|
2754
|
+
order_id: z.ZodBigInt;
|
|
2755
|
+
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2756
|
+
remaining_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2757
|
+
reduce_only: z.ZodBoolean;
|
|
2758
|
+
filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2759
|
+
average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2760
|
+
owner: z.ZodString;
|
|
2761
|
+
tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
2762
|
+
}, "strip", z.ZodTypeAny, {
|
|
2763
|
+
side: "Bid" | "Ask";
|
|
2764
|
+
asset_id: number;
|
|
2765
|
+
order_id: bigint;
|
|
2766
|
+
price: import("decimal.js").Decimal;
|
|
2767
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2768
|
+
reduce_only: boolean;
|
|
2769
|
+
filled_size: import("decimal.js").Decimal;
|
|
2770
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
2771
|
+
owner: string;
|
|
2772
|
+
tpsl_order_ids: bigint[];
|
|
2773
|
+
}, {
|
|
2774
|
+
side: "Bid" | "Ask";
|
|
2775
|
+
asset_id: number;
|
|
2776
|
+
order_id: bigint;
|
|
2777
|
+
price: string | number;
|
|
2778
|
+
remaining_size: string | number;
|
|
2779
|
+
reduce_only: boolean;
|
|
2780
|
+
filled_size: string | number;
|
|
2781
|
+
average_filled_price: string | number;
|
|
2782
|
+
owner: string;
|
|
2783
|
+
tpsl_order_ids: bigint[];
|
|
2784
|
+
}>>, Map<bigint, {
|
|
2785
|
+
side: "Bid" | "Ask";
|
|
2786
|
+
asset_id: number;
|
|
2787
|
+
order_id: bigint;
|
|
2788
|
+
price: import("decimal.js").Decimal;
|
|
2789
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2790
|
+
reduce_only: boolean;
|
|
2791
|
+
filled_size: import("decimal.js").Decimal;
|
|
2792
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
2793
|
+
owner: string;
|
|
2794
|
+
tpsl_order_ids: bigint[];
|
|
2795
|
+
}>, Record<string, {
|
|
2796
|
+
side: "Bid" | "Ask";
|
|
2797
|
+
asset_id: number;
|
|
2798
|
+
order_id: bigint;
|
|
2799
|
+
price: string | number;
|
|
2800
|
+
remaining_size: string | number;
|
|
2801
|
+
reduce_only: boolean;
|
|
2802
|
+
filled_size: string | number;
|
|
2803
|
+
average_filled_price: string | number;
|
|
2804
|
+
owner: string;
|
|
2805
|
+
tpsl_order_ids: bigint[];
|
|
2806
|
+
}>>;
|
|
2807
|
+
position: z.ZodObject<{
|
|
2808
|
+
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2809
|
+
cost_of_trades: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2810
|
+
realized_pnl: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2811
|
+
cached_mark_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2812
|
+
last_accum_funding_applied_per_lot: z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>;
|
|
2813
|
+
funding_payments_on_side: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2814
|
+
funding_payments_on_position: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2815
|
+
}, "strip", z.ZodTypeAny, {
|
|
2816
|
+
size: import("decimal.js").Decimal;
|
|
2817
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
2818
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
2819
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
2820
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
2821
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
2822
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
2823
|
+
}, {
|
|
2824
|
+
size: string | number;
|
|
2825
|
+
cost_of_trades: string | number;
|
|
2826
|
+
realized_pnl: string | number;
|
|
2827
|
+
cached_mark_price: string | number;
|
|
2828
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
2829
|
+
funding_payments_on_side: string | number;
|
|
2830
|
+
funding_payments_on_position: string | number;
|
|
2831
|
+
}>;
|
|
2832
|
+
user_selected_max_leverage: z.ZodNumber;
|
|
2833
|
+
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2834
|
+
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
2835
|
+
asset_id: z.ZodNumber;
|
|
2836
|
+
tpsl_order_id: z.ZodBigInt;
|
|
2837
|
+
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2838
|
+
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2839
|
+
trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
|
|
2840
|
+
tpsl_price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
|
|
2841
|
+
active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2842
|
+
full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2843
|
+
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
2844
|
+
owner: z.ZodString;
|
|
2845
|
+
parent_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
2846
|
+
linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
|
|
2847
|
+
}, "strip", z.ZodTypeAny, {
|
|
2848
|
+
side: "Bid" | "Ask";
|
|
2849
|
+
asset_id: number;
|
|
2850
|
+
owner: string;
|
|
2851
|
+
tpsl_order_id: bigint;
|
|
2852
|
+
order_price: import("decimal.js").Decimal;
|
|
2853
|
+
trigger_price: import("decimal.js").Decimal;
|
|
2854
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2855
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2856
|
+
active_size: import("decimal.js").Decimal;
|
|
2857
|
+
full_size: import("decimal.js").Decimal;
|
|
2858
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2859
|
+
parent_order_id: bigint | null;
|
|
2860
|
+
linked_tpsl_order_ids: bigint[];
|
|
2861
|
+
}, {
|
|
2862
|
+
side: "Bid" | "Ask";
|
|
2863
|
+
asset_id: number;
|
|
2864
|
+
owner: string;
|
|
2865
|
+
tpsl_order_id: bigint;
|
|
2866
|
+
order_price: string | number;
|
|
2867
|
+
trigger_price: string | number;
|
|
2868
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2869
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2870
|
+
active_size: string | number;
|
|
2871
|
+
full_size: string | number;
|
|
2872
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2873
|
+
parent_order_id: bigint | null;
|
|
2874
|
+
linked_tpsl_order_ids: bigint[];
|
|
2875
|
+
}>>, Map<bigint, {
|
|
2876
|
+
side: "Bid" | "Ask";
|
|
2877
|
+
asset_id: number;
|
|
2878
|
+
owner: string;
|
|
2879
|
+
tpsl_order_id: bigint;
|
|
2880
|
+
order_price: import("decimal.js").Decimal;
|
|
2881
|
+
trigger_price: import("decimal.js").Decimal;
|
|
2882
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2883
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2884
|
+
active_size: import("decimal.js").Decimal;
|
|
2885
|
+
full_size: import("decimal.js").Decimal;
|
|
2886
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2887
|
+
parent_order_id: bigint | null;
|
|
2888
|
+
linked_tpsl_order_ids: bigint[];
|
|
2889
|
+
}>, Record<string, {
|
|
2890
|
+
side: "Bid" | "Ask";
|
|
2891
|
+
asset_id: number;
|
|
2892
|
+
owner: string;
|
|
2893
|
+
tpsl_order_id: bigint;
|
|
2894
|
+
order_price: string | number;
|
|
2895
|
+
trigger_price: string | number;
|
|
2896
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2897
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2898
|
+
active_size: string | number;
|
|
2899
|
+
full_size: string | number;
|
|
2900
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2901
|
+
parent_order_id: bigint | null;
|
|
2902
|
+
linked_tpsl_order_ids: bigint[];
|
|
2903
|
+
}>>;
|
|
2904
|
+
}, "strip", z.ZodTypeAny, {
|
|
2905
|
+
orders: Map<bigint, {
|
|
2906
|
+
side: "Bid" | "Ask";
|
|
2907
|
+
asset_id: number;
|
|
2908
|
+
order_id: bigint;
|
|
2909
|
+
price: import("decimal.js").Decimal;
|
|
2910
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2911
|
+
reduce_only: boolean;
|
|
2912
|
+
filled_size: import("decimal.js").Decimal;
|
|
2913
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
2914
|
+
owner: string;
|
|
2915
|
+
tpsl_order_ids: bigint[];
|
|
2916
|
+
}>;
|
|
2917
|
+
position: {
|
|
2918
|
+
size: import("decimal.js").Decimal;
|
|
2919
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
2920
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
2921
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
2922
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
2923
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
2924
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
2925
|
+
};
|
|
2926
|
+
user_selected_max_leverage: number;
|
|
2927
|
+
tpsls: Map<bigint, {
|
|
2928
|
+
side: "Bid" | "Ask";
|
|
2929
|
+
asset_id: number;
|
|
2930
|
+
owner: string;
|
|
2931
|
+
tpsl_order_id: bigint;
|
|
2932
|
+
order_price: import("decimal.js").Decimal;
|
|
2933
|
+
trigger_price: import("decimal.js").Decimal;
|
|
2934
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2935
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2936
|
+
active_size: import("decimal.js").Decimal;
|
|
2937
|
+
full_size: import("decimal.js").Decimal;
|
|
2938
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2939
|
+
parent_order_id: bigint | null;
|
|
2940
|
+
linked_tpsl_order_ids: bigint[];
|
|
2941
|
+
}>;
|
|
2942
|
+
}, {
|
|
2943
|
+
orders: Record<string, {
|
|
2944
|
+
side: "Bid" | "Ask";
|
|
2945
|
+
asset_id: number;
|
|
2946
|
+
order_id: bigint;
|
|
2947
|
+
price: string | number;
|
|
2948
|
+
remaining_size: string | number;
|
|
2949
|
+
reduce_only: boolean;
|
|
2950
|
+
filled_size: string | number;
|
|
2951
|
+
average_filled_price: string | number;
|
|
2952
|
+
owner: string;
|
|
2953
|
+
tpsl_order_ids: bigint[];
|
|
2954
|
+
}>;
|
|
2955
|
+
position: {
|
|
2956
|
+
size: string | number;
|
|
2957
|
+
cost_of_trades: string | number;
|
|
2958
|
+
realized_pnl: string | number;
|
|
2959
|
+
cached_mark_price: string | number;
|
|
2960
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
2961
|
+
funding_payments_on_side: string | number;
|
|
2962
|
+
funding_payments_on_position: string | number;
|
|
2963
|
+
};
|
|
2964
|
+
user_selected_max_leverage: number;
|
|
2965
|
+
tpsls: Record<string, {
|
|
2966
|
+
side: "Bid" | "Ask";
|
|
2967
|
+
asset_id: number;
|
|
2968
|
+
owner: string;
|
|
2969
|
+
tpsl_order_id: bigint;
|
|
2970
|
+
order_price: string | number;
|
|
2971
|
+
trigger_price: string | number;
|
|
2972
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
2973
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
2974
|
+
active_size: string | number;
|
|
2975
|
+
full_size: string | number;
|
|
2976
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2977
|
+
parent_order_id: bigint | null;
|
|
2978
|
+
linked_tpsl_order_ids: bigint[];
|
|
2979
|
+
}>;
|
|
2980
|
+
}>>, Map<number, {
|
|
2981
|
+
orders: Map<bigint, {
|
|
2982
|
+
side: "Bid" | "Ask";
|
|
2983
|
+
asset_id: number;
|
|
2984
|
+
order_id: bigint;
|
|
2985
|
+
price: import("decimal.js").Decimal;
|
|
2986
|
+
remaining_size: import("decimal.js").Decimal;
|
|
2987
|
+
reduce_only: boolean;
|
|
2988
|
+
filled_size: import("decimal.js").Decimal;
|
|
2989
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
2990
|
+
owner: string;
|
|
2991
|
+
tpsl_order_ids: bigint[];
|
|
2992
|
+
}>;
|
|
2993
|
+
position: {
|
|
2994
|
+
size: import("decimal.js").Decimal;
|
|
2995
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
2996
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
2997
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
2998
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
2999
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
3000
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
3001
|
+
};
|
|
3002
|
+
user_selected_max_leverage: number;
|
|
3003
|
+
tpsls: Map<bigint, {
|
|
3004
|
+
side: "Bid" | "Ask";
|
|
3005
|
+
asset_id: number;
|
|
3006
|
+
owner: string;
|
|
3007
|
+
tpsl_order_id: bigint;
|
|
3008
|
+
order_price: import("decimal.js").Decimal;
|
|
3009
|
+
trigger_price: import("decimal.js").Decimal;
|
|
3010
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3011
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3012
|
+
active_size: import("decimal.js").Decimal;
|
|
3013
|
+
full_size: import("decimal.js").Decimal;
|
|
3014
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3015
|
+
parent_order_id: bigint | null;
|
|
3016
|
+
linked_tpsl_order_ids: bigint[];
|
|
3017
|
+
}>;
|
|
3018
|
+
}>, Record<string, {
|
|
3019
|
+
orders: Record<string, {
|
|
3020
|
+
side: "Bid" | "Ask";
|
|
3021
|
+
asset_id: number;
|
|
3022
|
+
order_id: bigint;
|
|
3023
|
+
price: string | number;
|
|
3024
|
+
remaining_size: string | number;
|
|
3025
|
+
reduce_only: boolean;
|
|
3026
|
+
filled_size: string | number;
|
|
3027
|
+
average_filled_price: string | number;
|
|
3028
|
+
owner: string;
|
|
3029
|
+
tpsl_order_ids: bigint[];
|
|
3030
|
+
}>;
|
|
3031
|
+
position: {
|
|
3032
|
+
size: string | number;
|
|
3033
|
+
cost_of_trades: string | number;
|
|
3034
|
+
realized_pnl: string | number;
|
|
3035
|
+
cached_mark_price: string | number;
|
|
3036
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
3037
|
+
funding_payments_on_side: string | number;
|
|
3038
|
+
funding_payments_on_position: string | number;
|
|
3039
|
+
};
|
|
3040
|
+
user_selected_max_leverage: number;
|
|
3041
|
+
tpsls: Record<string, {
|
|
3042
|
+
side: "Bid" | "Ask";
|
|
3043
|
+
asset_id: number;
|
|
3044
|
+
owner: string;
|
|
3045
|
+
tpsl_order_id: bigint;
|
|
3046
|
+
order_price: string | number;
|
|
3047
|
+
trigger_price: string | number;
|
|
3048
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3049
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3050
|
+
active_size: string | number;
|
|
3051
|
+
full_size: string | number;
|
|
3052
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3053
|
+
parent_order_id: bigint | null;
|
|
3054
|
+
linked_tpsl_order_ids: bigint[];
|
|
3055
|
+
}>;
|
|
3056
|
+
}>>;
|
|
3057
|
+
}, "strip", z.ZodTypeAny, {
|
|
3058
|
+
address: string;
|
|
3059
|
+
usdc_ledger: {
|
|
3060
|
+
ledger: {
|
|
3061
|
+
weights: {
|
|
3062
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3063
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3064
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3065
|
+
};
|
|
3066
|
+
asset: import("decimal.js").Decimal;
|
|
3067
|
+
liability: import("decimal.js").Decimal;
|
|
3068
|
+
};
|
|
3069
|
+
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3070
|
+
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3071
|
+
};
|
|
3072
|
+
spot_ledgers: Map<number, {
|
|
3073
|
+
weights: {
|
|
3074
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3075
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3076
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3077
|
+
};
|
|
3078
|
+
asset: import("decimal.js").Decimal;
|
|
3079
|
+
liability: import("decimal.js").Decimal;
|
|
3080
|
+
}>;
|
|
3081
|
+
perp_ledgers: Map<number, {
|
|
3082
|
+
orders: Map<bigint, {
|
|
3083
|
+
side: "Bid" | "Ask";
|
|
3084
|
+
asset_id: number;
|
|
3085
|
+
order_id: bigint;
|
|
3086
|
+
price: import("decimal.js").Decimal;
|
|
3087
|
+
remaining_size: import("decimal.js").Decimal;
|
|
3088
|
+
reduce_only: boolean;
|
|
3089
|
+
filled_size: import("decimal.js").Decimal;
|
|
3090
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
3091
|
+
owner: string;
|
|
3092
|
+
tpsl_order_ids: bigint[];
|
|
3093
|
+
}>;
|
|
3094
|
+
position: {
|
|
3095
|
+
size: import("decimal.js").Decimal;
|
|
3096
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
3097
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
3098
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
3099
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
3100
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
3101
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
3102
|
+
};
|
|
3103
|
+
user_selected_max_leverage: number;
|
|
3104
|
+
tpsls: Map<bigint, {
|
|
3105
|
+
side: "Bid" | "Ask";
|
|
3106
|
+
asset_id: number;
|
|
3107
|
+
owner: string;
|
|
3108
|
+
tpsl_order_id: bigint;
|
|
3109
|
+
order_price: import("decimal.js").Decimal;
|
|
3110
|
+
trigger_price: import("decimal.js").Decimal;
|
|
3111
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3112
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3113
|
+
active_size: import("decimal.js").Decimal;
|
|
3114
|
+
full_size: import("decimal.js").Decimal;
|
|
3115
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3116
|
+
parent_order_id: bigint | null;
|
|
3117
|
+
linked_tpsl_order_ids: bigint[];
|
|
3118
|
+
}>;
|
|
3119
|
+
}>;
|
|
3120
|
+
}, {
|
|
3121
|
+
address: string;
|
|
3122
|
+
usdc_ledger: {
|
|
3123
|
+
ledger: {
|
|
3124
|
+
weights: {
|
|
3125
|
+
asset_weight: string | number;
|
|
3126
|
+
initial_liability_weight: string | number;
|
|
3127
|
+
maintenance_liability_weight: string | number;
|
|
3128
|
+
};
|
|
3129
|
+
asset: string | number;
|
|
3130
|
+
liability: string | number;
|
|
3131
|
+
};
|
|
3132
|
+
unrealized_loss_borrow: string | number;
|
|
3133
|
+
unsettled_perp_profit: string | number;
|
|
3134
|
+
};
|
|
3135
|
+
spot_ledgers: Record<string, {
|
|
3136
|
+
weights: {
|
|
3137
|
+
asset_weight: string | number;
|
|
3138
|
+
initial_liability_weight: string | number;
|
|
3139
|
+
maintenance_liability_weight: string | number;
|
|
3140
|
+
};
|
|
3141
|
+
asset: string | number;
|
|
3142
|
+
liability: string | number;
|
|
3143
|
+
}>;
|
|
3144
|
+
perp_ledgers: Record<string, {
|
|
3145
|
+
orders: Record<string, {
|
|
3146
|
+
side: "Bid" | "Ask";
|
|
3147
|
+
asset_id: number;
|
|
3148
|
+
order_id: bigint;
|
|
3149
|
+
price: string | number;
|
|
3150
|
+
remaining_size: string | number;
|
|
3151
|
+
reduce_only: boolean;
|
|
3152
|
+
filled_size: string | number;
|
|
3153
|
+
average_filled_price: string | number;
|
|
3154
|
+
owner: string;
|
|
3155
|
+
tpsl_order_ids: bigint[];
|
|
3156
|
+
}>;
|
|
3157
|
+
position: {
|
|
3158
|
+
size: string | number;
|
|
3159
|
+
cost_of_trades: string | number;
|
|
3160
|
+
realized_pnl: string | number;
|
|
3161
|
+
cached_mark_price: string | number;
|
|
3162
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
3163
|
+
funding_payments_on_side: string | number;
|
|
3164
|
+
funding_payments_on_position: string | number;
|
|
3165
|
+
};
|
|
3166
|
+
user_selected_max_leverage: number;
|
|
3167
|
+
tpsls: Record<string, {
|
|
3168
|
+
side: "Bid" | "Ask";
|
|
3169
|
+
asset_id: number;
|
|
3170
|
+
owner: string;
|
|
3171
|
+
tpsl_order_id: bigint;
|
|
3172
|
+
order_price: string | number;
|
|
3173
|
+
trigger_price: string | number;
|
|
3174
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3175
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3176
|
+
active_size: string | number;
|
|
3177
|
+
full_size: string | number;
|
|
3178
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3179
|
+
parent_order_id: bigint | null;
|
|
3180
|
+
linked_tpsl_order_ids: bigint[];
|
|
3181
|
+
}>;
|
|
3182
|
+
}>;
|
|
3183
|
+
}>>, Map<string, {
|
|
3184
|
+
address: string;
|
|
3185
|
+
usdc_ledger: {
|
|
3186
|
+
ledger: {
|
|
3187
|
+
weights: {
|
|
3188
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3189
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3190
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3191
|
+
};
|
|
3192
|
+
asset: import("decimal.js").Decimal;
|
|
3193
|
+
liability: import("decimal.js").Decimal;
|
|
3194
|
+
};
|
|
3195
|
+
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3196
|
+
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3197
|
+
};
|
|
3198
|
+
spot_ledgers: Map<number, {
|
|
3199
|
+
weights: {
|
|
3200
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3201
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3202
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3203
|
+
};
|
|
3204
|
+
asset: import("decimal.js").Decimal;
|
|
3205
|
+
liability: import("decimal.js").Decimal;
|
|
3206
|
+
}>;
|
|
3207
|
+
perp_ledgers: Map<number, {
|
|
3208
|
+
orders: Map<bigint, {
|
|
3209
|
+
side: "Bid" | "Ask";
|
|
3210
|
+
asset_id: number;
|
|
3211
|
+
order_id: bigint;
|
|
3212
|
+
price: import("decimal.js").Decimal;
|
|
3213
|
+
remaining_size: import("decimal.js").Decimal;
|
|
3214
|
+
reduce_only: boolean;
|
|
3215
|
+
filled_size: import("decimal.js").Decimal;
|
|
3216
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
3217
|
+
owner: string;
|
|
3218
|
+
tpsl_order_ids: bigint[];
|
|
3219
|
+
}>;
|
|
3220
|
+
position: {
|
|
3221
|
+
size: import("decimal.js").Decimal;
|
|
3222
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
3223
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
3224
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
3225
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
3226
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
3227
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
3228
|
+
};
|
|
3229
|
+
user_selected_max_leverage: number;
|
|
3230
|
+
tpsls: Map<bigint, {
|
|
3231
|
+
side: "Bid" | "Ask";
|
|
3232
|
+
asset_id: number;
|
|
3233
|
+
owner: string;
|
|
3234
|
+
tpsl_order_id: bigint;
|
|
3235
|
+
order_price: import("decimal.js").Decimal;
|
|
3236
|
+
trigger_price: import("decimal.js").Decimal;
|
|
3237
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3238
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3239
|
+
active_size: import("decimal.js").Decimal;
|
|
3240
|
+
full_size: import("decimal.js").Decimal;
|
|
3241
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3242
|
+
parent_order_id: bigint | null;
|
|
3243
|
+
linked_tpsl_order_ids: bigint[];
|
|
3244
|
+
}>;
|
|
3245
|
+
}>;
|
|
3246
|
+
}>, Record<string, {
|
|
3247
|
+
address: string;
|
|
3248
|
+
usdc_ledger: {
|
|
3249
|
+
ledger: {
|
|
3250
|
+
weights: {
|
|
3251
|
+
asset_weight: string | number;
|
|
3252
|
+
initial_liability_weight: string | number;
|
|
3253
|
+
maintenance_liability_weight: string | number;
|
|
3254
|
+
};
|
|
3255
|
+
asset: string | number;
|
|
3256
|
+
liability: string | number;
|
|
3257
|
+
};
|
|
3258
|
+
unrealized_loss_borrow: string | number;
|
|
3259
|
+
unsettled_perp_profit: string | number;
|
|
3260
|
+
};
|
|
3261
|
+
spot_ledgers: Record<string, {
|
|
3262
|
+
weights: {
|
|
3263
|
+
asset_weight: string | number;
|
|
3264
|
+
initial_liability_weight: string | number;
|
|
3265
|
+
maintenance_liability_weight: string | number;
|
|
3266
|
+
};
|
|
3267
|
+
asset: string | number;
|
|
3268
|
+
liability: string | number;
|
|
3269
|
+
}>;
|
|
3270
|
+
perp_ledgers: Record<string, {
|
|
3271
|
+
orders: Record<string, {
|
|
3272
|
+
side: "Bid" | "Ask";
|
|
3273
|
+
asset_id: number;
|
|
3274
|
+
order_id: bigint;
|
|
3275
|
+
price: string | number;
|
|
3276
|
+
remaining_size: string | number;
|
|
3277
|
+
reduce_only: boolean;
|
|
3278
|
+
filled_size: string | number;
|
|
3279
|
+
average_filled_price: string | number;
|
|
3280
|
+
owner: string;
|
|
3281
|
+
tpsl_order_ids: bigint[];
|
|
3282
|
+
}>;
|
|
3283
|
+
position: {
|
|
3284
|
+
size: string | number;
|
|
3285
|
+
cost_of_trades: string | number;
|
|
3286
|
+
realized_pnl: string | number;
|
|
3287
|
+
cached_mark_price: string | number;
|
|
3288
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
3289
|
+
funding_payments_on_side: string | number;
|
|
3290
|
+
funding_payments_on_position: string | number;
|
|
3291
|
+
};
|
|
3292
|
+
user_selected_max_leverage: number;
|
|
3293
|
+
tpsls: Record<string, {
|
|
3294
|
+
side: "Bid" | "Ask";
|
|
3295
|
+
asset_id: number;
|
|
3296
|
+
owner: string;
|
|
3297
|
+
tpsl_order_id: bigint;
|
|
3298
|
+
order_price: string | number;
|
|
3299
|
+
trigger_price: string | number;
|
|
3300
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3301
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3302
|
+
active_size: string | number;
|
|
3303
|
+
full_size: string | number;
|
|
3304
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3305
|
+
parent_order_id: bigint | null;
|
|
3306
|
+
linked_tpsl_order_ids: bigint[];
|
|
3307
|
+
}>;
|
|
3308
|
+
}>;
|
|
3309
|
+
}>>;
|
|
3310
|
+
not_found: z.ZodArray<z.ZodString, "many">;
|
|
3311
|
+
}, "strip", z.ZodTypeAny, {
|
|
3312
|
+
found: Map<string, {
|
|
3313
|
+
address: string;
|
|
3314
|
+
usdc_ledger: {
|
|
3315
|
+
ledger: {
|
|
3316
|
+
weights: {
|
|
3317
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3318
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3319
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3320
|
+
};
|
|
3321
|
+
asset: import("decimal.js").Decimal;
|
|
3322
|
+
liability: import("decimal.js").Decimal;
|
|
3323
|
+
};
|
|
3324
|
+
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3325
|
+
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3326
|
+
};
|
|
3327
|
+
spot_ledgers: Map<number, {
|
|
3328
|
+
weights: {
|
|
3329
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3330
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3331
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3332
|
+
};
|
|
3333
|
+
asset: import("decimal.js").Decimal;
|
|
3334
|
+
liability: import("decimal.js").Decimal;
|
|
3335
|
+
}>;
|
|
3336
|
+
perp_ledgers: Map<number, {
|
|
3337
|
+
orders: Map<bigint, {
|
|
3338
|
+
side: "Bid" | "Ask";
|
|
3339
|
+
asset_id: number;
|
|
3340
|
+
order_id: bigint;
|
|
3341
|
+
price: import("decimal.js").Decimal;
|
|
3342
|
+
remaining_size: import("decimal.js").Decimal;
|
|
3343
|
+
reduce_only: boolean;
|
|
3344
|
+
filled_size: import("decimal.js").Decimal;
|
|
3345
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
3346
|
+
owner: string;
|
|
3347
|
+
tpsl_order_ids: bigint[];
|
|
3348
|
+
}>;
|
|
3349
|
+
position: {
|
|
3350
|
+
size: import("decimal.js").Decimal;
|
|
3351
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
3352
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
3353
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
3354
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
3355
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
3356
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
3357
|
+
};
|
|
3358
|
+
user_selected_max_leverage: number;
|
|
3359
|
+
tpsls: Map<bigint, {
|
|
3360
|
+
side: "Bid" | "Ask";
|
|
3361
|
+
asset_id: number;
|
|
3362
|
+
owner: string;
|
|
3363
|
+
tpsl_order_id: bigint;
|
|
3364
|
+
order_price: import("decimal.js").Decimal;
|
|
3365
|
+
trigger_price: import("decimal.js").Decimal;
|
|
3366
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3367
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3368
|
+
active_size: import("decimal.js").Decimal;
|
|
3369
|
+
full_size: import("decimal.js").Decimal;
|
|
3370
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3371
|
+
parent_order_id: bigint | null;
|
|
3372
|
+
linked_tpsl_order_ids: bigint[];
|
|
3373
|
+
}>;
|
|
3374
|
+
}>;
|
|
3375
|
+
}>;
|
|
3376
|
+
not_found: string[];
|
|
3377
|
+
}, {
|
|
3378
|
+
found: Record<string, {
|
|
3379
|
+
address: string;
|
|
3380
|
+
usdc_ledger: {
|
|
3381
|
+
ledger: {
|
|
3382
|
+
weights: {
|
|
3383
|
+
asset_weight: string | number;
|
|
3384
|
+
initial_liability_weight: string | number;
|
|
3385
|
+
maintenance_liability_weight: string | number;
|
|
3386
|
+
};
|
|
3387
|
+
asset: string | number;
|
|
3388
|
+
liability: string | number;
|
|
3389
|
+
};
|
|
3390
|
+
unrealized_loss_borrow: string | number;
|
|
3391
|
+
unsettled_perp_profit: string | number;
|
|
3392
|
+
};
|
|
3393
|
+
spot_ledgers: Record<string, {
|
|
3394
|
+
weights: {
|
|
3395
|
+
asset_weight: string | number;
|
|
3396
|
+
initial_liability_weight: string | number;
|
|
3397
|
+
maintenance_liability_weight: string | number;
|
|
3398
|
+
};
|
|
3399
|
+
asset: string | number;
|
|
3400
|
+
liability: string | number;
|
|
3401
|
+
}>;
|
|
3402
|
+
perp_ledgers: Record<string, {
|
|
3403
|
+
orders: Record<string, {
|
|
3404
|
+
side: "Bid" | "Ask";
|
|
3405
|
+
asset_id: number;
|
|
3406
|
+
order_id: bigint;
|
|
3407
|
+
price: string | number;
|
|
3408
|
+
remaining_size: string | number;
|
|
3409
|
+
reduce_only: boolean;
|
|
3410
|
+
filled_size: string | number;
|
|
3411
|
+
average_filled_price: string | number;
|
|
3412
|
+
owner: string;
|
|
3413
|
+
tpsl_order_ids: bigint[];
|
|
3414
|
+
}>;
|
|
3415
|
+
position: {
|
|
3416
|
+
size: string | number;
|
|
3417
|
+
cost_of_trades: string | number;
|
|
3418
|
+
realized_pnl: string | number;
|
|
3419
|
+
cached_mark_price: string | number;
|
|
3420
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
3421
|
+
funding_payments_on_side: string | number;
|
|
3422
|
+
funding_payments_on_position: string | number;
|
|
3423
|
+
};
|
|
3424
|
+
user_selected_max_leverage: number;
|
|
3425
|
+
tpsls: Record<string, {
|
|
3426
|
+
side: "Bid" | "Ask";
|
|
3427
|
+
asset_id: number;
|
|
3428
|
+
owner: string;
|
|
3429
|
+
tpsl_order_id: bigint;
|
|
3430
|
+
order_price: string | number;
|
|
3431
|
+
trigger_price: string | number;
|
|
3432
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3433
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3434
|
+
active_size: string | number;
|
|
3435
|
+
full_size: string | number;
|
|
3436
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3437
|
+
parent_order_id: bigint | null;
|
|
3438
|
+
linked_tpsl_order_ids: bigint[];
|
|
3439
|
+
}>;
|
|
3440
|
+
}>;
|
|
3441
|
+
}>;
|
|
3442
|
+
not_found: string[];
|
|
3443
|
+
}>;
|
|
3444
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
3445
|
+
}, "strip", z.ZodTypeAny, {
|
|
3446
|
+
data: {
|
|
3447
|
+
found: Map<string, {
|
|
3448
|
+
address: string;
|
|
3449
|
+
usdc_ledger: {
|
|
3450
|
+
ledger: {
|
|
3451
|
+
weights: {
|
|
3452
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3453
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3454
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3455
|
+
};
|
|
3456
|
+
asset: import("decimal.js").Decimal;
|
|
3457
|
+
liability: import("decimal.js").Decimal;
|
|
3458
|
+
};
|
|
3459
|
+
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3460
|
+
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3461
|
+
};
|
|
3462
|
+
spot_ledgers: Map<number, {
|
|
3463
|
+
weights: {
|
|
3464
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3465
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3466
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3467
|
+
};
|
|
3468
|
+
asset: import("decimal.js").Decimal;
|
|
3469
|
+
liability: import("decimal.js").Decimal;
|
|
3470
|
+
}>;
|
|
3471
|
+
perp_ledgers: Map<number, {
|
|
3472
|
+
orders: Map<bigint, {
|
|
3473
|
+
side: "Bid" | "Ask";
|
|
3474
|
+
asset_id: number;
|
|
3475
|
+
order_id: bigint;
|
|
3476
|
+
price: import("decimal.js").Decimal;
|
|
3477
|
+
remaining_size: import("decimal.js").Decimal;
|
|
3478
|
+
reduce_only: boolean;
|
|
3479
|
+
filled_size: import("decimal.js").Decimal;
|
|
3480
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
3481
|
+
owner: string;
|
|
3482
|
+
tpsl_order_ids: bigint[];
|
|
3483
|
+
}>;
|
|
3484
|
+
position: {
|
|
3485
|
+
size: import("decimal.js").Decimal;
|
|
3486
|
+
cost_of_trades: import("decimal.js").Decimal;
|
|
3487
|
+
realized_pnl: import("decimal.js").Decimal;
|
|
3488
|
+
cached_mark_price: import("decimal.js").Decimal;
|
|
3489
|
+
last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
|
|
3490
|
+
funding_payments_on_side: import("decimal.js").Decimal;
|
|
3491
|
+
funding_payments_on_position: import("decimal.js").Decimal;
|
|
3492
|
+
};
|
|
3493
|
+
user_selected_max_leverage: number;
|
|
3494
|
+
tpsls: Map<bigint, {
|
|
3495
|
+
side: "Bid" | "Ask";
|
|
3496
|
+
asset_id: number;
|
|
3497
|
+
owner: string;
|
|
3498
|
+
tpsl_order_id: bigint;
|
|
3499
|
+
order_price: import("decimal.js").Decimal;
|
|
3500
|
+
trigger_price: import("decimal.js").Decimal;
|
|
3501
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3502
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3503
|
+
active_size: import("decimal.js").Decimal;
|
|
3504
|
+
full_size: import("decimal.js").Decimal;
|
|
3505
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3506
|
+
parent_order_id: bigint | null;
|
|
3507
|
+
linked_tpsl_order_ids: bigint[];
|
|
3508
|
+
}>;
|
|
3509
|
+
}>;
|
|
3510
|
+
}>;
|
|
3511
|
+
not_found: string[];
|
|
3512
|
+
};
|
|
3513
|
+
meta: Map<unknown, unknown> | null;
|
|
3514
|
+
}, {
|
|
3515
|
+
data: {
|
|
3516
|
+
found: Record<string, {
|
|
3517
|
+
address: string;
|
|
3518
|
+
usdc_ledger: {
|
|
3519
|
+
ledger: {
|
|
3520
|
+
weights: {
|
|
3521
|
+
asset_weight: string | number;
|
|
3522
|
+
initial_liability_weight: string | number;
|
|
3523
|
+
maintenance_liability_weight: string | number;
|
|
3524
|
+
};
|
|
3525
|
+
asset: string | number;
|
|
3526
|
+
liability: string | number;
|
|
3527
|
+
};
|
|
3528
|
+
unrealized_loss_borrow: string | number;
|
|
3529
|
+
unsettled_perp_profit: string | number;
|
|
3530
|
+
};
|
|
3531
|
+
spot_ledgers: Record<string, {
|
|
3532
|
+
weights: {
|
|
3533
|
+
asset_weight: string | number;
|
|
3534
|
+
initial_liability_weight: string | number;
|
|
3535
|
+
maintenance_liability_weight: string | number;
|
|
3536
|
+
};
|
|
3537
|
+
asset: string | number;
|
|
3538
|
+
liability: string | number;
|
|
3539
|
+
}>;
|
|
3540
|
+
perp_ledgers: Record<string, {
|
|
3541
|
+
orders: Record<string, {
|
|
3542
|
+
side: "Bid" | "Ask";
|
|
3543
|
+
asset_id: number;
|
|
3544
|
+
order_id: bigint;
|
|
3545
|
+
price: string | number;
|
|
3546
|
+
remaining_size: string | number;
|
|
3547
|
+
reduce_only: boolean;
|
|
3548
|
+
filled_size: string | number;
|
|
3549
|
+
average_filled_price: string | number;
|
|
3550
|
+
owner: string;
|
|
3551
|
+
tpsl_order_ids: bigint[];
|
|
3552
|
+
}>;
|
|
3553
|
+
position: {
|
|
3554
|
+
size: string | number;
|
|
3555
|
+
cost_of_trades: string | number;
|
|
3556
|
+
realized_pnl: string | number;
|
|
3557
|
+
cached_mark_price: string | number;
|
|
3558
|
+
last_accum_funding_applied_per_lot: [string | number, bigint];
|
|
3559
|
+
funding_payments_on_side: string | number;
|
|
3560
|
+
funding_payments_on_position: string | number;
|
|
3561
|
+
};
|
|
3562
|
+
user_selected_max_leverage: number;
|
|
3563
|
+
tpsls: Record<string, {
|
|
3564
|
+
side: "Bid" | "Ask";
|
|
3565
|
+
asset_id: number;
|
|
3566
|
+
owner: string;
|
|
3567
|
+
tpsl_order_id: bigint;
|
|
3568
|
+
order_price: string | number;
|
|
3569
|
+
trigger_price: string | number;
|
|
3570
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
3571
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
3572
|
+
active_size: string | number;
|
|
3573
|
+
full_size: string | number;
|
|
3574
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
3575
|
+
parent_order_id: bigint | null;
|
|
3576
|
+
linked_tpsl_order_ids: bigint[];
|
|
3577
|
+
}>;
|
|
3578
|
+
}>;
|
|
3579
|
+
}>;
|
|
3580
|
+
not_found: string[];
|
|
3581
|
+
};
|
|
3582
|
+
meta: Record<string, unknown> | null;
|
|
3583
|
+
}>;
|
|
3584
|
+
readonly BorrowLendMarket: z.ZodObject<{
|
|
3585
|
+
data: z.ZodObject<{
|
|
3586
|
+
asset_id: z.ZodNumber;
|
|
3587
|
+
market: z.ZodObject<{
|
|
3588
|
+
asset_id: z.ZodNumber;
|
|
3589
|
+
token_id: z.ZodString;
|
|
3590
|
+
is_active: z.ZodBoolean;
|
|
3591
|
+
last_update_timestamp: z.ZodBigInt;
|
|
3592
|
+
decimals: z.ZodNumber;
|
|
3593
|
+
risk_params: z.ZodObject<{
|
|
3594
|
+
weights: z.ZodObject<{
|
|
3595
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3596
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3597
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3598
|
+
}, "strip", z.ZodTypeAny, {
|
|
3599
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3600
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3601
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3602
|
+
}, {
|
|
3603
|
+
asset_weight: string | number;
|
|
3604
|
+
initial_liability_weight: string | number;
|
|
3605
|
+
maintenance_liability_weight: string | number;
|
|
3606
|
+
}>;
|
|
3607
|
+
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3608
|
+
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3609
|
+
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3610
|
+
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3611
|
+
}, "strip", z.ZodTypeAny, {
|
|
3612
|
+
weights: {
|
|
3613
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3614
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3615
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3616
|
+
};
|
|
3617
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
3618
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
3619
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
3620
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3621
|
+
}, {
|
|
3622
|
+
weights: {
|
|
3623
|
+
asset_weight: string | number;
|
|
3624
|
+
initial_liability_weight: string | number;
|
|
3625
|
+
maintenance_liability_weight: string | number;
|
|
3626
|
+
};
|
|
3627
|
+
deposit_limit: string | number;
|
|
3628
|
+
borrow_limit: string | number;
|
|
3629
|
+
liquidation_reward_ratio: string | number;
|
|
3630
|
+
liability_liquidation_limit_ratio: string | number;
|
|
3631
|
+
}>;
|
|
3632
|
+
rate_params: z.ZodObject<{
|
|
3633
|
+
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3634
|
+
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3635
|
+
optimal_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3636
|
+
max_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3637
|
+
}, "strip", z.ZodTypeAny, {
|
|
3638
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
3639
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
3640
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
3641
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
3642
|
+
}, {
|
|
3643
|
+
optimal_utilisation_rate: string | number;
|
|
3644
|
+
min_borrow_rate: string | number;
|
|
3645
|
+
optimal_borrow_rate: string | number;
|
|
3646
|
+
max_borrow_rate: string | number;
|
|
3647
|
+
}>;
|
|
3648
|
+
available_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3649
|
+
borrowed_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3650
|
+
cumulative_deposit_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3651
|
+
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3652
|
+
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3653
|
+
}, "strip", z.ZodTypeAny, {
|
|
3654
|
+
token_id: string;
|
|
3655
|
+
asset_id: number;
|
|
3656
|
+
last_update_timestamp: bigint;
|
|
3657
|
+
is_active: boolean;
|
|
3658
|
+
decimals: number;
|
|
3659
|
+
risk_params: {
|
|
3660
|
+
weights: {
|
|
3661
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3662
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3663
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3664
|
+
};
|
|
3665
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
3666
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
3667
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
3668
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3669
|
+
};
|
|
3670
|
+
rate_params: {
|
|
3671
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
3672
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
3673
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
3674
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
3675
|
+
};
|
|
3676
|
+
available_amount: import("decimal.js").Decimal;
|
|
3677
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
3678
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
3679
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3680
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3681
|
+
}, {
|
|
3682
|
+
token_id: string;
|
|
3683
|
+
asset_id: number;
|
|
3684
|
+
last_update_timestamp: bigint;
|
|
3685
|
+
is_active: boolean;
|
|
3686
|
+
decimals: number;
|
|
3687
|
+
risk_params: {
|
|
3688
|
+
weights: {
|
|
3689
|
+
asset_weight: string | number;
|
|
3690
|
+
initial_liability_weight: string | number;
|
|
3691
|
+
maintenance_liability_weight: string | number;
|
|
3692
|
+
};
|
|
3693
|
+
deposit_limit: string | number;
|
|
3694
|
+
borrow_limit: string | number;
|
|
3695
|
+
liquidation_reward_ratio: string | number;
|
|
3696
|
+
liability_liquidation_limit_ratio: string | number;
|
|
3697
|
+
};
|
|
3698
|
+
rate_params: {
|
|
3699
|
+
optimal_utilisation_rate: string | number;
|
|
3700
|
+
min_borrow_rate: string | number;
|
|
3701
|
+
optimal_borrow_rate: string | number;
|
|
3702
|
+
max_borrow_rate: string | number;
|
|
3703
|
+
};
|
|
3704
|
+
available_amount: string | number;
|
|
3705
|
+
borrowed_amount: string | number;
|
|
3706
|
+
cumulative_deposit_rate: string | number;
|
|
3707
|
+
cumulative_borrow_rate: string | number;
|
|
3708
|
+
accumulated_protocol_fees: string | number;
|
|
3709
|
+
}>;
|
|
3710
|
+
}, "strip", z.ZodTypeAny, {
|
|
3711
|
+
asset_id: number;
|
|
3712
|
+
market: {
|
|
3713
|
+
token_id: string;
|
|
3714
|
+
asset_id: number;
|
|
3715
|
+
last_update_timestamp: bigint;
|
|
3716
|
+
is_active: boolean;
|
|
3717
|
+
decimals: number;
|
|
3718
|
+
risk_params: {
|
|
3719
|
+
weights: {
|
|
3720
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3721
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3722
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
2630
3723
|
};
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
3724
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
3725
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
3726
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
3727
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3728
|
+
};
|
|
3729
|
+
rate_params: {
|
|
3730
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
3731
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
3732
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
3733
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
3734
|
+
};
|
|
3735
|
+
available_amount: import("decimal.js").Decimal;
|
|
3736
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
3737
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
3738
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3739
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3740
|
+
};
|
|
3741
|
+
}, {
|
|
3742
|
+
asset_id: number;
|
|
3743
|
+
market: {
|
|
3744
|
+
token_id: string;
|
|
3745
|
+
asset_id: number;
|
|
3746
|
+
last_update_timestamp: bigint;
|
|
3747
|
+
is_active: boolean;
|
|
3748
|
+
decimals: number;
|
|
3749
|
+
risk_params: {
|
|
3750
|
+
weights: {
|
|
3751
|
+
asset_weight: string | number;
|
|
3752
|
+
initial_liability_weight: string | number;
|
|
3753
|
+
maintenance_liability_weight: string | number;
|
|
3754
|
+
};
|
|
3755
|
+
deposit_limit: string | number;
|
|
3756
|
+
borrow_limit: string | number;
|
|
3757
|
+
liquidation_reward_ratio: string | number;
|
|
3758
|
+
liability_liquidation_limit_ratio: string | number;
|
|
3759
|
+
};
|
|
3760
|
+
rate_params: {
|
|
3761
|
+
optimal_utilisation_rate: string | number;
|
|
3762
|
+
min_borrow_rate: string | number;
|
|
3763
|
+
optimal_borrow_rate: string | number;
|
|
3764
|
+
max_borrow_rate: string | number;
|
|
3765
|
+
};
|
|
3766
|
+
available_amount: string | number;
|
|
3767
|
+
borrowed_amount: string | number;
|
|
3768
|
+
cumulative_deposit_rate: string | number;
|
|
3769
|
+
cumulative_borrow_rate: string | number;
|
|
3770
|
+
accumulated_protocol_fees: string | number;
|
|
3771
|
+
};
|
|
3772
|
+
}>;
|
|
3773
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
3774
|
+
}, "strip", z.ZodTypeAny, {
|
|
3775
|
+
data: {
|
|
3776
|
+
asset_id: number;
|
|
3777
|
+
market: {
|
|
3778
|
+
token_id: string;
|
|
3779
|
+
asset_id: number;
|
|
3780
|
+
last_update_timestamp: bigint;
|
|
3781
|
+
is_active: boolean;
|
|
3782
|
+
decimals: number;
|
|
3783
|
+
risk_params: {
|
|
3784
|
+
weights: {
|
|
3785
|
+
asset_weight: import("decimal.js").Decimal;
|
|
3786
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
3787
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3788
|
+
};
|
|
3789
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
3790
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
3791
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
3792
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
3793
|
+
};
|
|
3794
|
+
rate_params: {
|
|
3795
|
+
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
3796
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
3797
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
3798
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
3799
|
+
};
|
|
3800
|
+
available_amount: import("decimal.js").Decimal;
|
|
3801
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
3802
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
3803
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
3804
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
3805
|
+
};
|
|
3806
|
+
};
|
|
3807
|
+
meta: Map<unknown, unknown> | null;
|
|
3808
|
+
}, {
|
|
3809
|
+
data: {
|
|
3810
|
+
asset_id: number;
|
|
3811
|
+
market: {
|
|
3812
|
+
token_id: string;
|
|
3813
|
+
asset_id: number;
|
|
3814
|
+
last_update_timestamp: bigint;
|
|
3815
|
+
is_active: boolean;
|
|
3816
|
+
decimals: number;
|
|
3817
|
+
risk_params: {
|
|
3818
|
+
weights: {
|
|
3819
|
+
asset_weight: string | number;
|
|
3820
|
+
initial_liability_weight: string | number;
|
|
3821
|
+
maintenance_liability_weight: string | number;
|
|
3822
|
+
};
|
|
3823
|
+
deposit_limit: string | number;
|
|
3824
|
+
borrow_limit: string | number;
|
|
3825
|
+
liquidation_reward_ratio: string | number;
|
|
3826
|
+
liability_liquidation_limit_ratio: string | number;
|
|
3827
|
+
};
|
|
3828
|
+
rate_params: {
|
|
3829
|
+
optimal_utilisation_rate: string | number;
|
|
3830
|
+
min_borrow_rate: string | number;
|
|
3831
|
+
optimal_borrow_rate: string | number;
|
|
3832
|
+
max_borrow_rate: string | number;
|
|
3833
|
+
};
|
|
3834
|
+
available_amount: string | number;
|
|
3835
|
+
borrowed_amount: string | number;
|
|
3836
|
+
cumulative_deposit_rate: string | number;
|
|
3837
|
+
cumulative_borrow_rate: string | number;
|
|
3838
|
+
accumulated_protocol_fees: string | number;
|
|
3839
|
+
};
|
|
2647
3840
|
};
|
|
2648
3841
|
meta: Record<string, unknown> | null;
|
|
2649
3842
|
}>;
|
|
2650
|
-
readonly
|
|
3843
|
+
readonly BorrowLendMarketBulk: z.ZodObject<{
|
|
2651
3844
|
data: z.ZodObject<{
|
|
2652
|
-
|
|
3845
|
+
found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3846
|
+
asset_id: z.ZodNumber;
|
|
3847
|
+
token_id: z.ZodString;
|
|
2653
3848
|
is_active: z.ZodBoolean;
|
|
2654
3849
|
last_update_timestamp: z.ZodBigInt;
|
|
2655
3850
|
decimals: z.ZodNumber;
|
|
@@ -2714,6 +3909,8 @@ export declare const ResponseSchemas: {
|
|
|
2714
3909
|
cumulative_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2715
3910
|
accumulated_protocol_fees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2716
3911
|
}, "strip", z.ZodTypeAny, {
|
|
3912
|
+
token_id: string;
|
|
3913
|
+
asset_id: number;
|
|
2717
3914
|
last_update_timestamp: bigint;
|
|
2718
3915
|
is_active: boolean;
|
|
2719
3916
|
decimals: number;
|
|
@@ -2740,6 +3937,8 @@ export declare const ResponseSchemas: {
|
|
|
2740
3937
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2741
3938
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2742
3939
|
}, {
|
|
3940
|
+
token_id: string;
|
|
3941
|
+
asset_id: number;
|
|
2743
3942
|
last_update_timestamp: bigint;
|
|
2744
3943
|
is_active: boolean;
|
|
2745
3944
|
decimals: number;
|
|
@@ -2765,7 +3964,9 @@ export declare const ResponseSchemas: {
|
|
|
2765
3964
|
cumulative_deposit_rate: string | number;
|
|
2766
3965
|
cumulative_borrow_rate: string | number;
|
|
2767
3966
|
accumulated_protocol_fees: string | number;
|
|
2768
|
-
}
|
|
3967
|
+
}>>, Map<number, {
|
|
3968
|
+
token_id: string;
|
|
3969
|
+
asset_id: number;
|
|
2769
3970
|
last_update_timestamp: bigint;
|
|
2770
3971
|
is_active: boolean;
|
|
2771
3972
|
decimals: number;
|
|
@@ -2791,7 +3992,9 @@ export declare const ResponseSchemas: {
|
|
|
2791
3992
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
2792
3993
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2793
3994
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2794
|
-
}
|
|
3995
|
+
}>, Record<string, {
|
|
3996
|
+
token_id: string;
|
|
3997
|
+
asset_id: number;
|
|
2795
3998
|
last_update_timestamp: bigint;
|
|
2796
3999
|
is_active: boolean;
|
|
2797
4000
|
decimals: number;
|
|
@@ -2817,9 +4020,12 @@ export declare const ResponseSchemas: {
|
|
|
2817
4020
|
cumulative_deposit_rate: string | number;
|
|
2818
4021
|
cumulative_borrow_rate: string | number;
|
|
2819
4022
|
accumulated_protocol_fees: string | number;
|
|
2820
|
-
}
|
|
4023
|
+
}>>;
|
|
4024
|
+
not_found: z.ZodArray<z.ZodNumber, "many">;
|
|
2821
4025
|
}, "strip", z.ZodTypeAny, {
|
|
2822
|
-
|
|
4026
|
+
found: Map<number, {
|
|
4027
|
+
token_id: string;
|
|
4028
|
+
asset_id: number;
|
|
2823
4029
|
last_update_timestamp: bigint;
|
|
2824
4030
|
is_active: boolean;
|
|
2825
4031
|
decimals: number;
|
|
@@ -2845,9 +4051,12 @@ export declare const ResponseSchemas: {
|
|
|
2845
4051
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
2846
4052
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2847
4053
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2848
|
-
}
|
|
4054
|
+
}>;
|
|
4055
|
+
not_found: number[];
|
|
2849
4056
|
}, {
|
|
2850
|
-
|
|
4057
|
+
found: Record<string, {
|
|
4058
|
+
token_id: string;
|
|
4059
|
+
asset_id: number;
|
|
2851
4060
|
last_update_timestamp: bigint;
|
|
2852
4061
|
is_active: boolean;
|
|
2853
4062
|
decimals: number;
|
|
@@ -2873,12 +4082,15 @@ export declare const ResponseSchemas: {
|
|
|
2873
4082
|
cumulative_deposit_rate: string | number;
|
|
2874
4083
|
cumulative_borrow_rate: string | number;
|
|
2875
4084
|
accumulated_protocol_fees: string | number;
|
|
2876
|
-
}
|
|
4085
|
+
}>;
|
|
4086
|
+
not_found: number[];
|
|
2877
4087
|
}>;
|
|
2878
4088
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
2879
4089
|
}, "strip", z.ZodTypeAny, {
|
|
2880
4090
|
data: {
|
|
2881
|
-
|
|
4091
|
+
found: Map<number, {
|
|
4092
|
+
token_id: string;
|
|
4093
|
+
asset_id: number;
|
|
2882
4094
|
last_update_timestamp: bigint;
|
|
2883
4095
|
is_active: boolean;
|
|
2884
4096
|
decimals: number;
|
|
@@ -2904,12 +4116,15 @@ export declare const ResponseSchemas: {
|
|
|
2904
4116
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
2905
4117
|
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
2906
4118
|
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
2907
|
-
}
|
|
4119
|
+
}>;
|
|
4120
|
+
not_found: number[];
|
|
2908
4121
|
};
|
|
2909
4122
|
meta: Map<unknown, unknown> | null;
|
|
2910
4123
|
}, {
|
|
2911
4124
|
data: {
|
|
2912
|
-
|
|
4125
|
+
found: Record<string, {
|
|
4126
|
+
token_id: string;
|
|
4127
|
+
asset_id: number;
|
|
2913
4128
|
last_update_timestamp: bigint;
|
|
2914
4129
|
is_active: boolean;
|
|
2915
4130
|
decimals: number;
|
|
@@ -2935,117 +4150,290 @@ export declare const ResponseSchemas: {
|
|
|
2935
4150
|
cumulative_deposit_rate: string | number;
|
|
2936
4151
|
cumulative_borrow_rate: string | number;
|
|
2937
4152
|
accumulated_protocol_fees: string | number;
|
|
2938
|
-
}
|
|
4153
|
+
}>;
|
|
4154
|
+
not_found: number[];
|
|
4155
|
+
};
|
|
4156
|
+
meta: Record<string, unknown> | null;
|
|
4157
|
+
}>;
|
|
4158
|
+
readonly PerpMarket: z.ZodObject<{
|
|
4159
|
+
data: z.ZodObject<{
|
|
4160
|
+
asset_id: z.ZodNumber;
|
|
4161
|
+
market: z.ZodObject<{
|
|
4162
|
+
asset_id: z.ZodNumber;
|
|
4163
|
+
is_active: z.ZodBoolean;
|
|
4164
|
+
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4165
|
+
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4166
|
+
funding_market_args: z.ZodObject<{
|
|
4167
|
+
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4168
|
+
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4169
|
+
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4170
|
+
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4171
|
+
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4172
|
+
}, "strip", z.ZodTypeAny, {
|
|
4173
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4174
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4175
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4176
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4177
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4178
|
+
}, {
|
|
4179
|
+
interest_rate: string | number;
|
|
4180
|
+
min_interest_rate_clamp: string | number;
|
|
4181
|
+
max_interest_rate_clamp: string | number;
|
|
4182
|
+
min_funding_rate_clamp: string | number;
|
|
4183
|
+
max_funding_rate_clamp: string | number;
|
|
4184
|
+
}>;
|
|
4185
|
+
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4186
|
+
}, "strip", z.ZodTypeAny, {
|
|
4187
|
+
asset_id: number;
|
|
4188
|
+
is_active: boolean;
|
|
4189
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
4190
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
4191
|
+
funding_market_args: {
|
|
4192
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4193
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4194
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4195
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4196
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4197
|
+
};
|
|
4198
|
+
impact_margin: import("decimal.js").Decimal;
|
|
4199
|
+
}, {
|
|
4200
|
+
asset_id: number;
|
|
4201
|
+
is_active: boolean;
|
|
4202
|
+
min_tick_size: string | number;
|
|
4203
|
+
min_lot_size: string | number;
|
|
4204
|
+
funding_market_args: {
|
|
4205
|
+
interest_rate: string | number;
|
|
4206
|
+
min_interest_rate_clamp: string | number;
|
|
4207
|
+
max_interest_rate_clamp: string | number;
|
|
4208
|
+
min_funding_rate_clamp: string | number;
|
|
4209
|
+
max_funding_rate_clamp: string | number;
|
|
4210
|
+
};
|
|
4211
|
+
impact_margin: string | number;
|
|
4212
|
+
}>;
|
|
4213
|
+
}, "strip", z.ZodTypeAny, {
|
|
4214
|
+
asset_id: number;
|
|
4215
|
+
market: {
|
|
4216
|
+
asset_id: number;
|
|
4217
|
+
is_active: boolean;
|
|
4218
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
4219
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
4220
|
+
funding_market_args: {
|
|
4221
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4222
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4223
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4224
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4225
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4226
|
+
};
|
|
4227
|
+
impact_margin: import("decimal.js").Decimal;
|
|
4228
|
+
};
|
|
4229
|
+
}, {
|
|
4230
|
+
asset_id: number;
|
|
4231
|
+
market: {
|
|
4232
|
+
asset_id: number;
|
|
4233
|
+
is_active: boolean;
|
|
4234
|
+
min_tick_size: string | number;
|
|
4235
|
+
min_lot_size: string | number;
|
|
4236
|
+
funding_market_args: {
|
|
4237
|
+
interest_rate: string | number;
|
|
4238
|
+
min_interest_rate_clamp: string | number;
|
|
4239
|
+
max_interest_rate_clamp: string | number;
|
|
4240
|
+
min_funding_rate_clamp: string | number;
|
|
4241
|
+
max_funding_rate_clamp: string | number;
|
|
4242
|
+
};
|
|
4243
|
+
impact_margin: string | number;
|
|
4244
|
+
};
|
|
4245
|
+
}>;
|
|
4246
|
+
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
4247
|
+
}, "strip", z.ZodTypeAny, {
|
|
4248
|
+
data: {
|
|
4249
|
+
asset_id: number;
|
|
4250
|
+
market: {
|
|
4251
|
+
asset_id: number;
|
|
4252
|
+
is_active: boolean;
|
|
4253
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
4254
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
4255
|
+
funding_market_args: {
|
|
4256
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4257
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4258
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4259
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4260
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4261
|
+
};
|
|
4262
|
+
impact_margin: import("decimal.js").Decimal;
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4265
|
+
meta: Map<unknown, unknown> | null;
|
|
4266
|
+
}, {
|
|
4267
|
+
data: {
|
|
4268
|
+
asset_id: number;
|
|
4269
|
+
market: {
|
|
4270
|
+
asset_id: number;
|
|
4271
|
+
is_active: boolean;
|
|
4272
|
+
min_tick_size: string | number;
|
|
4273
|
+
min_lot_size: string | number;
|
|
4274
|
+
funding_market_args: {
|
|
4275
|
+
interest_rate: string | number;
|
|
4276
|
+
min_interest_rate_clamp: string | number;
|
|
4277
|
+
max_interest_rate_clamp: string | number;
|
|
4278
|
+
min_funding_rate_clamp: string | number;
|
|
4279
|
+
max_funding_rate_clamp: string | number;
|
|
4280
|
+
};
|
|
4281
|
+
impact_margin: string | number;
|
|
4282
|
+
};
|
|
2939
4283
|
};
|
|
2940
4284
|
meta: Record<string, unknown> | null;
|
|
2941
4285
|
}>;
|
|
2942
|
-
readonly
|
|
4286
|
+
readonly PerpMarketBulk: z.ZodObject<{
|
|
2943
4287
|
data: z.ZodObject<{
|
|
2944
|
-
|
|
4288
|
+
found: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4289
|
+
asset_id: z.ZodNumber;
|
|
2945
4290
|
is_active: z.ZodBoolean;
|
|
2946
4291
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2947
4292
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
4293
|
+
funding_market_args: z.ZodObject<{
|
|
4294
|
+
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4295
|
+
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4296
|
+
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4297
|
+
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4298
|
+
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4299
|
+
}, "strip", z.ZodTypeAny, {
|
|
4300
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4301
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4302
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4303
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4304
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4305
|
+
}, {
|
|
4306
|
+
interest_rate: string | number;
|
|
4307
|
+
min_interest_rate_clamp: string | number;
|
|
4308
|
+
max_interest_rate_clamp: string | number;
|
|
4309
|
+
min_funding_rate_clamp: string | number;
|
|
4310
|
+
max_funding_rate_clamp: string | number;
|
|
4311
|
+
}>;
|
|
2952
4312
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2953
|
-
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2954
4313
|
}, "strip", z.ZodTypeAny, {
|
|
4314
|
+
asset_id: number;
|
|
2955
4315
|
is_active: boolean;
|
|
2956
4316
|
min_tick_size: import("decimal.js").Decimal;
|
|
2957
4317
|
min_lot_size: import("decimal.js").Decimal;
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
4318
|
+
funding_market_args: {
|
|
4319
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4320
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4321
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4322
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4323
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4324
|
+
};
|
|
2962
4325
|
impact_margin: import("decimal.js").Decimal;
|
|
2963
|
-
interest_rate: import("decimal.js").Decimal;
|
|
2964
4326
|
}, {
|
|
4327
|
+
asset_id: number;
|
|
2965
4328
|
is_active: boolean;
|
|
2966
4329
|
min_tick_size: string | number;
|
|
2967
4330
|
min_lot_size: string | number;
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
4331
|
+
funding_market_args: {
|
|
4332
|
+
interest_rate: string | number;
|
|
4333
|
+
min_interest_rate_clamp: string | number;
|
|
4334
|
+
max_interest_rate_clamp: string | number;
|
|
4335
|
+
min_funding_rate_clamp: string | number;
|
|
4336
|
+
max_funding_rate_clamp: string | number;
|
|
4337
|
+
};
|
|
2972
4338
|
impact_margin: string | number;
|
|
2973
|
-
|
|
2974
|
-
|
|
4339
|
+
}>>, Map<number, {
|
|
4340
|
+
asset_id: number;
|
|
2975
4341
|
is_active: boolean;
|
|
2976
4342
|
min_tick_size: import("decimal.js").Decimal;
|
|
2977
4343
|
min_lot_size: import("decimal.js").Decimal;
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
4344
|
+
funding_market_args: {
|
|
4345
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4346
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4347
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4348
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4349
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4350
|
+
};
|
|
2982
4351
|
impact_margin: import("decimal.js").Decimal;
|
|
2983
|
-
|
|
2984
|
-
|
|
4352
|
+
}>, Record<string, {
|
|
4353
|
+
asset_id: number;
|
|
2985
4354
|
is_active: boolean;
|
|
2986
4355
|
min_tick_size: string | number;
|
|
2987
4356
|
min_lot_size: string | number;
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
4357
|
+
funding_market_args: {
|
|
4358
|
+
interest_rate: string | number;
|
|
4359
|
+
min_interest_rate_clamp: string | number;
|
|
4360
|
+
max_interest_rate_clamp: string | number;
|
|
4361
|
+
min_funding_rate_clamp: string | number;
|
|
4362
|
+
max_funding_rate_clamp: string | number;
|
|
4363
|
+
};
|
|
2992
4364
|
impact_margin: string | number;
|
|
2993
|
-
|
|
2994
|
-
|
|
4365
|
+
}>>;
|
|
4366
|
+
not_found: z.ZodArray<z.ZodNumber, "many">;
|
|
2995
4367
|
}, "strip", z.ZodTypeAny, {
|
|
2996
|
-
|
|
4368
|
+
found: Map<number, {
|
|
4369
|
+
asset_id: number;
|
|
2997
4370
|
is_active: boolean;
|
|
2998
4371
|
min_tick_size: import("decimal.js").Decimal;
|
|
2999
4372
|
min_lot_size: import("decimal.js").Decimal;
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
4373
|
+
funding_market_args: {
|
|
4374
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4375
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4376
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4377
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4378
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4379
|
+
};
|
|
3004
4380
|
impact_margin: import("decimal.js").Decimal;
|
|
3005
|
-
|
|
3006
|
-
|
|
4381
|
+
}>;
|
|
4382
|
+
not_found: number[];
|
|
3007
4383
|
}, {
|
|
3008
|
-
|
|
4384
|
+
found: Record<string, {
|
|
4385
|
+
asset_id: number;
|
|
3009
4386
|
is_active: boolean;
|
|
3010
4387
|
min_tick_size: string | number;
|
|
3011
4388
|
min_lot_size: string | number;
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
4389
|
+
funding_market_args: {
|
|
4390
|
+
interest_rate: string | number;
|
|
4391
|
+
min_interest_rate_clamp: string | number;
|
|
4392
|
+
max_interest_rate_clamp: string | number;
|
|
4393
|
+
min_funding_rate_clamp: string | number;
|
|
4394
|
+
max_funding_rate_clamp: string | number;
|
|
4395
|
+
};
|
|
3016
4396
|
impact_margin: string | number;
|
|
3017
|
-
|
|
3018
|
-
|
|
4397
|
+
}>;
|
|
4398
|
+
not_found: number[];
|
|
3019
4399
|
}>;
|
|
3020
4400
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
3021
4401
|
}, "strip", z.ZodTypeAny, {
|
|
3022
4402
|
data: {
|
|
3023
|
-
|
|
4403
|
+
found: Map<number, {
|
|
4404
|
+
asset_id: number;
|
|
3024
4405
|
is_active: boolean;
|
|
3025
4406
|
min_tick_size: import("decimal.js").Decimal;
|
|
3026
4407
|
min_lot_size: import("decimal.js").Decimal;
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
4408
|
+
funding_market_args: {
|
|
4409
|
+
interest_rate: import("decimal.js").Decimal;
|
|
4410
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4411
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
4412
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4413
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
4414
|
+
};
|
|
3031
4415
|
impact_margin: import("decimal.js").Decimal;
|
|
3032
|
-
|
|
3033
|
-
|
|
4416
|
+
}>;
|
|
4417
|
+
not_found: number[];
|
|
3034
4418
|
};
|
|
3035
4419
|
meta: Map<unknown, unknown> | null;
|
|
3036
4420
|
}, {
|
|
3037
4421
|
data: {
|
|
3038
|
-
|
|
4422
|
+
found: Record<string, {
|
|
4423
|
+
asset_id: number;
|
|
3039
4424
|
is_active: boolean;
|
|
3040
4425
|
min_tick_size: string | number;
|
|
3041
4426
|
min_lot_size: string | number;
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
4427
|
+
funding_market_args: {
|
|
4428
|
+
interest_rate: string | number;
|
|
4429
|
+
min_interest_rate_clamp: string | number;
|
|
4430
|
+
max_interest_rate_clamp: string | number;
|
|
4431
|
+
min_funding_rate_clamp: string | number;
|
|
4432
|
+
max_funding_rate_clamp: string | number;
|
|
4433
|
+
};
|
|
3046
4434
|
impact_margin: string | number;
|
|
3047
|
-
|
|
3048
|
-
|
|
4435
|
+
}>;
|
|
4436
|
+
not_found: number[];
|
|
3049
4437
|
};
|
|
3050
4438
|
meta: Record<string, unknown> | null;
|
|
3051
4439
|
}>;
|
|
@@ -3228,16 +4616,17 @@ export declare const ResponseSchemas: {
|
|
|
3228
4616
|
}>;
|
|
3229
4617
|
};
|
|
3230
4618
|
export type DummyValue = z.infer<typeof Schemas.DummyValue>;
|
|
3231
|
-
export type Order = z.infer<typeof
|
|
4619
|
+
export type Order = z.infer<typeof Order>;
|
|
3232
4620
|
export type OrderbookL2 = z.infer<typeof Schemas.OrderbookL2>;
|
|
3233
4621
|
export type PriceLevel = z.infer<typeof PriceLevel>;
|
|
3234
4622
|
export type UserAccount = z.infer<typeof Schemas.UserAccount>;
|
|
3235
|
-
export type
|
|
4623
|
+
export type OraclePrices = z.infer<typeof Schemas.OraclePrices>;
|
|
4624
|
+
export type PerpPrices = z.infer<typeof Schemas.PerpPrices>;
|
|
3236
4625
|
export type UsdcPnlPool = z.infer<typeof Schemas.UsdcPnlPool>;
|
|
3237
4626
|
export type UsdcInsuranceFund = z.infer<typeof Schemas.UsdcInsuranceFund>;
|
|
3238
4627
|
export type BorrowLendMarket = z.infer<typeof Schemas.BorrowLendMarket>;
|
|
3239
4628
|
export type PerpMarket = z.infer<typeof Schemas.PerpMarket>;
|
|
3240
4629
|
export type MarginConfig = z.infer<typeof Schemas.MarginConfig>;
|
|
3241
4630
|
export type Assets = z.infer<typeof Schemas.Assets>;
|
|
3242
|
-
export type
|
|
4631
|
+
export type Tpsl = z.infer<typeof Tpsl>;
|
|
3243
4632
|
export {};
|