@bulletxyz/bullet-sdk 0.19.1-rc.0 → 0.20.0-rc.1

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.
@@ -1399,884 +1399,134 @@ export declare const ResponseSchemas: {
1399
1399
  };
1400
1400
  meta: Record<string, unknown> | null;
1401
1401
  }>;
1402
- readonly UserAccount: z.ZodObject<{
1402
+ readonly Pricing: z.ZodObject<{
1403
1403
  data: z.ZodObject<{
1404
- user_accounts: z.ZodArray<z.ZodObject<{
1405
- usdc_ledger: z.ZodObject<{
1406
- ledger: z.ZodObject<{
1407
- weights: z.ZodObject<{
1408
- asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1409
- initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1410
- maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1411
- }, "strip", z.ZodTypeAny, {
1412
- asset_weight: import("decimal.js").Decimal;
1413
- initial_liability_weight: import("decimal.js").Decimal;
1414
- maintenance_liability_weight: import("decimal.js").Decimal;
1415
- }, {
1416
- asset_weight: string | number;
1417
- initial_liability_weight: string | number;
1418
- maintenance_liability_weight: string | number;
1419
- }>;
1420
- asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1421
- liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1422
- }, "strip", z.ZodTypeAny, {
1423
- weights: {
1424
- asset_weight: import("decimal.js").Decimal;
1425
- initial_liability_weight: import("decimal.js").Decimal;
1426
- maintenance_liability_weight: import("decimal.js").Decimal;
1427
- };
1428
- asset: import("decimal.js").Decimal;
1429
- liability: import("decimal.js").Decimal;
1430
- }, {
1431
- weights: {
1432
- asset_weight: string | number;
1433
- initial_liability_weight: string | number;
1434
- maintenance_liability_weight: string | number;
1435
- };
1436
- asset: string | number;
1437
- liability: string | number;
1438
- }>;
1439
- unrealized_loss_borrow: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1440
- unsettled_perp_profit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1404
+ value: z.ZodNullable<z.ZodObject<{
1405
+ pricing_frequency_seconds: z.ZodNumber;
1406
+ prices_info: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1407
+ mark_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1408
+ oracle_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1409
+ publish_timestamp: z.ZodBigInt;
1441
1410
  }, "strip", z.ZodTypeAny, {
1442
- ledger: {
1443
- weights: {
1444
- asset_weight: import("decimal.js").Decimal;
1445
- initial_liability_weight: import("decimal.js").Decimal;
1446
- maintenance_liability_weight: import("decimal.js").Decimal;
1447
- };
1448
- asset: import("decimal.js").Decimal;
1449
- liability: import("decimal.js").Decimal;
1450
- };
1451
- unrealized_loss_borrow: import("decimal.js").Decimal;
1452
- unsettled_perp_profit: import("decimal.js").Decimal;
1411
+ mark_price: import("decimal.js").Decimal;
1412
+ oracle_price: import("decimal.js").Decimal;
1413
+ publish_timestamp: bigint;
1453
1414
  }, {
1454
- ledger: {
1455
- weights: {
1456
- asset_weight: string | number;
1457
- initial_liability_weight: string | number;
1458
- maintenance_liability_weight: string | number;
1459
- };
1460
- asset: string | number;
1461
- liability: string | number;
1462
- };
1463
- unrealized_loss_borrow: string | number;
1464
- unsettled_perp_profit: string | number;
1465
- }>;
1466
- spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1467
- weights: z.ZodObject<{
1468
- asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1469
- initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1470
- maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1471
- }, "strip", z.ZodTypeAny, {
1472
- asset_weight: import("decimal.js").Decimal;
1473
- initial_liability_weight: import("decimal.js").Decimal;
1474
- maintenance_liability_weight: import("decimal.js").Decimal;
1475
- }, {
1476
- asset_weight: string | number;
1477
- initial_liability_weight: string | number;
1478
- maintenance_liability_weight: string | number;
1479
- }>;
1480
- asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1481
- liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1415
+ mark_price: string | number;
1416
+ oracle_price: string | number;
1417
+ publish_timestamp: bigint;
1418
+ }>>, Map<number, {
1419
+ mark_price: import("decimal.js").Decimal;
1420
+ oracle_price: import("decimal.js").Decimal;
1421
+ publish_timestamp: bigint;
1422
+ }>, Record<string, {
1423
+ mark_price: string | number;
1424
+ oracle_price: string | number;
1425
+ publish_timestamp: bigint;
1426
+ }>>;
1427
+ premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1428
+ weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1429
+ duration_sum: z.ZodBigInt;
1430
+ last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
1482
1431
  }, "strip", z.ZodTypeAny, {
1483
- weights: {
1484
- asset_weight: import("decimal.js").Decimal;
1485
- initial_liability_weight: import("decimal.js").Decimal;
1486
- maintenance_liability_weight: import("decimal.js").Decimal;
1487
- };
1488
- asset: import("decimal.js").Decimal;
1489
- liability: import("decimal.js").Decimal;
1432
+ weighted_premium_sum: import("decimal.js").Decimal;
1433
+ duration_sum: bigint;
1434
+ last_update_timestamp: bigint | null;
1490
1435
  }, {
1491
- weights: {
1492
- asset_weight: string | number;
1493
- initial_liability_weight: string | number;
1494
- maintenance_liability_weight: string | number;
1495
- };
1496
- asset: string | number;
1497
- liability: string | number;
1436
+ weighted_premium_sum: string | number;
1437
+ duration_sum: bigint;
1438
+ last_update_timestamp: bigint | null;
1498
1439
  }>>, Map<number, {
1499
- weights: {
1500
- asset_weight: import("decimal.js").Decimal;
1501
- initial_liability_weight: import("decimal.js").Decimal;
1502
- maintenance_liability_weight: import("decimal.js").Decimal;
1503
- };
1504
- asset: import("decimal.js").Decimal;
1505
- liability: import("decimal.js").Decimal;
1440
+ weighted_premium_sum: import("decimal.js").Decimal;
1441
+ duration_sum: bigint;
1442
+ last_update_timestamp: bigint | null;
1506
1443
  }>, Record<string, {
1507
- weights: {
1508
- asset_weight: string | number;
1509
- initial_liability_weight: string | number;
1510
- maintenance_liability_weight: string | number;
1511
- };
1512
- asset: string | number;
1513
- liability: string | number;
1514
- }>>;
1515
- perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1516
- orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1517
- size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1518
- price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1519
- side: z.ZodEnum<["Bid", "Ask"]>;
1520
- order_id: z.ZodBigInt;
1521
- reduce_only: z.ZodBoolean;
1522
- filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1523
- average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1524
- tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
1525
- }, "strip", z.ZodTypeAny, {
1526
- size: import("decimal.js").Decimal;
1527
- price: import("decimal.js").Decimal;
1528
- side: "Bid" | "Ask";
1529
- order_id: bigint;
1530
- reduce_only: boolean;
1531
- filled_size: import("decimal.js").Decimal;
1532
- average_filled_price: import("decimal.js").Decimal;
1533
- tpsl_order_ids: bigint[];
1534
- }, {
1535
- size: string | number;
1536
- price: string | number;
1537
- side: "Bid" | "Ask";
1538
- order_id: bigint;
1539
- reduce_only: boolean;
1540
- filled_size: string | number;
1541
- average_filled_price: string | number;
1542
- tpsl_order_ids: bigint[];
1543
- }>>, Map<bigint, {
1544
- size: import("decimal.js").Decimal;
1545
- price: import("decimal.js").Decimal;
1546
- side: "Bid" | "Ask";
1547
- order_id: bigint;
1548
- reduce_only: boolean;
1549
- filled_size: import("decimal.js").Decimal;
1550
- average_filled_price: import("decimal.js").Decimal;
1551
- tpsl_order_ids: bigint[];
1552
- }>, Record<string, {
1553
- size: string | number;
1554
- price: string | number;
1555
- side: "Bid" | "Ask";
1556
- order_id: bigint;
1557
- reduce_only: boolean;
1558
- filled_size: string | number;
1559
- average_filled_price: string | number;
1560
- tpsl_order_ids: bigint[];
1561
- }>>;
1562
- position: z.ZodObject<{
1563
- size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1564
- cost_of_trades: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1565
- realized_pnl: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1566
- cached_mark_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1567
- last_accum_funding_applied_per_lot: z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>;
1568
- funding_payments_on_side: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1569
- funding_payments_on_position: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1570
- }, "strip", z.ZodTypeAny, {
1571
- size: import("decimal.js").Decimal;
1572
- cost_of_trades: import("decimal.js").Decimal;
1573
- realized_pnl: import("decimal.js").Decimal;
1574
- cached_mark_price: import("decimal.js").Decimal;
1575
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1576
- funding_payments_on_side: import("decimal.js").Decimal;
1577
- funding_payments_on_position: import("decimal.js").Decimal;
1578
- }, {
1579
- size: string | number;
1580
- cost_of_trades: string | number;
1581
- realized_pnl: string | number;
1582
- cached_mark_price: string | number;
1583
- last_accum_funding_applied_per_lot: [string | number, bigint];
1584
- funding_payments_on_side: string | number;
1585
- funding_payments_on_position: string | number;
1586
- }>;
1587
- user_selected_max_leverage: z.ZodNumber;
1588
- tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1589
- side: z.ZodEnum<["Bid", "Ask"]>;
1590
- tpsl_order_id: z.ZodBigInt;
1591
- order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1592
- trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1593
- trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
1594
- tpsl_price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
1595
- active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1596
- full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1597
- order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
1598
- parent_order_id: z.ZodNullable<z.ZodBigInt>;
1599
- linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
1600
- }, "strip", z.ZodTypeAny, {
1601
- side: "Bid" | "Ask";
1602
- tpsl_order_id: bigint;
1603
- order_price: import("decimal.js").Decimal;
1604
- trigger_price: import("decimal.js").Decimal;
1605
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1606
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1607
- active_size: import("decimal.js").Decimal;
1608
- full_size: import("decimal.js").Decimal;
1609
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1610
- parent_order_id: bigint | null;
1611
- linked_tpsl_order_ids: bigint[];
1612
- }, {
1613
- side: "Bid" | "Ask";
1614
- tpsl_order_id: bigint;
1615
- order_price: string | number;
1616
- trigger_price: string | number;
1617
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1618
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1619
- active_size: string | number;
1620
- full_size: string | number;
1621
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1622
- parent_order_id: bigint | null;
1623
- linked_tpsl_order_ids: bigint[];
1624
- }>>, Map<bigint, {
1625
- side: "Bid" | "Ask";
1626
- tpsl_order_id: bigint;
1627
- order_price: import("decimal.js").Decimal;
1628
- trigger_price: import("decimal.js").Decimal;
1629
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1630
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1631
- active_size: import("decimal.js").Decimal;
1632
- full_size: import("decimal.js").Decimal;
1633
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1634
- parent_order_id: bigint | null;
1635
- linked_tpsl_order_ids: bigint[];
1636
- }>, Record<string, {
1637
- side: "Bid" | "Ask";
1638
- tpsl_order_id: bigint;
1639
- order_price: string | number;
1640
- trigger_price: string | number;
1641
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1642
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1643
- active_size: string | number;
1644
- full_size: string | number;
1645
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1646
- parent_order_id: bigint | null;
1647
- linked_tpsl_order_ids: bigint[];
1648
- }>>;
1649
- }, "strip", z.ZodTypeAny, {
1650
- orders: Map<bigint, {
1651
- size: import("decimal.js").Decimal;
1652
- price: import("decimal.js").Decimal;
1653
- side: "Bid" | "Ask";
1654
- order_id: bigint;
1655
- reduce_only: boolean;
1656
- filled_size: import("decimal.js").Decimal;
1657
- average_filled_price: import("decimal.js").Decimal;
1658
- tpsl_order_ids: bigint[];
1659
- }>;
1660
- position: {
1661
- size: import("decimal.js").Decimal;
1662
- cost_of_trades: import("decimal.js").Decimal;
1663
- realized_pnl: import("decimal.js").Decimal;
1664
- cached_mark_price: import("decimal.js").Decimal;
1665
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1666
- funding_payments_on_side: import("decimal.js").Decimal;
1667
- funding_payments_on_position: import("decimal.js").Decimal;
1668
- };
1669
- user_selected_max_leverage: number;
1670
- tpsls: Map<bigint, {
1671
- side: "Bid" | "Ask";
1672
- tpsl_order_id: bigint;
1673
- order_price: import("decimal.js").Decimal;
1674
- trigger_price: import("decimal.js").Decimal;
1675
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1676
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1677
- active_size: import("decimal.js").Decimal;
1678
- full_size: import("decimal.js").Decimal;
1679
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1680
- parent_order_id: bigint | null;
1681
- linked_tpsl_order_ids: bigint[];
1682
- }>;
1683
- }, {
1684
- orders: Record<string, {
1685
- size: string | number;
1686
- price: string | number;
1687
- side: "Bid" | "Ask";
1688
- order_id: bigint;
1689
- reduce_only: boolean;
1690
- filled_size: string | number;
1691
- average_filled_price: string | number;
1692
- tpsl_order_ids: bigint[];
1693
- }>;
1694
- position: {
1695
- size: string | number;
1696
- cost_of_trades: string | number;
1697
- realized_pnl: string | number;
1698
- cached_mark_price: string | number;
1699
- last_accum_funding_applied_per_lot: [string | number, bigint];
1700
- funding_payments_on_side: string | number;
1701
- funding_payments_on_position: string | number;
1702
- };
1703
- user_selected_max_leverage: number;
1704
- tpsls: Record<string, {
1705
- side: "Bid" | "Ask";
1706
- tpsl_order_id: bigint;
1707
- order_price: string | number;
1708
- trigger_price: string | number;
1709
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1710
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1711
- active_size: string | number;
1712
- full_size: string | number;
1713
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1714
- parent_order_id: bigint | null;
1715
- linked_tpsl_order_ids: bigint[];
1716
- }>;
1717
- }>>, Map<number, {
1718
- orders: Map<bigint, {
1719
- size: import("decimal.js").Decimal;
1720
- price: import("decimal.js").Decimal;
1721
- side: "Bid" | "Ask";
1722
- order_id: bigint;
1723
- reduce_only: boolean;
1724
- filled_size: import("decimal.js").Decimal;
1725
- average_filled_price: import("decimal.js").Decimal;
1726
- tpsl_order_ids: bigint[];
1727
- }>;
1728
- position: {
1729
- size: import("decimal.js").Decimal;
1730
- cost_of_trades: import("decimal.js").Decimal;
1731
- realized_pnl: import("decimal.js").Decimal;
1732
- cached_mark_price: import("decimal.js").Decimal;
1733
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1734
- funding_payments_on_side: import("decimal.js").Decimal;
1735
- funding_payments_on_position: import("decimal.js").Decimal;
1736
- };
1737
- user_selected_max_leverage: number;
1738
- tpsls: Map<bigint, {
1739
- side: "Bid" | "Ask";
1740
- tpsl_order_id: bigint;
1741
- order_price: import("decimal.js").Decimal;
1742
- trigger_price: import("decimal.js").Decimal;
1743
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1744
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1745
- active_size: import("decimal.js").Decimal;
1746
- full_size: import("decimal.js").Decimal;
1747
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1748
- parent_order_id: bigint | null;
1749
- linked_tpsl_order_ids: bigint[];
1750
- }>;
1751
- }>, Record<string, {
1752
- orders: Record<string, {
1753
- size: string | number;
1754
- price: string | number;
1755
- side: "Bid" | "Ask";
1756
- order_id: bigint;
1757
- reduce_only: boolean;
1758
- filled_size: string | number;
1759
- average_filled_price: string | number;
1760
- tpsl_order_ids: bigint[];
1761
- }>;
1762
- position: {
1763
- size: string | number;
1764
- cost_of_trades: string | number;
1765
- realized_pnl: string | number;
1766
- cached_mark_price: string | number;
1767
- last_accum_funding_applied_per_lot: [string | number, bigint];
1768
- funding_payments_on_side: string | number;
1769
- funding_payments_on_position: string | number;
1770
- };
1771
- user_selected_max_leverage: number;
1772
- tpsls: Record<string, {
1773
- side: "Bid" | "Ask";
1774
- tpsl_order_id: bigint;
1775
- order_price: string | number;
1776
- trigger_price: string | number;
1777
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1778
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1779
- active_size: string | number;
1780
- full_size: string | number;
1781
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1782
- parent_order_id: bigint | null;
1783
- linked_tpsl_order_ids: bigint[];
1784
- }>;
1444
+ weighted_premium_sum: string | number;
1445
+ duration_sum: bigint;
1446
+ last_update_timestamp: bigint | null;
1785
1447
  }>>;
