@bulletxyz/bullet-sdk 0.41.0 → 0.43.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 +135 -90
- package/dist/browser/index.js.map +5 -5
- package/dist/node/index.js +135 -90
- package/dist/node/index.js.map +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client.d.ts +3 -2
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/rollupTypes.d.ts +106 -2
- package/dist/types/rollupTypes.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/zod-types/rest.d.ts +625 -16
- package/dist/types/zod-types/rest.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -6,6 +6,9 @@ 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>;
|
|
9
12
|
readonly CustomRouteValue: <T extends z.ZodTypeAny>(valueSchema: T) => T;
|
|
10
13
|
readonly StateMapElement: <K extends z.ZodTypeAny, V extends z.ZodTypeAny>(keySchema: K, valueSchema: V) => z.ZodObject<{
|
|
11
14
|
key: K;
|
|
@@ -97,6 +100,7 @@ export declare const Schemas: {
|
|
|
97
100
|
funding: z.ZodString;
|
|
98
101
|
pricing: z.ZodString;
|
|
99
102
|
fee_tier: z.ZodString;
|
|
103
|
+
credits: z.ZodString;
|
|
100
104
|
}, z.core.$strip>;
|
|
101
105
|
assets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
102
106
|
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -1072,7 +1076,7 @@ export declare const ResponseSchemas: {
|
|
|
1072
1076
|
}, z.core.$strip>]>>;
|
|
1073
1077
|
}, z.core.$strip>;
|
|
1074
1078
|
readonly ExchangeInfo: z.ZodObject<{
|
|
1075
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1079
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1076
1080
|
global_config: z.ZodObject<{
|
|
1077
1081
|
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>;
|
|
1078
1082
|
max_trigger_orders_per_user: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
@@ -1084,6 +1088,7 @@ export declare const ResponseSchemas: {
|
|
|
1084
1088
|
funding: z.ZodString;
|
|
1085
1089
|
pricing: z.ZodString;
|
|
1086
1090
|
fee_tier: z.ZodString;
|
|
1091
|
+
credits: z.ZodString;
|
|
1087
1092
|
}, z.core.$strip>;
|
|
1088
1093
|
assets: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1089
1094
|
id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -1192,10 +1197,122 @@ export declare const ResponseSchemas: {
|
|
|
1192
1197
|
}, z.core.$strip>;
|
|
1193
1198
|
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>>>>;
|
|
1194
1199
|
}, z.core.$strip>;
|
|
1195
|
-
}, z.core.$strip
|
|
1200
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
1201
|
+
global_config: {
|
|
1202
|
+
max_orders_per_user: bigint;
|
|
1203
|
+
max_trigger_orders_per_user: bigint;
|
|
1204
|
+
max_orders_per_batch_msg: bigint;
|
|
1205
|
+
max_trigger_orders_to_execute_per_msg: bigint;
|
|
1206
|
+
};
|
|
1207
|
+
admins: {
|
|
1208
|
+
protocol: string;
|
|
1209
|
+
funding: string;
|
|
1210
|
+
pricing: string;
|
|
1211
|
+
fee_tier: string;
|
|
1212
|
+
credits: string;
|
|
1213
|
+
};
|
|
1214
|
+
assets: Map<number, {
|
|
1215
|
+
id: number;
|
|
1216
|
+
name: string;
|
|
1217
|
+
token_id: string | null;
|
|
1218
|
+
decimals: number;
|
|
1219
|
+
withdraw_fee: import("decimal.js").Decimal;
|
|
1220
|
+
}>;
|
|
1221
|
+
markets: Map<number, {
|
|
1222
|
+
id: number;
|
|
1223
|
+
kind: "perp" | "spot";
|
|
1224
|
+
base_asset_id: number;
|
|
1225
|
+
name: string;
|
|
1226
|
+
}>;
|
|
1227
|
+
vaults: {
|
|
1228
|
+
vaults: Map<string, {
|
|
1229
|
+
leader: string;
|
|
1230
|
+
name: string;
|
|
1231
|
+
description: string;
|
|
1232
|
+
deposit_asset_ids: number[];
|
|
1233
|
+
withdraw_asset_id: number;
|
|
1234
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1235
|
+
leader_minimum_holding_percentage: number;
|
|
1236
|
+
withdraw_lockup_period_hours: number;
|
|
1237
|
+
profit_share_percentage: number;
|
|
1238
|
+
withdrawal_fee_bps: number;
|
|
1239
|
+
total_shares: import("decimal.js").Decimal;
|
|
1240
|
+
high_watermark: import("decimal.js").Decimal;
|
|
1241
|
+
queued_withdrawals: {
|
|
1242
|
+
user: string;
|
|
1243
|
+
shares: import("decimal.js").Decimal;
|
|
1244
|
+
timestamp: bigint;
|
|
1245
|
+
}[];
|
|
1246
|
+
whitelist_deposits: boolean;
|
|
1247
|
+
whitelisted_depositors: string[];
|
|
1248
|
+
}>;
|
|
1249
|
+
config: {
|
|
1250
|
+
leader_minimum_holding_percentage: number;
|
|
1251
|
+
creation_fee_usdc: import("decimal.js").Decimal;
|
|
1252
|
+
min_deposit_value: import("decimal.js").Decimal;
|
|
1253
|
+
};
|
|
1254
|
+
depositor_state: Map<string, Map<string, import("decimal.js").Decimal>>;
|
|
1255
|
+
};
|
|
1256
|
+
} | null, Record<string, {
|
|
1257
|
+
global_config: {
|
|
1258
|
+
max_orders_per_user: bigint;
|
|
1259
|
+
max_trigger_orders_per_user: bigint;
|
|
1260
|
+
max_orders_per_batch_msg: bigint;
|
|
1261
|
+
max_trigger_orders_to_execute_per_msg: bigint;
|
|
1262
|
+
};
|
|
1263
|
+
admins: {
|
|
1264
|
+
protocol: string;
|
|
1265
|
+
funding: string;
|
|
1266
|
+
pricing: string;
|
|
1267
|
+
fee_tier: string;
|
|
1268
|
+
credits: string;
|
|
1269
|
+
};
|
|
1270
|
+
assets: Map<number, {
|
|
1271
|
+
id: number;
|
|
1272
|
+
name: string;
|
|
1273
|
+
token_id: string | null;
|
|
1274
|
+
decimals: number;
|
|
1275
|
+
withdraw_fee: import("decimal.js").Decimal;
|
|
1276
|
+
}>;
|
|
1277
|
+
markets: Map<number, {
|
|
1278
|
+
id: number;
|
|
1279
|
+
kind: "perp" | "spot";
|
|
1280
|
+
base_asset_id: number;
|
|
1281
|
+
name: string;
|
|
1282
|
+
}>;
|
|
1283
|
+
vaults: {
|
|
1284
|
+
vaults: Map<string, {
|
|
1285
|
+
leader: string;
|
|
1286
|
+
name: string;
|
|
1287
|
+
description: string;
|
|
1288
|
+
deposit_asset_ids: number[];
|
|
1289
|
+
withdraw_asset_id: number;
|
|
1290
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1291
|
+
leader_minimum_holding_percentage: number;
|
|
1292
|
+
withdraw_lockup_period_hours: number;
|
|
1293
|
+
profit_share_percentage: number;
|
|
1294
|
+
withdrawal_fee_bps: number;
|
|
1295
|
+
total_shares: import("decimal.js").Decimal;
|
|
1296
|
+
high_watermark: import("decimal.js").Decimal;
|
|
1297
|
+
queued_withdrawals: {
|
|
1298
|
+
user: string;
|
|
1299
|
+
shares: import("decimal.js").Decimal;
|
|
1300
|
+
timestamp: bigint;
|
|
1301
|
+
}[];
|
|
1302
|
+
whitelist_deposits: boolean;
|
|
1303
|
+
whitelisted_depositors: string[];
|
|
1304
|
+
}>;
|
|
1305
|
+
config: {
|
|
1306
|
+
leader_minimum_holding_percentage: number;
|
|
1307
|
+
creation_fee_usdc: import("decimal.js").Decimal;
|
|
1308
|
+
min_deposit_value: import("decimal.js").Decimal;
|
|
1309
|
+
};
|
|
1310
|
+
depositor_state: Map<string, Map<string, import("decimal.js").Decimal>>;
|
|
1311
|
+
};
|
|
1312
|
+
}>>>>;
|
|
1196
1313
|
}, z.core.$strip>;
|
|
1197
1314
|
readonly ExchangeAssets: z.ZodObject<{
|
|
1198
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1315
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1199
1316
|
usdc_pnl_pool: z.ZodObject<{
|
|
1200
1317
|
amount: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<import("decimal.js").Decimal, string | number>>;
|
|
1201
1318
|
external_deposits: 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>>>;
|
|
@@ -1269,10 +1386,78 @@ export declare const ResponseSchemas: {
|
|
|
1269
1386
|
unclaimed_protocol_fees: import("decimal.js").Decimal;
|
|
1270
1387
|
interest_fee_tenth_bps: number;
|
|
1271
1388
|
}>>>;
|
|
1272
|
-
}, z.core.$strip
|
|
1389
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
1390
|
+
usdc_pnl_pool: {
|
|
1391
|
+
amount: import("decimal.js").Decimal;
|
|
1392
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1393
|
+
};
|
|
1394
|
+
usdc_insurance_fund: {
|
|
1395
|
+
amount: import("decimal.js").Decimal;
|
|
1396
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1397
|
+
minimum_usdc_token_amount: import("decimal.js").Decimal;
|
|
1398
|
+
};
|
|
1399
|
+
treasury: string;
|
|
1400
|
+
borrow_lend_deposit_vault: string;
|
|
1401
|
+
spot_collateral_vault: string;
|
|
1402
|
+
borrow_lend_pools: Map<number, {
|
|
1403
|
+
asset_id: number;
|
|
1404
|
+
is_active: boolean;
|
|
1405
|
+
last_update_timestamp: bigint;
|
|
1406
|
+
rate_config: {
|
|
1407
|
+
optimal_utilization_rate: import("decimal.js").Decimal;
|
|
1408
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1409
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1410
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1411
|
+
};
|
|
1412
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1413
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1414
|
+
max_utilization_rate: import("decimal.js").Decimal;
|
|
1415
|
+
available_amount: import("decimal.js").Decimal;
|
|
1416
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
1417
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
1418
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1419
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1420
|
+
unclaimed_protocol_fees: import("decimal.js").Decimal;
|
|
1421
|
+
interest_fee_tenth_bps: number;
|
|
1422
|
+
}>;
|
|
1423
|
+
} | null, Record<string, {
|
|
1424
|
+
usdc_pnl_pool: {
|
|
1425
|
+
amount: import("decimal.js").Decimal;
|
|
1426
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1427
|
+
};
|
|
1428
|
+
usdc_insurance_fund: {
|
|
1429
|
+
amount: import("decimal.js").Decimal;
|
|
1430
|
+
external_deposits: Map<string, import("decimal.js").Decimal>;
|
|
1431
|
+
minimum_usdc_token_amount: import("decimal.js").Decimal;
|
|
1432
|
+
};
|
|
1433
|
+
treasury: string;
|
|
1434
|
+
borrow_lend_deposit_vault: string;
|
|
1435
|
+
spot_collateral_vault: string;
|
|
1436
|
+
borrow_lend_pools: Map<number, {
|
|
1437
|
+
asset_id: number;
|
|
1438
|
+
is_active: boolean;
|
|
1439
|
+
last_update_timestamp: bigint;
|
|
1440
|
+
rate_config: {
|
|
1441
|
+
optimal_utilization_rate: import("decimal.js").Decimal;
|
|
1442
|
+
min_borrow_rate: import("decimal.js").Decimal;
|
|
1443
|
+
optimal_borrow_rate: import("decimal.js").Decimal;
|
|
1444
|
+
max_borrow_rate: import("decimal.js").Decimal;
|
|
1445
|
+
};
|
|
1446
|
+
deposit_limit: import("decimal.js").Decimal;
|
|
1447
|
+
borrow_limit: import("decimal.js").Decimal;
|
|
1448
|
+
max_utilization_rate: import("decimal.js").Decimal;
|
|
1449
|
+
available_amount: import("decimal.js").Decimal;
|
|
1450
|
+
borrowed_amount: import("decimal.js").Decimal;
|
|
1451
|
+
cumulative_deposit_rate: import("decimal.js").Decimal;
|
|
1452
|
+
cumulative_borrow_rate: import("decimal.js").Decimal;
|
|
1453
|
+
accumulated_protocol_fees: import("decimal.js").Decimal;
|
|
1454
|
+
unclaimed_protocol_fees: import("decimal.js").Decimal;
|
|
1455
|
+
interest_fee_tenth_bps: number;
|
|
1456
|
+
}>;
|
|
1457
|
+
}>>>>;
|
|
1273
1458
|
}, z.core.$strip>;
|
|
1274
1459
|
readonly RiskEngine: z.ZodObject<{
|
|
1275
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1460
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1276
1461
|
pricing_engine: z.ZodObject<{
|
|
1277
1462
|
pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
1278
1463
|
relaxed_pricing_frequency_seconds: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -1420,14 +1605,138 @@ export declare const ResponseSchemas: {
|
|
|
1420
1605
|
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1421
1606
|
}>>>;
|
|
1422
1607
|
}, z.core.$strip>;
|
|
1423
|
-
}, z.core.$strip
|
|
1608
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
1609
|
+
pricing_engine: {
|
|
1610
|
+
pricing_frequency_seconds: number;
|
|
1611
|
+
relaxed_pricing_frequency_seconds: number;
|
|
1612
|
+
oracle_pricing: Map<number, {
|
|
1613
|
+
price: import("decimal.js").Decimal;
|
|
1614
|
+
last_update_timestamp: bigint | null;
|
|
1615
|
+
}>;
|
|
1616
|
+
perp_pricing: Map<number, {
|
|
1617
|
+
market_id: number;
|
|
1618
|
+
mark_price: {
|
|
1619
|
+
price: import("decimal.js").Decimal;
|
|
1620
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1621
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1622
|
+
last_update_timestamp: bigint | null;
|
|
1623
|
+
};
|
|
1624
|
+
accum_premium_index: {
|
|
1625
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1626
|
+
duration_sum: bigint;
|
|
1627
|
+
last_update_timestamp: bigint | null;
|
|
1628
|
+
};
|
|
1629
|
+
funding_meta: {
|
|
1630
|
+
rate: import("decimal.js").Decimal;
|
|
1631
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1632
|
+
last_update_timestamp: bigint;
|
|
1633
|
+
config: {
|
|
1634
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1635
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1636
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1637
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1638
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
}>;
|
|
1642
|
+
};
|
|
1643
|
+
margin_config: {
|
|
1644
|
+
perp_liquidation_config: {
|
|
1645
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
1646
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
1647
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
1648
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1649
|
+
};
|
|
1650
|
+
perp_leverage_tables: Map<number, {
|
|
1651
|
+
tiers: Map<string, {
|
|
1652
|
+
max_leverage: number;
|
|
1653
|
+
mmr: import("decimal.js").Decimal;
|
|
1654
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
1655
|
+
}>;
|
|
1656
|
+
}>;
|
|
1657
|
+
borrow_lend_risk_configs: Map<number, {
|
|
1658
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
1659
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1660
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1661
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1662
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1663
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1664
|
+
}>;
|
|
1665
|
+
};
|
|
1666
|
+
} | null, Record<string, {
|
|
1667
|
+
pricing_engine: {
|
|
1668
|
+
pricing_frequency_seconds: number;
|
|
1669
|
+
relaxed_pricing_frequency_seconds: number;
|
|
1670
|
+
oracle_pricing: Map<number, {
|
|
1671
|
+
price: import("decimal.js").Decimal;
|
|
1672
|
+
last_update_timestamp: bigint | null;
|
|
1673
|
+
}>;
|
|
1674
|
+
perp_pricing: Map<number, {
|
|
1675
|
+
market_id: number;
|
|
1676
|
+
mark_price: {
|
|
1677
|
+
price: import("decimal.js").Decimal;
|
|
1678
|
+
last_oracle_diff_ema: import("decimal.js").Decimal;
|
|
1679
|
+
last_median_cex_price: import("decimal.js").Decimal;
|
|
1680
|
+
last_update_timestamp: bigint | null;
|
|
1681
|
+
};
|
|
1682
|
+
accum_premium_index: {
|
|
1683
|
+
weighted_premium_sum: import("decimal.js").Decimal;
|
|
1684
|
+
duration_sum: bigint;
|
|
1685
|
+
last_update_timestamp: bigint | null;
|
|
1686
|
+
};
|
|
1687
|
+
funding_meta: {
|
|
1688
|
+
rate: import("decimal.js").Decimal;
|
|
1689
|
+
accum_per_lot: import("decimal.js").Decimal;
|
|
1690
|
+
last_update_timestamp: bigint;
|
|
1691
|
+
config: {
|
|
1692
|
+
interest_rate: import("decimal.js").Decimal;
|
|
1693
|
+
min_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1694
|
+
max_interest_rate_clamp: import("decimal.js").Decimal;
|
|
1695
|
+
min_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1696
|
+
max_funding_rate_clamp: import("decimal.js").Decimal;
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
}>;
|
|
1700
|
+
};
|
|
1701
|
+
margin_config: {
|
|
1702
|
+
perp_liquidation_config: {
|
|
1703
|
+
liquidation_ioc_buffer: import("decimal.js").Decimal;
|
|
1704
|
+
backstop_liquidation_threshold: import("decimal.js").Decimal;
|
|
1705
|
+
liquidation_fee: import("decimal.js").Decimal;
|
|
1706
|
+
liquidation_protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1707
|
+
};
|
|
1708
|
+
perp_leverage_tables: Map<number, {
|
|
1709
|
+
tiers: Map<string, {
|
|
1710
|
+
max_leverage: number;
|
|
1711
|
+
mmr: import("decimal.js").Decimal;
|
|
1712
|
+
maintenance_amount: import("decimal.js").Decimal;
|
|
1713
|
+
}>;
|
|
1714
|
+
}>;
|
|
1715
|
+
borrow_lend_risk_configs: Map<number, {
|
|
1716
|
+
liquidation_total_reward_ratio: import("decimal.js").Decimal;
|
|
1717
|
+
liability_liquidation_limit_ratio: import("decimal.js").Decimal;
|
|
1718
|
+
asset_weight: import("decimal.js").Decimal;
|
|
1719
|
+
initial_liability_weight: import("decimal.js").Decimal;
|
|
1720
|
+
maintenance_liability_weight: import("decimal.js").Decimal;
|
|
1721
|
+
protocol_reward_ratio: import("decimal.js").Decimal;
|
|
1722
|
+
}>;
|
|
1723
|
+
};
|
|
1724
|
+
}>>>>;
|
|
1424
1725
|
}, z.core.$strip>;
|
|
1425
1726
|
readonly ExecutionIds: z.ZodObject<{
|
|
1426
|
-
value: z.ZodNullable<z.ZodObject<{
|
|
1727
|
+
value: z.ZodNullable<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1427
1728
|
last_order_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1428
1729
|
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>;
|
|
1429
1730
|
last_trade_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<bigint, string | number | bigint>>, z.ZodBigInt>;
|
|
1430
|
-
}, z.core.$strip
|
|
1731
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
1732
|
+
last_order_id: bigint;
|
|
1733
|
+
last_trigger_order_id: bigint;
|
|
1734
|
+
last_trade_id: bigint;
|
|
1735
|
+
} | null, Record<string, {
|
|
1736
|
+
last_order_id: bigint;
|
|
1737
|
+
last_trigger_order_id: bigint;
|
|
1738
|
+
last_trade_id: bigint;
|
|
1739
|
+
}>>>>;
|
|
1431
1740
|
}, z.core.$strip>;
|
|
1432
1741
|
readonly OrderbookL2: z.ZodObject<{
|
|
1433
1742
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
@@ -2591,7 +2900,7 @@ export declare const ResponseSchemas: {
|
|
|
2591
2900
|
}, z.core.$strip>;
|
|
2592
2901
|
readonly PerpMarket: z.ZodObject<{
|
|
2593
2902
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2594
|
-
market: z.ZodObject<{
|
|
2903
|
+
market: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2595
2904
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2596
2905
|
trading_status: z.ZodEnum<{
|
|
2597
2906
|
active: "active";
|
|
@@ -2659,10 +2968,88 @@ export declare const ResponseSchemas: {
|
|
|
2659
2968
|
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>>>>;
|
|
2660
2969
|
active: z.ZodArray<z.ZodAny>;
|
|
2661
2970
|
}, z.core.$strip>;
|
|
2662
|
-
}, z.core.$strip
|
|
2971
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
2972
|
+
market_id: number;
|
|
2973
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2974
|
+
config: {
|
|
2975
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
2976
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
2977
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
2978
|
+
impact_margin: import("decimal.js").Decimal;
|
|
2979
|
+
max_orders_per_side: number;
|
|
2980
|
+
max_orders_per_user: number;
|
|
2981
|
+
max_trigger_orders_per_user: number;
|
|
2982
|
+
taker_fees_tenth_bps: number[];
|
|
2983
|
+
maker_fees_tenth_bps: number[];
|
|
2984
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2985
|
+
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2986
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
2987
|
+
};
|
|
2988
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
2989
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
2990
|
+
orderbook: {
|
|
2991
|
+
bids: Map<string, {
|
|
2992
|
+
nodes: {
|
|
2993
|
+
order_id: bigint;
|
|
2994
|
+
owner: string;
|
|
2995
|
+
}[];
|
|
2996
|
+
total_size: import("decimal.js").Decimal;
|
|
2997
|
+
}>;
|
|
2998
|
+
asks: Map<string, {
|
|
2999
|
+
nodes: {
|
|
3000
|
+
order_id: bigint;
|
|
3001
|
+
owner: string;
|
|
3002
|
+
}[];
|
|
3003
|
+
total_size: import("decimal.js").Decimal;
|
|
3004
|
+
}>;
|
|
3005
|
+
};
|
|
3006
|
+
trigger_nodes_store: {
|
|
3007
|
+
inactive: Map<string, Map<string, any>>;
|
|
3008
|
+
active: any[];
|
|
3009
|
+
};
|
|
3010
|
+
}, Record<string, {
|
|
3011
|
+
market_id: number;
|
|
3012
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3013
|
+
config: {
|
|
3014
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
3015
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
3016
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
3017
|
+
impact_margin: import("decimal.js").Decimal;
|
|
3018
|
+
max_orders_per_side: number;
|
|
3019
|
+
max_orders_per_user: number;
|
|
3020
|
+
max_trigger_orders_per_user: number;
|
|
3021
|
+
taker_fees_tenth_bps: number[];
|
|
3022
|
+
maker_fees_tenth_bps: number[];
|
|
3023
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3024
|
+
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3025
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3026
|
+
};
|
|
3027
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
3028
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3029
|
+
orderbook: {
|
|
3030
|
+
bids: Map<string, {
|
|
3031
|
+
nodes: {
|
|
3032
|
+
order_id: bigint;
|
|
3033
|
+
owner: string;
|
|
3034
|
+
}[];
|
|
3035
|
+
total_size: import("decimal.js").Decimal;
|
|
3036
|
+
}>;
|
|
3037
|
+
asks: Map<string, {
|
|
3038
|
+
nodes: {
|
|
3039
|
+
order_id: bigint;
|
|
3040
|
+
owner: string;
|
|
3041
|
+
}[];
|
|
3042
|
+
total_size: import("decimal.js").Decimal;
|
|
3043
|
+
}>;
|
|
3044
|
+
};
|
|
3045
|
+
trigger_nodes_store: {
|
|
3046
|
+
inactive: Map<string, Map<string, any>>;
|
|
3047
|
+
active: any[];
|
|
3048
|
+
};
|
|
3049
|
+
}>>>;
|
|
2663
3050
|
}, z.core.$strip>;
|
|
2664
3051
|
readonly PerpMarketBulk: z.ZodObject<{
|
|
2665
|
-
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3052
|
+
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2666
3053
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2667
3054
|
trading_status: z.ZodEnum<{
|
|
2668
3055
|
active: "active";
|
|
@@ -2730,7 +3117,85 @@ export declare const ResponseSchemas: {
|
|
|
2730
3117
|
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>>>>;
|
|
2731
3118
|
active: z.ZodArray<z.ZodAny>;
|
|
2732
3119
|
}, z.core.$strip>;
|
|
2733
|
-
}, z.core.$strip>>, z.ZodTransform<
|
|
3120
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
3121
|
+
market_id: number;
|
|
3122
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3123
|
+
config: {
|
|
3124
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
3125
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
3126
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
3127
|
+
impact_margin: import("decimal.js").Decimal;
|
|
3128
|
+
max_orders_per_side: number;
|
|
3129
|
+
max_orders_per_user: number;
|
|
3130
|
+
max_trigger_orders_per_user: number;
|
|
3131
|
+
taker_fees_tenth_bps: number[];
|
|
3132
|
+
maker_fees_tenth_bps: number[];
|
|
3133
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3134
|
+
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3135
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3136
|
+
};
|
|
3137
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
3138
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3139
|
+
orderbook: {
|
|
3140
|
+
bids: Map<string, {
|
|
3141
|
+
nodes: {
|
|
3142
|
+
order_id: bigint;
|
|
3143
|
+
owner: string;
|
|
3144
|
+
}[];
|
|
3145
|
+
total_size: import("decimal.js").Decimal;
|
|
3146
|
+
}>;
|
|
3147
|
+
asks: Map<string, {
|
|
3148
|
+
nodes: {
|
|
3149
|
+
order_id: bigint;
|
|
3150
|
+
owner: string;
|
|
3151
|
+
}[];
|
|
3152
|
+
total_size: import("decimal.js").Decimal;
|
|
3153
|
+
}>;
|
|
3154
|
+
};
|
|
3155
|
+
trigger_nodes_store: {
|
|
3156
|
+
inactive: Map<string, Map<string, any>>;
|
|
3157
|
+
active: any[];
|
|
3158
|
+
};
|
|
3159
|
+
}, Record<string, {
|
|
3160
|
+
market_id: number;
|
|
3161
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3162
|
+
config: {
|
|
3163
|
+
min_tick_size: import("decimal.js").Decimal;
|
|
3164
|
+
min_lot_size: import("decimal.js").Decimal;
|
|
3165
|
+
max_oi_notional: import("decimal.js").Decimal;
|
|
3166
|
+
impact_margin: import("decimal.js").Decimal;
|
|
3167
|
+
max_orders_per_side: number;
|
|
3168
|
+
max_orders_per_user: number;
|
|
3169
|
+
max_trigger_orders_per_user: number;
|
|
3170
|
+
taker_fees_tenth_bps: number[];
|
|
3171
|
+
maker_fees_tenth_bps: number[];
|
|
3172
|
+
max_order_to_mark_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3173
|
+
max_trigger_to_comparison_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3174
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3175
|
+
};
|
|
3176
|
+
current_open_interest_lots: import("decimal.js").Decimal;
|
|
3177
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3178
|
+
orderbook: {
|
|
3179
|
+
bids: Map<string, {
|
|
3180
|
+
nodes: {
|
|
3181
|
+
order_id: bigint;
|
|
3182
|
+
owner: string;
|
|
3183
|
+
}[];
|
|
3184
|
+
total_size: import("decimal.js").Decimal;
|
|
3185
|
+
}>;
|
|
3186
|
+
asks: Map<string, {
|
|
3187
|
+
nodes: {
|
|
3188
|
+
order_id: bigint;
|
|
3189
|
+
owner: string;
|
|
3190
|
+
}[];
|
|
3191
|
+
total_size: import("decimal.js").Decimal;
|
|
3192
|
+
}>;
|
|
3193
|
+
};
|
|
3194
|
+
trigger_nodes_store: {
|
|
3195
|
+
inactive: Map<string, Map<string, any>>;
|
|
3196
|
+
active: any[];
|
|
3197
|
+
};
|
|
3198
|
+
}>>>>, z.ZodTransform<Map<number, {
|
|
2734
3199
|
market_id: number;
|
|
2735
3200
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2736
3201
|
config: {
|
|
@@ -2813,7 +3278,7 @@ export declare const ResponseSchemas: {
|
|
|
2813
3278
|
}, z.core.$strip>;
|
|
2814
3279
|
readonly SpotMarket: z.ZodObject<{
|
|
2815
3280
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2816
|
-
market: z.ZodObject<{
|
|
3281
|
+
market: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2817
3282
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2818
3283
|
trading_status: z.ZodEnum<{
|
|
2819
3284
|
active: "active";
|
|
@@ -2878,10 +3343,82 @@ export declare const ResponseSchemas: {
|
|
|
2878
3343
|
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>>>>;
|
|
2879
3344
|
active: z.ZodArray<z.ZodAny>;
|
|
2880
3345
|
}, z.core.$strip>;
|
|
2881
|
-
}, z.core.$strip
|
|
3346
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
3347
|
+
market_id: number;
|
|
3348
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3349
|
+
base_asset_id: number;
|
|
3350
|
+
quote_asset_id: number;
|
|
3351
|
+
config: {
|
|
3352
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
3353
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
3354
|
+
max_orders_per_side: number;
|
|
3355
|
+
max_orders_per_user: number;
|
|
3356
|
+
max_trigger_orders_per_user: number;
|
|
3357
|
+
taker_fees_tenth_bps: number[];
|
|
3358
|
+
maker_fees_tenth_bps: number[];
|
|
3359
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3360
|
+
};
|
|
3361
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3362
|
+
orderbook: {
|
|
3363
|
+
bids: Map<string, {
|
|
3364
|
+
nodes: {
|
|
3365
|
+
order_id: bigint;
|
|
3366
|
+
owner: string;
|
|
3367
|
+
}[];
|
|
3368
|
+
total_size: import("decimal.js").Decimal;
|
|
3369
|
+
}>;
|
|
3370
|
+
asks: Map<string, {
|
|
3371
|
+
nodes: {
|
|
3372
|
+
order_id: bigint;
|
|
3373
|
+
owner: string;
|
|
3374
|
+
}[];
|
|
3375
|
+
total_size: import("decimal.js").Decimal;
|
|
3376
|
+
}>;
|
|
3377
|
+
};
|
|
3378
|
+
trigger_nodes_store: {
|
|
3379
|
+
inactive: Map<string, Map<string, any>>;
|
|
3380
|
+
active: any[];
|
|
3381
|
+
};
|
|
3382
|
+
}, Record<string, {
|
|
3383
|
+
market_id: number;
|
|
3384
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3385
|
+
base_asset_id: number;
|
|
3386
|
+
quote_asset_id: number;
|
|
3387
|
+
config: {
|
|
3388
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
3389
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
3390
|
+
max_orders_per_side: number;
|
|
3391
|
+
max_orders_per_user: number;
|
|
3392
|
+
max_trigger_orders_per_user: number;
|
|
3393
|
+
taker_fees_tenth_bps: number[];
|
|
3394
|
+
maker_fees_tenth_bps: number[];
|
|
3395
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3396
|
+
};
|
|
3397
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3398
|
+
orderbook: {
|
|
3399
|
+
bids: Map<string, {
|
|
3400
|
+
nodes: {
|
|
3401
|
+
order_id: bigint;
|
|
3402
|
+
owner: string;
|
|
3403
|
+
}[];
|
|
3404
|
+
total_size: import("decimal.js").Decimal;
|
|
3405
|
+
}>;
|
|
3406
|
+
asks: Map<string, {
|
|
3407
|
+
nodes: {
|
|
3408
|
+
order_id: bigint;
|
|
3409
|
+
owner: string;
|
|
3410
|
+
}[];
|
|
3411
|
+
total_size: import("decimal.js").Decimal;
|
|
3412
|
+
}>;
|
|
3413
|
+
};
|
|
3414
|
+
trigger_nodes_store: {
|
|
3415
|
+
inactive: Map<string, Map<string, any>>;
|
|
3416
|
+
active: any[];
|
|
3417
|
+
};
|
|
3418
|
+
}>>>;
|
|
2882
3419
|
}, z.core.$strip>;
|
|
2883
3420
|
readonly SpotMarketBulk: z.ZodObject<{
|
|
2884
|
-
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3421
|
+
found: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2885
3422
|
market_id: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<number, string | number>>, z.ZodNumber>;
|
|
2886
3423
|
trading_status: z.ZodEnum<{
|
|
2887
3424
|
active: "active";
|
|
@@ -2946,7 +3483,79 @@ export declare const ResponseSchemas: {
|
|
|
2946
3483
|
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>>>>;
|
|
2947
3484
|
active: z.ZodArray<z.ZodAny>;
|
|
2948
3485
|
}, z.core.$strip>;
|
|
2949
|
-
}, z.core.$strip>>, z.ZodTransform<
|
|
3486
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
3487
|
+
market_id: number;
|
|
3488
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3489
|
+
base_asset_id: number;
|
|
3490
|
+
quote_asset_id: number;
|
|
3491
|
+
config: {
|
|
3492
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
3493
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
3494
|
+
max_orders_per_side: number;
|
|
3495
|
+
max_orders_per_user: number;
|
|
3496
|
+
max_trigger_orders_per_user: number;
|
|
3497
|
+
taker_fees_tenth_bps: number[];
|
|
3498
|
+
maker_fees_tenth_bps: number[];
|
|
3499
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3500
|
+
};
|
|
3501
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3502
|
+
orderbook: {
|
|
3503
|
+
bids: Map<string, {
|
|
3504
|
+
nodes: {
|
|
3505
|
+
order_id: bigint;
|
|
3506
|
+
owner: string;
|
|
3507
|
+
}[];
|
|
3508
|
+
total_size: import("decimal.js").Decimal;
|
|
3509
|
+
}>;
|
|
3510
|
+
asks: Map<string, {
|
|
3511
|
+
nodes: {
|
|
3512
|
+
order_id: bigint;
|
|
3513
|
+
owner: string;
|
|
3514
|
+
}[];
|
|
3515
|
+
total_size: import("decimal.js").Decimal;
|
|
3516
|
+
}>;
|
|
3517
|
+
};
|
|
3518
|
+
trigger_nodes_store: {
|
|
3519
|
+
inactive: Map<string, Map<string, any>>;
|
|
3520
|
+
active: any[];
|
|
3521
|
+
};
|
|
3522
|
+
}, Record<string, {
|
|
3523
|
+
market_id: number;
|
|
3524
|
+
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
3525
|
+
base_asset_id: number;
|
|
3526
|
+
quote_asset_id: number;
|
|
3527
|
+
config: {
|
|
3528
|
+
base_min_lot_size: import("decimal.js").Decimal;
|
|
3529
|
+
quote_min_lot_size: import("decimal.js").Decimal;
|
|
3530
|
+
max_orders_per_side: number;
|
|
3531
|
+
max_orders_per_user: number;
|
|
3532
|
+
max_trigger_orders_per_user: number;
|
|
3533
|
+
taker_fees_tenth_bps: number[];
|
|
3534
|
+
maker_fees_tenth_bps: number[];
|
|
3535
|
+
max_order_to_trigger_price_deviation_ratio: import("decimal.js").Decimal;
|
|
3536
|
+
};
|
|
3537
|
+
last_trade_price: import("decimal.js").Decimal | null;
|
|
3538
|
+
orderbook: {
|
|
3539
|
+
bids: Map<string, {
|
|
3540
|
+
nodes: {
|
|
3541
|
+
order_id: bigint;
|
|
3542
|
+
owner: string;
|
|
3543
|
+
}[];
|
|
3544
|
+
total_size: import("decimal.js").Decimal;
|
|
3545
|
+
}>;
|
|
3546
|
+
asks: Map<string, {
|
|
3547
|
+
nodes: {
|
|
3548
|
+
order_id: bigint;
|
|
3549
|
+
owner: string;
|
|
3550
|
+
}[];
|
|
3551
|
+
total_size: import("decimal.js").Decimal;
|
|
3552
|
+
}>;
|
|
3553
|
+
};
|
|
3554
|
+
trigger_nodes_store: {
|
|
3555
|
+
inactive: Map<string, Map<string, any>>;
|
|
3556
|
+
active: any[];
|
|
3557
|
+
};
|
|
3558
|
+
}>>>>, z.ZodTransform<Map<number, {
|
|
2950
3559
|
market_id: number;
|
|
2951
3560
|
trading_status: "active" | "halted" | "cleaning" | "cleaned";
|
|
2952
3561
|
base_asset_id: number;
|