@bulletxyz/bullet-sdk 0.25.0-rc.1 → 0.25.0-rc.11
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 +78 -96
- package/dist/browser/index.js.map +2 -2
- package/dist/node/index.js +78 -96
- package/dist/node/index.js.map +2 -2
- package/dist/types/bullet-wasm/index.d.ts +4 -4
- package/dist/types/calc.d.ts +5 -5
- package/dist/types/client.d.ts +13 -12
- package/dist/types/rollupTypes.d.ts +2 -2
- package/dist/types/types.d.ts +8 -8
- package/dist/types/zod-types/index.d.ts +1 -0
- package/dist/types/zod-types/rest.d.ts +435 -815
- package/package.json +3 -3
|
@@ -363,15 +363,21 @@ 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 BorrowLendRiskConfig: z.ZodObject<{
|
|
367
|
+
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
368
|
+
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
367
369
|
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
368
370
|
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
369
371
|
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
370
372
|
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
374
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
371
375
|
asset_weight: import("decimal.js").Decimal;
|
|
372
376
|
initial_liability_weight: import("decimal.js").Decimal;
|
|
373
377
|
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
374
378
|
}, {
|
|
379
|
+
liquidation_reward_ratio: string | number;
|
|
380
|
+
liability_liquidation_limit_ratio: string | number;
|
|
375
381
|
asset_weight: string | number;
|
|
376
382
|
initial_liability_weight: string | number;
|
|
377
383
|
maintenance_liability_weight: string | number;
|
|
@@ -545,12 +551,12 @@ declare const Tpsl: z.ZodObject<{
|
|
|
545
551
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
546
552
|
trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
|
|
547
553
|
price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
|
|
548
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number
|
|
554
|
+
size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
|
|
549
555
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
550
556
|
owner: z.ZodString;
|
|
551
557
|
linked_tpsl_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
552
558
|
}, "strip", z.ZodTypeAny, {
|
|
553
|
-
size: import("decimal.js").Decimal;
|
|
559
|
+
size: import("decimal.js").Decimal | null;
|
|
554
560
|
tpsl_order_id: bigint;
|
|
555
561
|
order_price: import("decimal.js").Decimal;
|
|
556
562
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -562,7 +568,7 @@ declare const Tpsl: z.ZodObject<{
|
|
|
562
568
|
owner: string;
|
|
563
569
|
linked_tpsl_order_id: bigint | null;
|
|
564
570
|
}, {
|
|
565
|
-
size: string | number;
|
|
571
|
+
size: string | number | null;
|
|
566
572
|
tpsl_order_id: bigint;
|
|
567
573
|
order_price: string | number;
|
|
568
574
|
trigger_price: string | number;
|
|
@@ -616,35 +622,12 @@ export declare const Schemas: {
|
|
|
616
622
|
address: z.ZodString;
|
|
617
623
|
usdc_ledger: z.ZodObject<{
|
|
618
624
|
ledger: z.ZodObject<{
|
|
619
|
-
weights: z.ZodObject<{
|
|
620
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
621
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
622
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
623
|
-
}, "strip", z.ZodTypeAny, {
|
|
624
|
-
asset_weight: import("decimal.js").Decimal;
|
|
625
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
626
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
627
|
-
}, {
|
|
628
|
-
asset_weight: string | number;
|
|
629
|
-
initial_liability_weight: string | number;
|
|
630
|
-
maintenance_liability_weight: string | number;
|
|
631
|
-
}>;
|
|
632
625
|
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
633
626
|
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
634
627
|
}, "strip", z.ZodTypeAny, {
|
|
635
|
-
weights: {
|
|
636
|
-
asset_weight: import("decimal.js").Decimal;
|
|
637
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
638
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
639
|
-
};
|
|
640
628
|
asset: import("decimal.js").Decimal;
|
|
641
629
|
liability: import("decimal.js").Decimal;
|
|
642
630
|
}, {
|
|
643
|
-
weights: {
|
|
644
|
-
asset_weight: string | number;
|
|
645
|
-
initial_liability_weight: string | number;
|
|
646
|
-
maintenance_liability_weight: string | number;
|
|
647
|
-
};
|
|
648
631
|
asset: string | number;
|
|
649
632
|
liability: string | number;
|
|
650
633
|
}>;
|
|
@@ -652,11 +635,6 @@ export declare const Schemas: {
|
|
|
652
635
|
unsettled_perp_profit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
653
636
|
}, "strip", z.ZodTypeAny, {
|
|
654
637
|
ledger: {
|
|
655
|
-
weights: {
|
|
656
|
-
asset_weight: import("decimal.js").Decimal;
|
|
657
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
658
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
659
|
-
};
|
|
660
638
|
asset: import("decimal.js").Decimal;
|
|
661
639
|
liability: import("decimal.js").Decimal;
|
|
662
640
|
};
|
|
@@ -664,63 +642,26 @@ export declare const Schemas: {
|
|
|
664
642
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
665
643
|
}, {
|
|
666
644
|
ledger: {
|
|
667
|
-
weights: {
|
|
668
|
-
asset_weight: string | number;
|
|
669
|
-
initial_liability_weight: string | number;
|
|
670
|
-
maintenance_liability_weight: string | number;
|
|
671
|
-
};
|
|
672
645
|
asset: string | number;
|
|
673
646
|
liability: string | number;
|
|
674
647
|
};
|
|
675
648
|
unrealized_loss_borrow: string | number;
|
|
676
649
|
unsettled_perp_profit: string | number;
|
|
677
650
|
}>;
|
|
651
|
+
client_order_ids: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodBigInt>, Map<bigint, bigint>, Record<string, bigint>>;
|
|
678
652
|
spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
679
|
-
weights: z.ZodObject<{
|
|
680
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
681
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
682
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
683
|
-
}, "strip", z.ZodTypeAny, {
|
|
684
|
-
asset_weight: import("decimal.js").Decimal;
|
|
685
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
686
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
687
|
-
}, {
|
|
688
|
-
asset_weight: string | number;
|
|
689
|
-
initial_liability_weight: string | number;
|
|
690
|
-
maintenance_liability_weight: string | number;
|
|
691
|
-
}>;
|
|
692
653
|
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
693
654
|
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
694
655
|
}, "strip", z.ZodTypeAny, {
|
|
695
|
-
weights: {
|
|
696
|
-
asset_weight: import("decimal.js").Decimal;
|
|
697
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
698
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
699
|
-
};
|
|
700
656
|
asset: import("decimal.js").Decimal;
|
|
701
657
|
liability: import("decimal.js").Decimal;
|
|
702
658
|
}, {
|
|
703
|
-
weights: {
|
|
704
|
-
asset_weight: string | number;
|
|
705
|
-
initial_liability_weight: string | number;
|
|
706
|
-
maintenance_liability_weight: string | number;
|
|
707
|
-
};
|
|
708
659
|
asset: string | number;
|
|
709
660
|
liability: string | number;
|
|
710
661
|
}>>, Map<number, {
|
|
711
|
-
weights: {
|
|
712
|
-
asset_weight: import("decimal.js").Decimal;
|
|
713
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
714
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
715
|
-
};
|
|
716
662
|
asset: import("decimal.js").Decimal;
|
|
717
663
|
liability: import("decimal.js").Decimal;
|
|
718
664
|
}>, Record<string, {
|
|
719
|
-
weights: {
|
|
720
|
-
asset_weight: string | number;
|
|
721
|
-
initial_liability_weight: string | number;
|
|
722
|
-
maintenance_liability_weight: string | number;
|
|
723
|
-
};
|
|
724
665
|
asset: string | number;
|
|
725
666
|
liability: string | number;
|
|
726
667
|
}>>;
|
|
@@ -980,12 +921,12 @@ export declare const Schemas: {
|
|
|
980
921
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
981
922
|
trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
|
|
982
923
|
price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
|
|
983
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number
|
|
924
|
+
size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
|
|
984
925
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
985
926
|
owner: z.ZodString;
|
|
986
927
|
linked_tpsl_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
987
928
|
}, "strip", z.ZodTypeAny, {
|
|
988
|
-
size: import("decimal.js").Decimal;
|
|
929
|
+
size: import("decimal.js").Decimal | null;
|
|
989
930
|
tpsl_order_id: bigint;
|
|
990
931
|
order_price: import("decimal.js").Decimal;
|
|
991
932
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -997,7 +938,7 @@ export declare const Schemas: {
|
|
|
997
938
|
owner: string;
|
|
998
939
|
linked_tpsl_order_id: bigint | null;
|
|
999
940
|
}, {
|
|
1000
|
-
size: string | number;
|
|
941
|
+
size: string | number | null;
|
|
1001
942
|
tpsl_order_id: bigint;
|
|
1002
943
|
order_price: string | number;
|
|
1003
944
|
trigger_price: string | number;
|
|
@@ -1009,7 +950,7 @@ export declare const Schemas: {
|
|
|
1009
950
|
owner: string;
|
|
1010
951
|
linked_tpsl_order_id: bigint | null;
|
|
1011
952
|
}>>, Map<bigint, {
|
|
1012
|
-
size: import("decimal.js").Decimal;
|
|
953
|
+
size: import("decimal.js").Decimal | null;
|
|
1013
954
|
tpsl_order_id: bigint;
|
|
1014
955
|
order_price: import("decimal.js").Decimal;
|
|
1015
956
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -1021,7 +962,7 @@ export declare const Schemas: {
|
|
|
1021
962
|
owner: string;
|
|
1022
963
|
linked_tpsl_order_id: bigint | null;
|
|
1023
964
|
}>, Record<string, {
|
|
1024
|
-
size: string | number;
|
|
965
|
+
size: string | number | null;
|
|
1025
966
|
tpsl_order_id: bigint;
|
|
1026
967
|
order_price: string | number;
|
|
1027
968
|
trigger_price: string | number;
|
|
@@ -1076,7 +1017,7 @@ export declare const Schemas: {
|
|
|
1076
1017
|
};
|
|
1077
1018
|
user_selected_max_leverage: number;
|
|
1078
1019
|
tpsls: Map<bigint, {
|
|
1079
|
-
size: import("decimal.js").Decimal;
|
|
1020
|
+
size: import("decimal.js").Decimal | null;
|
|
1080
1021
|
tpsl_order_id: bigint;
|
|
1081
1022
|
order_price: import("decimal.js").Decimal;
|
|
1082
1023
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -1131,7 +1072,7 @@ export declare const Schemas: {
|
|
|
1131
1072
|
};
|
|
1132
1073
|
user_selected_max_leverage: number;
|
|
1133
1074
|
tpsls: Record<string, {
|
|
1134
|
-
size: string | number;
|
|
1075
|
+
size: string | number | null;
|
|
1135
1076
|
tpsl_order_id: bigint;
|
|
1136
1077
|
order_price: string | number;
|
|
1137
1078
|
trigger_price: string | number;
|
|
@@ -1186,7 +1127,7 @@ export declare const Schemas: {
|
|
|
1186
1127
|
};
|
|
1187
1128
|
user_selected_max_leverage: number;
|
|
1188
1129
|
tpsls: Map<bigint, {
|
|
1189
|
-
size: import("decimal.js").Decimal;
|
|
1130
|
+
size: import("decimal.js").Decimal | null;
|
|
1190
1131
|
tpsl_order_id: bigint;
|
|
1191
1132
|
order_price: import("decimal.js").Decimal;
|
|
1192
1133
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -1241,7 +1182,7 @@ export declare const Schemas: {
|
|
|
1241
1182
|
};
|
|
1242
1183
|
user_selected_max_leverage: number;
|
|
1243
1184
|
tpsls: Record<string, {
|
|
1244
|
-
size: string | number;
|
|
1185
|
+
size: string | number | null;
|
|
1245
1186
|
tpsl_order_id: bigint;
|
|
1246
1187
|
order_price: string | number;
|
|
1247
1188
|
trigger_price: string | number;
|
|
@@ -1258,23 +1199,14 @@ export declare const Schemas: {
|
|
|
1258
1199
|
address: string;
|
|
1259
1200
|
usdc_ledger: {
|
|
1260
1201
|
ledger: {
|
|
1261
|
-
weights: {
|
|
1262
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1263
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1264
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1265
|
-
};
|
|
1266
1202
|
asset: import("decimal.js").Decimal;
|
|
1267
1203
|
liability: import("decimal.js").Decimal;
|
|
1268
1204
|
};
|
|
1269
1205
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
1270
1206
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
1271
1207
|
};
|
|
1208
|
+
client_order_ids: Map<bigint, bigint>;
|
|
1272
1209
|
spot_ledgers: Map<number, {
|
|
1273
|
-
weights: {
|
|
1274
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1275
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1276
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1277
|
-
};
|
|
1278
1210
|
asset: import("decimal.js").Decimal;
|
|
1279
1211
|
liability: import("decimal.js").Decimal;
|
|
1280
1212
|
}>;
|
|
@@ -1321,7 +1253,7 @@ export declare const Schemas: {
|
|
|
1321
1253
|
};
|
|
1322
1254
|
user_selected_max_leverage: number;
|
|
1323
1255
|
tpsls: Map<bigint, {
|
|
1324
|
-
size: import("decimal.js").Decimal;
|
|
1256
|
+
size: import("decimal.js").Decimal | null;
|
|
1325
1257
|
tpsl_order_id: bigint;
|
|
1326
1258
|
order_price: import("decimal.js").Decimal;
|
|
1327
1259
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -1338,23 +1270,14 @@ export declare const Schemas: {
|
|
|
1338
1270
|
address: string;
|
|
1339
1271
|
usdc_ledger: {
|
|
1340
1272
|
ledger: {
|
|
1341
|
-
weights: {
|
|
1342
|
-
asset_weight: string | number;
|
|
1343
|
-
initial_liability_weight: string | number;
|
|
1344
|
-
maintenance_liability_weight: string | number;
|
|
1345
|
-
};
|
|
1346
1273
|
asset: string | number;
|
|
1347
1274
|
liability: string | number;
|
|
1348
1275
|
};
|
|
1349
1276
|
unrealized_loss_borrow: string | number;
|
|
1350
1277
|
unsettled_perp_profit: string | number;
|
|
1351
1278
|
};
|
|
1279
|
+
client_order_ids: Record<string, bigint>;
|
|
1352
1280
|
spot_ledgers: Record<string, {
|
|
1353
|
-
weights: {
|
|
1354
|
-
asset_weight: string | number;
|
|
1355
|
-
initial_liability_weight: string | number;
|
|
1356
|
-
maintenance_liability_weight: string | number;
|
|
1357
|
-
};
|
|
1358
1281
|
asset: string | number;
|
|
1359
1282
|
liability: string | number;
|
|
1360
1283
|
}>;
|
|
@@ -1401,7 +1324,7 @@ export declare const Schemas: {
|
|
|
1401
1324
|
};
|
|
1402
1325
|
user_selected_max_leverage: number;
|
|
1403
1326
|
tpsls: Record<string, {
|
|
1404
|
-
size: string | number;
|
|
1327
|
+
size: string | number | null;
|
|
1405
1328
|
tpsl_order_id: bigint;
|
|
1406
1329
|
order_price: string | number;
|
|
1407
1330
|
trigger_price: string | number;
|
|
@@ -1450,45 +1373,6 @@ export declare const Schemas: {
|
|
|
1450
1373
|
asset_id: z.ZodNumber;
|
|
1451
1374
|
is_active: z.ZodBoolean;
|
|
1452
1375
|
last_update_timestamp: z.ZodBigInt;
|
|
1453
|
-
risk_params: z.ZodObject<{
|
|
1454
|
-
weights: z.ZodObject<{
|
|
1455
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1456
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1457
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1458
|
-
}, "strip", z.ZodTypeAny, {
|
|
1459
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1460
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1461
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1462
|
-
}, {
|
|
1463
|
-
asset_weight: string | number;
|
|
1464
|
-
initial_liability_weight: string | number;
|
|
1465
|
-
maintenance_liability_weight: string | number;
|
|
1466
|
-
}>;
|
|
1467
|
-
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1468
|
-
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1469
|
-
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1470
|
-
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1471
|
-
}, "strip", z.ZodTypeAny, {
|
|
1472
|
-
weights: {
|
|
1473
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1474
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1475
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1476
|
-
};
|
|
1477
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
1478
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
1479
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1480
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1481
|
-
}, {
|
|
1482
|
-
weights: {
|
|
1483
|
-
asset_weight: string | number;
|
|
1484
|
-
initial_liability_weight: string | number;
|
|
1485
|
-
maintenance_liability_weight: string | number;
|
|
1486
|
-
};
|
|
1487
|
-
deposit_limit: string | number;
|
|
1488
|
-
borrow_limit: string | number;
|
|
1489
|
-
liquidation_reward_ratio: string | number;
|
|
1490
|
-
liability_liquidation_limit_ratio: string | number;
|
|
1491
|
-
}>;
|
|
1492
1376
|
rate_params: z.ZodObject<{
|
|
1493
1377
|
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1494
1378
|
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1505,6 +1389,8 @@ export declare const Schemas: {
|
|
|
1505
1389
|
optimal_borrow_rate: string | number;
|
|
1506
1390
|
max_borrow_rate: string | number;
|
|
1507
1391
|
}>;
|
|
1392
|
+
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1393
|
+
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1508
1394
|
available_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1509
1395
|
borrowed_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1510
1396
|
cumulative_deposit_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -1514,23 +1400,14 @@ export declare const Schemas: {
|
|
|
1514
1400
|
last_update_timestamp: bigint;
|
|
1515
1401
|
asset_id: number;
|
|
1516
1402
|
is_active: boolean;
|
|
1517
|
-
risk_params: {
|
|
1518
|
-
weights: {
|
|
1519
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1520
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1521
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1522
|
-
};
|
|
1523
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
1524
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
1525
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1526
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1527
|
-
};
|
|
1528
1403
|
rate_params: {
|
|
1529
1404
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1530
1405
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
1531
1406
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1532
1407
|
max_borrow_rate: import("decimal.js").Decimal;
|
|
1533
1408
|
};
|
|
1409
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1410
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1534
1411
|
available_amount: import("decimal.js").Decimal;
|
|
1535
1412
|
borrowed_amount: import("decimal.js").Decimal;
|
|
1536
1413
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
@@ -1540,23 +1417,14 @@ export declare const Schemas: {
|
|
|
1540
1417
|
last_update_timestamp: bigint;
|
|
1541
1418
|
asset_id: number;
|
|
1542
1419
|
is_active: boolean;
|
|
1543
|
-
risk_params: {
|
|
1544
|
-
weights: {
|
|
1545
|
-
asset_weight: string | number;
|
|
1546
|
-
initial_liability_weight: string | number;
|
|
1547
|
-
maintenance_liability_weight: string | number;
|
|
1548
|
-
};
|
|
1549
|
-
deposit_limit: string | number;
|
|
1550
|
-
borrow_limit: string | number;
|
|
1551
|
-
liquidation_reward_ratio: string | number;
|
|
1552
|
-
liability_liquidation_limit_ratio: string | number;
|
|
1553
|
-
};
|
|
1554
1420
|
rate_params: {
|
|
1555
1421
|
optimal_utilisation_rate: string | number;
|
|
1556
1422
|
min_borrow_rate: string | number;
|
|
1557
1423
|
optimal_borrow_rate: string | number;
|
|
1558
1424
|
max_borrow_rate: string | number;
|
|
1559
1425
|
};
|
|
1426
|
+
deposit_limit: string | number;
|
|
1427
|
+
borrow_limit: string | number;
|
|
1560
1428
|
available_amount: string | number;
|
|
1561
1429
|
borrowed_amount: string | number;
|
|
1562
1430
|
cumulative_deposit_rate: string | number;
|
|
@@ -1566,23 +1434,14 @@ export declare const Schemas: {
|
|
|
1566
1434
|
last_update_timestamp: bigint;
|
|
1567
1435
|
asset_id: number;
|
|
1568
1436
|
is_active: boolean;
|
|
1569
|
-
risk_params: {
|
|
1570
|
-
weights: {
|
|
1571
|
-
asset_weight: import("decimal.js").Decimal;
|
|
1572
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
1573
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1574
|
-
};
|
|
1575
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
1576
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
1577
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1578
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1579
|
-
};
|
|
1580
1437
|
rate_params: {
|
|
1581
1438
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
1582
1439
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
1583
1440
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1584
1441
|
max_borrow_rate: import("decimal.js").Decimal;
|
|
1585
1442
|
};
|
|
1443
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1444
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1586
1445
|
available_amount: import("decimal.js").Decimal;
|
|
1587
1446
|
borrowed_amount: import("decimal.js").Decimal;
|
|
1588
1447
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
@@ -1592,23 +1451,14 @@ export declare const Schemas: {
|
|
|
1592
1451
|
last_update_timestamp: bigint;
|
|
1593
1452
|
asset_id: number;
|
|
1594
1453
|
is_active: boolean;
|
|
1595
|
-
risk_params: {
|
|
1596
|
-
weights: {
|
|
1597
|
-
asset_weight: string | number;
|
|
1598
|
-
initial_liability_weight: string | number;
|
|
1599
|
-
maintenance_liability_weight: string | number;
|
|
1600
|
-
};
|
|
1601
|
-
deposit_limit: string | number;
|
|
1602
|
-
borrow_limit: string | number;
|
|
1603
|
-
liquidation_reward_ratio: string | number;
|
|
1604
|
-
liability_liquidation_limit_ratio: string | number;
|
|
1605
|
-
};
|
|
1606
1454
|
rate_params: {
|
|
1607
1455
|
optimal_utilisation_rate: string | number;
|
|
1608
1456
|
min_borrow_rate: string | number;
|
|
1609
1457
|
optimal_borrow_rate: string | number;
|
|
1610
1458
|
max_borrow_rate: string | number;
|
|
1611
1459
|
};
|
|
1460
|
+
deposit_limit: string | number;
|
|
1461
|
+
borrow_limit: string | number;
|
|
1612
1462
|
available_amount: string | number;
|
|
1613
1463
|
borrowed_amount: string | number;
|
|
1614
1464
|
cumulative_deposit_rate: string | number;
|
|
@@ -1668,22 +1518,69 @@ export declare const Schemas: {
|
|
|
1668
1518
|
rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1669
1519
|
accum_per_lot: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1670
1520
|
last_update_timestamp: z.ZodBigInt;
|
|
1521
|
+
parameters: z.ZodObject<{
|
|
1522
|
+
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1523
|
+
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1524
|
+
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1525
|
+
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1526
|
+
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1527
|
+
}, "strip", z.ZodTypeAny, {
|
|
1528
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1529
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1530
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1531
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1532
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1533
|
+
}, {
|
|
1534
|
+
interest_rate: string | number;
|
|
1535
|
+
min_interest_rate_clamp: string | number;
|
|
1536
|
+
max_interest_rate_clamp: string | number;
|
|
1537
|
+
min_funding_rate_clamp: string | number;
|
|
1538
|
+
max_funding_rate_clamp: string | number;
|
|
1539
|
+
}>;
|
|
1671
1540
|
}, "strip", z.ZodTypeAny, {
|
|
1672
1541
|
last_update_timestamp: bigint;
|
|
1673
1542
|
rate: import("decimal.js").Decimal;
|
|
1674
1543
|
accum_per_lot: import("decimal.js").Decimal;
|
|
1544
|
+
parameters: {
|
|
1545
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1546
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1547
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1548
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1549
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1550
|
+
};
|
|
1675
1551
|
}, {
|
|
1676
1552
|
last_update_timestamp: bigint;
|
|
1677
1553
|
rate: string | number;
|
|
1678
1554
|
accum_per_lot: string | number;
|
|
1555
|
+
parameters: {
|
|
1556
|
+
interest_rate: string | number;
|
|
1557
|
+
min_interest_rate_clamp: string | number;
|
|
1558
|
+
max_interest_rate_clamp: string | number;
|
|
1559
|
+
min_funding_rate_clamp: string | number;
|
|
1560
|
+
max_funding_rate_clamp: string | number;
|
|
1561
|
+
};
|
|
1679
1562
|
}>>, Map<number, {
|
|
1680
1563
|
last_update_timestamp: bigint;
|
|
1681
1564
|
rate: import("decimal.js").Decimal;
|
|
1682
1565
|
accum_per_lot: import("decimal.js").Decimal;
|
|
1566
|
+
parameters: {
|
|
1567
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1568
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1569
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1570
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1571
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1572
|
+
};
|
|
1683
1573
|
}>, Record<string, {
|
|
1684
1574
|
last_update_timestamp: bigint;
|
|
1685
1575
|
rate: string | number;
|
|
1686
1576
|
accum_per_lot: string | number;
|
|
1577
|
+
parameters: {
|
|
1578
|
+
interest_rate: string | number;
|
|
1579
|
+
min_interest_rate_clamp: string | number;
|
|
1580
|
+
max_interest_rate_clamp: string | number;
|
|
1581
|
+
min_funding_rate_clamp: string | number;
|
|
1582
|
+
max_funding_rate_clamp: string | number;
|
|
1583
|
+
};
|
|
1687
1584
|
}>>;
|
|
1688
1585
|
}, "strip", z.ZodTypeAny, {
|
|
1689
1586
|
pricing_frequency_seconds: number;
|
|
@@ -1702,6 +1599,13 @@ export declare const Schemas: {
|
|
|
1702
1599
|
last_update_timestamp: bigint;
|
|
1703
1600
|
rate: import("decimal.js").Decimal;
|
|
1704
1601
|
accum_per_lot: import("decimal.js").Decimal;
|
|
1602
|
+
parameters: {
|
|
1603
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1604
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1605
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1606
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1607
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1608
|
+
};
|
|
1705
1609
|
}>;
|
|
1706
1610
|
}, {
|
|
1707
1611
|
pricing_frequency_seconds: number;
|
|
@@ -1720,6 +1624,13 @@ export declare const Schemas: {
|
|
|
1720
1624
|
last_update_timestamp: bigint;
|
|
1721
1625
|
rate: string | number;
|
|
1722
1626
|
accum_per_lot: string | number;
|
|
1627
|
+
parameters: {
|
|
1628
|
+
interest_rate: string | number;
|
|
1629
|
+
min_interest_rate_clamp: string | number;
|
|
1630
|
+
max_interest_rate_clamp: string | number;
|
|
1631
|
+
min_funding_rate_clamp: string | number;
|
|
1632
|
+
max_funding_rate_clamp: string | number;
|
|
1633
|
+
};
|
|
1723
1634
|
}>;
|
|
1724
1635
|
}>;
|
|
1725
1636
|
readonly PerpMarket: z.ZodObject<{
|
|
@@ -1727,25 +1638,6 @@ export declare const Schemas: {
|
|
|
1727
1638
|
is_active: z.ZodBoolean;
|
|
1728
1639
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1729
1640
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1730
|
-
funding_parameters: z.ZodObject<{
|
|
1731
|
-
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1732
|
-
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1733
|
-
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1734
|
-
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1735
|
-
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1736
|
-
}, "strip", z.ZodTypeAny, {
|
|
1737
|
-
interest_rate: import("decimal.js").Decimal;
|
|
1738
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1739
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1740
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1741
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1742
|
-
}, {
|
|
1743
|
-
interest_rate: string | number;
|
|
1744
|
-
min_interest_rate_clamp: string | number;
|
|
1745
|
-
max_interest_rate_clamp: string | number;
|
|
1746
|
-
min_funding_rate_clamp: string | number;
|
|
1747
|
-
max_funding_rate_clamp: string | number;
|
|
1748
|
-
}>;
|
|
1749
1641
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1750
1642
|
orderbook: z.ZodObject<{
|
|
1751
1643
|
market_id: z.ZodNumber;
|
|
@@ -1808,13 +1700,6 @@ export declare const Schemas: {
|
|
|
1808
1700
|
is_active: boolean;
|
|
1809
1701
|
min_tick_size: import("decimal.js").Decimal;
|
|
1810
1702
|
min_lot_size: import("decimal.js").Decimal;
|
|
1811
|
-
funding_parameters: {
|
|
1812
|
-
interest_rate: import("decimal.js").Decimal;
|
|
1813
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1814
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1815
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1816
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1817
|
-
};
|
|
1818
1703
|
impact_margin: import("decimal.js").Decimal;
|
|
1819
1704
|
orderbook: {
|
|
1820
1705
|
market_id: number;
|
|
@@ -1833,13 +1718,6 @@ export declare const Schemas: {
|
|
|
1833
1718
|
is_active: boolean;
|
|
1834
1719
|
min_tick_size: string | number;
|
|
1835
1720
|
min_lot_size: string | number;
|
|
1836
|
-
funding_parameters: {
|
|
1837
|
-
interest_rate: string | number;
|
|
1838
|
-
min_interest_rate_clamp: string | number;
|
|
1839
|
-
max_interest_rate_clamp: string | number;
|
|
1840
|
-
min_funding_rate_clamp: string | number;
|
|
1841
|
-
max_funding_rate_clamp: string | number;
|
|
1842
|
-
};
|
|
1843
1721
|
impact_margin: string | number;
|
|
1844
1722
|
orderbook: {
|
|
1845
1723
|
market_id: number;
|
|
@@ -1855,6 +1733,19 @@ export declare const Schemas: {
|
|
|
1855
1733
|
last_trade_price: string | number;
|
|
1856
1734
|
}>;
|
|
1857
1735
|
readonly MarginConfig: z.ZodObject<{
|
|
1736
|
+
perp_liquidation_config: z.ZodObject<{
|
|
1737
|
+
liquidation_ioc_buffer: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1738
|
+
backstop_liquidation_threshold: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1739
|
+
liquidation_fee: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1740
|
+
}, "strip", z.ZodTypeAny, {
|
|
1741
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
1742
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
1743
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
1744
|
+
}, {
|
|
1745
|
+
liquidation_ioc_buffer: string | number;
|
|
1746
|
+
backstop_liquidation_threshold: string | number;
|
|
1747
|
+
liquidation_fee: string | number;
|
|
1748
|
+
}>;
|
|
1858
1749
|
perp_leverage_tables: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1859
1750
|
tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1860
1751
|
max_leverage: z.ZodNumber;
|
|
@@ -1902,10 +1793,43 @@ export declare const Schemas: {
|
|
|
1902
1793
|
maintenance_amount: string | number;
|
|
1903
1794
|
}>;
|
|
1904
1795
|
}>>;
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1796
|
+
borrow_lend_risk_configs: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1797
|
+
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1798
|
+
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1799
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1800
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1801
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
1802
|
+
}, "strip", z.ZodTypeAny, {
|
|
1803
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1804
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1805
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1806
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1807
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1808
|
+
}, {
|
|
1809
|
+
liquidation_reward_ratio: string | number;
|
|
1810
|
+
liability_liquidation_limit_ratio: string | number;
|
|
1811
|
+
asset_weight: string | number;
|
|
1812
|
+
initial_liability_weight: string | number;
|
|
1813
|
+
maintenance_liability_weight: string | number;
|
|
1814
|
+
}>>, Map<number, {
|
|
1815
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1816
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1817
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1818
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1819
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1820
|
+
}>, Record<string, {
|
|
1821
|
+
liquidation_reward_ratio: string | number;
|
|
1822
|
+
liability_liquidation_limit_ratio: string | number;
|
|
1823
|
+
asset_weight: string | number;
|
|
1824
|
+
initial_liability_weight: string | number;
|
|
1825
|
+
maintenance_liability_weight: string | number;
|
|
1826
|
+
}>>;
|
|
1908
1827
|
}, "strip", z.ZodTypeAny, {
|
|
1828
|
+
perp_liquidation_config: {
|
|
1829
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
1830
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
1831
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
1832
|
+
};
|
|
1909
1833
|
perp_leverage_tables: Map<number, {
|
|
1910
1834
|
tiers: Map<string, {
|
|
1911
1835
|
max_leverage: number;
|
|
@@ -1913,10 +1837,19 @@ export declare const Schemas: {
|
|
|
1913
1837
|
maintenance_amount: import("decimal.js").Decimal;
|
|
1914
1838
|
}>;
|
|
1915
1839
|
}>;
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1840
|
+
borrow_lend_risk_configs: Map<number, {
|
|
1841
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
1842
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1843
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1844
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1845
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1846
|
+
}>;
|
|
1919
1847
|
}, {
|
|
1848
|
+
perp_liquidation_config: {
|
|
1849
|
+
liquidation_ioc_buffer: string | number;
|
|
1850
|
+
backstop_liquidation_threshold: string | number;
|
|
1851
|
+
liquidation_fee: string | number;
|
|
1852
|
+
};
|
|
1920
1853
|
perp_leverage_tables: Record<string, {
|
|
1921
1854
|
tiers: Record<string, {
|
|
1922
1855
|
max_leverage: number;
|
|
@@ -1924,9 +1857,13 @@ export declare const Schemas: {
|
|
|
1924
1857
|
maintenance_amount: string | number;
|
|
1925
1858
|
}>;
|
|
1926
1859
|
}>;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1860
|
+
borrow_lend_risk_configs: Record<string, {
|
|
1861
|
+
liquidation_reward_ratio: string | number;
|
|
1862
|
+
liability_liquidation_limit_ratio: string | number;
|
|
1863
|
+
asset_weight: string | number;
|
|
1864
|
+
initial_liability_weight: string | number;
|
|
1865
|
+
maintenance_liability_weight: string | number;
|
|
1866
|
+
}>;
|
|
1930
1867
|
}>;
|
|
1931
1868
|
readonly AccountAddresses: z.ZodObject<{
|
|
1932
1869
|
addresses: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2481,22 +2418,69 @@ export declare const ResponseSchemas: {
|
|
|
2481
2418
|
rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2482
2419
|
accum_per_lot: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2483
2420
|
last_update_timestamp: z.ZodBigInt;
|
|
2421
|
+
parameters: z.ZodObject<{
|
|
2422
|
+
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2423
|
+
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2424
|
+
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2425
|
+
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2426
|
+
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
2427
|
+
}, "strip", z.ZodTypeAny, {
|
|
2428
|
+
interest_rate: import("decimal.js").Decimal;
|
|
2429
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2430
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2431
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2432
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2433
|
+
}, {
|
|
2434
|
+
interest_rate: string | number;
|
|
2435
|
+
min_interest_rate_clamp: string | number;
|
|
2436
|
+
max_interest_rate_clamp: string | number;
|
|
2437
|
+
min_funding_rate_clamp: string | number;
|
|
2438
|
+
max_funding_rate_clamp: string | number;
|
|
2439
|
+
}>;
|
|
2484
2440
|
}, "strip", z.ZodTypeAny, {
|
|
2485
2441
|
last_update_timestamp: bigint;
|
|
2486
2442
|
rate: import("decimal.js").Decimal;
|
|
2487
2443
|
accum_per_lot: import("decimal.js").Decimal;
|
|
2444
|
+
parameters: {
|
|
2445
|
+
interest_rate: import("decimal.js").Decimal;
|
|
2446
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2447
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2448
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2449
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2450
|
+
};
|
|
2488
2451
|
}, {
|
|
2489
2452
|
last_update_timestamp: bigint;
|
|
2490
2453
|
rate: string | number;
|
|
2491
2454
|
accum_per_lot: string | number;
|
|
2455
|
+
parameters: {
|
|
2456
|
+
interest_rate: string | number;
|
|
2457
|
+
min_interest_rate_clamp: string | number;
|
|
2458
|
+
max_interest_rate_clamp: string | number;
|
|
2459
|
+
min_funding_rate_clamp: string | number;
|
|
2460
|
+
max_funding_rate_clamp: string | number;
|
|
2461
|
+
};
|
|
2492
2462
|
}>>, Map<number, {
|
|
2493
2463
|
last_update_timestamp: bigint;
|
|
2494
2464
|
rate: import("decimal.js").Decimal;
|
|
2495
2465
|
accum_per_lot: import("decimal.js").Decimal;
|
|
2466
|
+
parameters: {
|
|
2467
|
+
interest_rate: import("decimal.js").Decimal;
|
|
2468
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2469
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2470
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2471
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2472
|
+
};
|
|
2496
2473
|
}>, Record<string, {
|
|
2497
2474
|
last_update_timestamp: bigint;
|
|
2498
2475
|
rate: string | number;
|
|
2499
2476
|
accum_per_lot: string | number;
|
|
2477
|
+
parameters: {
|
|
2478
|
+
interest_rate: string | number;
|
|
2479
|
+
min_interest_rate_clamp: string | number;
|
|
2480
|
+
max_interest_rate_clamp: string | number;
|
|
2481
|
+
min_funding_rate_clamp: string | number;
|
|
2482
|
+
max_funding_rate_clamp: string | number;
|
|
2483
|
+
};
|
|
2500
2484
|
}>>;
|
|
2501
2485
|
}, "strip", z.ZodTypeAny, {
|
|
2502
2486
|
pricing_frequency_seconds: number;
|
|
@@ -2515,6 +2499,13 @@ export declare const ResponseSchemas: {
|
|
|
2515
2499
|
last_update_timestamp: bigint;
|
|
2516
2500
|
rate: import("decimal.js").Decimal;
|
|
2517
2501
|
accum_per_lot: import("decimal.js").Decimal;
|
|
2502
|
+
parameters: {
|
|
2503
|
+
interest_rate: import("decimal.js").Decimal;
|
|
2504
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2505
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2506
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2507
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2508
|
+
};
|
|
2518
2509
|
}>;
|
|
2519
2510
|
}, {
|
|
2520
2511
|
pricing_frequency_seconds: number;
|
|
@@ -2533,6 +2524,13 @@ export declare const ResponseSchemas: {
|
|
|
2533
2524
|
last_update_timestamp: bigint;
|
|
2534
2525
|
rate: string | number;
|
|
2535
2526
|
accum_per_lot: string | number;
|
|
2527
|
+
parameters: {
|
|
2528
|
+
interest_rate: string | number;
|
|
2529
|
+
min_interest_rate_clamp: string | number;
|
|
2530
|
+
max_interest_rate_clamp: string | number;
|
|
2531
|
+
min_funding_rate_clamp: string | number;
|
|
2532
|
+
max_funding_rate_clamp: string | number;
|
|
2533
|
+
};
|
|
2536
2534
|
}>;
|
|
2537
2535
|
}>>;
|
|
2538
2536
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2553,6 +2551,13 @@ export declare const ResponseSchemas: {
|
|
|
2553
2551
|
last_update_timestamp: bigint;
|
|
2554
2552
|
rate: import("decimal.js").Decimal;
|
|
2555
2553
|
accum_per_lot: import("decimal.js").Decimal;
|
|
2554
|
+
parameters: {
|
|
2555
|
+
interest_rate: import("decimal.js").Decimal;
|
|
2556
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2557
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2558
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2559
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2560
|
+
};
|
|
2556
2561
|
}>;
|
|
2557
2562
|
} | null;
|
|
2558
2563
|
}, {
|
|
@@ -2573,6 +2578,13 @@ export declare const ResponseSchemas: {
|
|
|
2573
2578
|
last_update_timestamp: bigint;
|
|
2574
2579
|
rate: string | number;
|
|
2575
2580
|
accum_per_lot: string | number;
|
|
2581
|
+
parameters: {
|
|
2582
|
+
interest_rate: string | number;
|
|
2583
|
+
min_interest_rate_clamp: string | number;
|
|
2584
|
+
max_interest_rate_clamp: string | number;
|
|
2585
|
+
min_funding_rate_clamp: string | number;
|
|
2586
|
+
max_funding_rate_clamp: string | number;
|
|
2587
|
+
};
|
|
2576
2588
|
}>;
|
|
2577
2589
|
} | null;
|
|
2578
2590
|
}>;
|
|
@@ -2596,6 +2608,13 @@ export declare const ResponseSchemas: {
|
|
|
2596
2608
|
last_update_timestamp: bigint;
|
|
2597
2609
|
rate: import("decimal.js").Decimal;
|
|
2598
2610
|
accum_per_lot: import("decimal.js").Decimal;
|
|
2611
|
+
parameters: {
|
|
2612
|
+
interest_rate: import("decimal.js").Decimal;
|
|
2613
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2614
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
2615
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2616
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
2617
|
+
};
|
|
2599
2618
|
}>;
|
|
2600
2619
|
} | null;
|
|
2601
2620
|
};
|
|
@@ -2619,6 +2638,13 @@ export declare const ResponseSchemas: {
|
|
|
2619
2638
|
last_update_timestamp: bigint;
|
|
2620
2639
|
rate: string | number;
|
|
2621
2640
|
accum_per_lot: string | number;
|
|
2641
|
+
parameters: {
|
|
2642
|
+
interest_rate: string | number;
|
|
2643
|
+
min_interest_rate_clamp: string | number;
|
|
2644
|
+
max_interest_rate_clamp: string | number;
|
|
2645
|
+
min_funding_rate_clamp: string | number;
|
|
2646
|
+
max_funding_rate_clamp: string | number;
|
|
2647
|
+
};
|
|
2622
2648
|
}>;
|
|
2623
2649
|
} | null;
|
|
2624
2650
|
};
|
|
@@ -3012,35 +3038,12 @@ export declare const ResponseSchemas: {
|
|
|
3012
3038
|
address: z.ZodString;
|
|
3013
3039
|
usdc_ledger: z.ZodObject<{
|
|
3014
3040
|
ledger: z.ZodObject<{
|
|
3015
|
-
weights: z.ZodObject<{
|
|
3016
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3017
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3018
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3019
|
-
}, "strip", z.ZodTypeAny, {
|
|
3020
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3021
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3022
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3023
|
-
}, {
|
|
3024
|
-
asset_weight: string | number;
|
|
3025
|
-
initial_liability_weight: string | number;
|
|
3026
|
-
maintenance_liability_weight: string | number;
|
|
3027
|
-
}>;
|
|
3028
3041
|
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3029
3042
|
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3030
3043
|
}, "strip", z.ZodTypeAny, {
|
|
3031
|
-
weights: {
|
|
3032
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3033
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3034
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3035
|
-
};
|
|
3036
3044
|
asset: import("decimal.js").Decimal;
|
|
3037
3045
|
liability: import("decimal.js").Decimal;
|
|
3038
3046
|
}, {
|
|
3039
|
-
weights: {
|
|
3040
|
-
asset_weight: string | number;
|
|
3041
|
-
initial_liability_weight: string | number;
|
|
3042
|
-
maintenance_liability_weight: string | number;
|
|
3043
|
-
};
|
|
3044
3047
|
asset: string | number;
|
|
3045
3048
|
liability: string | number;
|
|
3046
3049
|
}>;
|
|
@@ -3048,11 +3051,6 @@ export declare const ResponseSchemas: {
|
|
|
3048
3051
|
unsettled_perp_profit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3049
3052
|
}, "strip", z.ZodTypeAny, {
|
|
3050
3053
|
ledger: {
|
|
3051
|
-
weights: {
|
|
3052
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3053
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3054
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3055
|
-
};
|
|
3056
3054
|
asset: import("decimal.js").Decimal;
|
|
3057
3055
|
liability: import("decimal.js").Decimal;
|
|
3058
3056
|
};
|
|
@@ -3060,63 +3058,26 @@ export declare const ResponseSchemas: {
|
|
|
3060
3058
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3061
3059
|
}, {
|
|
3062
3060
|
ledger: {
|
|
3063
|
-
weights: {
|
|
3064
|
-
asset_weight: string | number;
|
|
3065
|
-
initial_liability_weight: string | number;
|
|
3066
|
-
maintenance_liability_weight: string | number;
|
|
3067
|
-
};
|
|
3068
3061
|
asset: string | number;
|
|
3069
3062
|
liability: string | number;
|
|
3070
3063
|
};
|
|
3071
3064
|
unrealized_loss_borrow: string | number;
|
|
3072
3065
|
unsettled_perp_profit: string | number;
|
|
3073
3066
|
}>;
|
|
3067
|
+
client_order_ids: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodBigInt>, Map<bigint, bigint>, Record<string, bigint>>;
|
|
3074
3068
|
spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3075
|
-
weights: z.ZodObject<{
|
|
3076
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3077
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3078
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3079
|
-
}, "strip", z.ZodTypeAny, {
|
|
3080
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3081
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3082
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3083
|
-
}, {
|
|
3084
|
-
asset_weight: string | number;
|
|
3085
|
-
initial_liability_weight: string | number;
|
|
3086
|
-
maintenance_liability_weight: string | number;
|
|
3087
|
-
}>;
|
|
3088
3069
|
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3089
3070
|
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3090
3071
|
}, "strip", z.ZodTypeAny, {
|
|
3091
|
-
weights: {
|
|
3092
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3093
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3094
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3095
|
-
};
|
|
3096
3072
|
asset: import("decimal.js").Decimal;
|
|
3097
3073
|
liability: import("decimal.js").Decimal;
|
|
3098
3074
|
}, {
|
|
3099
|
-
weights: {
|
|
3100
|
-
asset_weight: string | number;
|
|
3101
|
-
initial_liability_weight: string | number;
|
|
3102
|
-
maintenance_liability_weight: string | number;
|
|
3103
|
-
};
|
|
3104
3075
|
asset: string | number;
|
|
3105
3076
|
liability: string | number;
|
|
3106
3077
|
}>>, Map<number, {
|
|
3107
|
-
weights: {
|
|
3108
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3109
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3110
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3111
|
-
};
|
|
3112
3078
|
asset: import("decimal.js").Decimal;
|
|
3113
3079
|
liability: import("decimal.js").Decimal;
|
|
3114
3080
|
}>, Record<string, {
|
|
3115
|
-
weights: {
|
|
3116
|
-
asset_weight: string | number;
|
|
3117
|
-
initial_liability_weight: string | number;
|
|
3118
|
-
maintenance_liability_weight: string | number;
|
|
3119
|
-
};
|
|
3120
3081
|
asset: string | number;
|
|
3121
3082
|
liability: string | number;
|
|
3122
3083
|
}>>;
|
|
@@ -3376,12 +3337,12 @@ export declare const ResponseSchemas: {
|
|
|
3376
3337
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
3377
3338
|
trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
|
|
3378
3339
|
price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
|
|
3379
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number
|
|
3340
|
+
size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
|
|
3380
3341
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
3381
3342
|
owner: z.ZodString;
|
|
3382
3343
|
linked_tpsl_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
3383
3344
|
}, "strip", z.ZodTypeAny, {
|
|
3384
|
-
size: import("decimal.js").Decimal;
|
|
3345
|
+
size: import("decimal.js").Decimal | null;
|
|
3385
3346
|
tpsl_order_id: bigint;
|
|
3386
3347
|
order_price: import("decimal.js").Decimal;
|
|
3387
3348
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -3393,7 +3354,7 @@ export declare const ResponseSchemas: {
|
|
|
3393
3354
|
owner: string;
|
|
3394
3355
|
linked_tpsl_order_id: bigint | null;
|
|
3395
3356
|
}, {
|
|
3396
|
-
size: string | number;
|
|
3357
|
+
size: string | number | null;
|
|
3397
3358
|
tpsl_order_id: bigint;
|
|
3398
3359
|
order_price: string | number;
|
|
3399
3360
|
trigger_price: string | number;
|
|
@@ -3405,7 +3366,7 @@ export declare const ResponseSchemas: {
|
|
|
3405
3366
|
owner: string;
|
|
3406
3367
|
linked_tpsl_order_id: bigint | null;
|
|
3407
3368
|
}>>, Map<bigint, {
|
|
3408
|
-
size: import("decimal.js").Decimal;
|
|
3369
|
+
size: import("decimal.js").Decimal | null;
|
|
3409
3370
|
tpsl_order_id: bigint;
|
|
3410
3371
|
order_price: import("decimal.js").Decimal;
|
|
3411
3372
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -3417,7 +3378,7 @@ export declare const ResponseSchemas: {
|
|
|
3417
3378
|
owner: string;
|
|
3418
3379
|
linked_tpsl_order_id: bigint | null;
|
|
3419
3380
|
}>, Record<string, {
|
|
3420
|
-
size: string | number;
|
|
3381
|
+
size: string | number | null;
|
|
3421
3382
|
tpsl_order_id: bigint;
|
|
3422
3383
|
order_price: string | number;
|
|
3423
3384
|
trigger_price: string | number;
|
|
@@ -3472,7 +3433,7 @@ export declare const ResponseSchemas: {
|
|
|
3472
3433
|
};
|
|
3473
3434
|
user_selected_max_leverage: number;
|
|
3474
3435
|
tpsls: Map<bigint, {
|
|
3475
|
-
size: import("decimal.js").Decimal;
|
|
3436
|
+
size: import("decimal.js").Decimal | null;
|
|
3476
3437
|
tpsl_order_id: bigint;
|
|
3477
3438
|
order_price: import("decimal.js").Decimal;
|
|
3478
3439
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -3527,7 +3488,7 @@ export declare const ResponseSchemas: {
|
|
|
3527
3488
|
};
|
|
3528
3489
|
user_selected_max_leverage: number;
|
|
3529
3490
|
tpsls: Record<string, {
|
|
3530
|
-
size: string | number;
|
|
3491
|
+
size: string | number | null;
|
|
3531
3492
|
tpsl_order_id: bigint;
|
|
3532
3493
|
order_price: string | number;
|
|
3533
3494
|
trigger_price: string | number;
|
|
@@ -3582,7 +3543,7 @@ export declare const ResponseSchemas: {
|
|
|
3582
3543
|
};
|
|
3583
3544
|
user_selected_max_leverage: number;
|
|
3584
3545
|
tpsls: Map<bigint, {
|
|
3585
|
-
size: import("decimal.js").Decimal;
|
|
3546
|
+
size: import("decimal.js").Decimal | null;
|
|
3586
3547
|
tpsl_order_id: bigint;
|
|
3587
3548
|
order_price: import("decimal.js").Decimal;
|
|
3588
3549
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -3637,7 +3598,7 @@ export declare const ResponseSchemas: {
|
|
|
3637
3598
|
};
|
|
3638
3599
|
user_selected_max_leverage: number;
|
|
3639
3600
|
tpsls: Record<string, {
|
|
3640
|
-
size: string | number;
|
|
3601
|
+
size: string | number | null;
|
|
3641
3602
|
tpsl_order_id: bigint;
|
|
3642
3603
|
order_price: string | number;
|
|
3643
3604
|
trigger_price: string | number;
|
|
@@ -3654,23 +3615,14 @@ export declare const ResponseSchemas: {
|
|
|
3654
3615
|
address: string;
|
|
3655
3616
|
usdc_ledger: {
|
|
3656
3617
|
ledger: {
|
|
3657
|
-
weights: {
|
|
3658
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3659
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3660
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3661
|
-
};
|
|
3662
3618
|
asset: import("decimal.js").Decimal;
|
|
3663
3619
|
liability: import("decimal.js").Decimal;
|
|
3664
3620
|
};
|
|
3665
3621
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3666
3622
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3667
3623
|
};
|
|
3624
|
+
client_order_ids: Map<bigint, bigint>;
|
|
3668
3625
|
spot_ledgers: Map<number, {
|
|
3669
|
-
weights: {
|
|
3670
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3671
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3672
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3673
|
-
};
|
|
3674
3626
|
asset: import("decimal.js").Decimal;
|
|
3675
3627
|
liability: import("decimal.js").Decimal;
|
|
3676
3628
|
}>;
|
|
@@ -3717,7 +3669,7 @@ export declare const ResponseSchemas: {
|
|
|
3717
3669
|
};
|
|
3718
3670
|
user_selected_max_leverage: number;
|
|
3719
3671
|
tpsls: Map<bigint, {
|
|
3720
|
-
size: import("decimal.js").Decimal;
|
|
3672
|
+
size: import("decimal.js").Decimal | null;
|
|
3721
3673
|
tpsl_order_id: bigint;
|
|
3722
3674
|
order_price: import("decimal.js").Decimal;
|
|
3723
3675
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -3734,23 +3686,14 @@ export declare const ResponseSchemas: {
|
|
|
3734
3686
|
address: string;
|
|
3735
3687
|
usdc_ledger: {
|
|
3736
3688
|
ledger: {
|
|
3737
|
-
weights: {
|
|
3738
|
-
asset_weight: string | number;
|
|
3739
|
-
initial_liability_weight: string | number;
|
|
3740
|
-
maintenance_liability_weight: string | number;
|
|
3741
|
-
};
|
|
3742
3689
|
asset: string | number;
|
|
3743
3690
|
liability: string | number;
|
|
3744
3691
|
};
|
|
3745
3692
|
unrealized_loss_borrow: string | number;
|
|
3746
3693
|
unsettled_perp_profit: string | number;
|
|
3747
3694
|
};
|
|
3695
|
+
client_order_ids: Record<string, bigint>;
|
|
3748
3696
|
spot_ledgers: Record<string, {
|
|
3749
|
-
weights: {
|
|
3750
|
-
asset_weight: string | number;
|
|
3751
|
-
initial_liability_weight: string | number;
|
|
3752
|
-
maintenance_liability_weight: string | number;
|
|
3753
|
-
};
|
|
3754
3697
|
asset: string | number;
|
|
3755
3698
|
liability: string | number;
|
|
3756
3699
|
}>;
|
|
@@ -3797,7 +3740,7 @@ export declare const ResponseSchemas: {
|
|
|
3797
3740
|
};
|
|
3798
3741
|
user_selected_max_leverage: number;
|
|
3799
3742
|
tpsls: Record<string, {
|
|
3800
|
-
size: string | number;
|
|
3743
|
+
size: string | number | null;
|
|
3801
3744
|
tpsl_order_id: bigint;
|
|
3802
3745
|
order_price: string | number;
|
|
3803
3746
|
trigger_price: string | number;
|
|
@@ -3817,23 +3760,14 @@ export declare const ResponseSchemas: {
|
|
|
3817
3760
|
address: string;
|
|
3818
3761
|
usdc_ledger: {
|
|
3819
3762
|
ledger: {
|
|
3820
|
-
weights: {
|
|
3821
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3822
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3823
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3824
|
-
};
|
|
3825
3763
|
asset: import("decimal.js").Decimal;
|
|
3826
3764
|
liability: import("decimal.js").Decimal;
|
|
3827
3765
|
};
|
|
3828
3766
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3829
3767
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3830
3768
|
};
|
|
3769
|
+
client_order_ids: Map<bigint, bigint>;
|
|
3831
3770
|
spot_ledgers: Map<number, {
|
|
3832
|
-
weights: {
|
|
3833
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3834
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3835
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3836
|
-
};
|
|
3837
3771
|
asset: import("decimal.js").Decimal;
|
|
3838
3772
|
liability: import("decimal.js").Decimal;
|
|
3839
3773
|
}>;
|
|
@@ -3880,7 +3814,7 @@ export declare const ResponseSchemas: {
|
|
|
3880
3814
|
};
|
|
3881
3815
|
user_selected_max_leverage: number;
|
|
3882
3816
|
tpsls: Map<bigint, {
|
|
3883
|
-
size: import("decimal.js").Decimal;
|
|
3817
|
+
size: import("decimal.js").Decimal | null;
|
|
3884
3818
|
tpsl_order_id: bigint;
|
|
3885
3819
|
order_price: import("decimal.js").Decimal;
|
|
3886
3820
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -3900,23 +3834,14 @@ export declare const ResponseSchemas: {
|
|
|
3900
3834
|
address: string;
|
|
3901
3835
|
usdc_ledger: {
|
|
3902
3836
|
ledger: {
|
|
3903
|
-
weights: {
|
|
3904
|
-
asset_weight: string | number;
|
|
3905
|
-
initial_liability_weight: string | number;
|
|
3906
|
-
maintenance_liability_weight: string | number;
|
|
3907
|
-
};
|
|
3908
3837
|
asset: string | number;
|
|
3909
3838
|
liability: string | number;
|
|
3910
3839
|
};
|
|
3911
3840
|
unrealized_loss_borrow: string | number;
|
|
3912
3841
|
unsettled_perp_profit: string | number;
|
|
3913
3842
|
};
|
|
3843
|
+
client_order_ids: Record<string, bigint>;
|
|
3914
3844
|
spot_ledgers: Record<string, {
|
|
3915
|
-
weights: {
|
|
3916
|
-
asset_weight: string | number;
|
|
3917
|
-
initial_liability_weight: string | number;
|
|
3918
|
-
maintenance_liability_weight: string | number;
|
|
3919
|
-
};
|
|
3920
3845
|
asset: string | number;
|
|
3921
3846
|
liability: string | number;
|
|
3922
3847
|
}>;
|
|
@@ -3963,7 +3888,7 @@ export declare const ResponseSchemas: {
|
|
|
3963
3888
|
};
|
|
3964
3889
|
user_selected_max_leverage: number;
|
|
3965
3890
|
tpsls: Record<string, {
|
|
3966
|
-
size: string | number;
|
|
3891
|
+
size: string | number | null;
|
|
3967
3892
|
tpsl_order_id: bigint;
|
|
3968
3893
|
order_price: string | number;
|
|
3969
3894
|
trigger_price: string | number;
|
|
@@ -3986,23 +3911,14 @@ export declare const ResponseSchemas: {
|
|
|
3986
3911
|
address: string;
|
|
3987
3912
|
usdc_ledger: {
|
|
3988
3913
|
ledger: {
|
|
3989
|
-
weights: {
|
|
3990
|
-
asset_weight: import("decimal.js").Decimal;
|
|
3991
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
3992
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
3993
|
-
};
|
|
3994
3914
|
asset: import("decimal.js").Decimal;
|
|
3995
3915
|
liability: import("decimal.js").Decimal;
|
|
3996
3916
|
};
|
|
3997
3917
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
3998
3918
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
3999
3919
|
};
|
|
3920
|
+
client_order_ids: Map<bigint, bigint>;
|
|
4000
3921
|
spot_ledgers: Map<number, {
|
|
4001
|
-
weights: {
|
|
4002
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4003
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4004
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4005
|
-
};
|
|
4006
3922
|
asset: import("decimal.js").Decimal;
|
|
4007
3923
|
liability: import("decimal.js").Decimal;
|
|
4008
3924
|
}>;
|
|
@@ -4049,7 +3965,7 @@ export declare const ResponseSchemas: {
|
|
|
4049
3965
|
};
|
|
4050
3966
|
user_selected_max_leverage: number;
|
|
4051
3967
|
tpsls: Map<bigint, {
|
|
4052
|
-
size: import("decimal.js").Decimal;
|
|
3968
|
+
size: import("decimal.js").Decimal | null;
|
|
4053
3969
|
tpsl_order_id: bigint;
|
|
4054
3970
|
order_price: import("decimal.js").Decimal;
|
|
4055
3971
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -4072,23 +3988,14 @@ export declare const ResponseSchemas: {
|
|
|
4072
3988
|
address: string;
|
|
4073
3989
|
usdc_ledger: {
|
|
4074
3990
|
ledger: {
|
|
4075
|
-
weights: {
|
|
4076
|
-
asset_weight: string | number;
|
|
4077
|
-
initial_liability_weight: string | number;
|
|
4078
|
-
maintenance_liability_weight: string | number;
|
|
4079
|
-
};
|
|
4080
3991
|
asset: string | number;
|
|
4081
3992
|
liability: string | number;
|
|
4082
3993
|
};
|
|
4083
3994
|
unrealized_loss_borrow: string | number;
|
|
4084
3995
|
unsettled_perp_profit: string | number;
|
|
4085
3996
|
};
|
|
3997
|
+
client_order_ids: Record<string, bigint>;
|
|
4086
3998
|
spot_ledgers: Record<string, {
|
|
4087
|
-
weights: {
|
|
4088
|
-
asset_weight: string | number;
|
|
4089
|
-
initial_liability_weight: string | number;
|
|
4090
|
-
maintenance_liability_weight: string | number;
|
|
4091
|
-
};
|
|
4092
3999
|
asset: string | number;
|
|
4093
4000
|
liability: string | number;
|
|
4094
4001
|
}>;
|
|
@@ -4135,7 +4042,7 @@ export declare const ResponseSchemas: {
|
|
|
4135
4042
|
};
|
|
4136
4043
|
user_selected_max_leverage: number;
|
|
4137
4044
|
tpsls: Record<string, {
|
|
4138
|
-
size: string | number;
|
|
4045
|
+
size: string | number | null;
|
|
4139
4046
|
tpsl_order_id: bigint;
|
|
4140
4047
|
order_price: string | number;
|
|
4141
4048
|
trigger_price: string | number;
|
|
@@ -4158,35 +4065,12 @@ export declare const ResponseSchemas: {
|
|
|
4158
4065
|
address: z.ZodString;
|
|
4159
4066
|
usdc_ledger: z.ZodObject<{
|
|
4160
4067
|
ledger: z.ZodObject<{
|
|
4161
|
-
weights: z.ZodObject<{
|
|
4162
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4163
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4164
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4165
|
-
}, "strip", z.ZodTypeAny, {
|
|
4166
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4167
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4168
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4169
|
-
}, {
|
|
4170
|
-
asset_weight: string | number;
|
|
4171
|
-
initial_liability_weight: string | number;
|
|
4172
|
-
maintenance_liability_weight: string | number;
|
|
4173
|
-
}>;
|
|
4174
4068
|
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4175
4069
|
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4176
4070
|
}, "strip", z.ZodTypeAny, {
|
|
4177
|
-
weights: {
|
|
4178
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4179
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4180
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4181
|
-
};
|
|
4182
4071
|
asset: import("decimal.js").Decimal;
|
|
4183
4072
|
liability: import("decimal.js").Decimal;
|
|
4184
4073
|
}, {
|
|
4185
|
-
weights: {
|
|
4186
|
-
asset_weight: string | number;
|
|
4187
|
-
initial_liability_weight: string | number;
|
|
4188
|
-
maintenance_liability_weight: string | number;
|
|
4189
|
-
};
|
|
4190
4074
|
asset: string | number;
|
|
4191
4075
|
liability: string | number;
|
|
4192
4076
|
}>;
|
|
@@ -4194,11 +4078,6 @@ export declare const ResponseSchemas: {
|
|
|
4194
4078
|
unsettled_perp_profit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4195
4079
|
}, "strip", z.ZodTypeAny, {
|
|
4196
4080
|
ledger: {
|
|
4197
|
-
weights: {
|
|
4198
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4199
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4200
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4201
|
-
};
|
|
4202
4081
|
asset: import("decimal.js").Decimal;
|
|
4203
4082
|
liability: import("decimal.js").Decimal;
|
|
4204
4083
|
};
|
|
@@ -4206,63 +4085,26 @@ export declare const ResponseSchemas: {
|
|
|
4206
4085
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
4207
4086
|
}, {
|
|
4208
4087
|
ledger: {
|
|
4209
|
-
weights: {
|
|
4210
|
-
asset_weight: string | number;
|
|
4211
|
-
initial_liability_weight: string | number;
|
|
4212
|
-
maintenance_liability_weight: string | number;
|
|
4213
|
-
};
|
|
4214
4088
|
asset: string | number;
|
|
4215
4089
|
liability: string | number;
|
|
4216
4090
|
};
|
|
4217
4091
|
unrealized_loss_borrow: string | number;
|
|
4218
4092
|
unsettled_perp_profit: string | number;
|
|
4219
4093
|
}>;
|
|
4094
|
+
client_order_ids: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodBigInt>, Map<bigint, bigint>, Record<string, bigint>>;
|
|
4220
4095
|
spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4221
|
-
weights: z.ZodObject<{
|
|
4222
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4223
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4224
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4225
|
-
}, "strip", z.ZodTypeAny, {
|
|
4226
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4227
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4228
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4229
|
-
}, {
|
|
4230
|
-
asset_weight: string | number;
|
|
4231
|
-
initial_liability_weight: string | number;
|
|
4232
|
-
maintenance_liability_weight: string | number;
|
|
4233
|
-
}>;
|
|
4234
4096
|
asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4235
4097
|
liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4236
4098
|
}, "strip", z.ZodTypeAny, {
|
|
4237
|
-
weights: {
|
|
4238
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4239
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4240
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4241
|
-
};
|
|
4242
4099
|
asset: import("decimal.js").Decimal;
|
|
4243
4100
|
liability: import("decimal.js").Decimal;
|
|
4244
4101
|
}, {
|
|
4245
|
-
weights: {
|
|
4246
|
-
asset_weight: string | number;
|
|
4247
|
-
initial_liability_weight: string | number;
|
|
4248
|
-
maintenance_liability_weight: string | number;
|
|
4249
|
-
};
|
|
4250
4102
|
asset: string | number;
|
|
4251
4103
|
liability: string | number;
|
|
4252
4104
|
}>>, Map<number, {
|
|
4253
|
-
weights: {
|
|
4254
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4255
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4256
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4257
|
-
};
|
|
4258
4105
|
asset: import("decimal.js").Decimal;
|
|
4259
4106
|
liability: import("decimal.js").Decimal;
|
|
4260
4107
|
}>, Record<string, {
|
|
4261
|
-
weights: {
|
|
4262
|
-
asset_weight: string | number;
|
|
4263
|
-
initial_liability_weight: string | number;
|
|
4264
|
-
maintenance_liability_weight: string | number;
|
|
4265
|
-
};
|
|
4266
4108
|
asset: string | number;
|
|
4267
4109
|
liability: string | number;
|
|
4268
4110
|
}>>;
|
|
@@ -4522,12 +4364,12 @@ export declare const ResponseSchemas: {
|
|
|
4522
4364
|
trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
4523
4365
|
trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
|
|
4524
4366
|
price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
|
|
4525
|
-
size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number
|
|
4367
|
+
size: z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>>;
|
|
4526
4368
|
order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
|
|
4527
4369
|
owner: z.ZodString;
|
|
4528
4370
|
linked_tpsl_order_id: z.ZodNullable<z.ZodBigInt>;
|
|
4529
4371
|
}, "strip", z.ZodTypeAny, {
|
|
4530
|
-
size: import("decimal.js").Decimal;
|
|
4372
|
+
size: import("decimal.js").Decimal | null;
|
|
4531
4373
|
tpsl_order_id: bigint;
|
|
4532
4374
|
order_price: import("decimal.js").Decimal;
|
|
4533
4375
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -4539,7 +4381,7 @@ export declare const ResponseSchemas: {
|
|
|
4539
4381
|
owner: string;
|
|
4540
4382
|
linked_tpsl_order_id: bigint | null;
|
|
4541
4383
|
}, {
|
|
4542
|
-
size: string | number;
|
|
4384
|
+
size: string | number | null;
|
|
4543
4385
|
tpsl_order_id: bigint;
|
|
4544
4386
|
order_price: string | number;
|
|
4545
4387
|
trigger_price: string | number;
|
|
@@ -4551,7 +4393,7 @@ export declare const ResponseSchemas: {
|
|
|
4551
4393
|
owner: string;
|
|
4552
4394
|
linked_tpsl_order_id: bigint | null;
|
|
4553
4395
|
}>>, Map<bigint, {
|
|
4554
|
-
size: import("decimal.js").Decimal;
|
|
4396
|
+
size: import("decimal.js").Decimal | null;
|
|
4555
4397
|
tpsl_order_id: bigint;
|
|
4556
4398
|
order_price: import("decimal.js").Decimal;
|
|
4557
4399
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -4563,7 +4405,7 @@ export declare const ResponseSchemas: {
|
|
|
4563
4405
|
owner: string;
|
|
4564
4406
|
linked_tpsl_order_id: bigint | null;
|
|
4565
4407
|
}>, Record<string, {
|
|
4566
|
-
size: string | number;
|
|
4408
|
+
size: string | number | null;
|
|
4567
4409
|
tpsl_order_id: bigint;
|
|
4568
4410
|
order_price: string | number;
|
|
4569
4411
|
trigger_price: string | number;
|
|
@@ -4618,7 +4460,7 @@ export declare const ResponseSchemas: {
|
|
|
4618
4460
|
};
|
|
4619
4461
|
user_selected_max_leverage: number;
|
|
4620
4462
|
tpsls: Map<bigint, {
|
|
4621
|
-
size: import("decimal.js").Decimal;
|
|
4463
|
+
size: import("decimal.js").Decimal | null;
|
|
4622
4464
|
tpsl_order_id: bigint;
|
|
4623
4465
|
order_price: import("decimal.js").Decimal;
|
|
4624
4466
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -4673,7 +4515,7 @@ export declare const ResponseSchemas: {
|
|
|
4673
4515
|
};
|
|
4674
4516
|
user_selected_max_leverage: number;
|
|
4675
4517
|
tpsls: Record<string, {
|
|
4676
|
-
size: string | number;
|
|
4518
|
+
size: string | number | null;
|
|
4677
4519
|
tpsl_order_id: bigint;
|
|
4678
4520
|
order_price: string | number;
|
|
4679
4521
|
trigger_price: string | number;
|
|
@@ -4728,7 +4570,7 @@ export declare const ResponseSchemas: {
|
|
|
4728
4570
|
};
|
|
4729
4571
|
user_selected_max_leverage: number;
|
|
4730
4572
|
tpsls: Map<bigint, {
|
|
4731
|
-
size: import("decimal.js").Decimal;
|
|
4573
|
+
size: import("decimal.js").Decimal | null;
|
|
4732
4574
|
tpsl_order_id: bigint;
|
|
4733
4575
|
order_price: import("decimal.js").Decimal;
|
|
4734
4576
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -4783,7 +4625,7 @@ export declare const ResponseSchemas: {
|
|
|
4783
4625
|
};
|
|
4784
4626
|
user_selected_max_leverage: number;
|
|
4785
4627
|
tpsls: Record<string, {
|
|
4786
|
-
size: string | number;
|
|
4628
|
+
size: string | number | null;
|
|
4787
4629
|
tpsl_order_id: bigint;
|
|
4788
4630
|
order_price: string | number;
|
|
4789
4631
|
trigger_price: string | number;
|
|
@@ -4800,23 +4642,14 @@ export declare const ResponseSchemas: {
|
|
|
4800
4642
|
address: string;
|
|
4801
4643
|
usdc_ledger: {
|
|
4802
4644
|
ledger: {
|
|
4803
|
-
weights: {
|
|
4804
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4805
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4806
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4807
|
-
};
|
|
4808
4645
|
asset: import("decimal.js").Decimal;
|
|
4809
4646
|
liability: import("decimal.js").Decimal;
|
|
4810
4647
|
};
|
|
4811
4648
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
4812
4649
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
4813
4650
|
};
|
|
4651
|
+
client_order_ids: Map<bigint, bigint>;
|
|
4814
4652
|
spot_ledgers: Map<number, {
|
|
4815
|
-
weights: {
|
|
4816
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4817
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4818
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4819
|
-
};
|
|
4820
4653
|
asset: import("decimal.js").Decimal;
|
|
4821
4654
|
liability: import("decimal.js").Decimal;
|
|
4822
4655
|
}>;
|
|
@@ -4863,7 +4696,7 @@ export declare const ResponseSchemas: {
|
|
|
4863
4696
|
};
|
|
4864
4697
|
user_selected_max_leverage: number;
|
|
4865
4698
|
tpsls: Map<bigint, {
|
|
4866
|
-
size: import("decimal.js").Decimal;
|
|
4699
|
+
size: import("decimal.js").Decimal | null;
|
|
4867
4700
|
tpsl_order_id: bigint;
|
|
4868
4701
|
order_price: import("decimal.js").Decimal;
|
|
4869
4702
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -4880,23 +4713,14 @@ export declare const ResponseSchemas: {
|
|
|
4880
4713
|
address: string;
|
|
4881
4714
|
usdc_ledger: {
|
|
4882
4715
|
ledger: {
|
|
4883
|
-
weights: {
|
|
4884
|
-
asset_weight: string | number;
|
|
4885
|
-
initial_liability_weight: string | number;
|
|
4886
|
-
maintenance_liability_weight: string | number;
|
|
4887
|
-
};
|
|
4888
4716
|
asset: string | number;
|
|
4889
4717
|
liability: string | number;
|
|
4890
4718
|
};
|
|
4891
4719
|
unrealized_loss_borrow: string | number;
|
|
4892
4720
|
unsettled_perp_profit: string | number;
|
|
4893
4721
|
};
|
|
4722
|
+
client_order_ids: Record<string, bigint>;
|
|
4894
4723
|
spot_ledgers: Record<string, {
|
|
4895
|
-
weights: {
|
|
4896
|
-
asset_weight: string | number;
|
|
4897
|
-
initial_liability_weight: string | number;
|
|
4898
|
-
maintenance_liability_weight: string | number;
|
|
4899
|
-
};
|
|
4900
4724
|
asset: string | number;
|
|
4901
4725
|
liability: string | number;
|
|
4902
4726
|
}>;
|
|
@@ -4943,7 +4767,7 @@ export declare const ResponseSchemas: {
|
|
|
4943
4767
|
};
|
|
4944
4768
|
user_selected_max_leverage: number;
|
|
4945
4769
|
tpsls: Record<string, {
|
|
4946
|
-
size: string | number;
|
|
4770
|
+
size: string | number | null;
|
|
4947
4771
|
tpsl_order_id: bigint;
|
|
4948
4772
|
order_price: string | number;
|
|
4949
4773
|
trigger_price: string | number;
|
|
@@ -4960,23 +4784,14 @@ export declare const ResponseSchemas: {
|
|
|
4960
4784
|
address: string;
|
|
4961
4785
|
usdc_ledger: {
|
|
4962
4786
|
ledger: {
|
|
4963
|
-
weights: {
|
|
4964
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4965
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4966
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4967
|
-
};
|
|
4968
4787
|
asset: import("decimal.js").Decimal;
|
|
4969
4788
|
liability: import("decimal.js").Decimal;
|
|
4970
4789
|
};
|
|
4971
4790
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
4972
4791
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
4973
4792
|
};
|
|
4793
|
+
client_order_ids: Map<bigint, bigint>;
|
|
4974
4794
|
spot_ledgers: Map<number, {
|
|
4975
|
-
weights: {
|
|
4976
|
-
asset_weight: import("decimal.js").Decimal;
|
|
4977
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
4978
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
4979
|
-
};
|
|
4980
4795
|
asset: import("decimal.js").Decimal;
|
|
4981
4796
|
liability: import("decimal.js").Decimal;
|
|
4982
4797
|
}>;
|
|
@@ -5023,7 +4838,7 @@ export declare const ResponseSchemas: {
|
|
|
5023
4838
|
};
|
|
5024
4839
|
user_selected_max_leverage: number;
|
|
5025
4840
|
tpsls: Map<bigint, {
|
|
5026
|
-
size: import("decimal.js").Decimal;
|
|
4841
|
+
size: import("decimal.js").Decimal | null;
|
|
5027
4842
|
tpsl_order_id: bigint;
|
|
5028
4843
|
order_price: import("decimal.js").Decimal;
|
|
5029
4844
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -5040,23 +4855,14 @@ export declare const ResponseSchemas: {
|
|
|
5040
4855
|
address: string;
|
|
5041
4856
|
usdc_ledger: {
|
|
5042
4857
|
ledger: {
|
|
5043
|
-
weights: {
|
|
5044
|
-
asset_weight: string | number;
|
|
5045
|
-
initial_liability_weight: string | number;
|
|
5046
|
-
maintenance_liability_weight: string | number;
|
|
5047
|
-
};
|
|
5048
4858
|
asset: string | number;
|
|
5049
4859
|
liability: string | number;
|
|
5050
4860
|
};
|
|
5051
4861
|
unrealized_loss_borrow: string | number;
|
|
5052
4862
|
unsettled_perp_profit: string | number;
|
|
5053
4863
|
};
|
|
4864
|
+
client_order_ids: Record<string, bigint>;
|
|
5054
4865
|
spot_ledgers: Record<string, {
|
|
5055
|
-
weights: {
|
|
5056
|
-
asset_weight: string | number;
|
|
5057
|
-
initial_liability_weight: string | number;
|
|
5058
|
-
maintenance_liability_weight: string | number;
|
|
5059
|
-
};
|
|
5060
4866
|
asset: string | number;
|
|
5061
4867
|
liability: string | number;
|
|
5062
4868
|
}>;
|
|
@@ -5103,7 +4909,7 @@ export declare const ResponseSchemas: {
|
|
|
5103
4909
|
};
|
|
5104
4910
|
user_selected_max_leverage: number;
|
|
5105
4911
|
tpsls: Record<string, {
|
|
5106
|
-
size: string | number;
|
|
4912
|
+
size: string | number | null;
|
|
5107
4913
|
tpsl_order_id: bigint;
|
|
5108
4914
|
order_price: string | number;
|
|
5109
4915
|
trigger_price: string | number;
|
|
@@ -5123,23 +4929,14 @@ export declare const ResponseSchemas: {
|
|
|
5123
4929
|
address: string;
|
|
5124
4930
|
usdc_ledger: {
|
|
5125
4931
|
ledger: {
|
|
5126
|
-
weights: {
|
|
5127
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5128
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5129
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5130
|
-
};
|
|
5131
4932
|
asset: import("decimal.js").Decimal;
|
|
5132
4933
|
liability: import("decimal.js").Decimal;
|
|
5133
4934
|
};
|
|
5134
4935
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
5135
4936
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
5136
4937
|
};
|
|
4938
|
+
client_order_ids: Map<bigint, bigint>;
|
|
5137
4939
|
spot_ledgers: Map<number, {
|
|
5138
|
-
weights: {
|
|
5139
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5140
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5141
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5142
|
-
};
|
|
5143
4940
|
asset: import("decimal.js").Decimal;
|
|
5144
4941
|
liability: import("decimal.js").Decimal;
|
|
5145
4942
|
}>;
|
|
@@ -5186,7 +4983,7 @@ export declare const ResponseSchemas: {
|
|
|
5186
4983
|
};
|
|
5187
4984
|
user_selected_max_leverage: number;
|
|
5188
4985
|
tpsls: Map<bigint, {
|
|
5189
|
-
size: import("decimal.js").Decimal;
|
|
4986
|
+
size: import("decimal.js").Decimal | null;
|
|
5190
4987
|
tpsl_order_id: bigint;
|
|
5191
4988
|
order_price: import("decimal.js").Decimal;
|
|
5192
4989
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -5206,23 +5003,14 @@ export declare const ResponseSchemas: {
|
|
|
5206
5003
|
address: string;
|
|
5207
5004
|
usdc_ledger: {
|
|
5208
5005
|
ledger: {
|
|
5209
|
-
weights: {
|
|
5210
|
-
asset_weight: string | number;
|
|
5211
|
-
initial_liability_weight: string | number;
|
|
5212
|
-
maintenance_liability_weight: string | number;
|
|
5213
|
-
};
|
|
5214
5006
|
asset: string | number;
|
|
5215
5007
|
liability: string | number;
|
|
5216
5008
|
};
|
|
5217
5009
|
unrealized_loss_borrow: string | number;
|
|
5218
5010
|
unsettled_perp_profit: string | number;
|
|
5219
5011
|
};
|
|
5012
|
+
client_order_ids: Record<string, bigint>;
|
|
5220
5013
|
spot_ledgers: Record<string, {
|
|
5221
|
-
weights: {
|
|
5222
|
-
asset_weight: string | number;
|
|
5223
|
-
initial_liability_weight: string | number;
|
|
5224
|
-
maintenance_liability_weight: string | number;
|
|
5225
|
-
};
|
|
5226
5014
|
asset: string | number;
|
|
5227
5015
|
liability: string | number;
|
|
5228
5016
|
}>;
|
|
@@ -5269,7 +5057,7 @@ export declare const ResponseSchemas: {
|
|
|
5269
5057
|
};
|
|
5270
5058
|
user_selected_max_leverage: number;
|
|
5271
5059
|
tpsls: Record<string, {
|
|
5272
|
-
size: string | number;
|
|
5060
|
+
size: string | number | null;
|
|
5273
5061
|
tpsl_order_id: bigint;
|
|
5274
5062
|
order_price: string | number;
|
|
5275
5063
|
trigger_price: string | number;
|
|
@@ -5292,23 +5080,14 @@ export declare const ResponseSchemas: {
|
|
|
5292
5080
|
address: string;
|
|
5293
5081
|
usdc_ledger: {
|
|
5294
5082
|
ledger: {
|
|
5295
|
-
weights: {
|
|
5296
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5297
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5298
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5299
|
-
};
|
|
5300
5083
|
asset: import("decimal.js").Decimal;
|
|
5301
5084
|
liability: import("decimal.js").Decimal;
|
|
5302
5085
|
};
|
|
5303
5086
|
unrealized_loss_borrow: import("decimal.js").Decimal;
|
|
5304
5087
|
unsettled_perp_profit: import("decimal.js").Decimal;
|
|
5305
5088
|
};
|
|
5089
|
+
client_order_ids: Map<bigint, bigint>;
|
|
5306
5090
|
spot_ledgers: Map<number, {
|
|
5307
|
-
weights: {
|
|
5308
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5309
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5310
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5311
|
-
};
|
|
5312
5091
|
asset: import("decimal.js").Decimal;
|
|
5313
5092
|
liability: import("decimal.js").Decimal;
|
|
5314
5093
|
}>;
|
|
@@ -5355,7 +5134,7 @@ export declare const ResponseSchemas: {
|
|
|
5355
5134
|
};
|
|
5356
5135
|
user_selected_max_leverage: number;
|
|
5357
5136
|
tpsls: Map<bigint, {
|
|
5358
|
-
size: import("decimal.js").Decimal;
|
|
5137
|
+
size: import("decimal.js").Decimal | null;
|
|
5359
5138
|
tpsl_order_id: bigint;
|
|
5360
5139
|
order_price: import("decimal.js").Decimal;
|
|
5361
5140
|
trigger_price: import("decimal.js").Decimal;
|
|
@@ -5378,23 +5157,14 @@ export declare const ResponseSchemas: {
|
|
|
5378
5157
|
address: string;
|
|
5379
5158
|
usdc_ledger: {
|
|
5380
5159
|
ledger: {
|
|
5381
|
-
weights: {
|
|
5382
|
-
asset_weight: string | number;
|
|
5383
|
-
initial_liability_weight: string | number;
|
|
5384
|
-
maintenance_liability_weight: string | number;
|
|
5385
|
-
};
|
|
5386
5160
|
asset: string | number;
|
|
5387
5161
|
liability: string | number;
|
|
5388
5162
|
};
|
|
5389
5163
|
unrealized_loss_borrow: string | number;
|
|
5390
5164
|
unsettled_perp_profit: string | number;
|
|
5391
5165
|
};
|
|
5166
|
+
client_order_ids: Record<string, bigint>;
|
|
5392
5167
|
spot_ledgers: Record<string, {
|
|
5393
|
-
weights: {
|
|
5394
|
-
asset_weight: string | number;
|
|
5395
|
-
initial_liability_weight: string | number;
|
|
5396
|
-
maintenance_liability_weight: string | number;
|
|
5397
|
-
};
|
|
5398
5168
|
asset: string | number;
|
|
5399
5169
|
liability: string | number;
|
|
5400
5170
|
}>;
|
|
@@ -5441,7 +5211,7 @@ export declare const ResponseSchemas: {
|
|
|
5441
5211
|
};
|
|
5442
5212
|
user_selected_max_leverage: number;
|
|
5443
5213
|
tpsls: Record<string, {
|
|
5444
|
-
size: string | number;
|
|
5214
|
+
size: string | number | null;
|
|
5445
5215
|
tpsl_order_id: bigint;
|
|
5446
5216
|
order_price: string | number;
|
|
5447
5217
|
trigger_price: string | number;
|
|
@@ -5465,45 +5235,6 @@ export declare const ResponseSchemas: {
|
|
|
5465
5235
|
asset_id: z.ZodNumber;
|
|
5466
5236
|
is_active: z.ZodBoolean;
|
|
5467
5237
|
last_update_timestamp: z.ZodBigInt;
|
|
5468
|
-
risk_params: z.ZodObject<{
|
|
5469
|
-
weights: z.ZodObject<{
|
|
5470
|
-
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5471
|
-
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5472
|
-
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5473
|
-
}, "strip", z.ZodTypeAny, {
|
|
5474
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5475
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5476
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5477
|
-
}, {
|
|
5478
|
-
asset_weight: string | number;
|
|
5479
|
-
initial_liability_weight: string | number;
|
|
5480
|
-
maintenance_liability_weight: string | number;
|
|
5481
|
-
}>;
|
|
5482
|
-
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5483
|
-
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5484
|
-
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5485
|
-
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5486
|
-
}, "strip", z.ZodTypeAny, {
|
|
5487
|
-
weights: {
|
|
5488
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5489
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5490
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5491
|
-
};
|
|
5492
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
5493
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
5494
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5495
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5496
|
-
}, {
|
|
5497
|
-
weights: {
|
|
5498
|
-
asset_weight: string | number;
|
|
5499
|
-
initial_liability_weight: string | number;
|
|
5500
|
-
maintenance_liability_weight: string | number;
|
|
5501
|
-
};
|
|
5502
|
-
deposit_limit: string | number;
|
|
5503
|
-
borrow_limit: string | number;
|
|
5504
|
-
liquidation_reward_ratio: string | number;
|
|
5505
|
-
liability_liquidation_limit_ratio: string | number;
|
|
5506
|
-
}>;
|
|
5507
5238
|
rate_params: z.ZodObject<{
|
|
5508
5239
|
optimal_utilisation_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5509
5240
|
min_borrow_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -5520,6 +5251,8 @@ export declare const ResponseSchemas: {
|
|
|
5520
5251
|
optimal_borrow_rate: string | number;
|
|
5521
5252
|
max_borrow_rate: string | number;
|
|
5522
5253
|
}>;
|
|
5254
|
+
deposit_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5255
|
+
borrow_limit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5523
5256
|
available_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5524
5257
|
borrowed_amount: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5525
5258
|
cumulative_deposit_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
@@ -5529,23 +5262,14 @@ export declare const ResponseSchemas: {
|
|
|
5529
5262
|
last_update_timestamp: bigint;
|
|
5530
5263
|
asset_id: number;
|
|
5531
5264
|
is_active: boolean;
|
|
5532
|
-
risk_params: {
|
|
5533
|
-
weights: {
|
|
5534
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5535
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5536
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5537
|
-
};
|
|
5538
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
5539
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
5540
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5541
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5542
|
-
};
|
|
5543
5265
|
rate_params: {
|
|
5544
5266
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
5545
5267
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
5546
5268
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
5547
5269
|
max_borrow_rate: import("decimal.js").Decimal;
|
|
5548
5270
|
};
|
|
5271
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
5272
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
5549
5273
|
available_amount: import("decimal.js").Decimal;
|
|
5550
5274
|
borrowed_amount: import("decimal.js").Decimal;
|
|
5551
5275
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
@@ -5555,23 +5279,14 @@ export declare const ResponseSchemas: {
|
|
|
5555
5279
|
last_update_timestamp: bigint;
|
|
5556
5280
|
asset_id: number;
|
|
5557
5281
|
is_active: boolean;
|
|
5558
|
-
risk_params: {
|
|
5559
|
-
weights: {
|
|
5560
|
-
asset_weight: string | number;
|
|
5561
|
-
initial_liability_weight: string | number;
|
|
5562
|
-
maintenance_liability_weight: string | number;
|
|
5563
|
-
};
|
|
5564
|
-
deposit_limit: string | number;
|
|
5565
|
-
borrow_limit: string | number;
|
|
5566
|
-
liquidation_reward_ratio: string | number;
|
|
5567
|
-
liability_liquidation_limit_ratio: string | number;
|
|
5568
|
-
};
|
|
5569
5282
|
rate_params: {
|
|
5570
5283
|
optimal_utilisation_rate: string | number;
|
|
5571
5284
|
min_borrow_rate: string | number;
|
|
5572
5285
|
optimal_borrow_rate: string | number;
|
|
5573
5286
|
max_borrow_rate: string | number;
|
|
5574
5287
|
};
|
|
5288
|
+
deposit_limit: string | number;
|
|
5289
|
+
borrow_limit: string | number;
|
|
5575
5290
|
available_amount: string | number;
|
|
5576
5291
|
borrowed_amount: string | number;
|
|
5577
5292
|
cumulative_deposit_rate: string | number;
|
|
@@ -5581,23 +5296,14 @@ export declare const ResponseSchemas: {
|
|
|
5581
5296
|
last_update_timestamp: bigint;
|
|
5582
5297
|
asset_id: number;
|
|
5583
5298
|
is_active: boolean;
|
|
5584
|
-
risk_params: {
|
|
5585
|
-
weights: {
|
|
5586
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5587
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5588
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5589
|
-
};
|
|
5590
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
5591
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
5592
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5593
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5594
|
-
};
|
|
5595
5299
|
rate_params: {
|
|
5596
5300
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
5597
5301
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
5598
5302
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
5599
5303
|
max_borrow_rate: import("decimal.js").Decimal;
|
|
5600
5304
|
};
|
|
5305
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
5306
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
5601
5307
|
available_amount: import("decimal.js").Decimal;
|
|
5602
5308
|
borrowed_amount: import("decimal.js").Decimal;
|
|
5603
5309
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
@@ -5607,23 +5313,14 @@ export declare const ResponseSchemas: {
|
|
|
5607
5313
|
last_update_timestamp: bigint;
|
|
5608
5314
|
asset_id: number;
|
|
5609
5315
|
is_active: boolean;
|
|
5610
|
-
risk_params: {
|
|
5611
|
-
weights: {
|
|
5612
|
-
asset_weight: string | number;
|
|
5613
|
-
initial_liability_weight: string | number;
|
|
5614
|
-
maintenance_liability_weight: string | number;
|
|
5615
|
-
};
|
|
5616
|
-
deposit_limit: string | number;
|
|
5617
|
-
borrow_limit: string | number;
|
|
5618
|
-
liquidation_reward_ratio: string | number;
|
|
5619
|
-
liability_liquidation_limit_ratio: string | number;
|
|
5620
|
-
};
|
|
5621
5316
|
rate_params: {
|
|
5622
5317
|
optimal_utilisation_rate: string | number;
|
|
5623
5318
|
min_borrow_rate: string | number;
|
|
5624
5319
|
optimal_borrow_rate: string | number;
|
|
5625
5320
|
max_borrow_rate: string | number;
|
|
5626
5321
|
};
|
|
5322
|
+
deposit_limit: string | number;
|
|
5323
|
+
borrow_limit: string | number;
|
|
5627
5324
|
available_amount: string | number;
|
|
5628
5325
|
borrowed_amount: string | number;
|
|
5629
5326
|
cumulative_deposit_rate: string | number;
|
|
@@ -5635,23 +5332,14 @@ export declare const ResponseSchemas: {
|
|
|
5635
5332
|
last_update_timestamp: bigint;
|
|
5636
5333
|
asset_id: number;
|
|
5637
5334
|
is_active: boolean;
|
|
5638
|
-
risk_params: {
|
|
5639
|
-
weights: {
|
|
5640
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5641
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5642
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5643
|
-
};
|
|
5644
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
5645
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
5646
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5647
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5648
|
-
};
|
|
5649
5335
|
rate_params: {
|
|
5650
5336
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
5651
5337
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
5652
5338
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
5653
5339
|
max_borrow_rate: import("decimal.js").Decimal;
|
|
5654
5340
|
};
|
|
5341
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
5342
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
5655
5343
|
available_amount: import("decimal.js").Decimal;
|
|
5656
5344
|
borrowed_amount: import("decimal.js").Decimal;
|
|
5657
5345
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
@@ -5663,23 +5351,14 @@ export declare const ResponseSchemas: {
|
|
|
5663
5351
|
last_update_timestamp: bigint;
|
|
5664
5352
|
asset_id: number;
|
|
5665
5353
|
is_active: boolean;
|
|
5666
|
-
risk_params: {
|
|
5667
|
-
weights: {
|
|
5668
|
-
asset_weight: string | number;
|
|
5669
|
-
initial_liability_weight: string | number;
|
|
5670
|
-
maintenance_liability_weight: string | number;
|
|
5671
|
-
};
|
|
5672
|
-
deposit_limit: string | number;
|
|
5673
|
-
borrow_limit: string | number;
|
|
5674
|
-
liquidation_reward_ratio: string | number;
|
|
5675
|
-
liability_liquidation_limit_ratio: string | number;
|
|
5676
|
-
};
|
|
5677
5354
|
rate_params: {
|
|
5678
5355
|
optimal_utilisation_rate: string | number;
|
|
5679
5356
|
min_borrow_rate: string | number;
|
|
5680
5357
|
optimal_borrow_rate: string | number;
|
|
5681
5358
|
max_borrow_rate: string | number;
|
|
5682
5359
|
};
|
|
5360
|
+
deposit_limit: string | number;
|
|
5361
|
+
borrow_limit: string | number;
|
|
5683
5362
|
available_amount: string | number;
|
|
5684
5363
|
borrowed_amount: string | number;
|
|
5685
5364
|
cumulative_deposit_rate: string | number;
|
|
@@ -5694,23 +5373,14 @@ export declare const ResponseSchemas: {
|
|
|
5694
5373
|
last_update_timestamp: bigint;
|
|
5695
5374
|
asset_id: number;
|
|
5696
5375
|
is_active: boolean;
|
|
5697
|
-
risk_params: {
|
|
5698
|
-
weights: {
|
|
5699
|
-
asset_weight: import("decimal.js").Decimal;
|
|
5700
|
-
initial_liability_weight: import("decimal.js").Decimal;
|
|
5701
|
-
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5702
|
-
};
|
|
5703
|
-
deposit_limit: import("decimal.js").Decimal;
|
|
5704
|
-
borrow_limit: import("decimal.js").Decimal;
|
|
5705
|
-
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5706
|
-
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5707
|
-
};
|
|
5708
5376
|
rate_params: {
|
|
5709
5377
|
optimal_utilisation_rate: import("decimal.js").Decimal;
|
|
5710
5378
|
min_borrow_rate: import("decimal.js").Decimal;
|
|
5711
5379
|
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
5712
5380
|
max_borrow_rate: import("decimal.js").Decimal;
|
|
5713
5381
|
};
|
|
5382
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
5383
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
5714
5384
|
available_amount: import("decimal.js").Decimal;
|
|
5715
5385
|
borrowed_amount: import("decimal.js").Decimal;
|
|
5716
5386
|
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
@@ -5725,23 +5395,14 @@ export declare const ResponseSchemas: {
|
|
|
5725
5395
|
last_update_timestamp: bigint;
|
|
5726
5396
|
asset_id: number;
|
|
5727
5397
|
is_active: boolean;
|
|
5728
|
-
risk_params: {
|
|
5729
|
-
weights: {
|
|
5730
|
-
asset_weight: string | number;
|
|
5731
|
-
initial_liability_weight: string | number;
|
|
5732
|
-
maintenance_liability_weight: string | number;
|
|
5733
|
-
};
|
|
5734
|
-
deposit_limit: string | number;
|
|
5735
|
-
borrow_limit: string | number;
|
|
5736
|
-
liquidation_reward_ratio: string | number;
|
|
5737
|
-
liability_liquidation_limit_ratio: string | number;
|
|
5738
|
-
};
|
|
5739
5398
|
rate_params: {
|
|
5740
5399
|
optimal_utilisation_rate: string | number;
|
|
5741
5400
|
min_borrow_rate: string | number;
|
|
5742
5401
|
optimal_borrow_rate: string | number;
|
|
5743
5402
|
max_borrow_rate: string | number;
|
|
5744
5403
|
};
|
|
5404
|
+
deposit_limit: string | number;
|
|
5405
|
+
borrow_limit: string | number;
|
|
5745
5406
|
available_amount: string | number;
|
|
5746
5407
|
borrowed_amount: string | number;
|
|
5747
5408
|
cumulative_deposit_rate: string | number;
|
|
@@ -5759,25 +5420,6 @@ export declare const ResponseSchemas: {
|
|
|
5759
5420
|
is_active: z.ZodBoolean;
|
|
5760
5421
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5761
5422
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5762
|
-
funding_parameters: z.ZodObject<{
|
|
5763
|
-
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5764
|
-
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5765
|
-
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5766
|
-
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5767
|
-
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5768
|
-
}, "strip", z.ZodTypeAny, {
|
|
5769
|
-
interest_rate: import("decimal.js").Decimal;
|
|
5770
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5771
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5772
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5773
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5774
|
-
}, {
|
|
5775
|
-
interest_rate: string | number;
|
|
5776
|
-
min_interest_rate_clamp: string | number;
|
|
5777
|
-
max_interest_rate_clamp: string | number;
|
|
5778
|
-
min_funding_rate_clamp: string | number;
|
|
5779
|
-
max_funding_rate_clamp: string | number;
|
|
5780
|
-
}>;
|
|
5781
5423
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5782
5424
|
orderbook: z.ZodObject<{
|
|
5783
5425
|
market_id: z.ZodNumber;
|
|
@@ -5840,13 +5482,6 @@ export declare const ResponseSchemas: {
|
|
|
5840
5482
|
is_active: boolean;
|
|
5841
5483
|
min_tick_size: import("decimal.js").Decimal;
|
|
5842
5484
|
min_lot_size: import("decimal.js").Decimal;
|
|
5843
|
-
funding_parameters: {
|
|
5844
|
-
interest_rate: import("decimal.js").Decimal;
|
|
5845
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5846
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5847
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5848
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5849
|
-
};
|
|
5850
5485
|
impact_margin: import("decimal.js").Decimal;
|
|
5851
5486
|
orderbook: {
|
|
5852
5487
|
market_id: number;
|
|
@@ -5865,13 +5500,6 @@ export declare const ResponseSchemas: {
|
|
|
5865
5500
|
is_active: boolean;
|
|
5866
5501
|
min_tick_size: string | number;
|
|
5867
5502
|
min_lot_size: string | number;
|
|
5868
|
-
funding_parameters: {
|
|
5869
|
-
interest_rate: string | number;
|
|
5870
|
-
min_interest_rate_clamp: string | number;
|
|
5871
|
-
max_interest_rate_clamp: string | number;
|
|
5872
|
-
min_funding_rate_clamp: string | number;
|
|
5873
|
-
max_funding_rate_clamp: string | number;
|
|
5874
|
-
};
|
|
5875
5503
|
impact_margin: string | number;
|
|
5876
5504
|
orderbook: {
|
|
5877
5505
|
market_id: number;
|
|
@@ -5893,13 +5521,6 @@ export declare const ResponseSchemas: {
|
|
|
5893
5521
|
is_active: boolean;
|
|
5894
5522
|
min_tick_size: import("decimal.js").Decimal;
|
|
5895
5523
|
min_lot_size: import("decimal.js").Decimal;
|
|
5896
|
-
funding_parameters: {
|
|
5897
|
-
interest_rate: import("decimal.js").Decimal;
|
|
5898
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5899
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5900
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5901
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5902
|
-
};
|
|
5903
5524
|
impact_margin: import("decimal.js").Decimal;
|
|
5904
5525
|
orderbook: {
|
|
5905
5526
|
market_id: number;
|
|
@@ -5921,13 +5542,6 @@ export declare const ResponseSchemas: {
|
|
|
5921
5542
|
is_active: boolean;
|
|
5922
5543
|
min_tick_size: string | number;
|
|
5923
5544
|
min_lot_size: string | number;
|
|
5924
|
-
funding_parameters: {
|
|
5925
|
-
interest_rate: string | number;
|
|
5926
|
-
min_interest_rate_clamp: string | number;
|
|
5927
|
-
max_interest_rate_clamp: string | number;
|
|
5928
|
-
min_funding_rate_clamp: string | number;
|
|
5929
|
-
max_funding_rate_clamp: string | number;
|
|
5930
|
-
};
|
|
5931
5545
|
impact_margin: string | number;
|
|
5932
5546
|
orderbook: {
|
|
5933
5547
|
market_id: number;
|
|
@@ -5952,13 +5566,6 @@ export declare const ResponseSchemas: {
|
|
|
5952
5566
|
is_active: boolean;
|
|
5953
5567
|
min_tick_size: import("decimal.js").Decimal;
|
|
5954
5568
|
min_lot_size: import("decimal.js").Decimal;
|
|
5955
|
-
funding_parameters: {
|
|
5956
|
-
interest_rate: import("decimal.js").Decimal;
|
|
5957
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5958
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
5959
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5960
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
5961
|
-
};
|
|
5962
5569
|
impact_margin: import("decimal.js").Decimal;
|
|
5963
5570
|
orderbook: {
|
|
5964
5571
|
market_id: number;
|
|
@@ -5983,13 +5590,6 @@ export declare const ResponseSchemas: {
|
|
|
5983
5590
|
is_active: boolean;
|
|
5984
5591
|
min_tick_size: string | number;
|
|
5985
5592
|
min_lot_size: string | number;
|
|
5986
|
-
funding_parameters: {
|
|
5987
|
-
interest_rate: string | number;
|
|
5988
|
-
min_interest_rate_clamp: string | number;
|
|
5989
|
-
max_interest_rate_clamp: string | number;
|
|
5990
|
-
min_funding_rate_clamp: string | number;
|
|
5991
|
-
max_funding_rate_clamp: string | number;
|
|
5992
|
-
};
|
|
5993
5593
|
impact_margin: string | number;
|
|
5994
5594
|
orderbook: {
|
|
5995
5595
|
market_id: number;
|
|
@@ -6014,25 +5614,6 @@ export declare const ResponseSchemas: {
|
|
|
6014
5614
|
is_active: z.ZodBoolean;
|
|
6015
5615
|
min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6016
5616
|
min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6017
|
-
funding_parameters: z.ZodObject<{
|
|
6018
|
-
interest_rate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6019
|
-
min_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6020
|
-
max_interest_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6021
|
-
min_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6022
|
-
max_funding_rate_clamp: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6023
|
-
}, "strip", z.ZodTypeAny, {
|
|
6024
|
-
interest_rate: import("decimal.js").Decimal;
|
|
6025
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6026
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6027
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6028
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6029
|
-
}, {
|
|
6030
|
-
interest_rate: string | number;
|
|
6031
|
-
min_interest_rate_clamp: string | number;
|
|
6032
|
-
max_interest_rate_clamp: string | number;
|
|
6033
|
-
min_funding_rate_clamp: string | number;
|
|
6034
|
-
max_funding_rate_clamp: string | number;
|
|
6035
|
-
}>;
|
|
6036
5617
|
impact_margin: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
6037
5618
|
orderbook: z.ZodObject<{
|
|
6038
5619
|
market_id: z.ZodNumber;
|
|
@@ -6095,13 +5676,6 @@ export declare const ResponseSchemas: {
|
|
|
6095
5676
|
is_active: boolean;
|
|
6096
5677
|
min_tick_size: import("decimal.js").Decimal;
|
|
6097
5678
|
min_lot_size: import("decimal.js").Decimal;
|
|
6098
|
-
funding_parameters: {
|
|
6099
|
-
interest_rate: import("decimal.js").Decimal;
|
|
6100
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6101
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6102
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6103
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6104
|
-
};
|
|
6105
5679
|
impact_margin: import("decimal.js").Decimal;
|
|
6106
5680
|
orderbook: {
|
|
6107
5681
|
market_id: number;
|
|
@@ -6120,13 +5694,6 @@ export declare const ResponseSchemas: {
|
|
|
6120
5694
|
is_active: boolean;
|
|
6121
5695
|
min_tick_size: string | number;
|
|
6122
5696
|
min_lot_size: string | number;
|
|
6123
|
-
funding_parameters: {
|
|
6124
|
-
interest_rate: string | number;
|
|
6125
|
-
min_interest_rate_clamp: string | number;
|
|
6126
|
-
max_interest_rate_clamp: string | number;
|
|
6127
|
-
min_funding_rate_clamp: string | number;
|
|
6128
|
-
max_funding_rate_clamp: string | number;
|
|
6129
|
-
};
|
|
6130
5697
|
impact_margin: string | number;
|
|
6131
5698
|
orderbook: {
|
|
6132
5699
|
market_id: number;
|
|
@@ -6145,13 +5712,6 @@ export declare const ResponseSchemas: {
|
|
|
6145
5712
|
is_active: boolean;
|
|
6146
5713
|
min_tick_size: import("decimal.js").Decimal;
|
|
6147
5714
|
min_lot_size: import("decimal.js").Decimal;
|
|
6148
|
-
funding_parameters: {
|
|
6149
|
-
interest_rate: import("decimal.js").Decimal;
|
|
6150
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6151
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6152
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6153
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6154
|
-
};
|
|
6155
5715
|
impact_margin: import("decimal.js").Decimal;
|
|
6156
5716
|
orderbook: {
|
|
6157
5717
|
market_id: number;
|
|
@@ -6170,13 +5730,6 @@ export declare const ResponseSchemas: {
|
|
|
6170
5730
|
is_active: boolean;
|
|
6171
5731
|
min_tick_size: string | number;
|
|
6172
5732
|
min_lot_size: string | number;
|
|
6173
|
-
funding_parameters: {
|
|
6174
|
-
interest_rate: string | number;
|
|
6175
|
-
min_interest_rate_clamp: string | number;
|
|
6176
|
-
max_interest_rate_clamp: string | number;
|
|
6177
|
-
min_funding_rate_clamp: string | number;
|
|
6178
|
-
max_funding_rate_clamp: string | number;
|
|
6179
|
-
};
|
|
6180
5733
|
impact_margin: string | number;
|
|
6181
5734
|
orderbook: {
|
|
6182
5735
|
market_id: number;
|
|
@@ -6198,13 +5751,6 @@ export declare const ResponseSchemas: {
|
|
|
6198
5751
|
is_active: boolean;
|
|
6199
5752
|
min_tick_size: import("decimal.js").Decimal;
|
|
6200
5753
|
min_lot_size: import("decimal.js").Decimal;
|
|
6201
|
-
funding_parameters: {
|
|
6202
|
-
interest_rate: import("decimal.js").Decimal;
|
|
6203
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6204
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6205
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6206
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6207
|
-
};
|
|
6208
5754
|
impact_margin: import("decimal.js").Decimal;
|
|
6209
5755
|
orderbook: {
|
|
6210
5756
|
market_id: number;
|
|
@@ -6226,13 +5772,6 @@ export declare const ResponseSchemas: {
|
|
|
6226
5772
|
is_active: boolean;
|
|
6227
5773
|
min_tick_size: string | number;
|
|
6228
5774
|
min_lot_size: string | number;
|
|
6229
|
-
funding_parameters: {
|
|
6230
|
-
interest_rate: string | number;
|
|
6231
|
-
min_interest_rate_clamp: string | number;
|
|
6232
|
-
max_interest_rate_clamp: string | number;
|
|
6233
|
-
min_funding_rate_clamp: string | number;
|
|
6234
|
-
max_funding_rate_clamp: string | number;
|
|
6235
|
-
};
|
|
6236
5775
|
impact_margin: string | number;
|
|
6237
5776
|
orderbook: {
|
|
6238
5777
|
market_id: number;
|
|
@@ -6257,13 +5796,6 @@ export declare const ResponseSchemas: {
|
|
|
6257
5796
|
is_active: boolean;
|
|
6258
5797
|
min_tick_size: import("decimal.js").Decimal;
|
|
6259
5798
|
min_lot_size: import("decimal.js").Decimal;
|
|
6260
|
-
funding_parameters: {
|
|
6261
|
-
interest_rate: import("decimal.js").Decimal;
|
|
6262
|
-
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6263
|
-
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
6264
|
-
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6265
|
-
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
6266
|
-
};
|
|
6267
5799
|
impact_margin: import("decimal.js").Decimal;
|
|
6268
5800
|
orderbook: {
|
|
6269
5801
|
market_id: number;
|
|
@@ -6288,13 +5820,6 @@ export declare const ResponseSchemas: {
|
|
|
6288
5820
|
is_active: boolean;
|
|
6289
5821
|
min_tick_size: string | number;
|
|
6290
5822
|
min_lot_size: string | number;
|
|
6291
|
-
funding_parameters: {
|
|
6292
|
-
interest_rate: string | number;
|
|
6293
|
-
min_interest_rate_clamp: string | number;
|
|
6294
|
-
max_interest_rate_clamp: string | number;
|
|
6295
|
-
min_funding_rate_clamp: string | number;
|
|
6296
|
-
max_funding_rate_clamp: string | number;
|
|
6297
|
-
};
|
|
6298
5823
|
impact_margin: string | number;
|
|
6299
5824
|
orderbook: {
|
|
6300
5825
|
market_id: number;
|
|
@@ -6316,6 +5841,19 @@ export declare const ResponseSchemas: {
|
|
|
6316
5841
|
readonly MarginConfig: z.ZodObject<{
|
|
6317
5842
|
data: z.ZodObject<{
|
|
6318
5843
|
value: z.ZodNullable<z.ZodObject<{
|
|
5844
|
+
perp_liquidation_config: z.ZodObject<{
|
|
5845
|
+
liquidation_ioc_buffer: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5846
|
+
backstop_liquidation_threshold: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5847
|
+
liquidation_fee: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5848
|
+
}, "strip", z.ZodTypeAny, {
|
|
5849
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5850
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5851
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5852
|
+
}, {
|
|
5853
|
+
liquidation_ioc_buffer: string | number;
|
|
5854
|
+
backstop_liquidation_threshold: string | number;
|
|
5855
|
+
liquidation_fee: string | number;
|
|
5856
|
+
}>;
|
|
6319
5857
|
perp_leverage_tables: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6320
5858
|
tiers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6321
5859
|
max_leverage: z.ZodNumber;
|
|
@@ -6363,10 +5901,43 @@ export declare const ResponseSchemas: {
|
|
|
6363
5901
|
maintenance_amount: string | number;
|
|
6364
5902
|
}>;
|
|
6365
5903
|
}>>;
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
5904
|
+
borrow_lend_risk_configs: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5905
|
+
liquidation_reward_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5906
|
+
liability_liquidation_limit_ratio: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5907
|
+
asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5908
|
+
initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5909
|
+
maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
|
|
5910
|
+
}, "strip", z.ZodTypeAny, {
|
|
5911
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5912
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5913
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5914
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5915
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5916
|
+
}, {
|
|
5917
|
+
liquidation_reward_ratio: string | number;
|
|
5918
|
+
liability_liquidation_limit_ratio: string | number;
|
|
5919
|
+
asset_weight: string | number;
|
|
5920
|
+
initial_liability_weight: string | number;
|
|
5921
|
+
maintenance_liability_weight: string | number;
|
|
5922
|
+
}>>, Map<number, {
|
|
5923
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5924
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5925
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5926
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5927
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5928
|
+
}>, Record<string, {
|
|
5929
|
+
liquidation_reward_ratio: string | number;
|
|
5930
|
+
liability_liquidation_limit_ratio: string | number;
|
|
5931
|
+
asset_weight: string | number;
|
|
5932
|
+
initial_liability_weight: string | number;
|
|
5933
|
+
maintenance_liability_weight: string | number;
|
|
5934
|
+
}>>;
|
|
6369
5935
|
}, "strip", z.ZodTypeAny, {
|
|
5936
|
+
perp_liquidation_config: {
|
|
5937
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5938
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5939
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5940
|
+
};
|
|
6370
5941
|
perp_leverage_tables: Map<number, {
|
|
6371
5942
|
tiers: Map<string, {
|
|
6372
5943
|
max_leverage: number;
|
|
@@ -6374,10 +5945,19 @@ export declare const ResponseSchemas: {
|
|
|
6374
5945
|
maintenance_amount: import("decimal.js").Decimal;
|
|
6375
5946
|
}>;
|
|
6376
5947
|
}>;
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
5948
|
+
borrow_lend_risk_configs: Map<number, {
|
|
5949
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5950
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5951
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5952
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5953
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5954
|
+
}>;
|
|
6380
5955
|
}, {
|
|
5956
|
+
perp_liquidation_config: {
|
|
5957
|
+
liquidation_ioc_buffer: string | number;
|
|
5958
|
+
backstop_liquidation_threshold: string | number;
|
|
5959
|
+
liquidation_fee: string | number;
|
|
5960
|
+
};
|
|
6381
5961
|
perp_leverage_tables: Record<string, {
|
|
6382
5962
|
tiers: Record<string, {
|
|
6383
5963
|
max_leverage: number;
|
|
@@ -6385,12 +5965,21 @@ export declare const ResponseSchemas: {
|
|
|
6385
5965
|
maintenance_amount: string | number;
|
|
6386
5966
|
}>;
|
|
6387
5967
|
}>;
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
5968
|
+
borrow_lend_risk_configs: Record<string, {
|
|
5969
|
+
liquidation_reward_ratio: string | number;
|
|
5970
|
+
liability_liquidation_limit_ratio: string | number;
|
|
5971
|
+
asset_weight: string | number;
|
|
5972
|
+
initial_liability_weight: string | number;
|
|
5973
|
+
maintenance_liability_weight: string | number;
|
|
5974
|
+
}>;
|
|
6391
5975
|
}>>;
|
|
6392
5976
|
}, "strip", z.ZodTypeAny, {
|
|
6393
5977
|
value: {
|
|
5978
|
+
perp_liquidation_config: {
|
|
5979
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
5980
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
5981
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
5982
|
+
};
|
|
6394
5983
|
perp_leverage_tables: Map<number, {
|
|
6395
5984
|
tiers: Map<string, {
|
|
6396
5985
|
max_leverage: number;
|
|
@@ -6398,12 +5987,21 @@ export declare const ResponseSchemas: {
|
|
|
6398
5987
|
maintenance_amount: import("decimal.js").Decimal;
|
|
6399
5988
|
}>;
|
|
6400
5989
|
}>;
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
|
|
5990
|
+
borrow_lend_risk_configs: Map<number, {
|
|
5991
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
5992
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
5993
|
+
asset_weight: import("decimal.js").Decimal;
|
|
5994
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
5995
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
5996
|
+
}>;
|
|
6404
5997
|
} | null;
|
|
6405
5998
|
}, {
|
|
6406
5999
|
value: {
|
|
6000
|
+
perp_liquidation_config: {
|
|
6001
|
+
liquidation_ioc_buffer: string | number;
|
|
6002
|
+
backstop_liquidation_threshold: string | number;
|
|
6003
|
+
liquidation_fee: string | number;
|
|
6004
|
+
};
|
|
6407
6005
|
perp_leverage_tables: Record<string, {
|
|
6408
6006
|
tiers: Record<string, {
|
|
6409
6007
|
max_leverage: number;
|
|
@@ -6411,15 +6009,24 @@ export declare const ResponseSchemas: {
|
|
|
6411
6009
|
maintenance_amount: string | number;
|
|
6412
6010
|
}>;
|
|
6413
6011
|
}>;
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6012
|
+
borrow_lend_risk_configs: Record<string, {
|
|
6013
|
+
liquidation_reward_ratio: string | number;
|
|
6014
|
+
liability_liquidation_limit_ratio: string | number;
|
|
6015
|
+
asset_weight: string | number;
|
|
6016
|
+
initial_liability_weight: string | number;
|
|
6017
|
+
maintenance_liability_weight: string | number;
|
|
6018
|
+
}>;
|
|
6417
6019
|
} | null;
|
|
6418
6020
|
}>;
|
|
6419
6021
|
meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
|
|
6420
6022
|
}, "strip", z.ZodTypeAny, {
|
|
6421
6023
|
data: {
|
|
6422
6024
|
value: {
|
|
6025
|
+
perp_liquidation_config: {
|
|
6026
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
6027
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
6028
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
6029
|
+
};
|
|
6423
6030
|
perp_leverage_tables: Map<number, {
|
|
6424
6031
|
tiers: Map<string, {
|
|
6425
6032
|
max_leverage: number;
|
|
@@ -6427,15 +6034,24 @@ export declare const ResponseSchemas: {
|
|
|
6427
6034
|
maintenance_amount: import("decimal.js").Decimal;
|
|
6428
6035
|
}>;
|
|
6429
6036
|
}>;
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6037
|
+
borrow_lend_risk_configs: Map<number, {
|
|
6038
|
+
liquidation_reward_ratio: import("decimal.js").Decimal;
|
|
6039
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
6040
|
+
asset_weight: import("decimal.js").Decimal;
|
|
6041
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
6042
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
6043
|
+
}>;
|
|
6433
6044
|
} | null;
|
|
6434
6045
|
};
|
|
6435
6046
|
meta: Map<unknown, unknown> | null;
|
|
6436
6047
|
}, {
|
|
6437
6048
|
data: {
|
|
6438
6049
|
value: {
|
|
6050
|
+
perp_liquidation_config: {
|
|
6051
|
+
liquidation_ioc_buffer: string | number;
|
|
6052
|
+
backstop_liquidation_threshold: string | number;
|
|
6053
|
+
liquidation_fee: string | number;
|
|
6054
|
+
};
|
|
6439
6055
|
perp_leverage_tables: Record<string, {
|
|
6440
6056
|
tiers: Record<string, {
|
|
6441
6057
|
max_leverage: number;
|
|
@@ -6443,9 +6059,13 @@ export declare const ResponseSchemas: {
|
|
|
6443
6059
|
maintenance_amount: string | number;
|
|
6444
6060
|
}>;
|
|
6445
6061
|
}>;
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6062
|
+
borrow_lend_risk_configs: Record<string, {
|
|
6063
|
+
liquidation_reward_ratio: string | number;
|
|
6064
|
+
liability_liquidation_limit_ratio: string | number;
|
|
6065
|
+
asset_weight: string | number;
|
|
6066
|
+
initial_liability_weight: string | number;
|
|
6067
|
+
maintenance_liability_weight: string | number;
|
|
6068
|
+
}>;
|
|
6449
6069
|
} | null;
|
|
6450
6070
|
};
|
|
6451
6071
|
meta: Record<string, unknown> | null;
|
|
@@ -6497,5 +6117,5 @@ export type PerpMarket = z.infer<typeof Schemas.PerpMarket>;
|
|
|
6497
6117
|
export type MarginConfig = z.infer<typeof Schemas.MarginConfig>;
|
|
6498
6118
|
export type Tpsl = z.infer<typeof Tpsl>;
|
|
6499
6119
|
export type AccountAddresses = z.infer<typeof Schemas.AccountAddresses>;
|
|
6500
|
-
export type
|
|
6120
|
+
export type BorrowLendRiskConfig = z.infer<typeof BorrowLendRiskConfig>;
|
|
6501
6121
|
export {};
|