1448
+ funding_rates: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
1449
+ accum_funding_per_lot: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
1786
1450
  }, "strip", z.ZodTypeAny, {
1787
- usdc_ledger: {
1788
- ledger: {
1789
- weights: {
1790
- asset_weight: import("decimal.js").Decimal;
1791
- initial_liability_weight: import("decimal.js").Decimal;
1792
- maintenance_liability_weight: import("decimal.js").Decimal;
1793
- };
1794
- asset: import("decimal.js").Decimal;
1795
- liability: import("decimal.js").Decimal;
1796
- };
1797
- unrealized_loss_borrow: import("decimal.js").Decimal;
1798
- unsettled_perp_profit: import("decimal.js").Decimal;
1799
- };
1800
- spot_ledgers: Map<number, {
1801
- weights: {
1802
- asset_weight: import("decimal.js").Decimal;
1803
- initial_liability_weight: import("decimal.js").Decimal;
1804
- maintenance_liability_weight: import("decimal.js").Decimal;
1805
- };
1806
- asset: import("decimal.js").Decimal;
1807
- liability: import("decimal.js").Decimal;
1451
+ pricing_frequency_seconds: number;
1452
+ prices_info: Map<number, {
1453
+ mark_price: import("decimal.js").Decimal;
1454
+ oracle_price: import("decimal.js").Decimal;
1455
+ publish_timestamp: bigint;
1808
1456
  }>;
1809
- perp_ledgers: Map<number, {
1810
- orders: Map<bigint, {
1811
- size: import("decimal.js").Decimal;
1812
- price: import("decimal.js").Decimal;
1813
- side: "Bid" | "Ask";
1814
- order_id: bigint;
1815
- reduce_only: boolean;
1816
- filled_size: import("decimal.js").Decimal;
1817
- average_filled_price: import("decimal.js").Decimal;
1818
- tpsl_order_ids: bigint[];
1819
- }>;
1820
- position: {
1821
- size: import("decimal.js").Decimal;
1822
- cost_of_trades: import("decimal.js").Decimal;
1823
- realized_pnl: import("decimal.js").Decimal;
1824
- cached_mark_price: import("decimal.js").Decimal;
1825
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1826
- funding_payments_on_side: import("decimal.js").Decimal;
1827
- funding_payments_on_position: import("decimal.js").Decimal;
1828
- };
1829
- user_selected_max_leverage: number;
1830
- tpsls: Map<bigint, {
1831
- side: "Bid" | "Ask";
1832
- tpsl_order_id: bigint;
1833
- order_price: import("decimal.js").Decimal;
1834
- trigger_price: import("decimal.js").Decimal;
1835
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1836
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1837
- active_size: import("decimal.js").Decimal;
1838
- full_size: import("decimal.js").Decimal;
1839
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1840
- parent_order_id: bigint | null;
1841
- linked_tpsl_order_ids: bigint[];
1842
- }>;
1457
+ premium_index: Map<number, {
1458
+ weighted_premium_sum: import("decimal.js").Decimal;
1459
+ duration_sum: bigint;
1460
+ last_update_timestamp: bigint | null;
1843
1461
  }>;
1462
+ funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
1463
+ accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
1844
1464
  }, {
1845
- usdc_ledger: {
1846
- ledger: {
1847
- weights: {
1848
- asset_weight: string | number;
1849
- initial_liability_weight: string | number;
1850
- maintenance_liability_weight: string | number;
1851
- };
1852
- asset: string | number;
1853
- liability: string | number;
1854
- };
1855
- unrealized_loss_borrow: string | number;
1856
- unsettled_perp_profit: string | number;
1857
- };
1858
- spot_ledgers: Record<string, {
1859
- weights: {
1860
- asset_weight: string | number;
1861
- initial_liability_weight: string | number;
1862
- maintenance_liability_weight: string | number;
1863
- };
1864
- asset: string | number;
1865
- liability: string | number;
1465
+ pricing_frequency_seconds: number;
1466
+ prices_info: Record<string, {
1467
+ mark_price: string | number;
1468
+ oracle_price: string | number;
1469
+ publish_timestamp: bigint;
1866
1470
  }>;
1867
- perp_ledgers: Record<string, {
1868
- orders: Record<string, {
1869
- size: string | number;
1870
- price: string | number;
1871
- side: "Bid" | "Ask";
1872
- order_id: bigint;
1873
- reduce_only: boolean;
1874
- filled_size: string | number;
1875
- average_filled_price: string | number;
1876
- tpsl_order_ids: bigint[];
1877
- }>;
1878
- position: {
1879
- size: string | number;
1880
- cost_of_trades: string | number;
1881
- realized_pnl: string | number;
1882
- cached_mark_price: string | number;
1883
- last_accum_funding_applied_per_lot: [string | number, bigint];
1884
- funding_payments_on_side: string | number;
1885
- funding_payments_on_position: string | number;
1886
- };
1887
- user_selected_max_leverage: number;
1888
- tpsls: Record<string, {
1889
- side: "Bid" | "Ask";
1890
- tpsl_order_id: bigint;
1891
- order_price: string | number;
1892
- trigger_price: string | number;
1893
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1894
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1895
- active_size: string | number;
1896
- full_size: string | number;
1897
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1898
- parent_order_id: bigint | null;
1899
- linked_tpsl_order_ids: bigint[];
1900
- }>;
1471
+ premium_index: Record<string, {
1472
+ weighted_premium_sum: string | number;
1473
+ duration_sum: bigint;
1474
+ last_update_timestamp: bigint | null;
1901
1475
  }>;
1902
- }>, "many">;
1476
+ funding_rates: Record<string, [string | number, bigint]>;
1477
+ accum_funding_per_lot: Record<string, [string | number, bigint]>;
1478
+ }>>;
1903
1479
  }, "strip", z.ZodTypeAny, {
1904
- user_accounts: {
1905
- usdc_ledger: {
1906
- ledger: {
1907
- weights: {
1908
- asset_weight: import("decimal.js").Decimal;
1909
- initial_liability_weight: import("decimal.js").Decimal;
1910
- maintenance_liability_weight: import("decimal.js").Decimal;
1911
- };
1912
- asset: import("decimal.js").Decimal;
1913
- liability: import("decimal.js").Decimal;
1914
- };
1915
- unrealized_loss_borrow: import("decimal.js").Decimal;
1916
- unsettled_perp_profit: import("decimal.js").Decimal;
1917
- };
1918
- spot_ledgers: Map<number, {
1919
- weights: {
1920
- asset_weight: import("decimal.js").Decimal;
1921
- initial_liability_weight: import("decimal.js").Decimal;
1922
- maintenance_liability_weight: import("decimal.js").Decimal;
1923
- };
1924
- asset: import("decimal.js").Decimal;
1925
- liability: import("decimal.js").Decimal;
1480
+ value: {
1481
+ pricing_frequency_seconds: number;
1482
+ prices_info: Map<number, {
1483
+ mark_price: import("decimal.js").Decimal;
1484
+ oracle_price: import("decimal.js").Decimal;
1485
+ publish_timestamp: bigint;
1926
1486
  }>;
1927
- perp_ledgers: Map<number, {
1928
- orders: Map<bigint, {
1929
- size: import("decimal.js").Decimal;
1930
- price: import("decimal.js").Decimal;
1931
- side: "Bid" | "Ask";
1932
- order_id: bigint;
1933
- reduce_only: boolean;
1934
- filled_size: import("decimal.js").Decimal;
1935
- average_filled_price: import("decimal.js").Decimal;
1936
- tpsl_order_ids: bigint[];
1937
- }>;
1938
- position: {
1939
- size: import("decimal.js").Decimal;
1940
- cost_of_trades: import("decimal.js").Decimal;
1941
- realized_pnl: import("decimal.js").Decimal;
1942
- cached_mark_price: import("decimal.js").Decimal;
1943
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1944
- funding_payments_on_side: import("decimal.js").Decimal;
1945
- funding_payments_on_position: import("decimal.js").Decimal;
1946
- };
1947
- user_selected_max_leverage: number;
1948
- tpsls: Map<bigint, {
1949
- side: "Bid" | "Ask";
1950
- tpsl_order_id: bigint;
1951
- order_price: import("decimal.js").Decimal;
1952
- trigger_price: import("decimal.js").Decimal;
1953
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1954
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1955
- active_size: import("decimal.js").Decimal;
1956
- full_size: import("decimal.js").Decimal;
1957
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1958
- parent_order_id: bigint | null;
1959
- linked_tpsl_order_ids: bigint[];
1960
- }>;
1487
+ premium_index: Map<number, {
1488
+ weighted_premium_sum: import("decimal.js").Decimal;
1489
+ duration_sum: bigint;
1490
+ last_update_timestamp: bigint | null;
1961
1491
  }>;
1962
- }[];
1492
+ funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
1493
+ accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
1494
+ } | null;
1963
1495
  }, {
1964
- user_accounts: {
1965
- usdc_ledger: {
1966
- ledger: {
1967
- weights: {
1968
- asset_weight: string | number;
1969
- initial_liability_weight: string | number;
1970
- maintenance_liability_weight: string | number;
1971
- };
1972
- asset: string | number;
1973
- liability: string | number;
1974
- };
1975
- unrealized_loss_borrow: string | number;
1976
- unsettled_perp_profit: string | number;
1977
- };
1978
- spot_ledgers: Record<string, {
1979
- weights: {
1980
- asset_weight: string | number;
1981
- initial_liability_weight: string | number;
1982
- maintenance_liability_weight: string | number;
1983
- };
1984
- asset: string | number;
1985
- liability: string | number;
1496
+ value: {
1497
+ pricing_frequency_seconds: number;
1498
+ prices_info: Record<string, {
1499
+ mark_price: string | number;
1500
+ oracle_price: string | number;
1501
+ publish_timestamp: bigint;
1986
1502
  }>;
1987
- perp_ledgers: Record<string, {
1988
- orders: Record<string, {
1989
- size: string | number;
1990
- price: string | number;
1991
- side: "Bid" | "Ask";
1992
- order_id: bigint;
1993
- reduce_only: boolean;
1994
- filled_size: string | number;
1995
- average_filled_price: string | number;
1996
- tpsl_order_ids: bigint[];
1997
- }>;
1998
- position: {
1999
- size: string | number;
2000
- cost_of_trades: string | number;
2001
- realized_pnl: string | number;
2002
- cached_mark_price: string | number;
2003
- last_accum_funding_applied_per_lot: [string | number, bigint];
2004
- funding_payments_on_side: string | number;
2005
- funding_payments_on_position: string | number;
2006
- };
2007
- user_selected_max_leverage: number;
2008
- tpsls: Record<string, {
2009
- side: "Bid" | "Ask";
2010
- tpsl_order_id: bigint;
2011
- order_price: string | number;
2012
- trigger_price: string | number;
2013
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2014
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2015
- active_size: string | number;
2016
- full_size: string | number;
2017
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2018
- parent_order_id: bigint | null;
2019
- linked_tpsl_order_ids: bigint[];
2020
- }>;
1503
+ premium_index: Record<string, {
1504
+ weighted_premium_sum: string | number;
1505
+ duration_sum: bigint;
1506
+ last_update_timestamp: bigint | null;
2021
1507
  }>;
2022
- }[];
1508
+ funding_rates: Record<string, [string | number, bigint]>;
1509
+ accum_funding_per_lot: Record<string, [string | number, bigint]>;
1510
+ } | null;
2023
1511
  }>;
2024
1512
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2025
1513
  }, "strip", z.ZodTypeAny, {
2026
1514
  data: {
2027
- user_accounts: {
2028
- usdc_ledger: {
2029
- ledger: {
2030
- weights: {
2031
- asset_weight: import("decimal.js").Decimal;
2032
- initial_liability_weight: import("decimal.js").Decimal;
2033
- maintenance_liability_weight: import("decimal.js").Decimal;
2034
- };
2035
- asset: import("decimal.js").Decimal;
2036
- liability: import("decimal.js").Decimal;
2037
- };
2038
- unrealized_loss_borrow: import("decimal.js").Decimal;
2039
- unsettled_perp_profit: import("decimal.js").Decimal;
2040
- };
2041
- spot_ledgers: Map<number, {
2042
- weights: {
2043
- asset_weight: import("decimal.js").Decimal;
2044
- initial_liability_weight: import("decimal.js").Decimal;
2045
- maintenance_liability_weight: import("decimal.js").Decimal;
2046
- };
2047
- asset: import("decimal.js").Decimal;
2048
- liability: import("decimal.js").Decimal;
1515
+ value: {
1516
+ pricing_frequency_seconds: number;
1517
+ prices_info: Map<number, {
1518
+ mark_price: import("decimal.js").Decimal;
1519
+ oracle_price: import("decimal.js").Decimal;
1520
+ publish_timestamp: bigint;
2049
1521
  }>;
2050
- perp_ledgers: Map<number, {
2051
- orders: Map<bigint, {
2052
- size: import("decimal.js").Decimal;
2053
- price: import("decimal.js").Decimal;
2054
- side: "Bid" | "Ask";
2055
- order_id: bigint;
2056
- reduce_only: boolean;
2057
- filled_size: import("decimal.js").Decimal;
2058
- average_filled_price: import("decimal.js").Decimal;
2059
- tpsl_order_ids: bigint[];
2060
- }>;
2061
- position: {
2062
- size: import("decimal.js").Decimal;
2063
- cost_of_trades: import("decimal.js").Decimal;
2064
- realized_pnl: import("decimal.js").Decimal;
2065
- cached_mark_price: import("decimal.js").Decimal;
2066
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2067
- funding_payments_on_side: import("decimal.js").Decimal;
2068
- funding_payments_on_position: import("decimal.js").Decimal;
2069
- };
2070
- user_selected_max_leverage: number;
2071
- tpsls: Map<bigint, {
2072
- side: "Bid" | "Ask";
2073
- tpsl_order_id: bigint;
2074
- order_price: import("decimal.js").Decimal;
2075
- trigger_price: import("decimal.js").Decimal;
2076
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2077
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2078
- active_size: import("decimal.js").Decimal;
2079
- full_size: import("decimal.js").Decimal;
2080
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2081
- parent_order_id: bigint | null;
2082
- linked_tpsl_order_ids: bigint[];
2083
- }>;
1522
+ premium_index: Map<number, {
1523
+ weighted_premium_sum: import("decimal.js").Decimal;
1524
+ duration_sum: bigint;
1525
+ last_update_timestamp: bigint | null;
2084
1526
  }>;
2085
- }[];
2086
- };
2087
- meta: Map<unknown, unknown> | null;
2088
- }, {
2089
- data: {
2090
- user_accounts: {
2091
- usdc_ledger: {
2092
- ledger: {
2093
- weights: {
2094
- asset_weight: string | number;
2095
- initial_liability_weight: string | number;
2096
- maintenance_liability_weight: string | number;
2097
- };
2098
- asset: string | number;
2099
- liability: string | number;
2100
- };
2101
- unrealized_loss_borrow: string | number;
2102
- unsettled_perp_profit: string | number;
2103
- };
2104
- spot_ledgers: Record<string, {
2105
- weights: {
2106
- asset_weight: string | number;
2107
- initial_liability_weight: string | number;
2108
- maintenance_liability_weight: string | number;
2109
- };
2110
- asset: string | number;
2111
- liability: string | number;
2112
- }>;
2113
- perp_ledgers: Record<string, {
2114
- orders: Record<string, {
2115
- size: string | number;
2116
- price: string | number;
2117
- side: "Bid" | "Ask";
2118
- order_id: bigint;
2119
- reduce_only: boolean;
2120
- filled_size: string | number;
2121
- average_filled_price: string | number;
2122
- tpsl_order_ids: bigint[];
2123
- }>;
2124
- position: {
2125
- size: string | number;
2126
- cost_of_trades: string | number;
2127
- realized_pnl: string | number;
2128
- cached_mark_price: string | number;
2129
- last_accum_funding_applied_per_lot: [string | number, bigint];
2130
- funding_payments_on_side: string | number;
2131
- funding_payments_on_position: string | number;
2132
- };
2133
- user_selected_max_leverage: number;
2134
- tpsls: Record<string, {
2135
- side: "Bid" | "Ask";
2136
- tpsl_order_id: bigint;
2137
- order_price: string | number;
2138
- trigger_price: string | number;
2139
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2140
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2141
- active_size: string | number;
2142
- full_size: string | number;
2143
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2144
- parent_order_id: bigint | null;
2145
- linked_tpsl_order_ids: bigint[];
2146
- }>;
2147
- }>;
2148
- }[];
2149
- };
2150
- meta: Record<string, unknown> | null;
2151
- }>;
2152
- readonly Pricing: z.ZodObject<{
2153
- data: z.ZodObject<{
2154
- value: z.ZodNullable<z.ZodObject<{
2155
- pricing_frequency_seconds: z.ZodNumber;
2156
- prices_info: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2157
- mark_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2158
- oracle_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2159
- publish_timestamp: z.ZodBigInt;
2160
- }, "strip", z.ZodTypeAny, {
2161
- mark_price: import("decimal.js").Decimal;
2162
- oracle_price: import("decimal.js").Decimal;
2163
- publish_timestamp: bigint;
2164
- }, {
2165
- mark_price: string | number;
2166
- oracle_price: string | number;
2167
- publish_timestamp: bigint;
2168
- }>>, Map<number, {
2169
- mark_price: import("decimal.js").Decimal;
2170
- oracle_price: import("decimal.js").Decimal;
2171
- publish_timestamp: bigint;
2172
- }>, Record<string, {
2173
- mark_price: string | number;
2174
- oracle_price: string | number;
2175
- publish_timestamp: bigint;
2176
- }>>;
2177
- premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2178
- weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2179
- duration_sum: z.ZodBigInt;
2180
- last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
2181
- }, "strip", z.ZodTypeAny, {
2182
- weighted_premium_sum: import("decimal.js").Decimal;
2183
- duration_sum: bigint;
2184
- last_update_timestamp: bigint | null;
2185
- }, {
2186
- weighted_premium_sum: string | number;
2187
- duration_sum: bigint;
2188
- last_update_timestamp: bigint | null;
2189
- }>>, Map<number, {
2190
- weighted_premium_sum: import("decimal.js").Decimal;
2191
- duration_sum: bigint;
2192
- last_update_timestamp: bigint | null;
2193
- }>, Record<string, {
2194
- weighted_premium_sum: string | number;
2195
- duration_sum: bigint;
2196
- last_update_timestamp: bigint | null;
2197
- }>>;
2198
- funding_rates: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
2199
- accum_funding_per_lot: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>>, Map<number, [import("decimal.js").Decimal, bigint]>, Record<string, [string | number, bigint]>>;
2200
- }, "strip", z.ZodTypeAny, {
2201
- pricing_frequency_seconds: number;
2202
- prices_info: Map<number, {
2203
- mark_price: import("decimal.js").Decimal;
2204
- oracle_price: import("decimal.js").Decimal;
2205
- publish_timestamp: bigint;
2206
- }>;
2207
- premium_index: Map<number, {
2208
- weighted_premium_sum: import("decimal.js").Decimal;
2209
- duration_sum: bigint;
2210
- last_update_timestamp: bigint | null;
2211
- }>;
2212
- funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
2213
- accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
2214
- }, {
2215
- pricing_frequency_seconds: number;
2216
- prices_info: Record<string, {
2217
- mark_price: string | number;
2218
- oracle_price: string | number;
2219
- publish_timestamp: bigint;
2220
- }>;
2221
- premium_index: Record<string, {
2222
- weighted_premium_sum: string | number;
2223
- duration_sum: bigint;
2224
- last_update_timestamp: bigint | null;
2225
- }>;
2226
- funding_rates: Record<string, [string | number, bigint]>;
2227
- accum_funding_per_lot: Record<string, [string | number, bigint]>;
2228
- }>>;
2229
- }, "strip", z.ZodTypeAny, {
2230
- value: {
2231
- pricing_frequency_seconds: number;
2232
- prices_info: Map<number, {
2233
- mark_price: import("decimal.js").Decimal;
2234
- oracle_price: import("decimal.js").Decimal;
2235
- publish_timestamp: bigint;
2236
- }>;
2237
- premium_index: Map<number, {
2238
- weighted_premium_sum: import("decimal.js").Decimal;
2239
- duration_sum: bigint;
2240
- last_update_timestamp: bigint | null;
2241
- }>;
2242
- funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
2243
- accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
2244
- } | null;
2245
- }, {
2246
- value: {
2247
- pricing_frequency_seconds: number;
2248
- prices_info: Record<string, {
2249
- mark_price: string | number;
2250
- oracle_price: string | number;
2251
- publish_timestamp: bigint;
2252
- }>;
2253
- premium_index: Record<string, {
2254
- weighted_premium_sum: string | number;
2255
- duration_sum: bigint;
2256
- last_update_timestamp: bigint | null;
2257
- }>;
2258
- funding_rates: Record<string, [string | number, bigint]>;
2259
- accum_funding_per_lot: Record<string, [string | number, bigint]>;
2260
- } | null;
2261
- }>;
2262
- meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2263
- }, "strip", z.ZodTypeAny, {
2264
- data: {
2265
- value: {
2266
- pricing_frequency_seconds: number;
2267
- prices_info: Map<number, {
2268
- mark_price: import("decimal.js").Decimal;
2269
- oracle_price: import("decimal.js").Decimal;
2270
- publish_timestamp: bigint;
2271
- }>;
2272
- premium_index: Map<number, {
2273
- weighted_premium_sum: import("decimal.js").Decimal;
2274
- duration_sum: bigint;
2275
- last_update_timestamp: bigint | null;
2276
- }>;
2277
- funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
2278
- accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
2279
- } | null;
1527
+ funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
1528
+ accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
1529
+ } | null;
2280
1530
  };
2281
1531
  meta: Map<unknown, unknown> | null;
2282
1532
  }, {
@@ -2505,35 +1755,901 @@ export declare const ResponseSchemas: {
2505
1755
  asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
2506
1756
  };
2507
1757
  }, {
2508
- orderbook_l2: {
2509
- asset_id: number;
2510
- bids: [string | number, string | number][];
2511
- asks: [string | number, string | number][];
2512
- };
1758
+ orderbook_l2: {
1759
+ asset_id: number;
1760
+ bids: [string | number, string | number][];
1761
+ asks: [string | number, string | number][];
1762
+ };
1763
+ }>;
1764
+ meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ data: {
1767
+ orderbook_l2: {
1768
+ asset_id: number;
1769
+ bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
1770
+ asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
1771
+ };
1772
+ };
1773
+ meta: Map<unknown, unknown> | null;
1774
+ }, {
1775
+ data: {
1776
+ orderbook_l2: {
1777
+ asset_id: number;
1778
+ bids: [string | number, string | number][];
1779
+ asks: [string | number, string | number][];
1780
+ };
1781
+ };
1782
+ meta: Record<string, unknown> | null;
1783
+ }>;
1784
+ readonly UserAccounts: z.ZodObject<{
1785
+ data: z.ZodObject<{
1786
+ user_accounts: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
1787
+ usdc_ledger: z.ZodObject<{
1788
+ ledger: z.ZodObject<{
1789
+ weights: z.ZodObject<{
1790
+ asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1791
+ initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1792
+ maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1793
+ }, "strip", z.ZodTypeAny, {
1794
+ asset_weight: import("decimal.js").Decimal;
1795
+ initial_liability_weight: import("decimal.js").Decimal;
1796
+ maintenance_liability_weight: import("decimal.js").Decimal;
1797
+ }, {
1798
+ asset_weight: string | number;
1799
+ initial_liability_weight: string | number;
1800
+ maintenance_liability_weight: string | number;
1801
+ }>;
1802
+ asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1803
+ liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ weights: {
1806
+ asset_weight: import("decimal.js").Decimal;
1807
+ initial_liability_weight: import("decimal.js").Decimal;
1808
+ maintenance_liability_weight: import("decimal.js").Decimal;
1809
+ };
1810
+ asset: import("decimal.js").Decimal;
1811
+ liability: import("decimal.js").Decimal;
1812
+ }, {
1813
+ weights: {
1814
+ asset_weight: string | number;
1815
+ initial_liability_weight: string | number;
1816
+ maintenance_liability_weight: string | number;
1817
+ };
1818
+ asset: string | number;
1819
+ liability: string | number;
1820
+ }>;
1821
+ unrealized_loss_borrow: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1822
+ unsettled_perp_profit: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ ledger: {
1825
+ weights: {
1826
+ asset_weight: import("decimal.js").Decimal;
1827
+ initial_liability_weight: import("decimal.js").Decimal;
1828
+ maintenance_liability_weight: import("decimal.js").Decimal;
1829
+ };
1830
+ asset: import("decimal.js").Decimal;
1831
+ liability: import("decimal.js").Decimal;
1832
+ };
1833
+ unrealized_loss_borrow: import("decimal.js").Decimal;
1834
+ unsettled_perp_profit: import("decimal.js").Decimal;
1835
+ }, {
1836
+ ledger: {
1837
+ weights: {
1838
+ asset_weight: string | number;
1839
+ initial_liability_weight: string | number;
1840
+ maintenance_liability_weight: string | number;
1841
+ };
1842
+ asset: string | number;
1843
+ liability: string | number;
1844
+ };
1845
+ unrealized_loss_borrow: string | number;
1846
+ unsettled_perp_profit: string | number;
1847
+ }>;
1848
+ spot_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1849
+ weights: z.ZodObject<{
1850
+ asset_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1851
+ initial_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1852
+ maintenance_liability_weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1853
+ }, "strip", z.ZodTypeAny, {
1854
+ asset_weight: import("decimal.js").Decimal;
1855
+ initial_liability_weight: import("decimal.js").Decimal;
1856
+ maintenance_liability_weight: import("decimal.js").Decimal;
1857
+ }, {
1858
+ asset_weight: string | number;
1859
+ initial_liability_weight: string | number;
1860
+ maintenance_liability_weight: string | number;
1861
+ }>;
1862
+ asset: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1863
+ liability: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ weights: {
1866
+ asset_weight: import("decimal.js").Decimal;
1867
+ initial_liability_weight: import("decimal.js").Decimal;
1868
+ maintenance_liability_weight: import("decimal.js").Decimal;
1869
+ };
1870
+ asset: import("decimal.js").Decimal;
1871
+ liability: import("decimal.js").Decimal;
1872
+ }, {
1873
+ weights: {
1874
+ asset_weight: string | number;
1875
+ initial_liability_weight: string | number;
1876
+ maintenance_liability_weight: string | number;
1877
+ };
1878
+ asset: string | number;
1879
+ liability: string | number;
1880
+ }>>, Map<number, {
1881
+ weights: {
1882
+ asset_weight: import("decimal.js").Decimal;
1883
+ initial_liability_weight: import("decimal.js").Decimal;
1884
+ maintenance_liability_weight: import("decimal.js").Decimal;
1885
+ };
1886
+ asset: import("decimal.js").Decimal;
1887
+ liability: import("decimal.js").Decimal;
1888
+ }>, Record<string, {
1889
+ weights: {
1890
+ asset_weight: string | number;
1891
+ initial_liability_weight: string | number;
1892
+ maintenance_liability_weight: string | number;
1893
+ };
1894
+ asset: string | number;
1895
+ liability: string | number;
1896
+ }>>;
1897
+ perp_ledgers: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1898
+ orders: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1899
+ size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1900
+ price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1901
+ side: z.ZodEnum<["Bid", "Ask"]>;
1902
+ order_id: z.ZodBigInt;
1903
+ reduce_only: z.ZodBoolean;
1904
+ filled_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1905
+ average_filled_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1906
+ tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
1907
+ }, "strip", z.ZodTypeAny, {
1908
+ size: import("decimal.js").Decimal;
1909
+ price: import("decimal.js").Decimal;
1910
+ side: "Bid" | "Ask";
1911
+ order_id: bigint;
1912
+ reduce_only: boolean;
1913
+ filled_size: import("decimal.js").Decimal;
1914
+ average_filled_price: import("decimal.js").Decimal;
1915
+ tpsl_order_ids: bigint[];
1916
+ }, {
1917
+ size: string | number;
1918
+ price: string | number;
1919
+ side: "Bid" | "Ask";
1920
+ order_id: bigint;
1921
+ reduce_only: boolean;
1922
+ filled_size: string | number;
1923
+ average_filled_price: string | number;
1924
+ tpsl_order_ids: bigint[];
1925
+ }>>, Map<bigint, {
1926
+ size: import("decimal.js").Decimal;
1927
+ price: import("decimal.js").Decimal;
1928
+ side: "Bid" | "Ask";
1929
+ order_id: bigint;
1930
+ reduce_only: boolean;
1931
+ filled_size: import("decimal.js").Decimal;
1932
+ average_filled_price: import("decimal.js").Decimal;
1933
+ tpsl_order_ids: bigint[];
1934
+ }>, Record<string, {
1935
+ size: string | number;
1936
+ price: string | number;
1937
+ side: "Bid" | "Ask";
1938
+ order_id: bigint;
1939
+ reduce_only: boolean;
1940
+ filled_size: string | number;
1941
+ average_filled_price: string | number;
1942
+ tpsl_order_ids: bigint[];
1943
+ }>>;
1944
+ position: z.ZodObject<{
1945
+ size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1946
+ cost_of_trades: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1947
+ realized_pnl: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1948
+ cached_mark_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1949
+ last_accum_funding_applied_per_lot: z.ZodTuple<[z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>, z.ZodBigInt], null>;
1950
+ funding_payments_on_side: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1951
+ funding_payments_on_position: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ size: import("decimal.js").Decimal;
1954
+ cost_of_trades: import("decimal.js").Decimal;
1955
+ realized_pnl: import("decimal.js").Decimal;
1956
+ cached_mark_price: import("decimal.js").Decimal;
1957
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1958
+ funding_payments_on_side: import("decimal.js").Decimal;
1959
+ funding_payments_on_position: import("decimal.js").Decimal;
1960
+ }, {
1961
+ size: string | number;
1962
+ cost_of_trades: string | number;
1963
+ realized_pnl: string | number;
1964
+ cached_mark_price: string | number;
1965
+ last_accum_funding_applied_per_lot: [string | number, bigint];
1966
+ funding_payments_on_side: string | number;
1967
+ funding_payments_on_position: string | number;
1968
+ }>;
1969
+ user_selected_max_leverage: z.ZodNumber;
1970
+ tpsls: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
1971
+ side: z.ZodEnum<["Bid", "Ask"]>;
1972
+ tpsl_order_id: z.ZodBigInt;
1973
+ order_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1974
+ trigger_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1975
+ trigger_direction: z.ZodEnum<["GreaterThanOrEqual", "LessThanOrEqual"]>;
1976
+ tpsl_price_condition: z.ZodEnum<["Mark", "Oracle", "LastTrade"]>;
1977
+ active_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1978
+ full_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
1979
+ order_type: z.ZodEnum<["Limit", "PostOnly", "FillOrKill", "ImmediateOrCancel", "PostOnlySlide", "PostOnlyFront"]>;
1980
+ parent_order_id: z.ZodNullable<z.ZodBigInt>;
1981
+ linked_tpsl_order_ids: z.ZodArray<z.ZodBigInt, "many">;
1982
+ }, "strip", z.ZodTypeAny, {
1983
+ side: "Bid" | "Ask";
1984
+ tpsl_order_id: bigint;
1985
+ order_price: import("decimal.js").Decimal;
1986
+ trigger_price: import("decimal.js").Decimal;
1987
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1988
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1989
+ active_size: import("decimal.js").Decimal;
1990
+ full_size: import("decimal.js").Decimal;
1991
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1992
+ parent_order_id: bigint | null;
1993
+ linked_tpsl_order_ids: bigint[];
1994
+ }, {
1995
+ side: "Bid" | "Ask";
1996
+ tpsl_order_id: bigint;
1997
+ order_price: string | number;
1998
+ trigger_price: string | number;
1999
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2000
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2001
+ active_size: string | number;
2002
+ full_size: string | number;
2003
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2004
+ parent_order_id: bigint | null;
2005
+ linked_tpsl_order_ids: bigint[];
2006
+ }>>, Map<bigint, {
2007
+ side: "Bid" | "Ask";
2008
+ tpsl_order_id: bigint;
2009
+ order_price: import("decimal.js").Decimal;
2010
+ trigger_price: import("decimal.js").Decimal;
2011
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2012
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2013
+ active_size: import("decimal.js").Decimal;
2014
+ full_size: import("decimal.js").Decimal;
2015
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2016
+ parent_order_id: bigint | null;
2017
+ linked_tpsl_order_ids: bigint[];
2018
+ }>, Record<string, {
2019
+ side: "Bid" | "Ask";
2020
+ tpsl_order_id: bigint;
2021
+ order_price: string | number;
2022
+ trigger_price: string | number;
2023
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2024
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2025
+ active_size: string | number;
2026
+ full_size: string | number;
2027
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2028
+ parent_order_id: bigint | null;
2029
+ linked_tpsl_order_ids: bigint[];
2030
+ }>>;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ orders: Map<bigint, {
2033
+ size: import("decimal.js").Decimal;
2034
+ price: import("decimal.js").Decimal;
2035
+ side: "Bid" | "Ask";
2036
+ order_id: bigint;
2037
+ reduce_only: boolean;
2038
+ filled_size: import("decimal.js").Decimal;
2039
+ average_filled_price: import("decimal.js").Decimal;
2040
+ tpsl_order_ids: bigint[];
2041
+ }>;
2042
+ position: {
2043
+ size: import("decimal.js").Decimal;
2044
+ cost_of_trades: import("decimal.js").Decimal;
2045
+ realized_pnl: import("decimal.js").Decimal;
2046
+ cached_mark_price: import("decimal.js").Decimal;
2047
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2048
+ funding_payments_on_side: import("decimal.js").Decimal;
2049
+ funding_payments_on_position: import("decimal.js").Decimal;
2050
+ };
2051
+ user_selected_max_leverage: number;
2052
+ tpsls: Map<bigint, {
2053
+ side: "Bid" | "Ask";
2054
+ tpsl_order_id: bigint;
2055
+ order_price: import("decimal.js").Decimal;
2056
+ trigger_price: import("decimal.js").Decimal;
2057
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2058
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2059
+ active_size: import("decimal.js").Decimal;
2060
+ full_size: import("decimal.js").Decimal;
2061
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2062
+ parent_order_id: bigint | null;
2063
+ linked_tpsl_order_ids: bigint[];
2064
+ }>;
2065
+ }, {
2066
+ orders: Record<string, {
2067
+ size: string | number;
2068
+ price: string | number;
2069
+ side: "Bid" | "Ask";
2070
+ order_id: bigint;
2071
+ reduce_only: boolean;
2072
+ filled_size: string | number;
2073
+ average_filled_price: string | number;
2074
+ tpsl_order_ids: bigint[];
2075
+ }>;
2076
+ position: {
2077
+ size: string | number;
2078
+ cost_of_trades: string | number;
2079
+ realized_pnl: string | number;
2080
+ cached_mark_price: string | number;
2081
+ last_accum_funding_applied_per_lot: [string | number, bigint];
2082
+ funding_payments_on_side: string | number;
2083
+ funding_payments_on_position: string | number;
2084
+ };
2085
+ user_selected_max_leverage: number;
2086
+ tpsls: Record<string, {
2087
+ side: "Bid" | "Ask";
2088
+ tpsl_order_id: bigint;
2089
+ order_price: string | number;
2090
+ trigger_price: string | number;
2091
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2092
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2093
+ active_size: string | number;
2094
+ full_size: string | number;
2095
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2096
+ parent_order_id: bigint | null;
2097
+ linked_tpsl_order_ids: bigint[];
2098
+ }>;
2099
+ }>>, Map<number, {
2100
+ orders: Map<bigint, {
2101
+ size: import("decimal.js").Decimal;
2102
+ price: import("decimal.js").Decimal;
2103
+ side: "Bid" | "Ask";
2104
+ order_id: bigint;
2105
+ reduce_only: boolean;
2106
+ filled_size: import("decimal.js").Decimal;
2107
+ average_filled_price: import("decimal.js").Decimal;
2108
+ tpsl_order_ids: bigint[];
2109
+ }>;
2110
+ position: {
2111
+ size: import("decimal.js").Decimal;
2112
+ cost_of_trades: import("decimal.js").Decimal;
2113
+ realized_pnl: import("decimal.js").Decimal;
2114
+ cached_mark_price: import("decimal.js").Decimal;
2115
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2116
+ funding_payments_on_side: import("decimal.js").Decimal;
2117
+ funding_payments_on_position: import("decimal.js").Decimal;
2118
+ };
2119
+ user_selected_max_leverage: number;
2120
+ tpsls: Map<bigint, {
2121
+ side: "Bid" | "Ask";
2122
+ tpsl_order_id: bigint;
2123
+ order_price: import("decimal.js").Decimal;
2124
+ trigger_price: import("decimal.js").Decimal;
2125
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2126
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2127
+ active_size: import("decimal.js").Decimal;
2128
+ full_size: import("decimal.js").Decimal;
2129
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2130
+ parent_order_id: bigint | null;
2131
+ linked_tpsl_order_ids: bigint[];
2132
+ }>;
2133
+ }>, Record<string, {
2134
+ orders: Record<string, {
2135
+ size: string | number;
2136
+ price: string | number;
2137
+ side: "Bid" | "Ask";
2138
+ order_id: bigint;
2139
+ reduce_only: boolean;
2140
+ filled_size: string | number;
2141
+ average_filled_price: string | number;
2142
+ tpsl_order_ids: bigint[];
2143
+ }>;
2144
+ position: {
2145
+ size: string | number;
2146
+ cost_of_trades: string | number;
2147
+ realized_pnl: string | number;
2148
+ cached_mark_price: string | number;
2149
+ last_accum_funding_applied_per_lot: [string | number, bigint];
2150
+ funding_payments_on_side: string | number;
2151
+ funding_payments_on_position: string | number;
2152
+ };
2153
+ user_selected_max_leverage: number;
2154
+ tpsls: Record<string, {
2155
+ side: "Bid" | "Ask";
2156
+ tpsl_order_id: bigint;
2157
+ order_price: string | number;
2158
+ trigger_price: string | number;
2159
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2160
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2161
+ active_size: string | number;
2162
+ full_size: string | number;
2163
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2164
+ parent_order_id: bigint | null;
2165
+ linked_tpsl_order_ids: bigint[];
2166
+ }>;
2167
+ }>>;
2168
+ }, "strip", z.ZodTypeAny, {
2169
+ usdc_ledger: {
2170
+ ledger: {
2171
+ weights: {
2172
+ asset_weight: import("decimal.js").Decimal;
2173
+ initial_liability_weight: import("decimal.js").Decimal;
2174
+ maintenance_liability_weight: import("decimal.js").Decimal;
2175
+ };
2176
+ asset: import("decimal.js").Decimal;
2177
+ liability: import("decimal.js").Decimal;
2178
+ };
2179
+ unrealized_loss_borrow: import("decimal.js").Decimal;
2180
+ unsettled_perp_profit: import("decimal.js").Decimal;
2181
+ };
2182
+ spot_ledgers: Map<number, {
2183
+ weights: {
2184
+ asset_weight: import("decimal.js").Decimal;
2185
+ initial_liability_weight: import("decimal.js").Decimal;
2186
+ maintenance_liability_weight: import("decimal.js").Decimal;
2187
+ };
2188
+ asset: import("decimal.js").Decimal;
2189
+ liability: import("decimal.js").Decimal;
2190
+ }>;
2191
+ perp_ledgers: Map<number, {
2192
+ orders: Map<bigint, {
2193
+ size: import("decimal.js").Decimal;
2194
+ price: import("decimal.js").Decimal;
2195
+ side: "Bid" | "Ask";
2196
+ order_id: bigint;
2197
+ reduce_only: boolean;
2198
+ filled_size: import("decimal.js").Decimal;
2199
+ average_filled_price: import("decimal.js").Decimal;
2200
+ tpsl_order_ids: bigint[];
2201
+ }>;
2202
+ position: {
2203
+ size: import("decimal.js").Decimal;
2204
+ cost_of_trades: import("decimal.js").Decimal;
2205
+ realized_pnl: import("decimal.js").Decimal;
2206
+ cached_mark_price: import("decimal.js").Decimal;
2207
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2208
+ funding_payments_on_side: import("decimal.js").Decimal;
2209
+ funding_payments_on_position: import("decimal.js").Decimal;
2210
+ };
2211
+ user_selected_max_leverage: number;
2212
+ tpsls: Map<bigint, {
2213
+ side: "Bid" | "Ask";
2214
+ tpsl_order_id: bigint;
2215
+ order_price: import("decimal.js").Decimal;
2216
+ trigger_price: import("decimal.js").Decimal;
2217
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2218
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2219
+ active_size: import("decimal.js").Decimal;
2220
+ full_size: import("decimal.js").Decimal;
2221
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2222
+ parent_order_id: bigint | null;
2223
+ linked_tpsl_order_ids: bigint[];
2224
+ }>;
2225
+ }>;
2226
+ }, {
2227
+ usdc_ledger: {
2228
+ ledger: {
2229
+ weights: {
2230
+ asset_weight: string | number;
2231
+ initial_liability_weight: string | number;
2232
+ maintenance_liability_weight: string | number;
2233
+ };
2234
+ asset: string | number;
2235
+ liability: string | number;
2236
+ };
2237
+ unrealized_loss_borrow: string | number;
2238
+ unsettled_perp_profit: string | number;
2239
+ };
2240
+ spot_ledgers: Record<string, {
2241
+ weights: {
2242
+ asset_weight: string | number;
2243
+ initial_liability_weight: string | number;
2244
+ maintenance_liability_weight: string | number;
2245
+ };
2246
+ asset: string | number;
2247
+ liability: string | number;
2248
+ }>;
2249
+ perp_ledgers: Record<string, {
2250
+ orders: Record<string, {
2251
+ size: string | number;
2252
+ price: string | number;
2253
+ side: "Bid" | "Ask";
2254
+ order_id: bigint;
2255
+ reduce_only: boolean;
2256
+ filled_size: string | number;
2257
+ average_filled_price: string | number;
2258
+ tpsl_order_ids: bigint[];
2259
+ }>;
2260
+ position: {
2261
+ size: string | number;
2262
+ cost_of_trades: string | number;
2263
+ realized_pnl: string | number;
2264
+ cached_mark_price: string | number;
2265
+ last_accum_funding_applied_per_lot: [string | number, bigint];
2266
+ funding_payments_on_side: string | number;
2267
+ funding_payments_on_position: string | number;
2268
+ };
2269
+ user_selected_max_leverage: number;
2270
+ tpsls: Record<string, {
2271
+ side: "Bid" | "Ask";
2272
+ tpsl_order_id: bigint;
2273
+ order_price: string | number;
2274
+ trigger_price: string | number;
2275
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2276
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2277
+ active_size: string | number;
2278
+ full_size: string | number;
2279
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2280
+ parent_order_id: bigint | null;
2281
+ linked_tpsl_order_ids: bigint[];
2282
+ }>;
2283
+ }>;
2284
+ }>>>, Map<string, {
2285
+ usdc_ledger: {
2286
+ ledger: {
2287
+ weights: {
2288
+ asset_weight: import("decimal.js").Decimal;
2289
+ initial_liability_weight: import("decimal.js").Decimal;
2290
+ maintenance_liability_weight: import("decimal.js").Decimal;
2291
+ };
2292
+ asset: import("decimal.js").Decimal;
2293
+ liability: import("decimal.js").Decimal;
2294
+ };
2295
+ unrealized_loss_borrow: import("decimal.js").Decimal;
2296
+ unsettled_perp_profit: import("decimal.js").Decimal;
2297
+ };
2298
+ spot_ledgers: Map<number, {
2299
+ weights: {
2300
+ asset_weight: import("decimal.js").Decimal;
2301
+ initial_liability_weight: import("decimal.js").Decimal;
2302
+ maintenance_liability_weight: import("decimal.js").Decimal;
2303
+ };
2304
+ asset: import("decimal.js").Decimal;
2305
+ liability: import("decimal.js").Decimal;
2306
+ }>;
2307
+ perp_ledgers: Map<number, {
2308
+ orders: Map<bigint, {
2309
+ size: import("decimal.js").Decimal;
2310
+ price: import("decimal.js").Decimal;
2311
+ side: "Bid" | "Ask";
2312
+ order_id: bigint;
2313
+ reduce_only: boolean;
2314
+ filled_size: import("decimal.js").Decimal;
2315
+ average_filled_price: import("decimal.js").Decimal;
2316
+ tpsl_order_ids: bigint[];
2317
+ }>;
2318
+ position: {
2319
+ size: import("decimal.js").Decimal;
2320
+ cost_of_trades: import("decimal.js").Decimal;
2321
+ realized_pnl: import("decimal.js").Decimal;
2322
+ cached_mark_price: import("decimal.js").Decimal;
2323
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2324
+ funding_payments_on_side: import("decimal.js").Decimal;
2325
+ funding_payments_on_position: import("decimal.js").Decimal;
2326
+ };
2327
+ user_selected_max_leverage: number;
2328
+ tpsls: Map<bigint, {
2329
+ side: "Bid" | "Ask";
2330
+ tpsl_order_id: bigint;
2331
+ order_price: import("decimal.js").Decimal;
2332
+ trigger_price: import("decimal.js").Decimal;
2333
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2334
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2335
+ active_size: import("decimal.js").Decimal;
2336
+ full_size: import("decimal.js").Decimal;
2337
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2338
+ parent_order_id: bigint | null;
2339
+ linked_tpsl_order_ids: bigint[];
2340
+ }>;
2341
+ }>;
2342
+ } | null>, Record<string, {
2343
+ usdc_ledger: {
2344
+ ledger: {
2345
+ weights: {
2346
+ asset_weight: string | number;
2347
+ initial_liability_weight: string | number;
2348
+ maintenance_liability_weight: string | number;
2349
+ };
2350
+ asset: string | number;
2351
+ liability: string | number;
2352
+ };
2353
+ unrealized_loss_borrow: string | number;
2354
+ unsettled_perp_profit: string | number;
2355
+ };
2356
+ spot_ledgers: Record<string, {
2357
+ weights: {
2358
+ asset_weight: string | number;
2359
+ initial_liability_weight: string | number;
2360
+ maintenance_liability_weight: string | number;
2361
+ };
2362
+ asset: string | number;
2363
+ liability: string | number;
2364
+ }>;
2365
+ perp_ledgers: Record<string, {
2366
+ orders: Record<string, {
2367
+ size: string | number;
2368
+ price: string | number;
2369
+ side: "Bid" | "Ask";
2370
+ order_id: bigint;
2371
+ reduce_only: boolean;
2372
+ filled_size: string | number;
2373
+ average_filled_price: string | number;
2374
+ tpsl_order_ids: bigint[];
2375
+ }>;
2376
+ position: {
2377
+ size: string | number;
2378
+ cost_of_trades: string | number;
2379
+ realized_pnl: string | number;
2380
+ cached_mark_price: string | number;
2381
+ last_accum_funding_applied_per_lot: [string | number, bigint];
2382
+ funding_payments_on_side: string | number;
2383
+ funding_payments_on_position: string | number;
2384
+ };
2385
+ user_selected_max_leverage: number;
2386
+ tpsls: Record<string, {
2387
+ side: "Bid" | "Ask";
2388
+ tpsl_order_id: bigint;
2389
+ order_price: string | number;
2390
+ trigger_price: string | number;
2391
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2392
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2393
+ active_size: string | number;
2394
+ full_size: string | number;
2395
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2396
+ parent_order_id: bigint | null;
2397
+ linked_tpsl_order_ids: bigint[];
2398
+ }>;
2399
+ }>;
2400
+ } | null>>;
2401
+ }, "strip", z.ZodTypeAny, {
2402
+ user_accounts: Map<string, {
2403
+ usdc_ledger: {
2404
+ ledger: {
2405
+ weights: {
2406
+ asset_weight: import("decimal.js").Decimal;
2407
+ initial_liability_weight: import("decimal.js").Decimal;
2408
+ maintenance_liability_weight: import("decimal.js").Decimal;
2409
+ };
2410
+ asset: import("decimal.js").Decimal;
2411
+ liability: import("decimal.js").Decimal;
2412
+ };
2413
+ unrealized_loss_borrow: import("decimal.js").Decimal;
2414
+ unsettled_perp_profit: import("decimal.js").Decimal;
2415
+ };
2416
+ spot_ledgers: Map<number, {
2417
+ weights: {
2418
+ asset_weight: import("decimal.js").Decimal;
2419
+ initial_liability_weight: import("decimal.js").Decimal;
2420
+ maintenance_liability_weight: import("decimal.js").Decimal;
2421
+ };
2422
+ asset: import("decimal.js").Decimal;
2423
+ liability: import("decimal.js").Decimal;
2424
+ }>;
2425
+ perp_ledgers: Map<number, {
2426
+ orders: Map<bigint, {
2427
+ size: import("decimal.js").Decimal;
2428
+ price: import("decimal.js").Decimal;
2429
+ side: "Bid" | "Ask";
2430
+ order_id: bigint;
2431
+ reduce_only: boolean;
2432
+ filled_size: import("decimal.js").Decimal;
2433
+ average_filled_price: import("decimal.js").Decimal;
2434
+ tpsl_order_ids: bigint[];
2435
+ }>;
2436
+ position: {
2437
+ size: import("decimal.js").Decimal;
2438
+ cost_of_trades: import("decimal.js").Decimal;
2439
+ realized_pnl: import("decimal.js").Decimal;
2440
+ cached_mark_price: import("decimal.js").Decimal;
2441
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2442
+ funding_payments_on_side: import("decimal.js").Decimal;
2443
+ funding_payments_on_position: import("decimal.js").Decimal;
2444
+ };
2445
+ user_selected_max_leverage: number;
2446
+ tpsls: Map<bigint, {
2447
+ side: "Bid" | "Ask";
2448
+ tpsl_order_id: bigint;
2449
+ order_price: import("decimal.js").Decimal;
2450
+ trigger_price: import("decimal.js").Decimal;
2451
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2452
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2453
+ active_size: import("decimal.js").Decimal;
2454
+ full_size: import("decimal.js").Decimal;
2455
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2456
+ parent_order_id: bigint | null;
2457
+ linked_tpsl_order_ids: bigint[];
2458
+ }>;
2459
+ }>;
2460
+ } | null>;
2461
+ }, {
2462
+ user_accounts: Record<string, {
2463
+ usdc_ledger: {
2464
+ ledger: {
2465
+ weights: {
2466
+ asset_weight: string | number;
2467
+ initial_liability_weight: string | number;
2468
+ maintenance_liability_weight: string | number;
2469
+ };
2470
+ asset: string | number;
2471
+ liability: string | number;
2472
+ };
2473
+ unrealized_loss_borrow: string | number;
2474
+ unsettled_perp_profit: string | number;
2475
+ };
2476
+ spot_ledgers: Record<string, {
2477
+ weights: {
2478
+ asset_weight: string | number;
2479
+ initial_liability_weight: string | number;
2480
+ maintenance_liability_weight: string | number;
2481
+ };
2482
+ asset: string | number;
2483
+ liability: string | number;
2484
+ }>;
2485
+ perp_ledgers: Record<string, {
2486
+ orders: Record<string, {
2487
+ size: string | number;
2488
+ price: string | number;
2489
+ side: "Bid" | "Ask";
2490
+ order_id: bigint;
2491
+ reduce_only: boolean;
2492
+ filled_size: string | number;
2493
+ average_filled_price: string | number;
2494
+ tpsl_order_ids: bigint[];
2495
+ }>;
2496
+ position: {
2497
+ size: string | number;
2498
+ cost_of_trades: string | number;
2499
+ realized_pnl: string | number;
2500
+ cached_mark_price: string | number;
2501
+ last_accum_funding_applied_per_lot: [string | number, bigint];
2502
+ funding_payments_on_side: string | number;
2503
+ funding_payments_on_position: string | number;
2504
+ };
2505
+ user_selected_max_leverage: number;
2506
+ tpsls: Record<string, {
2507
+ side: "Bid" | "Ask";
2508
+ tpsl_order_id: bigint;
2509
+ order_price: string | number;
2510
+ trigger_price: string | number;
2511
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2512
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2513
+ active_size: string | number;
2514
+ full_size: string | number;
2515
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2516
+ parent_order_id: bigint | null;
2517
+ linked_tpsl_order_ids: bigint[];
2518
+ }>;
2519
+ }>;
2520
+ } | null>;
2513
2521
  }>;
