@bulletxyz/bullet-sdk 0.17.5-rc.3 → 0.17.6-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 +22 -23
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +22 -23
- package/dist/node/index.js.map +2 -2
- package/dist/types/bullet-wasm/index.d.ts +1 -1
- package/dist/types/client.d.ts +4 -4
- package/dist/types/zod-types/index.d.ts +1 -1
- package/dist/types/zod-types/rest.d.ts +156 -72
- package/package.json +1 -1
|
@@ -625,7 +625,7 @@ export declare const Schemas: {
|
|
|
625
625
|
liability: string | number;
|
|
626
626
|
}>>;
|
|
627
627
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
628
|
-
orders: z.
|
|
628
|
+
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
629
629
|
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
630
630
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
631
631
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
@@ -652,7 +652,25 @@ export declare const Schemas: {
|
|
|
652
652
|
filled_size: string | number;
|
|
653
653
|
average_filled_price: string | number;
|
|
654
654
|
tpsl_order_ids: bigint[];
|
|
655
|
-
}
|
|
655
|
+
}>>, Map<bigint, {
|
|
656
|
+
size: import("decimal.js").Decimal;
|
|
657
|
+
price: import("decimal.js").Decimal;
|
|
658
|
+
side: "Bid" | "Ask";
|
|
659
|
+
order_id: bigint;
|
|
660
|
+
reduce_only: boolean;
|
|
661
|
+
filled_size: import("decimal.js").Decimal;
|
|
662
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
663
|
+
tpsl_order_ids: bigint[];
|
|
664
|
+
}>, Record<string, {
|
|
665
|
+
size: string | number;
|
|
666
|
+
price: string | number;
|
|
667
|
+
side: "Bid" | "Ask";
|
|
668
|
+
order_id: bigint;
|
|
669
|
+
reduce_only: boolean;
|
|
670
|
+
filled_size: string | number;
|
|
671
|
+
average_filled_price: string | number;
|
|
672
|
+
tpsl_order_ids: bigint[];
|
|
673
|
+
}>>;
|
|
656
674
|
position: z.ZodObject<{
|
|
657
675
|
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
658
676
|
cost_of_trades: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -679,7 +697,7 @@ export declare const Schemas: {
|
|
|
679
697
|
funding_payments_on_position: string | number;
|
|
680
698
|
}>;
|
|
681
699
|
user_selected_max_leverage: z.ZodNumber;
|
|
682
|
-
tpsls: z.
|
|
700
|
+
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
683
701
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
684
702
|
tpsl_order_id: z.ZodBigInt;
|
|
685
703
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -715,9 +733,33 @@ export declare const Schemas: {
|
|
|
715
733
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
716
734
|
parent_order_id: bigint | null;
|
|
717
735
|
linked_tpsl_order_ids: bigint[];
|
|
718
|
-
}
|
|
736
|
+
}>>, Map<bigint, {
|
|
737
|
+
side: "Bid" | "Ask";
|
|
738
|
+
tpsl_order_id: bigint;
|
|
739
|
+
order_price: import("decimal.js").Decimal;
|
|
740
|
+
trigger_price: import("decimal.js").Decimal;
|
|
741
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
742
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
743
|
+
active_size: import("decimal.js").Decimal;
|
|
744
|
+
full_size: import("decimal.js").Decimal;
|
|
745
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
746
|
+
parent_order_id: bigint | null;
|
|
747
|
+
linked_tpsl_order_ids: bigint[];
|
|
748
|
+
}>, Record<string, {
|
|
749
|
+
side: "Bid" | "Ask";
|
|
750
|
+
tpsl_order_id: bigint;
|
|
751
|
+
order_price: string | number;
|
|
752
|
+
trigger_price: string | number;
|
|
753
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
754
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
755
|
+
active_size: string | number;
|
|
756
|
+
full_size: string | number;
|
|
757
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
758
|
+
parent_order_id: bigint | null;
|
|
759
|
+
linked_tpsl_order_ids: bigint[];
|
|
760
|
+
}>>;
|
|
719
761
|
}, "strip", z.ZodTypeAny, {
|
|
720
|
-
orders: {
|
|
762
|
+
orders: Map<bigint, {
|
|
721
763
|
size: import("decimal.js").Decimal;
|
|
722
764
|
price: import("decimal.js").Decimal;
|
|
723
765
|
side: "Bid" | "Ask";
|
|
@@ -726,7 +768,7 @@ export declare const Schemas: {
|
|
|
726
768
|
filled_size: import("decimal.js").Decimal;
|
|
727
769
|
average_filled_price: import("decimal.js").Decimal;
|
|
728
770
|
tpsl_order_ids: bigint[];
|
|
729
|
-
}
|
|
771
|
+
}>;
|
|
730
772
|
position: {
|
|
731
773
|
size: import("decimal.js").Decimal;
|
|
732
774
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -737,7 +779,7 @@ export declare const Schemas: {
|
|
|
737
779
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
738
780
|
};
|
|
739
781
|
user_selected_max_leverage: number;
|
|
740
|
-
tpsls: {
|
|
782
|
+
tpsls: Map<bigint, {
|
|
741
783
|
side: "Bid" | "Ask";
|
|
742
784
|
tpsl_order_id: bigint;
|
|
743
785
|
order_price: import("decimal.js").Decimal;
|
|
@@ -749,9 +791,9 @@ export declare const Schemas: {
|
|
|
749
791
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
750
792
|
parent_order_id: bigint | null;
|
|
751
793
|
linked_tpsl_order_ids: bigint[];
|
|
752
|
-
}
|
|
794
|
+
}>;
|
|
753
795
|
}, {
|
|
754
|
-
orders: {
|
|
796
|
+
orders: Record<string, {
|
|
755
797
|
size: string | number;
|
|
756
798
|
price: string | number;
|
|
757
799
|
side: "Bid" | "Ask";
|
|
@@ -760,7 +802,7 @@ export declare const Schemas: {
|
|
|
760
802
|
filled_size: string | number;
|
|
761
803
|
average_filled_price: string | number;
|
|
762
804
|
tpsl_order_ids: bigint[];
|
|
763
|
-
}
|
|
805
|
+
}>;
|
|
764
806
|
position: {
|
|
765
807
|
size: string | number;
|
|
766
808
|
cost_of_trades: string | number;
|
|
@@ -771,7 +813,7 @@ export declare const Schemas: {
|
|
|
771
813
|
funding_payments_on_position: string | number;
|
|
772
814
|
};
|
|
773
815
|
user_selected_max_leverage: number;
|
|
774
|
-
tpsls: {
|
|
816
|
+
tpsls: Record<string, {
|
|
775
817
|
side: "Bid" | "Ask";
|
|
776
818
|
tpsl_order_id: bigint;
|
|
777
819
|
order_price: string | number;
|
|
@@ -783,9 +825,9 @@ export declare const Schemas: {
|
|
|
783
825
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
784
826
|
parent_order_id: bigint | null;
|
|
785
827
|
linked_tpsl_order_ids: bigint[];
|
|
786
|
-
}
|
|
828
|
+
}>;
|
|
787
829
|
}>>, Map<number, {
|
|
788
|
-
orders: {
|
|
830
|
+
orders: Map<bigint, {
|
|
789
831
|
size: import("decimal.js").Decimal;
|
|
790
832
|
price: import("decimal.js").Decimal;
|
|
791
833
|
side: "Bid" | "Ask";
|
|
@@ -794,7 +836,7 @@ export declare const Schemas: {
|
|
|
794
836
|
filled_size: import("decimal.js").Decimal;
|
|
795
837
|
average_filled_price: import("decimal.js").Decimal;
|
|
796
838
|
tpsl_order_ids: bigint[];
|
|
797
|
-
}
|
|
839
|
+
}>;
|
|
798
840
|
position: {
|
|
799
841
|
size: import("decimal.js").Decimal;
|
|
800
842
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -805,7 +847,7 @@ export declare const Schemas: {
|
|
|
805
847
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
806
848
|
};
|
|
807
849
|
user_selected_max_leverage: number;
|
|
808
|
-
tpsls: {
|
|
850
|
+
tpsls: Map<bigint, {
|
|
809
851
|
side: "Bid" | "Ask";
|
|
810
852
|
tpsl_order_id: bigint;
|
|
811
853
|
order_price: import("decimal.js").Decimal;
|
|
@@ -817,9 +859,9 @@ export declare const Schemas: {
|
|
|
817
859
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
818
860
|
parent_order_id: bigint | null;
|
|
819
861
|
linked_tpsl_order_ids: bigint[];
|
|
820
|
-
}
|
|
862
|
+
}>;
|
|
821
863
|
}>, Record<string, {
|
|
822
|
-
orders: {
|
|
864
|
+
orders: Record<string, {
|
|
823
865
|
size: string | number;
|
|
824
866
|
price: string | number;
|
|
825
867
|
side: "Bid" | "Ask";
|
|
@@ -828,7 +870,7 @@ export declare const Schemas: {
|
|
|
828
870
|
filled_size: string | number;
|
|
829
871
|
average_filled_price: string | number;
|
|
830
872
|
tpsl_order_ids: bigint[];
|
|
831
|
-
}
|
|
873
|
+
}>;
|
|
832
874
|
position: {
|
|
833
875
|
size: string | number;
|
|
834
876
|
cost_of_trades: string | number;
|
|
@@ -839,7 +881,7 @@ export declare const Schemas: {
|
|
|
839
881
|
funding_payments_on_position: string | number;
|
|
840
882
|
};
|
|
841
883
|
user_selected_max_leverage: number;
|
|
842
|
-
tpsls: {
|
|
884
|
+
tpsls: Record<string, {
|
|
843
885
|
side: "Bid" | "Ask";
|
|
844
886
|
tpsl_order_id: bigint;
|
|
845
887
|
order_price: string | number;
|
|
@@ -851,7 +893,7 @@ export declare const Schemas: {
|
|
|
851
893
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
852
894
|
parent_order_id: bigint | null;
|
|
853
895
|
linked_tpsl_order_ids: bigint[];
|
|
854
|
-
}
|
|
896
|
+
}>;
|
|
855
897
|
}>>;
|
|
856
898
|
}, "strip", z.ZodTypeAny, {
|
|
857
899
|
usdc_ledger: {
|
|
@@ -877,7 +919,7 @@ export declare const Schemas: {
|
|
|
877
919
|
liability: import("decimal.js").Decimal;
|
|
878
920
|
}>;
|
|
879
921
|
perp_ledgers: Map<number, {
|
|
880
|
-
orders: {
|
|
922
|
+
orders: Map<bigint, {
|
|
881
923
|
size: import("decimal.js").Decimal;
|
|
882
924
|
price: import("decimal.js").Decimal;
|
|
883
925
|
side: "Bid" | "Ask";
|
|
@@ -886,7 +928,7 @@ export declare const Schemas: {
|
|
|
886
928
|
filled_size: import("decimal.js").Decimal;
|
|
887
929
|
average_filled_price: import("decimal.js").Decimal;
|
|
888
930
|
tpsl_order_ids: bigint[];
|
|
889
|
-
}
|
|
931
|
+
}>;
|
|
890
932
|
position: {
|
|
891
933
|
size: import("decimal.js").Decimal;
|
|
892
934
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -897,7 +939,7 @@ export declare const Schemas: {
|
|
|
897
939
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
898
940
|
};
|
|
899
941
|
user_selected_max_leverage: number;
|
|
900
|
-
tpsls: {
|
|
942
|
+
tpsls: Map<bigint, {
|
|
901
943
|
side: "Bid" | "Ask";
|
|
902
944
|
tpsl_order_id: bigint;
|
|
903
945
|
order_price: import("decimal.js").Decimal;
|
|
@@ -909,7 +951,7 @@ export declare const Schemas: {
|
|
|
909
951
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
910
952
|
parent_order_id: bigint | null;
|
|
911
953
|
linked_tpsl_order_ids: bigint[];
|
|
912
|
-
}
|
|
954
|
+
}>;
|
|
913
955
|
}>;
|
|
914
956
|
}, {
|
|
915
957
|
usdc_ledger: {
|
|
@@ -935,7 +977,7 @@ export declare const Schemas: {
|
|
|
935
977
|
liability: string | number;
|
|
936
978
|
}>;
|
|
937
979
|
perp_ledgers: Record<string, {
|
|
938
|
-
orders: {
|
|
980
|
+
orders: Record<string, {
|
|
939
981
|
size: string | number;
|
|
940
982
|
price: string | number;
|
|
941
983
|
side: "Bid" | "Ask";
|
|
@@ -944,7 +986,7 @@ export declare const Schemas: {
|
|
|
944
986
|
filled_size: string | number;
|
|
945
987
|
average_filled_price: string | number;
|
|
946
988
|
tpsl_order_ids: bigint[];
|
|
947
|
-
}
|
|
989
|
+
}>;
|
|
948
990
|
position: {
|
|
949
991
|
size: string | number;
|
|
950
992
|
cost_of_trades: string | number;
|
|
@@ -955,7 +997,7 @@ export declare const Schemas: {
|
|
|
955
997
|
funding_payments_on_position: string | number;
|
|
956
998
|
};
|
|
957
999
|
user_selected_max_leverage: number;
|
|
958
|
-
tpsls: {
|
|
1000
|
+
tpsls: Record<string, {
|
|
959
1001
|
side: "Bid" | "Ask";
|
|
960
1002
|
tpsl_order_id: bigint;
|
|
961
1003
|
order_price: string | number;
|
|
@@ -967,7 +1009,7 @@ export declare const Schemas: {
|
|
|
967
1009
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
968
1010
|
parent_order_id: bigint | null;
|
|
969
1011
|
linked_tpsl_order_ids: bigint[];
|
|
970
|
-
}
|
|
1012
|
+
}>;
|
|
971
1013
|
}>;
|
|
972
1014
|
}>;
|
|
973
1015
|
readonly Pricing: z.ZodObject<{
|
|
@@ -1512,7 +1554,7 @@ export declare const ResponseSchemas: {
|
|
|
1512
1554
|
liability: string | number;
|
|
1513
1555
|
}>>;
|
|
1514
1556
|
perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1515
|
-
orders: z.
|
|
1557
|
+
orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1516
1558
|
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1517
1559
|
price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1518
1560
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
@@ -1539,7 +1581,25 @@ export declare const ResponseSchemas: {
|
|
|
1539
1581
|
filled_size: string | number;
|
|
1540
1582
|
average_filled_price: string | number;
|
|
1541
1583
|
tpsl_order_ids: bigint[];
|
|
1542
|
-
}
|
|
1584
|
+
}>>, Map<bigint, {
|
|
1585
|
+
size: import("decimal.js").Decimal;
|
|
1586
|
+
price: import("decimal.js").Decimal;
|
|
1587
|
+
side: "Bid" | "Ask";
|
|
1588
|
+
order_id: bigint;
|
|
1589
|
+
reduce_only: boolean;
|
|
1590
|
+
filled_size: import("decimal.js").Decimal;
|
|
1591
|
+
average_filled_price: import("decimal.js").Decimal;
|
|
1592
|
+
tpsl_order_ids: bigint[];
|
|
1593
|
+
}>, Record<string, {
|
|
1594
|
+
size: string | number;
|
|
1595
|
+
price: string | number;
|
|
1596
|
+
side: "Bid" | "Ask";
|
|
1597
|
+
order_id: bigint;
|
|
1598
|
+
reduce_only: boolean;
|
|
1599
|
+
filled_size: string | number;
|
|
1600
|
+
average_filled_price: string | number;
|
|
1601
|
+
tpsl_order_ids: bigint[];
|
|
1602
|
+
}>>;
|
|
1543
1603
|
position: z.ZodObject<{
|
|
1544
1604
|
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1545
1605
|
cost_of_trades: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1566,7 +1626,7 @@ export declare const ResponseSchemas: {
|
|
|
1566
1626
|
funding_payments_on_position: string | number;
|
|
1567
1627
|
}>;
|
|
1568
1628
|
user_selected_max_leverage: z.ZodNumber;
|
|
1569
|
-
tpsls: z.
|
|
1629
|
+
tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1570
1630
|
side: z.ZodEnum<["Bid", "Ask"]>;
|
|
1571
1631
|
tpsl_order_id: z.ZodBigInt;
|
|
1572
1632
|
order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1602,9 +1662,33 @@ export declare const ResponseSchemas: {
|
|
|
1602
1662
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1603
1663
|
parent_order_id: bigint | null;
|
|
1604
1664
|
linked_tpsl_order_ids: bigint[];
|
|
1605
|
-
}
|
|
1665
|
+
}>>, Map<bigint, {
|
|
1666
|
+
side: "Bid" | "Ask";
|
|
1667
|
+
tpsl_order_id: bigint;
|
|
1668
|
+
order_price: import("decimal.js").Decimal;
|
|
1669
|
+
trigger_price: import("decimal.js").Decimal;
|
|
1670
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
1671
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
1672
|
+
active_size: import("decimal.js").Decimal;
|
|
1673
|
+
full_size: import("decimal.js").Decimal;
|
|
1674
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1675
|
+
parent_order_id: bigint | null;
|
|
1676
|
+
linked_tpsl_order_ids: bigint[];
|
|
1677
|
+
}>, Record<string, {
|
|
1678
|
+
side: "Bid" | "Ask";
|
|
1679
|
+
tpsl_order_id: bigint;
|
|
1680
|
+
order_price: string | number;
|
|
1681
|
+
trigger_price: string | number;
|
|
1682
|
+
trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
|
|
1683
|
+
tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
|
|
1684
|
+
active_size: string | number;
|
|
1685
|
+
full_size: string | number;
|
|
1686
|
+
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1687
|
+
parent_order_id: bigint | null;
|
|
1688
|
+
linked_tpsl_order_ids: bigint[];
|
|
1689
|
+
}>>;
|
|
1606
1690
|
}, "strip", z.ZodTypeAny, {
|
|
1607
|
-
orders: {
|
|
1691
|
+
orders: Map<bigint, {
|
|
1608
1692
|
size: import("decimal.js").Decimal;
|
|
1609
1693
|
price: import("decimal.js").Decimal;
|
|
1610
1694
|
side: "Bid" | "Ask";
|
|
@@ -1613,7 +1697,7 @@ export declare const ResponseSchemas: {
|
|
|
1613
1697
|
filled_size: import("decimal.js").Decimal;
|
|
1614
1698
|
average_filled_price: import("decimal.js").Decimal;
|
|
1615
1699
|
tpsl_order_ids: bigint[];
|
|
1616
|
-
}
|
|
1700
|
+
}>;
|
|
1617
1701
|
position: {
|
|
1618
1702
|
size: import("decimal.js").Decimal;
|
|
1619
1703
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -1624,7 +1708,7 @@ export declare const ResponseSchemas: {
|
|
|
1624
1708
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
1625
1709
|
};
|
|
1626
1710
|
user_selected_max_leverage: number;
|
|
1627
|
-
tpsls: {
|
|
1711
|
+
tpsls: Map<bigint, {
|
|
1628
1712
|
side: "Bid" | "Ask";
|
|
1629
1713
|
tpsl_order_id: bigint;
|
|
1630
1714
|
order_price: import("decimal.js").Decimal;
|
|
@@ -1636,9 +1720,9 @@ export declare const ResponseSchemas: {
|
|
|
1636
1720
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1637
1721
|
parent_order_id: bigint | null;
|
|
1638
1722
|
linked_tpsl_order_ids: bigint[];
|
|
1639
|
-
}
|
|
1723
|
+
}>;
|
|
1640
1724
|
}, {
|
|
1641
|
-
orders: {
|
|
1725
|
+
orders: Record<string, {
|
|
1642
1726
|
size: string | number;
|
|
1643
1727
|
price: string | number;
|
|
1644
1728
|
side: "Bid" | "Ask";
|
|
@@ -1647,7 +1731,7 @@ export declare const ResponseSchemas: {
|
|
|
1647
1731
|
filled_size: string | number;
|
|
1648
1732
|
average_filled_price: string | number;
|
|
1649
1733
|
tpsl_order_ids: bigint[];
|
|
1650
|
-
}
|
|
1734
|
+
}>;
|
|
1651
1735
|
position: {
|
|
1652
1736
|
size: string | number;
|
|
1653
1737
|
cost_of_trades: string | number;
|
|
@@ -1658,7 +1742,7 @@ export declare const ResponseSchemas: {
|
|
|
1658
1742
|
funding_payments_on_position: string | number;
|
|
1659
1743
|
};
|
|
1660
1744
|
user_selected_max_leverage: number;
|
|
1661
|
-
tpsls: {
|
|
1745
|
+
tpsls: Record<string, {
|
|
1662
1746
|
side: "Bid" | "Ask";
|
|
1663
1747
|
tpsl_order_id: bigint;
|
|
1664
1748
|
order_price: string | number;
|
|
@@ -1670,9 +1754,9 @@ export declare const ResponseSchemas: {
|
|
|
1670
1754
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1671
1755
|
parent_order_id: bigint | null;
|
|
1672
1756
|
linked_tpsl_order_ids: bigint[];
|
|
1673
|
-
}
|
|
1757
|
+
}>;
|
|
1674
1758
|
}>>, Map<number, {
|
|
1675
|
-
orders: {
|
|
1759
|
+
orders: Map<bigint, {
|
|
1676
1760
|
size: import("decimal.js").Decimal;
|
|
1677
1761
|
price: import("decimal.js").Decimal;
|
|
1678
1762
|
side: "Bid" | "Ask";
|
|
@@ -1681,7 +1765,7 @@ export declare const ResponseSchemas: {
|
|
|
1681
1765
|
filled_size: import("decimal.js").Decimal;
|
|
1682
1766
|
average_filled_price: import("decimal.js").Decimal;
|
|
1683
1767
|
tpsl_order_ids: bigint[];
|
|
1684
|
-
}
|
|
1768
|
+
}>;
|
|
1685
1769
|
position: {
|
|
1686
1770
|
size: import("decimal.js").Decimal;
|
|
1687
1771
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -1692,7 +1776,7 @@ export declare const ResponseSchemas: {
|
|
|
1692
1776
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
1693
1777
|
};
|
|
1694
1778
|
user_selected_max_leverage: number;
|
|
1695
|
-
tpsls: {
|
|
1779
|
+
tpsls: Map<bigint, {
|
|
1696
1780
|
side: "Bid" | "Ask";
|
|
1697
1781
|
tpsl_order_id: bigint;
|
|
1698
1782
|
order_price: import("decimal.js").Decimal;
|
|
@@ -1704,9 +1788,9 @@ export declare const ResponseSchemas: {
|
|
|
1704
1788
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1705
1789
|
parent_order_id: bigint | null;
|
|
1706
1790
|
linked_tpsl_order_ids: bigint[];
|
|
1707
|
-
}
|
|
1791
|
+
}>;
|
|
1708
1792
|
}>, Record<string, {
|
|
1709
|
-
orders: {
|
|
1793
|
+
orders: Record<string, {
|
|
1710
1794
|
size: string | number;
|
|
1711
1795
|
price: string | number;
|
|
1712
1796
|
side: "Bid" | "Ask";
|
|
@@ -1715,7 +1799,7 @@ export declare const ResponseSchemas: {
|
|
|
1715
1799
|
filled_size: string | number;
|
|
1716
1800
|
average_filled_price: string | number;
|
|
1717
1801
|
tpsl_order_ids: bigint[];
|
|
1718
|
-
}
|
|
1802
|
+
}>;
|
|
1719
1803
|
position: {
|
|
1720
1804
|
size: string | number;
|
|
1721
1805
|
cost_of_trades: string | number;
|
|
@@ -1726,7 +1810,7 @@ export declare const ResponseSchemas: {
|
|
|
1726
1810
|
funding_payments_on_position: string | number;
|
|
1727
1811
|
};
|
|
1728
1812
|
user_selected_max_leverage: number;
|
|
1729
|
-
tpsls: {
|
|
1813
|
+
tpsls: Record<string, {
|
|
1730
1814
|
side: "Bid" | "Ask";
|
|
1731
1815
|
tpsl_order_id: bigint;
|
|
1732
1816
|
order_price: string | number;
|
|
@@ -1738,7 +1822,7 @@ export declare const ResponseSchemas: {
|
|
|
1738
1822
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1739
1823
|
parent_order_id: bigint | null;
|
|
1740
1824
|
linked_tpsl_order_ids: bigint[];
|
|
1741
|
-
}
|
|
1825
|
+
}>;
|
|
1742
1826
|
}>>;
|
|
1743
1827
|
}, "strip", z.ZodTypeAny, {
|
|
1744
1828
|
usdc_ledger: {
|
|
@@ -1764,7 +1848,7 @@ export declare const ResponseSchemas: {
|
|
|
1764
1848
|
liability: import("decimal.js").Decimal;
|
|
1765
1849
|
}>;
|
|
1766
1850
|
perp_ledgers: Map<number, {
|
|
1767
|
-
orders: {
|
|
1851
|
+
orders: Map<bigint, {
|
|
1768
1852
|
size: import("decimal.js").Decimal;
|
|
1769
1853
|
price: import("decimal.js").Decimal;
|
|
1770
1854
|
side: "Bid" | "Ask";
|
|
@@ -1773,7 +1857,7 @@ export declare const ResponseSchemas: {
|
|
|
1773
1857
|
filled_size: import("decimal.js").Decimal;
|
|
1774
1858
|
average_filled_price: import("decimal.js").Decimal;
|
|
1775
1859
|
tpsl_order_ids: bigint[];
|
|
1776
|
-
}
|
|
1860
|
+
}>;
|
|
1777
1861
|
position: {
|
|
1778
1862
|
size: import("decimal.js").Decimal;
|
|
1779
1863
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -1784,7 +1868,7 @@ export declare const ResponseSchemas: {
|
|
|
1784
1868
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
1785
1869
|
};
|
|
1786
1870
|
user_selected_max_leverage: number;
|
|
1787
|
-
tpsls: {
|
|
1871
|
+
tpsls: Map<bigint, {
|
|
1788
1872
|
side: "Bid" | "Ask";
|
|
1789
1873
|
tpsl_order_id: bigint;
|
|
1790
1874
|
order_price: import("decimal.js").Decimal;
|
|
@@ -1796,7 +1880,7 @@ export declare const ResponseSchemas: {
|
|
|
1796
1880
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1797
1881
|
parent_order_id: bigint | null;
|
|
1798
1882
|
linked_tpsl_order_ids: bigint[];
|
|
1799
|
-
}
|
|
1883
|
+
}>;
|
|
1800
1884
|
}>;
|
|
1801
1885
|
}, {
|
|
1802
1886
|
usdc_ledger: {
|
|
@@ -1822,7 +1906,7 @@ export declare const ResponseSchemas: {
|
|
|
1822
1906
|
liability: string | number;
|
|
1823
1907
|
}>;
|
|
1824
1908
|
perp_ledgers: Record<string, {
|
|
1825
|
-
orders: {
|
|
1909
|
+
orders: Record<string, {
|
|
1826
1910
|
size: string | number;
|
|
1827
1911
|
price: string | number;
|
|
1828
1912
|
side: "Bid" | "Ask";
|
|
@@ -1831,7 +1915,7 @@ export declare const ResponseSchemas: {
|
|
|
1831
1915
|
filled_size: string | number;
|
|
1832
1916
|
average_filled_price: string | number;
|
|
1833
1917
|
tpsl_order_ids: bigint[];
|
|
1834
|
-
}
|
|
1918
|
+
}>;
|
|
1835
1919
|
position: {
|
|
1836
1920
|
size: string | number;
|
|
1837
1921
|
cost_of_trades: string | number;
|
|
@@ -1842,7 +1926,7 @@ export declare const ResponseSchemas: {
|
|
|
1842
1926
|
funding_payments_on_position: string | number;
|
|
1843
1927
|
};
|
|
1844
1928
|
user_selected_max_leverage: number;
|
|
1845
|
-
tpsls: {
|
|
1929
|
+
tpsls: Record<string, {
|
|
1846
1930
|
side: "Bid" | "Ask";
|
|
1847
1931
|
tpsl_order_id: bigint;
|
|
1848
1932
|
order_price: string | number;
|
|
@@ -1854,7 +1938,7 @@ export declare const ResponseSchemas: {
|
|
|
1854
1938
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1855
1939
|
parent_order_id: bigint | null;
|
|
1856
1940
|
linked_tpsl_order_ids: bigint[];
|
|
1857
|
-
}
|
|
1941
|
+
}>;
|
|
1858
1942
|
}>;
|
|
1859
1943
|
}>, "many">;
|
|
1860
1944
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1882,7 +1966,7 @@ export declare const ResponseSchemas: {
|
|
|
1882
1966
|
liability: import("decimal.js").Decimal;
|
|
1883
1967
|
}>;
|
|
1884
1968
|
perp_ledgers: Map<number, {
|
|
1885
|
-
orders: {
|
|
1969
|
+
orders: Map<bigint, {
|
|
1886
1970
|
size: import("decimal.js").Decimal;
|
|
1887
1971
|
price: import("decimal.js").Decimal;
|
|
1888
1972
|
side: "Bid" | "Ask";
|
|
@@ -1891,7 +1975,7 @@ export declare const ResponseSchemas: {
|
|
|
1891
1975
|
filled_size: import("decimal.js").Decimal;
|
|
1892
1976
|
average_filled_price: import("decimal.js").Decimal;
|
|
1893
1977
|
tpsl_order_ids: bigint[];
|
|
1894
|
-
}
|
|
1978
|
+
}>;
|
|
1895
1979
|
position: {
|
|
1896
1980
|
size: import("decimal.js").Decimal;
|
|
1897
1981
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -1902,7 +1986,7 @@ export declare const ResponseSchemas: {
|
|
|
1902
1986
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
1903
1987
|
};
|
|
1904
1988
|
user_selected_max_leverage: number;
|
|
1905
|
-
tpsls: {
|
|
1989
|
+
tpsls: Map<bigint, {
|
|
1906
1990
|
side: "Bid" | "Ask";
|
|
1907
1991
|
tpsl_order_id: bigint;
|
|
1908
1992
|
order_price: import("decimal.js").Decimal;
|
|
@@ -1914,7 +1998,7 @@ export declare const ResponseSchemas: {
|
|
|
1914
1998
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1915
1999
|
parent_order_id: bigint | null;
|
|
1916
2000
|
linked_tpsl_order_ids: bigint[];
|
|
1917
|
-
}
|
|
2001
|
+
}>;
|
|
1918
2002
|
}>;
|
|
1919
2003
|
}[];
|
|
1920
2004
|
}, {
|
|
@@ -1942,7 +2026,7 @@ export declare const ResponseSchemas: {
|
|
|
1942
2026
|
liability: string | number;
|
|
1943
2027
|
}>;
|
|
1944
2028
|
perp_ledgers: Record<string, {
|
|
1945
|
-
orders: {
|
|
2029
|
+
orders: Record<string, {
|
|
1946
2030
|
size: string | number;
|
|
1947
2031
|
price: string | number;
|
|
1948
2032
|
side: "Bid" | "Ask";
|
|
@@ -1951,7 +2035,7 @@ export declare const ResponseSchemas: {
|
|
|
1951
2035
|
filled_size: string | number;
|
|
1952
2036
|
average_filled_price: string | number;
|
|
1953
2037
|
tpsl_order_ids: bigint[];
|
|
1954
|
-
}
|
|
2038
|
+
}>;
|
|
1955
2039
|
position: {
|
|
1956
2040
|
size: string | number;
|
|
1957
2041
|
cost_of_trades: string | number;
|
|
@@ -1962,7 +2046,7 @@ export declare const ResponseSchemas: {
|
|
|
1962
2046
|
funding_payments_on_position: string | number;
|
|
1963
2047
|
};
|
|
1964
2048
|
user_selected_max_leverage: number;
|
|
1965
|
-
tpsls: {
|
|
2049
|
+
tpsls: Record<string, {
|
|
1966
2050
|
side: "Bid" | "Ask";
|
|
1967
2051
|
tpsl_order_id: bigint;
|
|
1968
2052
|
order_price: string | number;
|
|
@@ -1974,7 +2058,7 @@ export declare const ResponseSchemas: {
|
|
|
1974
2058
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
1975
2059
|
parent_order_id: bigint | null;
|
|
1976
2060
|
linked_tpsl_order_ids: bigint[];
|
|
1977
|
-
}
|
|
2061
|
+
}>;
|
|
1978
2062
|
}>;
|
|
1979
2063
|
}[];
|
|
1980
2064
|
}>;
|
|
@@ -2005,7 +2089,7 @@ export declare const ResponseSchemas: {
|
|
|
2005
2089
|
liability: import("decimal.js").Decimal;
|
|
2006
2090
|
}>;
|
|
2007
2091
|
perp_ledgers: Map<number, {
|
|
2008
|
-
orders: {
|
|
2092
|
+
orders: Map<bigint, {
|
|
2009
2093
|
size: import("decimal.js").Decimal;
|
|
2010
2094
|
price: import("decimal.js").Decimal;
|
|
2011
2095
|
side: "Bid" | "Ask";
|
|
@@ -2014,7 +2098,7 @@ export declare const ResponseSchemas: {
|
|
|
2014
2098
|
filled_size: import("decimal.js").Decimal;
|
|
2015
2099
|
average_filled_price: import("decimal.js").Decimal;
|
|
2016
2100
|
tpsl_order_ids: bigint[];
|
|
2017
|
-
}
|
|
2101
|
+
}>;
|
|
2018
2102
|
position: {
|
|
2019
2103
|
size: import("decimal.js").Decimal;
|
|
2020
2104
|
cost_of_trades: import("decimal.js").Decimal;
|
|
@@ -2025,7 +2109,7 @@ export declare const ResponseSchemas: {
|
|
|
2025
2109
|
funding_payments_on_position: import("decimal.js").Decimal;
|
|
2026
2110
|
};
|
|
2027
2111
|
user_selected_max_leverage: number;
|
|
2028
|
-
tpsls: {
|
|
2112
|
+
tpsls: Map<bigint, {
|
|
2029
2113
|
side: "Bid" | "Ask";
|
|
2030
2114
|
tpsl_order_id: bigint;
|
|
2031
2115
|
order_price: import("decimal.js").Decimal;
|
|
@@ -2037,7 +2121,7 @@ export declare const ResponseSchemas: {
|
|
|
2037
2121
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2038
2122
|
parent_order_id: bigint | null;
|
|
2039
2123
|
linked_tpsl_order_ids: bigint[];
|
|
2040
|
-
}
|
|
2124
|
+
}>;
|
|
2041
2125
|
}>;
|
|
2042
2126
|
}[];
|
|
2043
2127
|
};
|
|
@@ -2068,7 +2152,7 @@ export declare const ResponseSchemas: {
|
|
|
2068
2152
|
liability: string | number;
|
|
2069
2153
|
}>;
|
|
2070
2154
|
perp_ledgers: Record<string, {
|
|
2071
|
-
orders: {
|
|
2155
|
+
orders: Record<string, {
|
|
2072
2156
|
size: string | number;
|
|
2073
2157
|
price: string | number;
|
|
2074
2158
|
side: "Bid" | "Ask";
|
|
@@ -2077,7 +2161,7 @@ export declare const ResponseSchemas: {
|
|
|
2077
2161
|
filled_size: string | number;
|
|
2078
2162
|
average_filled_price: string | number;
|
|
2079
2163
|
tpsl_order_ids: bigint[];
|
|
2080
|
-
}
|
|
2164
|
+
}>;
|
|
2081
2165
|
position: {
|
|
2082
2166
|
size: string | number;
|
|
2083
2167
|
cost_of_trades: string | number;
|
|
@@ -2088,7 +2172,7 @@ export declare const ResponseSchemas: {
|
|
|
2088
2172
|
funding_payments_on_position: string | number;
|
|
2089
2173
|
};
|
|
2090
2174
|
user_selected_max_leverage: number;
|
|
2091
|
-
tpsls: {
|
|
2175
|
+
tpsls: Record<string, {
|
|
2092
2176
|
side: "Bid" | "Ask";
|
|
2093
2177
|
tpsl_order_id: bigint;
|
|
2094
2178
|
order_price: string | number;
|
|
@@ -2100,7 +2184,7 @@ export declare const ResponseSchemas: {
|
|
|
2100
2184
|
order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
|
|
2101
2185
|
parent_order_id: bigint | null;
|
|
2102
2186
|
linked_tpsl_order_ids: bigint[];
|
|
2103
|
-
}
|
|
2187
|
+
}>;
|
|
2104
2188
|
}>;
|
|
2105
2189
|
}[];
|
|
2106
2190
|
};
|