@bulletxyz/bullet-sdk 0.44.0-rc.7 → 0.45.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +86 -308
- package/dist/browser/index.js.map +5 -5
- package/dist/node/index.js +86 -308
- package/dist/node/index.js.map +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/bullet-wasm/index.d.ts +1 -0
- package/dist/types/client.d.ts +15 -55
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/rollupTypes.d.ts +167 -181
- package/dist/types/rollupTypes.d.ts.map +1 -1
- package/dist/types/types.d.ts +0 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/zod-types/rest.d.ts +765 -455
- package/dist/types/zod-types/rest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,14 +6,6 @@ export declare const StateResponseSchemas: {
|
|
|
6
6
|
readonly StateValue: <T extends z.ZodTypeAny>(valueSchema: T) => z.ZodObject<{
|
|
7
7
|
value: z.ZodNullable<T>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
readonly VersionedStateValue: <T extends z.ZodTypeAny>(valueSchema: T) => z.ZodObject<{
|
|
10
|
-
value: z.ZodNullable<z.ZodPipe<z.ZodRecord<z.ZodString, T>, z.ZodTransform<Awaited<NonNullable<z.core.output<T>>> | null, Record<string, z.core.output<T>>>>>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
readonly VersionedStateValuePreserved: <T extends z.ZodTypeAny>(valueSchema: T) => z.ZodObject<{
|
|
13
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
14
|
-
V0: T;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
9
|
readonly CustomRouteValue: <T extends z.ZodTypeAny>(valueSchema: T) => T;
|
|
18
10
|
readonly StateMapElement: <K extends z.ZodTypeAny, V extends z.ZodTypeAny>(keySchema: K, valueSchema: V) => z.ZodObject<{
|
|
19
11
|
key: K;
|
|
@@ -106,6 +98,7 @@ export declare const Schemas: {
|
|
|
106
98
|
pricing: z.ZodString;
|
|
107
99
|
fee_tier: z.ZodString;
|
|
108
100
|
credits: z.ZodString;
|
|
101
|
+
referrals: z.ZodString;
|
|
109
102
|
}, z.core.$strip>;
|
|
110
103
|
assets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
111
104
|
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -674,6 +667,7 @@ export declare const Schemas: {
|
|
|
674
667
|
tier3: "tier3";
|
|
675
668
|
tier4: "tier4";
|
|
676
669
|
}>>, z.ZodTransform<Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">, Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">>>;
|
|
670
|
+
fee_discount_bps: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<Map<string, number>, Record<string, number>>>;
|
|
677
671
|
pending_tpsl_pairs: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
678
672
|
tpsl_pair: z.ZodObject<{
|
|
679
673
|
tp: z.ZodNullable<z.ZodObject<{
|
|
@@ -746,6 +740,7 @@ export declare const Schemas: {
|
|
|
746
740
|
dynamic_size: boolean;
|
|
747
741
|
}>>>;
|
|
748
742
|
spot_collateral: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<number, import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>;
|
|
743
|
+
rewards: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<"referral" | "liquidity", import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>>, z.ZodTransform<Map<number, Map<"referral" | "liquidity", import("decimal.js").Decimal>>, Record<string, Map<"referral" | "liquidity", import("decimal.js").Decimal>>>>;
|
|
749
744
|
}, z.core.$strip>;
|
|
750
745
|
readonly RiskEngine: z.ZodObject<{
|
|
751
746
|
pricing_engine: z.ZodObject<{
|
|
@@ -1081,7 +1076,7 @@ export declare const ResponseSchemas: {
|
|
|
1081
1076
|
}, z.core.$strip>]>>;
|
|
1082
1077
|
}, z.core.$strip>;
|
|
1083
1078
|
readonly ExchangeInfo: z.ZodObject<{
|
|
1084
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1079
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
1085
1080
|
V0: z.ZodObject<{
|
|
1086
1081
|
global_config: z.ZodObject<{
|
|
1087
1082
|
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
@@ -1095,6 +1090,7 @@ export declare const ResponseSchemas: {
|
|
|
1095
1090
|
pricing: z.ZodString;
|
|
1096
1091
|
fee_tier: z.ZodString;
|
|
1097
1092
|
credits: z.ZodString;
|
|
1093
|
+
referrals: z.ZodString;
|
|
1098
1094
|
}, z.core.$strip>;
|
|
1099
1095
|
assets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1100
1096
|
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -1204,10 +1200,126 @@ export declare const ResponseSchemas: {
|
|
|
1204
1200
|
depositor_state: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<string, import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>>, z.ZodTransform<Map<string, Map<string, import("decimal.js").Decimal>>, Record<string, Map<string, import("decimal.js").Decimal>>>>;
|
|
1205
1201
|
}, z.core.$strip>;
|
|
1206
1202
|
}, z.core.$strip>;
|
|
1207
|
-
}, z.core.$strip
|
|
1203
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1204
|
+
global_config: {
|
|
1205
|
+
max_orders_per_user: bigint;
|
|
1206
|
+
max_trigger_orders_per_user: bigint;
|
|
1207
|
+
max_orders_per_batch_msg: bigint;
|
|
1208
|
+
max_trigger_orders_to_execute_per_msg: bigint;
|
|
1209
|
+
};
|
|
1210
|
+
admins: {
|
|
1211
|
+
protocol: string;
|
|
1212
|
+
funding: string;
|
|
1213
|
+
pricing: string;
|
|
1214
|
+
fee_tier: string;
|
|
1215
|
+
credits: string;
|
|
1216
|
+
referrals: string;
|
|
1217
|
+
};
|
|
1218
|
+
assets: Map<number, {
|
|
1219
|
+
id: number;
|
|
1220
|
+
name: string;
|
|
1221
|
+
token_id: string | null;
|
|
1222
|
+
decimals: number;
|
|
1223
|
+
withdraw_fee: import("decimal.js").Decimal;
|
|
1224
|
+
}>;
|
|
1225
|
+
markets: Map<number, {
|
|
1226
|
+
id: number;
|
|
1227
|
+
kind: "perp" | "spot";
|
|
1228
|
+
base_asset_id: number;
|
|
1229
|
+
name: string;
|
|
1230
|
+
}>;
|
|
1231
|
+
vaults: {
|
|
1232
|
+
vaults: Map<string, {
|
|
1233
|
+
leader: string;
|
|
1234
|
+
name: string;
|
|
1235
|
+
description: string;
|
|
1236
|
+
deposit_asset_ids: number[];
|
|
1237
|
+
withdraw_asset_id: number;
|
|
1238
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1239
|
+
leader_minimum_holding_percentage: number;
|
|
1240
|
+
withdraw_lockup_period_hours: number;
|
|
1241
|
+
profit_share_percentage: number;
|
|
1242
|
+
withdrawal_fee_bps: number;
|
|
1243
|
+
total_shares: import("decimal.js").Decimal;
|
|
1244
|
+
high_watermark: import("decimal.js").Decimal;
|
|
1245
|
+
queued_withdrawals: {
|
|
1246
|
+
user: string;
|
|
1247
|
+
shares: import("decimal.js").Decimal;
|
|
1248
|
+
timestamp: bigint;
|
|
1249
|
+
}[];
|
|
1250
|
+
whitelist_deposits: boolean;
|
|
1251
|
+
whitelisted_depositors: string[];
|
|
1252
|
+
}>;
|
|
1253
|
+
config: {
|
|
1254
|
+
leader_minimum_holding_percentage: number;
|
|
1255
|
+
creation_fee_usdc: import("decimal.js").Decimal;
|
|
1256
|
+
min_deposit_value: import("decimal.js").Decimal;
|
|
1257
|
+
};
|
|
1258
|
+
depositor_state: Map<string, Map<string, import("decimal.js").Decimal>>;
|
|
1259
|
+
};
|
|
1260
|
+
}, {
|
|
1261
|
+
V0: {
|
|
1262
|
+
global_config: {
|
|
1263
|
+
max_orders_per_user: bigint;
|
|
1264
|
+
max_trigger_orders_per_user: bigint;
|
|
1265
|
+
max_orders_per_batch_msg: bigint;
|
|
1266
|
+
max_trigger_orders_to_execute_per_msg: bigint;
|
|
1267
|
+
};
|
|
1268
|
+
admins: {
|
|
1269
|
+
protocol: string;
|
|
1270
|
+
funding: string;
|
|
1271
|
+
pricing: string;
|
|
1272
|
+
fee_tier: string;
|
|
1273
|
+
credits: string;
|
|
1274
|
+
referrals: string;
|
|
1275
|
+
};
|
|
1276
|
+
assets: Map<number, {
|
|
1277
|
+
id: number;
|
|
1278
|
+
name: string;
|
|
1279
|
+
token_id: string | null;
|
|
1280
|
+
decimals: number;
|
|
1281
|
+
withdraw_fee: import("decimal.js").Decimal;
|
|
1282
|
+
}>;
|
|
1283
|
+
markets: Map<number, {
|
|
1284
|
+
id: number;
|
|
1285
|
+
kind: "perp" | "spot";
|
|
1286
|
+
base_asset_id: number;
|
|
1287
|
+
name: string;
|
|
1288
|
+
}>;
|
|
1289
|
+
vaults: {
|
|
1290
|
+
vaults: Map<string, {
|
|
1291
|
+
leader: string;
|
|
1292
|
+
name: string;
|
|
1293
|
+
description: string;
|
|
1294
|
+
deposit_asset_ids: number[];
|
|
1295
|
+
withdraw_asset_id: number;
|
|
1296
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1297
|
+
leader_minimum_holding_percentage: number;
|
|
1298
|
+
withdraw_lockup_period_hours: number;
|
|
1299
|
+
profit_share_percentage: number;
|
|
1300
|
+
withdrawal_fee_bps: number;
|
|
1301
|
+
total_shares: import("decimal.js").Decimal;
|
|
1302
|
+
high_watermark: import("decimal.js").Decimal;
|
|
1303
|
+
queued_withdrawals: {
|
|
1304
|
+
user: string;
|
|
1305
|
+
shares: import("decimal.js").Decimal;
|
|
1306
|
+
timestamp: bigint;
|
|
1307
|
+
}[];
|
|
1308
|
+
whitelist_deposits: boolean;
|
|
1309
|
+
whitelisted_depositors: string[];
|
|
1310
|
+
}>;
|
|
1311
|
+
config: {
|
|
1312
|
+
leader_minimum_holding_percentage: number;
|
|
1313
|
+
creation_fee_usdc: import("decimal.js").Decimal;
|
|
1314
|
+
min_deposit_value: import("decimal.js").Decimal;
|
|
1315
|
+
};
|
|
1316
|
+
depositor_state: Map<string, Map<string, import("decimal.js").Decimal>>;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
}>>>;
|
|
1208
1320
|
}, z.core.$strip>;
|
|
1209
1321
|
readonly ExchangeAssets: z.ZodObject<{
|
|
1210
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1322
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
1211
1323
|
V0: z.ZodObject<{
|
|
1212
1324
|
usdc_pnl_pool: z.ZodObject<{
|
|
1213
1325
|
amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
@@ -1283,10 +1395,80 @@ export declare const ResponseSchemas: {
|
|
|
1283
1395
|
interest_fee_tenth_bps: number;
|
|
1284
1396
|
}>>>;
|
|
1285
1397
|
}, z.core.$strip>;
|
|
1286
|
-
}, z.core.$strip
|
|
1398
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1399
|
+
usdc_pnl_pool: {
|
|
1400
|
+
amount: import("decimal.js").Decimal;
|
|
1401
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1402
|
+
};
|
|
1403
|
+
usdc_insurance_fund: {
|
|
1404
|
+
amount: import("decimal.js").Decimal;
|
|
1405
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1406
|
+
minimum_usdc_token_amount: import("decimal.js").Decimal;
|
|
1407
|
+
};
|
|
1408
|
+
treasury: string;
|
|
1409
|
+
borrow_lend_deposit_vault: string;
|
|
1410
|
+
spot_collateral_vault: string;
|
|
1411
|
+
borrow_lend_pools: Map<number, {
|
|
1412
|
+
asset_id: number;
|
|
1413
|
+
is_active: boolean;
|
|
1414
|
+
last_update_timestamp: bigint;
|
|
1415
|
+
rate_config: {
|
|
1416
|
+
optimal_utilization_rate: import("decimal.js").Decimal;
|
|
1417
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1418
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1419
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1420
|
+
};
|
|
1421
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1422
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1423
|
+
max_utilization_rate: import("decimal.js").Decimal;
|
|
1424
|
+
available_amount: import("decimal.js").Decimal;
|
|
1425
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
1426
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
1427
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1428
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1429
|
+
unclaimed_protocol_fees: import("decimal.js").Decimal;
|
|
1430
|
+
interest_fee_tenth_bps: number;
|
|
1431
|
+
}>;
|
|
1432
|
+
}, {
|
|
1433
|
+
V0: {
|
|
1434
|
+
usdc_pnl_pool: {
|
|
1435
|
+
amount: import("decimal.js").Decimal;
|
|
1436
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1437
|
+
};
|
|
1438
|
+
usdc_insurance_fund: {
|
|
1439
|
+
amount: import("decimal.js").Decimal;
|
|
1440
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1441
|
+
minimum_usdc_token_amount: import("decimal.js").Decimal;
|
|
1442
|
+
};
|
|
1443
|
+
treasury: string;
|
|
1444
|
+
borrow_lend_deposit_vault: string;
|
|
1445
|
+
spot_collateral_vault: string;
|
|
1446
|
+
borrow_lend_pools: Map<number, {
|
|
1447
|
+
asset_id: number;
|
|
1448
|
+
is_active: boolean;
|
|
1449
|
+
last_update_timestamp: bigint;
|
|
1450
|
+
rate_config: {
|
|
1451
|
+
optimal_utilization_rate: import("decimal.js").Decimal;
|
|
1452
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1453
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1454
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1455
|
+
};
|
|
1456
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1457
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1458
|
+
max_utilization_rate: import("decimal.js").Decimal;
|
|
1459
|
+
available_amount: import("decimal.js").Decimal;
|
|
1460
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
1461
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
1462
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1463
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1464
|
+
unclaimed_protocol_fees: import("decimal.js").Decimal;
|
|
1465
|
+
interest_fee_tenth_bps: number;
|
|
1466
|
+
}>;
|
|
1467
|
+
};
|
|
1468
|
+
}>>>;
|
|
1287
1469
|
}, z.core.$strip>;
|
|
1288
1470
|
readonly RiskEngine: z.ZodObject<{
|
|
1289
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1471
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
1290
1472
|
V0: z.ZodObject<{
|
|
1291
1473
|
pricing_engine: z.ZodObject<{
|
|
1292
1474
|
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -1436,15 +1618,131 @@ export declare const ResponseSchemas: {
|
|
|
1436
1618
|
}>>>;
|
|
1437
1619
|
}, z.core.$strip>;
|
|
1438
1620
|
}, z.core.$strip>;
|
|
1439
|
-
}, z.core.$strip
|
|
1621
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1622
|
+
pricing_engine: {
|
|
1623
|
+
pricing_frequency_seconds: number;
|
|
1624
|
+
relaxed_pricing_frequency_seconds: number;
|
|
1625
|
+
oracle_pricing: Map<number, {
|
|
1626
|
+
price: import("decimal.js").Decimal;
|
|
1627
|
+
last_update_timestamp: bigint | null;
|
|
1628
|
+
}>;
|
|
1629
|
+
perp_pricing: Map<number, {
|
|
1630
|
+
market_id: number;
|
|
1631
|
+
mark_price: {
|
|
1632
|
+
price: import("decimal.js").Decimal;
|
|
1633
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1634
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1635
|
+
last_update_timestamp: bigint | null;
|
|
1636
|
+
};
|
|
1637
|
+
accum_premium_index: {
|
|
1638
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1639
|
+
duration_sum: bigint;
|
|
1640
|
+
last_update_timestamp: bigint | null;
|
|
1641
|
+
};
|
|
1642
|
+
funding_meta: {
|
|
1643
|
+
rate: import("decimal.js").Decimal;
|
|
1644
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1645
|
+
last_update_timestamp: bigint;
|
|
1646
|
+
config: {
|
|
1647
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1648
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1649
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1650
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1651
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
}>;
|
|
1655
|
+
};
|
|
1656
|
+
margin_config: {
|
|
1657
|
+
perp_liquidation_config: {
|
|
1658
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
1659
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
1660
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
1661
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1662
|
+
};
|
|
1663
|
+
perp_leverage_tables: Map<number, {
|
|
1664
|
+
tiers: Map<string, {
|
|
1665
|
+
max_leverage: number;
|
|
1666
|
+
mmr: import("decimal.js").Decimal;
|
|
1667
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
1668
|
+
}>;
|
|
1669
|
+
}>;
|
|
1670
|
+
borrow_lend_risk_configs: Map<number, {
|
|
1671
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
1672
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1673
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1674
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1675
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1676
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1677
|
+
}>;
|
|
1678
|
+
};
|
|
1679
|
+
}, {
|
|
1680
|
+
V0: {
|
|
1681
|
+
pricing_engine: {
|
|
1682
|
+
pricing_frequency_seconds: number;
|
|
1683
|
+
relaxed_pricing_frequency_seconds: number;
|
|
1684
|
+
oracle_pricing: Map<number, {
|
|
1685
|
+
price: import("decimal.js").Decimal;
|
|
1686
|
+
last_update_timestamp: bigint | null;
|
|
1687
|
+
}>;
|
|
1688
|
+
perp_pricing: Map<number, {
|
|
1689
|
+
market_id: number;
|
|
1690
|
+
mark_price: {
|
|
1691
|
+
price: import("decimal.js").Decimal;
|
|
1692
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1693
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1694
|
+
last_update_timestamp: bigint | null;
|
|
1695
|
+
};
|
|
1696
|
+
accum_premium_index: {
|
|
1697
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1698
|
+
duration_sum: bigint;
|
|
1699
|
+
last_update_timestamp: bigint | null;
|
|
1700
|
+
};
|
|
1701
|
+
funding_meta: {
|
|
1702
|
+
rate: import("decimal.js").Decimal;
|
|
1703
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1704
|
+
last_update_timestamp: bigint;
|
|
1705
|
+
config: {
|
|
1706
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1707
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1708
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1709
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1710
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
}>;
|
|
1714
|
+
};
|
|
1715
|
+
margin_config: {
|
|
1716
|
+
perp_liquidation_config: {
|
|
1717
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
1718
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
1719
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
1720
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1721
|
+
};
|
|
1722
|
+
perp_leverage_tables: Map<number, {
|
|
1723
|
+
tiers: Map<string, {
|
|
1724
|
+
max_leverage: number;
|
|
1725
|
+
mmr: import("decimal.js").Decimal;
|
|
1726
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
1727
|
+
}>;
|
|
1728
|
+
}>;
|
|
1729
|
+
borrow_lend_risk_configs: Map<number, {
|
|
1730
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
1731
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1732
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1733
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1734
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1735
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1736
|
+
}>;
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
}>>>;
|
|
1440
1740
|
}, z.core.$strip>;
|
|
1441
1741
|
readonly ExecutionIds: z.ZodObject<{
|
|
1442
1742
|
value: z.ZodNullable<z.ZodObject<{
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
last_trade_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1447
|
-
}, z.core.$strip>;
|
|
1743
|
+
last_order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1744
|
+
last_trigger_order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1745
|
+
last_trade_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1448
1746
|
}, z.core.$strip>>;
|
|
1449
1747
|
}, z.core.$strip>;
|
|
1450
1748
|
readonly OrderbookL2: z.ZodObject<{
|
|
@@ -1852,6 +2150,7 @@ export declare const ResponseSchemas: {
|
|
|
1852
2150
|
tier3: "tier3";
|
|
1853
2151
|
tier4: "tier4";
|
|
1854
2152
|
}>>, z.ZodTransform<Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">, Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">>>;
|
|
2153
|
+
fee_discount_bps: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<Map<string, number>, Record<string, number>>>;
|
|
1855
2154
|
pending_tpsl_pairs: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1856
2155
|
tpsl_pair: z.ZodObject<{
|
|
1857
2156
|
tp: z.ZodNullable<z.ZodObject<{
|
|
@@ -1924,6 +2223,7 @@ export declare const ResponseSchemas: {
|
|
|
1924
2223
|
dynamic_size: boolean;
|
|
1925
2224
|
}>>>;
|
|
1926
2225
|
spot_collateral: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<number, import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>;
|
|
2226
|
+
rewards: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<"referral" | "liquidity", import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>>, z.ZodTransform<Map<number, Map<"referral" | "liquidity", import("decimal.js").Decimal>>, Record<string, Map<"referral" | "liquidity", import("decimal.js").Decimal>>>>;
|
|
1927
2227
|
}, z.core.$strip>;
|
|
1928
2228
|
}, z.core.$strip>;
|
|
1929
2229
|
readonly AccountBulk: z.ZodObject<{
|
|
@@ -2306,6 +2606,7 @@ export declare const ResponseSchemas: {
|
|
|
2306
2606
|
tier3: "tier3";
|
|
2307
2607
|
tier4: "tier4";
|
|
2308
2608
|
}>>, z.ZodTransform<Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">, Record<string, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">>>;
|
|
2609
|
+
fee_discount_bps: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>, z.ZodTransform<Map<string, number>, Record<string, number>>>;
|
|
2309
2610
|
pending_tpsl_pairs: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2310
2611
|
tpsl_pair: z.ZodObject<{
|
|
2311
2612
|
tp: z.ZodNullable<z.ZodObject<{
|
|
@@ -2378,6 +2679,7 @@ export declare const ResponseSchemas: {
|
|
|
2378
2679
|
dynamic_size: boolean;
|
|
2379
2680
|
}>>>;
|
|
2380
2681
|
spot_collateral: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<number, import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>;
|
|
2682
|
+
rewards: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>, z.ZodTransform<Map<"referral" | "liquidity", import("decimal.js").Decimal>, Record<string, import("decimal.js").Decimal>>>>, z.ZodTransform<Map<number, Map<"referral" | "liquidity", import("decimal.js").Decimal>>, Record<string, Map<"referral" | "liquidity", import("decimal.js").Decimal>>>>;
|
|
2381
2683
|
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
2382
2684
|
account_variant: {
|
|
2383
2685
|
type: "master";
|
|
@@ -2473,6 +2775,7 @@ export declare const ResponseSchemas: {
|
|
|
2473
2775
|
}>;
|
|
2474
2776
|
}>;
|
|
2475
2777
|
fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
|
|
2778
|
+
fee_discount_bps: Map<string, number>;
|
|
2476
2779
|
pending_tpsl_pairs: Map<string, {
|
|
2477
2780
|
tpsl_pair: {
|
|
2478
2781
|
tp: {
|
|
@@ -2491,6 +2794,7 @@ export declare const ResponseSchemas: {
|
|
|
2491
2794
|
dynamic_size: boolean;
|
|
2492
2795
|
}>;
|
|
2493
2796
|
spot_collateral: Map<number, import("decimal.js").Decimal>;
|
|
2797
|
+
rewards: Map<number, Map<"referral" | "liquidity", import("decimal.js").Decimal>>;
|
|
2494
2798
|
}>, Record<string, {
|
|
2495
2799
|
account_variant: {
|
|
2496
2800
|
type: "master";
|
|
@@ -2586,6 +2890,7 @@ export declare const ResponseSchemas: {
|
|
|
2586
2890
|
}>;
|
|
2587
2891
|
}>;
|
|
2588
2892
|
fee_tiers: Map<number, "tier0" | "tier1" | "tier2" | "tier3" | "tier4">;
|
|
2893
|
+
fee_discount_bps: Map<string, number>;
|
|
2589
2894
|
pending_tpsl_pairs: Map<string, {
|
|
2590
2895
|
tpsl_pair: {
|
|
2591
2896
|
tp: {
|
|
@@ -2604,80 +2909,83 @@ export declare const ResponseSchemas: {
|
|
|
2604
2909
|
dynamic_size: boolean;
|
|
2605
2910
|
}>;
|
|
2606
2911
|
spot_collateral: Map<number, import("decimal.js").Decimal>;
|
|
2912
|
+
rewards: Map<number, Map<"referral" | "liquidity", import("decimal.js").Decimal>>;
|
|
2607
2913
|
}>>>;
|
|
2608
2914
|
not_found: z.ZodArray<z.ZodString>;
|
|
2609
2915
|
}, z.core.$strip>;
|
|
2610
2916
|
readonly PerpMarket: z.ZodObject<{
|
|
2611
2917
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2612
|
-
market: z.
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2918
|
+
market: z.ZodPipe<z.ZodObject<{
|
|
2919
|
+
V0: z.ZodObject<{
|
|
2920
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2921
|
+
trading_status: z.ZodEnum<{
|
|
2922
|
+
active: "active";
|
|
2923
|
+
halted: "halted";
|
|
2924
|
+
cleaning: "cleaning";
|
|
2925
|
+
cleaned: "cleaned";
|
|
2926
|
+
}>;
|
|
2927
|
+
config: z.ZodObject<{
|
|
2928
|
+
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2929
|
+
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2930
|
+
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2931
|
+
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2932
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2933
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2934
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2935
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2936
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2937
|
+
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2938
|
+
max_trigger_to_comparison_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2939
|
+
max_order_to_trigger_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2940
|
+
}, z.core.$strip>;
|
|
2941
|
+
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2942
|
+
last_trade_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
2943
|
+
orderbook: z.ZodObject<{
|
|
2944
|
+
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2945
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
2946
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
2947
|
+
owner: z.ZodString;
|
|
2948
|
+
}, z.core.$strip>>;
|
|
2949
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2950
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
2951
|
+
nodes: {
|
|
2952
|
+
order_id: bigint;
|
|
2953
|
+
owner: string;
|
|
2954
|
+
}[];
|
|
2955
|
+
total_size: import("decimal.js").Decimal;
|
|
2956
|
+
}>, Record<string, {
|
|
2957
|
+
nodes: {
|
|
2958
|
+
order_id: bigint;
|
|
2959
|
+
owner: string;
|
|
2960
|
+
}[];
|
|
2961
|
+
total_size: import("decimal.js").Decimal;
|
|
2962
|
+
}>>>;
|
|
2963
|
+
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2964
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
2965
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
2966
|
+
owner: z.ZodString;
|
|
2967
|
+
}, z.core.$strip>>;
|
|
2968
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2969
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
2970
|
+
nodes: {
|
|
2971
|
+
order_id: bigint;
|
|
2972
|
+
owner: string;
|
|
2973
|
+
}[];
|
|
2974
|
+
total_size: import("decimal.js").Decimal;
|
|
2975
|
+
}>, Record<string, {
|
|
2976
|
+
nodes: {
|
|
2977
|
+
order_id: bigint;
|
|
2978
|
+
owner: string;
|
|
2979
|
+
}[];
|
|
2980
|
+
total_size: import("decimal.js").Decimal;
|
|
2981
|
+
}>>>;
|
|
2982
|
+
}, z.core.$strip>;
|
|
2983
|
+
trigger_nodes_store: z.ZodObject<{
|
|
2984
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
2985
|
+
active: z.ZodArray<z.ZodAny>;
|
|
2986
|
+
}, z.core.$strip>;
|
|
2679
2987
|
}, z.core.$strip>;
|
|
2680
|
-
}, z.core.$strip
|
|
2988
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2681
2989
|
market_id: number;
|
|
2682
2990
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2683
2991
|
config: {
|
|
@@ -2716,7 +3024,121 @@ export declare const ResponseSchemas: {
|
|
|
2716
3024
|
inactive: Map<string, Map<string, any>>;
|
|
2717
3025
|
active: any[];
|
|
2718
3026
|
};
|
|
2719
|
-
}
|
|
3027
|
+
}, {
|
|
3028
|
+
V0: {
|
|
3029
|
+
market_id: number;
|
|
3030
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3031
|
+
config: {
|
|
3032
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
3033
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
3034
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
3035
|
+
impact_margin: import("decimal.js").Decimal;
|
|
3036
|
+
max_orders_per_side: number;
|
|
3037
|
+
max_orders_per_user: number;
|
|
3038
|
+
max_trigger_orders_per_user: number;
|
|
3039
|
+
taker_fees_tenth_bps: number[];
|
|
3040
|
+
maker_fees_tenth_bps: number[];
|
|
3041
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3042
|
+
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3043
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3044
|
+
};
|
|
3045
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
3046
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3047
|
+
orderbook: {
|
|
3048
|
+
bids: Map<string, {
|
|
3049
|
+
nodes: {
|
|
3050
|
+
order_id: bigint;
|
|
3051
|
+
owner: string;
|
|
3052
|
+
}[];
|
|
3053
|
+
total_size: import("decimal.js").Decimal;
|
|
3054
|
+
}>;
|
|
3055
|
+
asks: Map<string, {
|
|
3056
|
+
nodes: {
|
|
3057
|
+
order_id: bigint;
|
|
3058
|
+
owner: string;
|
|
3059
|
+
}[];
|
|
3060
|
+
total_size: import("decimal.js").Decimal;
|
|
3061
|
+
}>;
|
|
3062
|
+
};
|
|
3063
|
+
trigger_nodes_store: {
|
|
3064
|
+
inactive: Map<string, Map<string, any>>;
|
|
3065
|
+
active: any[];
|
|
3066
|
+
};
|
|
3067
|
+
};
|
|
3068
|
+
}>>;
|
|
3069
|
+
}, z.core.$strip>;
|
|
3070
|
+
readonly PerpMarketBulk: z.ZodObject<{
|
|
3071
|
+
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodObject<{
|
|
3072
|
+
V0: z.ZodObject<{
|
|
3073
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3074
|
+
trading_status: z.ZodEnum<{
|
|
3075
|
+
active: "active";
|
|
3076
|
+
halted: "halted";
|
|
3077
|
+
cleaning: "cleaning";
|
|
3078
|
+
cleaned: "cleaned";
|
|
3079
|
+
}>;
|
|
3080
|
+
config: z.ZodObject<{
|
|
3081
|
+
min_tick_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3082
|
+
min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3083
|
+
max_oi_notional: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3084
|
+
impact_margin: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3085
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3086
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3087
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3088
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3089
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3090
|
+
max_order_to_mark_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3091
|
+
max_trigger_to_comparison_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3092
|
+
max_order_to_trigger_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3093
|
+
}, z.core.$strip>;
|
|
3094
|
+
current_open_interest_lots: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3095
|
+
last_trade_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
3096
|
+
orderbook: z.ZodObject<{
|
|
3097
|
+
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3098
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3099
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3100
|
+
owner: z.ZodString;
|
|
3101
|
+
}, z.core.$strip>>;
|
|
3102
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3103
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3104
|
+
nodes: {
|
|
3105
|
+
order_id: bigint;
|
|
3106
|
+
owner: string;
|
|
3107
|
+
}[];
|
|
3108
|
+
total_size: import("decimal.js").Decimal;
|
|
3109
|
+
}>, Record<string, {
|
|
3110
|
+
nodes: {
|
|
3111
|
+
order_id: bigint;
|
|
3112
|
+
owner: string;
|
|
3113
|
+
}[];
|
|
3114
|
+
total_size: import("decimal.js").Decimal;
|
|
3115
|
+
}>>>;
|
|
3116
|
+
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3117
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3118
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3119
|
+
owner: z.ZodString;
|
|
3120
|
+
}, z.core.$strip>>;
|
|
3121
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3122
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3123
|
+
nodes: {
|
|
3124
|
+
order_id: bigint;
|
|
3125
|
+
owner: string;
|
|
3126
|
+
}[];
|
|
3127
|
+
total_size: import("decimal.js").Decimal;
|
|
3128
|
+
}>, Record<string, {
|
|
3129
|
+
nodes: {
|
|
3130
|
+
order_id: bigint;
|
|
3131
|
+
owner: string;
|
|
3132
|
+
}[];
|
|
3133
|
+
total_size: import("decimal.js").Decimal;
|
|
3134
|
+
}>>>;
|
|
3135
|
+
}, z.core.$strip>;
|
|
3136
|
+
trigger_nodes_store: z.ZodObject<{
|
|
3137
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
3138
|
+
active: z.ZodArray<z.ZodAny>;
|
|
3139
|
+
}, z.core.$strip>;
|
|
3140
|
+
}, z.core.$strip>;
|
|
3141
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2720
3142
|
market_id: number;
|
|
2721
3143
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2722
3144
|
config: {
|
|
@@ -2755,156 +3177,48 @@ export declare const ResponseSchemas: {
|
|
|
2755
3177
|
inactive: Map<string, Map<string, any>>;
|
|
2756
3178
|
active: any[];
|
|
2757
3179
|
};
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
}>, Record<string, {
|
|
2799
|
-
nodes: {
|
|
2800
|
-
order_id: bigint;
|
|
2801
|
-
owner: string;
|
|
2802
|
-
}[];
|
|
2803
|
-
total_size: import("decimal.js").Decimal;
|
|
2804
|
-
}>>>;
|
|
2805
|
-
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2806
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
2807
|
-
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
2808
|
-
owner: z.ZodString;
|
|
2809
|
-
}, z.core.$strip>>;
|
|
2810
|
-
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
2811
|
-
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
2812
|
-
nodes: {
|
|
2813
|
-
order_id: bigint;
|
|
2814
|
-
owner: string;
|
|
2815
|
-
}[];
|
|
2816
|
-
total_size: import("decimal.js").Decimal;
|
|
2817
|
-
}>, Record<string, {
|
|
2818
|
-
nodes: {
|
|
2819
|
-
order_id: bigint;
|
|
2820
|
-
owner: string;
|
|
2821
|
-
}[];
|
|
2822
|
-
total_size: import("decimal.js").Decimal;
|
|
2823
|
-
}>>>;
|
|
2824
|
-
}, z.core.$strip>;
|
|
2825
|
-
trigger_nodes_store: z.ZodObject<{
|
|
2826
|
-
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
2827
|
-
active: z.ZodArray<z.ZodAny>;
|
|
2828
|
-
}, z.core.$strip>;
|
|
2829
|
-
}, z.core.$strip>>, z.ZodTransform<{
|
|
2830
|
-
market_id: number;
|
|
2831
|
-
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2832
|
-
config: {
|
|
2833
|
-
min_tick_size: import("decimal.js").Decimal;
|
|
2834
|
-
min_lot_size: import("decimal.js").Decimal;
|
|
2835
|
-
max_oi_notional: import("decimal.js").Decimal;
|
|
2836
|
-
impact_margin: import("decimal.js").Decimal;
|
|
2837
|
-
max_orders_per_side: number;
|
|
2838
|
-
max_orders_per_user: number;
|
|
2839
|
-
max_trigger_orders_per_user: number;
|
|
2840
|
-
taker_fees_tenth_bps: number[];
|
|
2841
|
-
maker_fees_tenth_bps: number[];
|
|
2842
|
-
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2843
|
-
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2844
|
-
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2845
|
-
};
|
|
2846
|
-
current_open_interest_lots: import("decimal.js").Decimal;
|
|
2847
|
-
last_trade_price: import("decimal.js").Decimal | null;
|
|
2848
|
-
orderbook: {
|
|
2849
|
-
bids: Map<string, {
|
|
2850
|
-
nodes: {
|
|
2851
|
-
order_id: bigint;
|
|
2852
|
-
owner: string;
|
|
2853
|
-
}[];
|
|
2854
|
-
total_size: import("decimal.js").Decimal;
|
|
2855
|
-
}>;
|
|
2856
|
-
asks: Map<string, {
|
|
2857
|
-
nodes: {
|
|
2858
|
-
order_id: bigint;
|
|
2859
|
-
owner: string;
|
|
2860
|
-
}[];
|
|
2861
|
-
total_size: import("decimal.js").Decimal;
|
|
2862
|
-
}>;
|
|
2863
|
-
};
|
|
2864
|
-
trigger_nodes_store: {
|
|
2865
|
-
inactive: Map<string, Map<string, any>>;
|
|
2866
|
-
active: any[];
|
|
2867
|
-
};
|
|
2868
|
-
} | null, Record<string, {
|
|
2869
|
-
market_id: number;
|
|
2870
|
-
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2871
|
-
config: {
|
|
2872
|
-
min_tick_size: import("decimal.js").Decimal;
|
|
2873
|
-
min_lot_size: import("decimal.js").Decimal;
|
|
2874
|
-
max_oi_notional: import("decimal.js").Decimal;
|
|
2875
|
-
impact_margin: import("decimal.js").Decimal;
|
|
2876
|
-
max_orders_per_side: number;
|
|
2877
|
-
max_orders_per_user: number;
|
|
2878
|
-
max_trigger_orders_per_user: number;
|
|
2879
|
-
taker_fees_tenth_bps: number[];
|
|
2880
|
-
maker_fees_tenth_bps: number[];
|
|
2881
|
-
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2882
|
-
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2883
|
-
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2884
|
-
};
|
|
2885
|
-
current_open_interest_lots: import("decimal.js").Decimal;
|
|
2886
|
-
last_trade_price: import("decimal.js").Decimal | null;
|
|
2887
|
-
orderbook: {
|
|
2888
|
-
bids: Map<string, {
|
|
2889
|
-
nodes: {
|
|
2890
|
-
order_id: bigint;
|
|
2891
|
-
owner: string;
|
|
2892
|
-
}[];
|
|
2893
|
-
total_size: import("decimal.js").Decimal;
|
|
2894
|
-
}>;
|
|
2895
|
-
asks: Map<string, {
|
|
2896
|
-
nodes: {
|
|
2897
|
-
order_id: bigint;
|
|
2898
|
-
owner: string;
|
|
2899
|
-
}[];
|
|
2900
|
-
total_size: import("decimal.js").Decimal;
|
|
2901
|
-
}>;
|
|
2902
|
-
};
|
|
2903
|
-
trigger_nodes_store: {
|
|
2904
|
-
inactive: Map<string, Map<string, any>>;
|
|
2905
|
-
active: any[];
|
|
3180
|
+
}, {
|
|
3181
|
+
V0: {
|
|
3182
|
+
market_id: number;
|
|
3183
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3184
|
+
config: {
|
|
3185
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
3186
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
3187
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
3188
|
+
impact_margin: import("decimal.js").Decimal;
|
|
3189
|
+
max_orders_per_side: number;
|
|
3190
|
+
max_orders_per_user: number;
|
|
3191
|
+
max_trigger_orders_per_user: number;
|
|
3192
|
+
taker_fees_tenth_bps: number[];
|
|
3193
|
+
maker_fees_tenth_bps: number[];
|
|
3194
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3195
|
+
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3196
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3197
|
+
};
|
|
3198
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
3199
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3200
|
+
orderbook: {
|
|
3201
|
+
bids: Map<string, {
|
|
3202
|
+
nodes: {
|
|
3203
|
+
order_id: bigint;
|
|
3204
|
+
owner: string;
|
|
3205
|
+
}[];
|
|
3206
|
+
total_size: import("decimal.js").Decimal;
|
|
3207
|
+
}>;
|
|
3208
|
+
asks: Map<string, {
|
|
3209
|
+
nodes: {
|
|
3210
|
+
order_id: bigint;
|
|
3211
|
+
owner: string;
|
|
3212
|
+
}[];
|
|
3213
|
+
total_size: import("decimal.js").Decimal;
|
|
3214
|
+
}>;
|
|
3215
|
+
};
|
|
3216
|
+
trigger_nodes_store: {
|
|
3217
|
+
inactive: Map<string, Map<string, any>>;
|
|
3218
|
+
active: any[];
|
|
3219
|
+
};
|
|
2906
3220
|
};
|
|
2907
|
-
}
|
|
3221
|
+
}>>>, z.ZodTransform<Map<number, {
|
|
2908
3222
|
market_id: number;
|
|
2909
3223
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2910
3224
|
config: {
|
|
@@ -2943,7 +3257,7 @@ export declare const ResponseSchemas: {
|
|
|
2943
3257
|
inactive: Map<string, Map<string, any>>;
|
|
2944
3258
|
active: any[];
|
|
2945
3259
|
};
|
|
2946
|
-
}
|
|
3260
|
+
}>, Record<string, {
|
|
2947
3261
|
market_id: number;
|
|
2948
3262
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2949
3263
|
config: {
|
|
@@ -2982,77 +3296,79 @@ export declare const ResponseSchemas: {
|
|
|
2982
3296
|
inactive: Map<string, Map<string, any>>;
|
|
2983
3297
|
active: any[];
|
|
2984
3298
|
};
|
|
2985
|
-
}
|
|
3299
|
+
}>>>;
|
|
2986
3300
|
not_found: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
2987
3301
|
}, z.core.$strip>;
|
|
2988
3302
|
readonly SpotMarket: z.ZodObject<{
|
|
2989
3303
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2990
|
-
market: z.
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3304
|
+
market: z.ZodPipe<z.ZodObject<{
|
|
3305
|
+
V0: z.ZodObject<{
|
|
3306
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3307
|
+
trading_status: z.ZodEnum<{
|
|
3308
|
+
active: "active";
|
|
3309
|
+
halted: "halted";
|
|
3310
|
+
cleaning: "cleaning";
|
|
3311
|
+
cleaned: "cleaned";
|
|
3312
|
+
}>;
|
|
3313
|
+
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3314
|
+
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3315
|
+
config: z.ZodObject<{
|
|
3316
|
+
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3317
|
+
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3318
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3319
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3320
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3321
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3322
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3323
|
+
max_order_to_trigger_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3324
|
+
}, z.core.$strip>;
|
|
3325
|
+
last_trade_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
3326
|
+
orderbook: z.ZodObject<{
|
|
3327
|
+
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3328
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3329
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3330
|
+
owner: z.ZodString;
|
|
3331
|
+
}, z.core.$strip>>;
|
|
3332
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3333
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3334
|
+
nodes: {
|
|
3335
|
+
order_id: bigint;
|
|
3336
|
+
owner: string;
|
|
3337
|
+
}[];
|
|
3338
|
+
total_size: import("decimal.js").Decimal;
|
|
3339
|
+
}>, Record<string, {
|
|
3340
|
+
nodes: {
|
|
3341
|
+
order_id: bigint;
|
|
3342
|
+
owner: string;
|
|
3343
|
+
}[];
|
|
3344
|
+
total_size: import("decimal.js").Decimal;
|
|
3345
|
+
}>>>;
|
|
3346
|
+
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3347
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3348
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3349
|
+
owner: z.ZodString;
|
|
3350
|
+
}, z.core.$strip>>;
|
|
3351
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3352
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3353
|
+
nodes: {
|
|
3354
|
+
order_id: bigint;
|
|
3355
|
+
owner: string;
|
|
3356
|
+
}[];
|
|
3357
|
+
total_size: import("decimal.js").Decimal;
|
|
3358
|
+
}>, Record<string, {
|
|
3359
|
+
nodes: {
|
|
3360
|
+
order_id: bigint;
|
|
3361
|
+
owner: string;
|
|
3362
|
+
}[];
|
|
3363
|
+
total_size: import("decimal.js").Decimal;
|
|
3364
|
+
}>>>;
|
|
3365
|
+
}, z.core.$strip>;
|
|
3366
|
+
trigger_nodes_store: z.ZodObject<{
|
|
3367
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
3368
|
+
active: z.ZodArray<z.ZodAny>;
|
|
3369
|
+
}, z.core.$strip>;
|
|
3054
3370
|
}, z.core.$strip>;
|
|
3055
|
-
}, z.core.$strip
|
|
3371
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3056
3372
|
market_id: number;
|
|
3057
3373
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3058
3374
|
base_asset_id: number;
|
|
@@ -3088,111 +3404,115 @@ export declare const ResponseSchemas: {
|
|
|
3088
3404
|
inactive: Map<string, Map<string, any>>;
|
|
3089
3405
|
active: any[];
|
|
3090
3406
|
};
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3407
|
+
}, {
|
|
3408
|
+
V0: {
|
|
3409
|
+
market_id: number;
|
|
3410
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3411
|
+
base_asset_id: number;
|
|
3412
|
+
quote_asset_id: number;
|
|
3413
|
+
config: {
|
|
3414
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
3415
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
3416
|
+
max_orders_per_side: number;
|
|
3417
|
+
max_orders_per_user: number;
|
|
3418
|
+
max_trigger_orders_per_user: number;
|
|
3419
|
+
taker_fees_tenth_bps: number[];
|
|
3420
|
+
maker_fees_tenth_bps: number[];
|
|
3421
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3422
|
+
};
|
|
3423
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3424
|
+
orderbook: {
|
|
3425
|
+
bids: Map<string, {
|
|
3426
|
+
nodes: {
|
|
3427
|
+
order_id: bigint;
|
|
3428
|
+
owner: string;
|
|
3429
|
+
}[];
|
|
3430
|
+
total_size: import("decimal.js").Decimal;
|
|
3431
|
+
}>;
|
|
3432
|
+
asks: Map<string, {
|
|
3433
|
+
nodes: {
|
|
3434
|
+
order_id: bigint;
|
|
3435
|
+
owner: string;
|
|
3436
|
+
}[];
|
|
3437
|
+
total_size: import("decimal.js").Decimal;
|
|
3438
|
+
}>;
|
|
3439
|
+
};
|
|
3440
|
+
trigger_nodes_store: {
|
|
3441
|
+
inactive: Map<string, Map<string, any>>;
|
|
3442
|
+
active: any[];
|
|
3443
|
+
};
|
|
3126
3444
|
};
|
|
3127
|
-
}
|
|
3445
|
+
}>>;
|
|
3128
3446
|
}, z.core.$strip>;
|
|
3129
3447
|
readonly SpotMarketBulk: z.ZodObject<{
|
|
3130
|
-
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3448
|
+
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodObject<{
|
|
3449
|
+
V0: z.ZodObject<{
|
|
3450
|
+
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3451
|
+
trading_status: z.ZodEnum<{
|
|
3452
|
+
active: "active";
|
|
3453
|
+
halted: "halted";
|
|
3454
|
+
cleaning: "cleaning";
|
|
3455
|
+
cleaned: "cleaned";
|
|
3456
|
+
}>;
|
|
3457
|
+
base_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3458
|
+
quote_asset_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3459
|
+
config: z.ZodObject<{
|
|
3460
|
+
base_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3461
|
+
quote_min_lot_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3462
|
+
max_orders_per_side: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3463
|
+
max_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3464
|
+
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
3465
|
+
taker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3466
|
+
maker_fees_tenth_bps: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3467
|
+
max_order_to_trigger_price_deviation_ratio: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3468
|
+
}, z.core.$strip>;
|
|
3469
|
+
last_trade_price: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>>;
|
|
3470
|
+
orderbook: z.ZodObject<{
|
|
3471
|
+
bids: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3472
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3473
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3474
|
+
owner: z.ZodString;
|
|
3475
|
+
}, z.core.$strip>>;
|
|
3476
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3477
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3478
|
+
nodes: {
|
|
3479
|
+
order_id: bigint;
|
|
3480
|
+
owner: string;
|
|
3481
|
+
}[];
|
|
3482
|
+
total_size: import("decimal.js").Decimal;
|
|
3483
|
+
}>, Record<string, {
|
|
3484
|
+
nodes: {
|
|
3485
|
+
order_id: bigint;
|
|
3486
|
+
owner: string;
|
|
3487
|
+
}[];
|
|
3488
|
+
total_size: import("decimal.js").Decimal;
|
|
3489
|
+
}>>>;
|
|
3490
|
+
asks: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3491
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3492
|
+
order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
3493
|
+
owner: z.ZodString;
|
|
3494
|
+
}, z.core.$strip>>;
|
|
3495
|
+
total_size: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
3496
|
+
}, z.core.$strip>>, z.ZodTransform<Map<string, {
|
|
3497
|
+
nodes: {
|
|
3498
|
+
order_id: bigint;
|
|
3499
|
+
owner: string;
|
|
3500
|
+
}[];
|
|
3501
|
+
total_size: import("decimal.js").Decimal;
|
|
3502
|
+
}>, Record<string, {
|
|
3503
|
+
nodes: {
|
|
3504
|
+
order_id: bigint;
|
|
3505
|
+
owner: string;
|
|
3506
|
+
}[];
|
|
3507
|
+
total_size: import("decimal.js").Decimal;
|
|
3508
|
+
}>>>;
|
|
3509
|
+
}, z.core.$strip>;
|
|
3510
|
+
trigger_nodes_store: z.ZodObject<{
|
|
3511
|
+
inactive: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Map<string, any>, Record<string, any>>>>, z.ZodTransform<Map<string, Map<string, any>>, Record<string, Map<string, any>>>>;
|
|
3512
|
+
active: z.ZodArray<z.ZodAny>;
|
|
3513
|
+
}, z.core.$strip>;
|
|
3194
3514
|
}, z.core.$strip>;
|
|
3195
|
-
}, z.core.$strip
|
|
3515
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
3196
3516
|
market_id: number;
|
|
3197
3517
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3198
3518
|
base_asset_id: number;
|
|
@@ -3228,43 +3548,45 @@ export declare const ResponseSchemas: {
|
|
|
3228
3548
|
inactive: Map<string, Map<string, any>>;
|
|
3229
3549
|
active: any[];
|
|
3230
3550
|
};
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3551
|
+
}, {
|
|
3552
|
+
V0: {
|
|
3553
|
+
market_id: number;
|
|
3554
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3555
|
+
base_asset_id: number;
|
|
3556
|
+
quote_asset_id: number;
|
|
3557
|
+
config: {
|
|
3558
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
3559
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
3560
|
+
max_orders_per_side: number;
|
|
3561
|
+
max_orders_per_user: number;
|
|
3562
|
+
max_trigger_orders_per_user: number;
|
|
3563
|
+
taker_fees_tenth_bps: number[];
|
|
3564
|
+
maker_fees_tenth_bps: number[];
|
|
3565
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3566
|
+
};
|
|
3567
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3568
|
+
orderbook: {
|
|
3569
|
+
bids: Map<string, {
|
|
3570
|
+
nodes: {
|
|
3571
|
+
order_id: bigint;
|
|
3572
|
+
owner: string;
|
|
3573
|
+
}[];
|
|
3574
|
+
total_size: import("decimal.js").Decimal;
|
|
3575
|
+
}>;
|
|
3576
|
+
asks: Map<string, {
|
|
3577
|
+
nodes: {
|
|
3578
|
+
order_id: bigint;
|
|
3579
|
+
owner: string;
|
|
3580
|
+
}[];
|
|
3581
|
+
total_size: import("decimal.js").Decimal;
|
|
3582
|
+
}>;
|
|
3583
|
+
};
|
|
3584
|
+
trigger_nodes_store: {
|
|
3585
|
+
inactive: Map<string, Map<string, any>>;
|
|
3586
|
+
active: any[];
|
|
3587
|
+
};
|
|
3266
3588
|
};
|
|
3267
|
-
}
|
|
3589
|
+
}>>>, z.ZodTransform<Map<number, {
|
|
3268
3590
|
market_id: number;
|
|
3269
3591
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3270
3592
|
base_asset_id: number;
|
|
@@ -3300,7 +3622,7 @@ export declare const ResponseSchemas: {
|
|
|
3300
3622
|
inactive: Map<string, Map<string, any>>;
|
|
3301
3623
|
active: any[];
|
|
3302
3624
|
};
|
|
3303
|
-
}
|
|
3625
|
+
}>, Record<string, {
|
|
3304
3626
|
market_id: number;
|
|
3305
3627
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3306
3628
|
base_asset_id: number;
|
|
@@ -3336,7 +3658,7 @@ export declare const ResponseSchemas: {
|
|
|
3336
3658
|
inactive: Map<string, Map<string, any>>;
|
|
3337
3659
|
active: any[];
|
|
3338
3660
|
};
|
|
3339
|
-
}
|
|
3661
|
+
}>>>;
|
|
3340
3662
|
not_found: z.ZodArray<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>>;
|
|
3341
3663
|
}, z.core.$strip>;
|
|
3342
3664
|
readonly AccountAddresses: z.ZodObject<{
|
|
@@ -3359,24 +3681,12 @@ export type OrderbookL2 = z.infer<typeof Schemas.OrderbookL2>;
|
|
|
3359
3681
|
export type PriceLevelL2 = z.infer<typeof PriceLevelL2>;
|
|
3360
3682
|
export type UserAccount = z.infer<typeof Schemas.UserAccount>;
|
|
3361
3683
|
export type ExchangeAssets = z.infer<typeof Schemas.ExchangeAssets>;
|
|
3362
|
-
export type VersionedExchangeAssets = {
|
|
3363
|
-
V0: ExchangeAssets;
|
|
3364
|
-
};
|
|
3365
3684
|
export type PerpMarket = z.infer<typeof Schemas.PerpMarket>;
|
|
3366
3685
|
export type SpotMarket = z.infer<typeof Schemas.SpotMarket>;
|
|
3367
3686
|
export type ExchangeInfo = z.infer<typeof Schemas.ExchangeInfo>;
|
|
3368
|
-
export type VersionedExchangeInfo = {
|
|
3369
|
-
V0: ExchangeInfo;
|
|
3370
|
-
};
|
|
3371
3687
|
export type AccountAddresses = z.infer<typeof Schemas.AccountAddresses>;
|
|
3372
3688
|
export type ExecutionIds = z.infer<typeof Schemas.ExecutionIds>;
|
|
3373
|
-
export type VersionedExecutionIds = {
|
|
3374
|
-
V0: ExecutionIds;
|
|
3375
|
-
};
|
|
3376
3689
|
export type RiskEngine = z.infer<typeof Schemas.RiskEngine>;
|
|
3377
|
-
export type VersionedRiskEngine = {
|
|
3378
|
-
V0: RiskEngine;
|
|
3379
|
-
};
|
|
3380
3690
|
export type BorrowLendPool = z.infer<typeof BorrowLendPool>;
|
|
3381
3691
|
export {};
|
|
3382
3692
|
//# sourceMappingURL=rest.d.ts.map
|