2514
2522
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2515
2523
  }, "strip", z.ZodTypeAny, {
2516
2524
  data: {
2517
- orderbook_l2: {
2518
- asset_id: number;
2519
- bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
2520
- asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
2521
- };
2525
+ user_accounts: Map<string, {
2526
+ usdc_ledger: {
2527
+ ledger: {
2528
+ weights: {
2529
+ asset_weight: import("decimal.js").Decimal;
2530
+ initial_liability_weight: import("decimal.js").Decimal;
2531
+ maintenance_liability_weight: import("decimal.js").Decimal;
2532
+ };
2533
+ asset: import("decimal.js").Decimal;
2534
+ liability: import("decimal.js").Decimal;
2535
+ };
2536
+ unrealized_loss_borrow: import("decimal.js").Decimal;
2537
+ unsettled_perp_profit: import("decimal.js").Decimal;
2538
+ };
2539
+ spot_ledgers: Map<number, {
2540
+ weights: {
2541
+ asset_weight: import("decimal.js").Decimal;
2542
+ initial_liability_weight: import("decimal.js").Decimal;
2543
+ maintenance_liability_weight: import("decimal.js").Decimal;
2544
+ };
2545
+ asset: import("decimal.js").Decimal;
2546
+ liability: import("decimal.js").Decimal;
2547
+ }>;
2548
+ perp_ledgers: Map<number, {
2549
+ orders: Map<bigint, {
2550
+ size: import("decimal.js").Decimal;
2551
+ price: import("decimal.js").Decimal;
2552
+ side: "Bid" | "Ask";
2553
+ order_id: bigint;
2554
+ reduce_only: boolean;
2555
+ filled_size: import("decimal.js").Decimal;
2556
+ average_filled_price: import("decimal.js").Decimal;
2557
+ tpsl_order_ids: bigint[];
2558
+ }>;
2559
+ position: {
2560
+ size: import("decimal.js").Decimal;
2561
+ cost_of_trades: import("decimal.js").Decimal;
2562
+ realized_pnl: import("decimal.js").Decimal;
2563
+ cached_mark_price: import("decimal.js").Decimal;
2564
+ last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2565
+ funding_payments_on_side: import("decimal.js").Decimal;
2566
+ funding_payments_on_position: import("decimal.js").Decimal;
2567
+ };
2568
+ user_selected_max_leverage: number;
2569
+ tpsls: Map<bigint, {
2570
+ side: "Bid" | "Ask";
2571
+ tpsl_order_id: bigint;
2572
+ order_price: import("decimal.js").Decimal;
2573
+ trigger_price: import("decimal.js").Decimal;
2574
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2575
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2576
+ active_size: import("decimal.js").Decimal;
2577
+ full_size: import("decimal.js").Decimal;
2578
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2579
+ parent_order_id: bigint | null;
2580
+ linked_tpsl_order_ids: bigint[];
2581
+ }>;
2582
+ }>;
2583
+ } | null>;
2522
2584
  };
2523
2585
  meta: Map<unknown, unknown> | null;
2524
2586
  }, {
2525
2587
  data: {
2526
- orderbook_l2: {
2527
- asset_id: number;
2528
- bids: [string | number, string | number][];
2529
- asks: [string | number, string | number][];
2530
- };
2588
+ user_accounts: Record<string, {
2589
+ usdc_ledger: {
2590
+ ledger: {
2591
+ weights: {
2592
+ asset_weight: string | number;
2593
+ initial_liability_weight: string | number;
2594
+ maintenance_liability_weight: string | number;
2595
+ };
2596
+ asset: string | number;
2597
+ liability: string | number;
2598
+ };
2599
+ unrealized_loss_borrow: string | number;
2600
+ unsettled_perp_profit: string | number;
2601
+ };
2602
+ spot_ledgers: Record<string, {
2603
+ weights: {
2604
+ asset_weight: string | number;
2605
+ initial_liability_weight: string | number;
2606
+ maintenance_liability_weight: string | number;
2607
+ };
2608
+ asset: string | number;
2609
+ liability: string | number;
2610
+ }>;
2611
+ perp_ledgers: Record<string, {
2612
+ orders: Record<string, {
2613
+ size: string | number;
2614
+ price: string | number;
2615
+ side: "Bid" | "Ask";
2616
+ order_id: bigint;
2617
+ reduce_only: boolean;
2618
+ filled_size: string | number;
2619
+ average_filled_price: string | number;
2620
+ tpsl_order_ids: bigint[];
2621
+ }>;
2622
+ position: {
2623
+ size: string | number;
2624
+ cost_of_trades: string | number;
2625
+ realized_pnl: string | number;
2626
+ cached_mark_price: string | number;
2627
+ last_accum_funding_applied_per_lot: [string | number, bigint];
2628
+ funding_payments_on_side: string | number;
2629
+ funding_payments_on_position: string | number;
2630
+ };
2631
+ user_selected_max_leverage: number;
2632
+ tpsls: Record<string, {
2633
+ side: "Bid" | "Ask";
2634
+ tpsl_order_id: bigint;
2635
+ order_price: string | number;
2636
+ trigger_price: string | number;
2637
+ trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2638
+ tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2639
+ active_size: string | number;
2640
+ full_size: string | number;
2641
+ order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2642
+ parent_order_id: bigint | null;
2643
+ linked_tpsl_order_ids: bigint[];
2644
+ }>;
2645
+ }>;
2646
+ } | null>;
2531
2647
  };
2532
2648
  meta: Record<string, unknown> | null;
2533
2649
  }>;
2534
2650
  readonly BorrowLendMarkets: z.ZodObject<{
2535
2651
  data: z.ZodObject<{
2536
- markets: z.ZodArray<z.ZodObject<{
2652
+ markets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
2537
2653
  is_active: z.ZodBoolean;
2538
2654
  last_update_timestamp: z.ZodBigInt;
2539
2655
  decimals: z.ZodNumber;
@@ -2649,9 +2765,61 @@ export declare const ResponseSchemas: {
2649
2765
  cumulative_deposit_rate: string | number;
2650
2766
  cumulative_borrow_rate: string | number;
2651
2767
  accumulated_protocol_fees: string | number;
2652
- }>, "many">;
2768
+ }>>>, Map<number, {
2769
+ last_update_timestamp: bigint;
2770
+ is_active: boolean;
2771
+ decimals: number;
2772
+ risk_params: {
2773
+ weights: {
2774
+ asset_weight: import("decimal.js").Decimal;
2775
+ initial_liability_weight: import("decimal.js").Decimal;
2776
+ maintenance_liability_weight: import("decimal.js").Decimal;
2777
+ };
2778
+ deposit_limit: import("decimal.js").Decimal;
2779
+ borrow_limit: import("decimal.js").Decimal;
2780
+ liquidation_reward_ratio: import("decimal.js").Decimal;
2781
+ liability_liquidation_limit_ratio: import("decimal.js").Decimal;
2782
+ };
2783
+ rate_params: {
2784
+ optimal_utilisation_rate: import("decimal.js").Decimal;
2785
+ min_borrow_rate: import("decimal.js").Decimal;
2786
+ optimal_borrow_rate: import("decimal.js").Decimal;
2787
+ max_borrow_rate: import("decimal.js").Decimal;
2788
+ };
2789
+ available_amount: import("decimal.js").Decimal;
2790
+ borrowed_amount: import("decimal.js").Decimal;
2791
+ cumulative_deposit_rate: import("decimal.js").Decimal;
2792
+ cumulative_borrow_rate: import("decimal.js").Decimal;
2793
+ accumulated_protocol_fees: import("decimal.js").Decimal;
2794
+ } | null>, Record<string, {
2795
+ last_update_timestamp: bigint;
2796
+ is_active: boolean;
2797
+ decimals: number;
2798
+ risk_params: {
2799
+ weights: {
2800
+ asset_weight: string | number;
2801
+ initial_liability_weight: string | number;
2802
+ maintenance_liability_weight: string | number;
2803
+ };
2804
+ deposit_limit: string | number;
2805
+ borrow_limit: string | number;
2806
+ liquidation_reward_ratio: string | number;
2807
+ liability_liquidation_limit_ratio: string | number;
2808
+ };
2809
+ rate_params: {
2810
+ optimal_utilisation_rate: string | number;
2811
+ min_borrow_rate: string | number;
2812
+ optimal_borrow_rate: string | number;
2813
+ max_borrow_rate: string | number;
2814
+ };
2815
+ available_amount: string | number;
2816
+ borrowed_amount: string | number;
2817
+ cumulative_deposit_rate: string | number;
2818
+ cumulative_borrow_rate: string | number;
2819
+ accumulated_protocol_fees: string | number;
2820
+ } | null>>;
2653
2821
  }, "strip", z.ZodTypeAny, {
2654
- markets: {
2822
+ markets: Map<number, {
2655
2823
  last_update_timestamp: bigint;
2656
2824
  is_active: boolean;
2657
2825
  decimals: number;
@@ -2677,9 +2845,9 @@ export declare const ResponseSchemas: {
2677
2845
  cumulative_deposit_rate: import("decimal.js").Decimal;
2678
2846
  cumulative_borrow_rate: import("decimal.js").Decimal;
2679
2847
  accumulated_protocol_fees: import("decimal.js").Decimal;
2680
- }[];
2848
+ } | null>;
2681
2849
  }, {
2682
- markets: {
2850
+ markets: Record<string, {
2683
2851
  last_update_timestamp: bigint;
2684
2852
  is_active: boolean;
2685
2853
  decimals: number;
@@ -2705,12 +2873,12 @@ export declare const ResponseSchemas: {
2705
2873
  cumulative_deposit_rate: string | number;
2706
2874
  cumulative_borrow_rate: string | number;
2707
2875
  accumulated_protocol_fees: string | number;
2708
- }[];
2876
+ } | null>;
2709
2877
  }>;
2710
2878
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2711
2879
  }, "strip", z.ZodTypeAny, {
2712
2880
  data: {
2713
- markets: {
2881
+ markets: Map<number, {
2714
2882
  last_update_timestamp: bigint;
2715
2883
  is_active: boolean;
2716
2884
  decimals: number;
@@ -2736,12 +2904,12 @@ export declare const ResponseSchemas: {
2736
2904
  cumulative_deposit_rate: import("decimal.js").Decimal;
2737
2905
  cumulative_borrow_rate: import("decimal.js").Decimal;
2738
2906
  accumulated_protocol_fees: import("decimal.js").Decimal;
2739
- }[];
2907
+ } | null>;
2740
2908
  };
2741
2909
  meta: Map<unknown, unknown> | null;
2742
2910
  }, {
2743
2911
  data: {
2744
- markets: {
2912
+ markets: Record<string, {
2745
2913
  last_update_timestamp: bigint;
2746
2914
  is_active: boolean;
2747
2915
  decimals: number;
@@ -2767,13 +2935,13 @@ export declare const ResponseSchemas: {
2767
2935
  cumulative_deposit_rate: string | number;
2768
2936
  cumulative_borrow_rate: string | number;
2769
2937
  accumulated_protocol_fees: string | number;
2770
- }[];
2938
+ } | null>;
2771
2939
  };
2772
2940
  meta: Record<string, unknown> | null;
2773
2941
  }>;
2774
2942
  readonly PerpMarkets: z.ZodObject<{
2775
2943
  data: z.ZodObject<{
2776
- markets: z.ZodArray<z.ZodObject<{
2944
+ markets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
2777
2945
  is_active: z.ZodBoolean;
2778
2946
  min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2779
2947
  min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
@@ -2803,9 +2971,29 @@ export declare const ResponseSchemas: {
2803
2971
  max_funding_rate_clamp: string | number;
2804
2972
  impact_margin: string | number;
2805
2973
  interest_rate: string | number;
2806
- }>, "many">;
2974
+ }>>>, Map<number, {
2975
+ is_active: boolean;
2976
+ min_tick_size: import("decimal.js").Decimal;
2977
+ min_lot_size: import("decimal.js").Decimal;
2978
+ min_interest_rate_clamp: import("decimal.js").Decimal;
2979
+ max_interest_rate_clamp: import("decimal.js").Decimal;
2980
+ min_funding_rate_clamp: import("decimal.js").Decimal;
2981
+ max_funding_rate_clamp: import("decimal.js").Decimal;
2982
+ impact_margin: import("decimal.js").Decimal;
2983
+ interest_rate: import("decimal.js").Decimal;
2984
+ } | null>, Record<string, {
2985
+ is_active: boolean;
2986
+ min_tick_size: string | number;
2987
+ min_lot_size: string | number;
2988
+ min_interest_rate_clamp: string | number;
2989
+ max_interest_rate_clamp: string | number;
2990
+ min_funding_rate_clamp: string | number;
2991
+ max_funding_rate_clamp: string | number;
2992
+ impact_margin: string | number;
2993
+ interest_rate: string | number;
2994
+ } | null>>;
2807
2995
  }, "strip", z.ZodTypeAny, {
2808
- markets: {
2996
+ markets: Map<number, {
2809
2997
  is_active: boolean;
2810
2998
  min_tick_size: import("decimal.js").Decimal;
2811
2999
  min_lot_size: import("decimal.js").Decimal;
@@ -2815,9 +3003,9 @@ export declare const ResponseSchemas: {
2815
3003
  max_funding_rate_clamp: import("decimal.js").Decimal;
2816
3004
  impact_margin: import("decimal.js").Decimal;
2817
3005
  interest_rate: import("decimal.js").Decimal;
2818
- }[];
3006
+ } | null>;
2819
3007
  }, {
2820
- markets: {
3008
+ markets: Record<string, {
2821
3009
  is_active: boolean;
2822
3010
  min_tick_size: string | number;
2823
3011
  min_lot_size: string | number;
@@ -2827,12 +3015,12 @@ export declare const ResponseSchemas: {
2827
3015
  max_funding_rate_clamp: string | number;
2828
3016
  impact_margin: string | number;
2829
3017
  interest_rate: string | number;
2830
- }[];
3018
+ } | null>;
2831
3019
  }>;
2832
3020
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2833
3021
  }, "strip", z.ZodTypeAny, {
2834
3022
  data: {
2835
- markets: {
3023
+ markets: Map<number, {
2836
3024
  is_active: boolean;
2837
3025
  min_tick_size: import("decimal.js").Decimal;
2838
3026
  min_lot_size: import("decimal.js").Decimal;
@@ -2842,12 +3030,12 @@ export declare const ResponseSchemas: {
2842
3030
  max_funding_rate_clamp: import("decimal.js").Decimal;
2843
3031
  impact_margin: import("decimal.js").Decimal;
2844
3032
  interest_rate: import("decimal.js").Decimal;
2845
- }[];
3033
+ } | null>;
2846
3034
  };
2847
3035
  meta: Map<unknown, unknown> | null;
2848
3036
  }, {
2849
3037
  data: {
2850
- markets: {
3038
+ markets: Record<string, {
2851
3039
  is_active: boolean;
2852
3040
  min_tick_size: string | number;
2853
3041
  min_lot_size: string | number;
@@ -2857,7 +3045,7 @@ export declare const ResponseSchemas: {
2857
3045
  max_funding_rate_clamp: string | number;
2858
3046
  impact_margin: string | number;
2859
3047
  interest_rate: string | number;
2860
- }[];
3048
+ } | null>;
2861
3049
  };
2862
3050
  meta: Record<string, unknown> | null;
2863
3051
  }>;