@bulletxyz/bullet-sdk 0.20.0-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,940 +1399,106 @@ export declare const ResponseSchemas: {
1399
1399
  };
1400
1400
  meta: Record<string, unknown> | null;
1401
1401
  }>;
1402
- readonly UserAccounts: z.ZodObject<{
1402
+ readonly Pricing: z.ZodObject<{
1403
1403
  data: z.ZodObject<{
1404
- user_accounts: z.ZodEffects<z.ZodRecord<z.ZodString, 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
- }>;
1901
- }>;
1902
- }>>, Map<string, {
1903
- usdc_ledger: {
1904
- ledger: {
1905
- weights: {
1906
- asset_weight: import("decimal.js").Decimal;
1907
- initial_liability_weight: import("decimal.js").Decimal;
1908
- maintenance_liability_weight: import("decimal.js").Decimal;
1909
- };
1910
- asset: import("decimal.js").Decimal;
1911
- liability: import("decimal.js").Decimal;
1912
- };
1913
- unrealized_loss_borrow: import("decimal.js").Decimal;
1914
- unsettled_perp_profit: import("decimal.js").Decimal;
1915
- };
1916
- spot_ledgers: Map<number, {
1917
- weights: {
1918
- asset_weight: import("decimal.js").Decimal;
1919
- initial_liability_weight: import("decimal.js").Decimal;
1920
- maintenance_liability_weight: import("decimal.js").Decimal;
1921
- };
1922
- asset: import("decimal.js").Decimal;
1923
- liability: import("decimal.js").Decimal;
1924
- }>;
1925
- perp_ledgers: Map<number, {
1926
- orders: Map<bigint, {
1927
- size: import("decimal.js").Decimal;
1928
- price: import("decimal.js").Decimal;
1929
- side: "Bid" | "Ask";
1930
- order_id: bigint;
1931
- reduce_only: boolean;
1932
- filled_size: import("decimal.js").Decimal;
1933
- average_filled_price: import("decimal.js").Decimal;
1934
- tpsl_order_ids: bigint[];
1935
- }>;
1936
- position: {
1937
- size: import("decimal.js").Decimal;
1938
- cost_of_trades: import("decimal.js").Decimal;
1939
- realized_pnl: import("decimal.js").Decimal;
1940
- cached_mark_price: import("decimal.js").Decimal;
1941
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
1942
- funding_payments_on_side: import("decimal.js").Decimal;
1943
- funding_payments_on_position: import("decimal.js").Decimal;
1944
- };
1945
- user_selected_max_leverage: number;
1946
- tpsls: Map<bigint, {
1947
- side: "Bid" | "Ask";
1948
- tpsl_order_id: bigint;
1949
- order_price: import("decimal.js").Decimal;
1950
- trigger_price: import("decimal.js").Decimal;
1951
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
1952
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
1953
- active_size: import("decimal.js").Decimal;
1954
- full_size: import("decimal.js").Decimal;
1955
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
1956
- parent_order_id: bigint | null;
1957
- linked_tpsl_order_ids: bigint[];
1958
- }>;
1959
- }>;
1960
- }>, Record<string, {
1961
- usdc_ledger: {
1962
- ledger: {
1963
- weights: {
1964
- asset_weight: string | number;
1965
- initial_liability_weight: string | number;
1966
- maintenance_liability_weight: string | number;
1967
- };
1968
- asset: string | number;
1969
- liability: string | number;
1970
- };
1971
- unrealized_loss_borrow: string | number;
1972
- unsettled_perp_profit: string | number;
1973
- };
1974
- spot_ledgers: Record<string, {
1975
- weights: {
1976
- asset_weight: string | number;
1977
- initial_liability_weight: string | number;
1978
- maintenance_liability_weight: string | number;
1979
- };
1980
- asset: string | number;
1981
- liability: string | number;
1982
- }>;
1983
- perp_ledgers: Record<string, {
1984
- orders: Record<string, {
1985
- size: string | number;
1986
- price: string | number;
1987
- side: "Bid" | "Ask";
1988
- order_id: bigint;
1989
- reduce_only: boolean;
1990
- filled_size: string | number;
1991
- average_filled_price: string | number;
1992
- tpsl_order_ids: bigint[];
1993
- }>;
1994
- position: {
1995
- size: string | number;
1996
- cost_of_trades: string | number;
1997
- realized_pnl: string | number;
1998
- cached_mark_price: string | number;
1999
- last_accum_funding_applied_per_lot: [string | number, bigint];
2000
- funding_payments_on_side: string | number;
2001
- funding_payments_on_position: string | number;
2002
- };
2003
- user_selected_max_leverage: number;
2004
- tpsls: Record<string, {
2005
- side: "Bid" | "Ask";
2006
- tpsl_order_id: bigint;
2007
- order_price: string | number;
2008
- trigger_price: string | number;
2009
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2010
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2011
- active_size: string | number;
2012
- full_size: string | number;
2013
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2014
- parent_order_id: bigint | null;
2015
- linked_tpsl_order_ids: bigint[];
2016
- }>;
1471
+ premium_index: Record<string, {
1472
+ weighted_premium_sum: string | number;
1473
+ duration_sum: bigint;
1474
+ last_update_timestamp: bigint | null;
2017
1475
  }>;
1476
+ funding_rates: Record<string, [string | number, bigint]>;
1477
+ accum_funding_per_lot: Record<string, [string | number, bigint]>;
2018
1478
  }>>;
2019
1479
  }, "strip", z.ZodTypeAny, {
2020
- user_accounts: Map<string, {
2021
- usdc_ledger: {
2022
- ledger: {
2023
- weights: {
2024
- asset_weight: import("decimal.js").Decimal;
2025
- initial_liability_weight: import("decimal.js").Decimal;
2026
- maintenance_liability_weight: import("decimal.js").Decimal;
2027
- };
2028
- asset: import("decimal.js").Decimal;
2029
- liability: import("decimal.js").Decimal;
2030
- };
2031
- unrealized_loss_borrow: import("decimal.js").Decimal;
2032
- unsettled_perp_profit: import("decimal.js").Decimal;
2033
- };
2034
- spot_ledgers: Map<number, {
2035
- weights: {
2036
- asset_weight: import("decimal.js").Decimal;
2037
- initial_liability_weight: import("decimal.js").Decimal;
2038
- maintenance_liability_weight: import("decimal.js").Decimal;
2039
- };
2040
- asset: import("decimal.js").Decimal;
2041
- 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;
2042
1486
  }>;
2043
- perp_ledgers: Map<number, {
2044
- orders: Map<bigint, {
2045
- size: import("decimal.js").Decimal;
2046
- price: import("decimal.js").Decimal;
2047
- side: "Bid" | "Ask";
2048
- order_id: bigint;
2049
- reduce_only: boolean;
2050
- filled_size: import("decimal.js").Decimal;
2051
- average_filled_price: import("decimal.js").Decimal;
2052
- tpsl_order_ids: bigint[];
2053
- }>;
2054
- position: {
2055
- size: import("decimal.js").Decimal;
2056
- cost_of_trades: import("decimal.js").Decimal;
2057
- realized_pnl: import("decimal.js").Decimal;
2058
- cached_mark_price: import("decimal.js").Decimal;
2059
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2060
- funding_payments_on_side: import("decimal.js").Decimal;
2061
- funding_payments_on_position: import("decimal.js").Decimal;
2062
- };
2063
- user_selected_max_leverage: number;
2064
- tpsls: Map<bigint, {
2065
- side: "Bid" | "Ask";
2066
- tpsl_order_id: bigint;
2067
- order_price: import("decimal.js").Decimal;
2068
- trigger_price: import("decimal.js").Decimal;
2069
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2070
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2071
- active_size: import("decimal.js").Decimal;
2072
- full_size: import("decimal.js").Decimal;
2073
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2074
- parent_order_id: bigint | null;
2075
- linked_tpsl_order_ids: bigint[];
2076
- }>;
1487
+ premium_index: Map<number, {
1488
+ weighted_premium_sum: import("decimal.js").Decimal;
1489
+ duration_sum: bigint;
1490
+ last_update_timestamp: bigint | null;
2077
1491
  }>;
2078
- }>;
1492
+ funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
1493
+ accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
1494
+ } | null;
2079
1495
  }, {
2080
- user_accounts: Record<string, {
2081
- usdc_ledger: {
2082
- ledger: {
2083
- weights: {
2084
- asset_weight: string | number;
2085
- initial_liability_weight: string | number;
2086
- maintenance_liability_weight: string | number;
2087
- };
2088
- asset: string | number;
2089
- liability: string | number;
2090
- };
2091
- unrealized_loss_borrow: string | number;
2092
- unsettled_perp_profit: string | number;
2093
- };
2094
- spot_ledgers: Record<string, {
2095
- weights: {
2096
- asset_weight: string | number;
2097
- initial_liability_weight: string | number;
2098
- maintenance_liability_weight: string | number;
2099
- };
2100
- asset: string | number;
2101
- liability: string | number;
2102
- }>;
2103
- perp_ledgers: Record<string, {
2104
- orders: Record<string, {
2105
- size: string | number;
2106
- price: string | number;
2107
- side: "Bid" | "Ask";
2108
- order_id: bigint;
2109
- reduce_only: boolean;
2110
- filled_size: string | number;
2111
- average_filled_price: string | number;
2112
- tpsl_order_ids: bigint[];
2113
- }>;
2114
- position: {
2115
- size: string | number;
2116
- cost_of_trades: string | number;
2117
- realized_pnl: string | number;
2118
- cached_mark_price: string | number;
2119
- last_accum_funding_applied_per_lot: [string | number, bigint];
2120
- funding_payments_on_side: string | number;
2121
- funding_payments_on_position: string | number;
2122
- };
2123
- user_selected_max_leverage: number;
2124
- tpsls: Record<string, {
2125
- side: "Bid" | "Ask";
2126
- tpsl_order_id: bigint;
2127
- order_price: string | number;
2128
- trigger_price: string | number;
2129
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2130
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2131
- active_size: string | number;
2132
- full_size: string | number;
2133
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2134
- parent_order_id: bigint | null;
2135
- linked_tpsl_order_ids: bigint[];
2136
- }>;
2137
- }>;
2138
- }>;
2139
- }>;
2140
- meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2141
- }, "strip", z.ZodTypeAny, {
2142
- data: {
2143
- user_accounts: Map<string, {
2144
- usdc_ledger: {
2145
- ledger: {
2146
- weights: {
2147
- asset_weight: import("decimal.js").Decimal;
2148
- initial_liability_weight: import("decimal.js").Decimal;
2149
- maintenance_liability_weight: import("decimal.js").Decimal;
2150
- };
2151
- asset: import("decimal.js").Decimal;
2152
- liability: import("decimal.js").Decimal;
2153
- };
2154
- unrealized_loss_borrow: import("decimal.js").Decimal;
2155
- unsettled_perp_profit: import("decimal.js").Decimal;
2156
- };
2157
- spot_ledgers: Map<number, {
2158
- weights: {
2159
- asset_weight: import("decimal.js").Decimal;
2160
- initial_liability_weight: import("decimal.js").Decimal;
2161
- maintenance_liability_weight: import("decimal.js").Decimal;
2162
- };
2163
- asset: import("decimal.js").Decimal;
2164
- liability: import("decimal.js").Decimal;
2165
- }>;
2166
- perp_ledgers: Map<number, {
2167
- orders: Map<bigint, {
2168
- size: import("decimal.js").Decimal;
2169
- price: import("decimal.js").Decimal;
2170
- side: "Bid" | "Ask";
2171
- order_id: bigint;
2172
- reduce_only: boolean;
2173
- filled_size: import("decimal.js").Decimal;
2174
- average_filled_price: import("decimal.js").Decimal;
2175
- tpsl_order_ids: bigint[];
2176
- }>;
2177
- position: {
2178
- size: import("decimal.js").Decimal;
2179
- cost_of_trades: import("decimal.js").Decimal;
2180
- realized_pnl: import("decimal.js").Decimal;
2181
- cached_mark_price: import("decimal.js").Decimal;
2182
- last_accum_funding_applied_per_lot: [import("decimal.js").Decimal, bigint];
2183
- funding_payments_on_side: import("decimal.js").Decimal;
2184
- funding_payments_on_position: import("decimal.js").Decimal;
2185
- };
2186
- user_selected_max_leverage: number;
2187
- tpsls: Map<bigint, {
2188
- side: "Bid" | "Ask";
2189
- tpsl_order_id: bigint;
2190
- order_price: import("decimal.js").Decimal;
2191
- trigger_price: import("decimal.js").Decimal;
2192
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2193
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2194
- active_size: import("decimal.js").Decimal;
2195
- full_size: import("decimal.js").Decimal;
2196
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2197
- parent_order_id: bigint | null;
2198
- linked_tpsl_order_ids: bigint[];
2199
- }>;
2200
- }>;
2201
- }>;
2202
- };
2203
- meta: Map<unknown, unknown> | null;
2204
- }, {
2205
- data: {
2206
- user_accounts: Record<string, {
2207
- usdc_ledger: {
2208
- ledger: {
2209
- weights: {
2210
- asset_weight: string | number;
2211
- initial_liability_weight: string | number;
2212
- maintenance_liability_weight: string | number;
2213
- };
2214
- asset: string | number;
2215
- liability: string | number;
2216
- };
2217
- unrealized_loss_borrow: string | number;
2218
- unsettled_perp_profit: string | number;
2219
- };
2220
- spot_ledgers: Record<string, {
2221
- weights: {
2222
- asset_weight: string | number;
2223
- initial_liability_weight: string | number;
2224
- maintenance_liability_weight: string | number;
2225
- };
2226
- asset: string | number;
2227
- liability: string | number;
2228
- }>;
2229
- perp_ledgers: Record<string, {
2230
- orders: Record<string, {
2231
- size: string | number;
2232
- price: string | number;
2233
- side: "Bid" | "Ask";
2234
- order_id: bigint;
2235
- reduce_only: boolean;
2236
- filled_size: string | number;
2237
- average_filled_price: string | number;
2238
- tpsl_order_ids: bigint[];
2239
- }>;
2240
- position: {
2241
- size: string | number;
2242
- cost_of_trades: string | number;
2243
- realized_pnl: string | number;
2244
- cached_mark_price: string | number;
2245
- last_accum_funding_applied_per_lot: [string | number, bigint];
2246
- funding_payments_on_side: string | number;
2247
- funding_payments_on_position: string | number;
2248
- };
2249
- user_selected_max_leverage: number;
2250
- tpsls: Record<string, {
2251
- side: "Bid" | "Ask";
2252
- tpsl_order_id: bigint;
2253
- order_price: string | number;
2254
- trigger_price: string | number;
2255
- trigger_direction: "GreaterThanOrEqual" | "LessThanOrEqual";
2256
- tpsl_price_condition: "Mark" | "Oracle" | "LastTrade";
2257
- active_size: string | number;
2258
- full_size: string | number;
2259
- order_type: "Limit" | "PostOnly" | "FillOrKill" | "ImmediateOrCancel" | "PostOnlySlide" | "PostOnlyFront";
2260
- parent_order_id: bigint | null;
2261
- linked_tpsl_order_ids: bigint[];
2262
- }>;
2263
- }>;
2264
- }>;
2265
- };
2266
- meta: Record<string, unknown> | null;
2267
- }>;
2268
- readonly Pricing: z.ZodObject<{
2269
- data: z.ZodObject<{
2270
- value: z.ZodNullable<z.ZodObject<{
2271
- pricing_frequency_seconds: z.ZodNumber;
2272
- prices_info: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2273
- mark_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2274
- oracle_price: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2275
- publish_timestamp: z.ZodBigInt;
2276
- }, "strip", z.ZodTypeAny, {
2277
- mark_price: import("decimal.js").Decimal;
2278
- oracle_price: import("decimal.js").Decimal;
2279
- publish_timestamp: bigint;
2280
- }, {
2281
- mark_price: string | number;
2282
- oracle_price: string | number;
2283
- publish_timestamp: bigint;
2284
- }>>, Map<number, {
2285
- mark_price: import("decimal.js").Decimal;
2286
- oracle_price: import("decimal.js").Decimal;
2287
- publish_timestamp: bigint;
2288
- }>, Record<string, {
2289
- mark_price: string | number;
2290
- oracle_price: string | number;
2291
- publish_timestamp: bigint;
2292
- }>>;
2293
- premium_index: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2294
- weighted_premium_sum: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2295
- duration_sum: z.ZodBigInt;
2296
- last_update_timestamp: z.ZodNullable<z.ZodBigInt>;
2297
- }, "strip", z.ZodTypeAny, {
2298
- weighted_premium_sum: import("decimal.js").Decimal;
2299
- duration_sum: bigint;
2300
- last_update_timestamp: bigint | null;
2301
- }, {
2302
- weighted_premium_sum: string | number;
2303
- duration_sum: bigint;
2304
- last_update_timestamp: bigint | null;
2305
- }>>, Map<number, {
2306
- weighted_premium_sum: import("decimal.js").Decimal;
2307
- duration_sum: bigint;
2308
- last_update_timestamp: bigint | null;
2309
- }>, Record<string, {
2310
- weighted_premium_sum: string | number;
2311
- duration_sum: bigint;
2312
- last_update_timestamp: bigint | null;
2313
- }>>;
2314
- 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]>>;
2315
- 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]>>;
2316
- }, "strip", z.ZodTypeAny, {
2317
- pricing_frequency_seconds: number;
2318
- prices_info: Map<number, {
2319
- mark_price: import("decimal.js").Decimal;
2320
- oracle_price: import("decimal.js").Decimal;
2321
- publish_timestamp: bigint;
2322
- }>;
2323
- premium_index: Map<number, {
2324
- weighted_premium_sum: import("decimal.js").Decimal;
2325
- duration_sum: bigint;
2326
- last_update_timestamp: bigint | null;
2327
- }>;
2328
- funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
2329
- accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
2330
- }, {
2331
- pricing_frequency_seconds: number;
2332
- prices_info: Record<string, {
2333
- mark_price: string | number;
2334
- oracle_price: string | number;
2335
- publish_timestamp: bigint;
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;
2336
1502
  }>;
2337
1503
  premium_index: Record<string, {
2338
1504
  weighted_premium_sum: string | number;
@@ -2341,8 +1507,11 @@ export declare const ResponseSchemas: {
2341
1507
  }>;
2342
1508
  funding_rates: Record<string, [string | number, bigint]>;
2343
1509
  accum_funding_per_lot: Record<string, [string | number, bigint]>;
2344
- }>>;
2345
- }, "strip", z.ZodTypeAny, {
1510
+ } | null;
1511
+ }>;
1512
+ meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ data: {
2346
1515
  value: {
2347
1516
  pricing_frequency_seconds: number;
2348
1517
  prices_info: Map<number, {
@@ -2358,45 +1527,10 @@ export declare const ResponseSchemas: {
2358
1527
  funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
2359
1528
  accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
2360
1529
  } | null;
2361
- }, {
2362
- value: {
2363
- pricing_frequency_seconds: number;
2364
- prices_info: Record<string, {
2365
- mark_price: string | number;
2366
- oracle_price: string | number;
2367
- publish_timestamp: bigint;
2368
- }>;
2369
- premium_index: Record<string, {
2370
- weighted_premium_sum: string | number;
2371
- duration_sum: bigint;
2372
- last_update_timestamp: bigint | null;
2373
- }>;
2374
- funding_rates: Record<string, [string | number, bigint]>;
2375
- accum_funding_per_lot: Record<string, [string | number, bigint]>;
2376
- } | null;
2377
- }>;
2378
- meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2379
- }, "strip", z.ZodTypeAny, {
2380
- data: {
2381
- value: {
2382
- pricing_frequency_seconds: number;
2383
- prices_info: Map<number, {
2384
- mark_price: import("decimal.js").Decimal;
2385
- oracle_price: import("decimal.js").Decimal;
2386
- publish_timestamp: bigint;
2387
- }>;
2388
- premium_index: Map<number, {
2389
- weighted_premium_sum: import("decimal.js").Decimal;
2390
- duration_sum: bigint;
2391
- last_update_timestamp: bigint | null;
2392
- }>;
2393
- funding_rates: Map<number, [import("decimal.js").Decimal, bigint]>;
2394
- accum_funding_per_lot: Map<number, [import("decimal.js").Decimal, bigint]>;
2395
- } | null;
2396
- };
2397
- meta: Map<unknown, unknown> | null;
2398
- }, {
2399
- data: {
1530
+ };
1531
+ meta: Map<unknown, unknown> | null;
1532
+ }, {
1533
+ data: {
2400
1534
  value: {
2401
1535
  pricing_frequency_seconds: number;
2402
1536
  prices_info: Record<string, {
@@ -2621,35 +1755,901 @@ export declare const ResponseSchemas: {
2621
1755
  asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
2622
1756
  };
2623
1757
  }, {
2624
- orderbook_l2: {
2625
- asset_id: number;
2626
- bids: [string | number, string | number][];
2627
- asks: [string | number, string | number][];
2628
- };
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>;
2629
2521
  }>;
2630
2522
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2631
2523
  }, "strip", z.ZodTypeAny, {
2632
2524
  data: {
2633
- orderbook_l2: {
2634
- asset_id: number;
2635
- bids: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
2636
- asks: [import("decimal.js").Decimal, import("decimal.js").Decimal][];
2637
- };
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>;
2638
2584
  };
2639
2585
  meta: Map<unknown, unknown> | null;
2640
2586
  }, {
2641
2587
  data: {
2642
- orderbook_l2: {
2643
- asset_id: number;
2644
- bids: [string | number, string | number][];
2645
- asks: [string | number, string | number][];
2646
- };
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>;
2647
2647
  };
2648
2648
  meta: Record<string, unknown> | null;
2649
2649
  }>;
2650
2650
  readonly BorrowLendMarkets: z.ZodObject<{
2651
2651
  data: z.ZodObject<{
2652
- markets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2652
+ markets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
2653
2653
  is_active: z.ZodBoolean;
2654
2654
  last_update_timestamp: z.ZodBigInt;
2655
2655
  decimals: z.ZodNumber;
@@ -2765,7 +2765,7 @@ export declare const ResponseSchemas: {
2765
2765
  cumulative_deposit_rate: string | number;
2766
2766
  cumulative_borrow_rate: string | number;
2767
2767
  accumulated_protocol_fees: string | number;
2768
- }>>, Map<number, {
2768
+ }>>>, Map<number, {
2769
2769
  last_update_timestamp: bigint;
2770
2770
  is_active: boolean;
2771
2771
  decimals: number;
@@ -2791,7 +2791,7 @@ export declare const ResponseSchemas: {
2791
2791
  cumulative_deposit_rate: import("decimal.js").Decimal;
2792
2792
  cumulative_borrow_rate: import("decimal.js").Decimal;
2793
2793
  accumulated_protocol_fees: import("decimal.js").Decimal;
2794
- }>, Record<string, {
2794
+ } | null>, Record<string, {
2795
2795
  last_update_timestamp: bigint;
2796
2796
  is_active: boolean;
2797
2797
  decimals: number;
@@ -2817,7 +2817,7 @@ export declare const ResponseSchemas: {
2817
2817
  cumulative_deposit_rate: string | number;
2818
2818
  cumulative_borrow_rate: string | number;
2819
2819
  accumulated_protocol_fees: string | number;
2820
- }>>;
2820
+ } | null>>;
2821
2821
  }, "strip", z.ZodTypeAny, {
2822
2822
  markets: Map<number, {
2823
2823
  last_update_timestamp: bigint;
@@ -2845,7 +2845,7 @@ export declare const ResponseSchemas: {
2845
2845
  cumulative_deposit_rate: import("decimal.js").Decimal;
2846
2846
  cumulative_borrow_rate: import("decimal.js").Decimal;
2847
2847
  accumulated_protocol_fees: import("decimal.js").Decimal;
2848
- }>;
2848
+ } | null>;
2849
2849
  }, {
2850
2850
  markets: Record<string, {
2851
2851
  last_update_timestamp: bigint;
@@ -2873,7 +2873,7 @@ export declare const ResponseSchemas: {
2873
2873
  cumulative_deposit_rate: string | number;
2874
2874
  cumulative_borrow_rate: string | number;
2875
2875
  accumulated_protocol_fees: string | number;
2876
- }>;
2876
+ } | null>;
2877
2877
  }>;
2878
2878
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
2879
2879
  }, "strip", z.ZodTypeAny, {
@@ -2904,7 +2904,7 @@ export declare const ResponseSchemas: {
2904
2904
  cumulative_deposit_rate: import("decimal.js").Decimal;
2905
2905
  cumulative_borrow_rate: import("decimal.js").Decimal;
2906
2906
  accumulated_protocol_fees: import("decimal.js").Decimal;
2907
- }>;
2907
+ } | null>;
2908
2908
  };
2909
2909
  meta: Map<unknown, unknown> | null;
2910
2910
  }, {
@@ -2935,13 +2935,13 @@ export declare const ResponseSchemas: {
2935
2935
  cumulative_deposit_rate: string | number;
2936
2936
  cumulative_borrow_rate: string | number;
2937
2937
  accumulated_protocol_fees: string | number;
2938
- }>;
2938
+ } | null>;
2939
2939
  };
2940
2940
  meta: Record<string, unknown> | null;
2941
2941
  }>;
2942
2942
  readonly PerpMarkets: z.ZodObject<{
2943
2943
  data: z.ZodObject<{
2944
- markets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
2944
+ markets: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
2945
2945
  is_active: z.ZodBoolean;
2946
2946
  min_tick_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
2947
2947
  min_lot_size: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, import("decimal.js").Decimal, string | number>;
@@ -2971,7 +2971,7 @@ export declare const ResponseSchemas: {
2971
2971
  max_funding_rate_clamp: string | number;
2972
2972
  impact_margin: string | number;
2973
2973
  interest_rate: string | number;
2974
- }>>, Map<number, {
2974
+ }>>>, Map<number, {
2975
2975
  is_active: boolean;
2976
2976
  min_tick_size: import("decimal.js").Decimal;
2977
2977
  min_lot_size: import("decimal.js").Decimal;
@@ -2981,7 +2981,7 @@ export declare const ResponseSchemas: {
2981
2981
  max_funding_rate_clamp: import("decimal.js").Decimal;
2982
2982
  impact_margin: import("decimal.js").Decimal;
2983
2983
  interest_rate: import("decimal.js").Decimal;
2984
- }>, Record<string, {
2984
+ } | null>, Record<string, {
2985
2985
  is_active: boolean;
2986
2986
  min_tick_size: string | number;
2987
2987
  min_lot_size: string | number;
@@ -2991,7 +2991,7 @@ export declare const ResponseSchemas: {
2991
2991
  max_funding_rate_clamp: string | number;
2992
2992
  impact_margin: string | number;
2993
2993
  interest_rate: string | number;
2994
- }>>;
2994
+ } | null>>;
2995
2995
  }, "strip", z.ZodTypeAny, {
2996
2996
  markets: Map<number, {
2997
2997
  is_active: boolean;
@@ -3003,7 +3003,7 @@ export declare const ResponseSchemas: {
3003
3003
  max_funding_rate_clamp: import("decimal.js").Decimal;
3004
3004
  impact_margin: import("decimal.js").Decimal;
3005
3005
  interest_rate: import("decimal.js").Decimal;
3006
- }>;
3006
+ } | null>;
3007
3007
  }, {
3008
3008
  markets: Record<string, {
3009
3009
  is_active: boolean;
@@ -3015,7 +3015,7 @@ export declare const ResponseSchemas: {
3015
3015
  max_funding_rate_clamp: string | number;
3016
3016
  impact_margin: string | number;
3017
3017
  interest_rate: string | number;
3018
- }>;
3018
+ } | null>;
3019
3019
  }>;
3020
3020
  meta: z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Map<unknown, unknown>, Record<string, unknown>>>;
3021
3021
  }, "strip", z.ZodTypeAny, {
@@ -3030,7 +3030,7 @@ export declare const ResponseSchemas: {
3030
3030
  max_funding_rate_clamp: import("decimal.js").Decimal;
3031
3031
  impact_margin: import("decimal.js").Decimal;
3032
3032
  interest_rate: import("decimal.js").Decimal;
3033
- }>;
3033
+ } | null>;
3034
3034
  };
3035
3035
  meta: Map<unknown, unknown> | null;
3036
3036
  }, {
@@ -3045,7 +3045,7 @@ export declare const ResponseSchemas: {
3045
3045
  max_funding_rate_clamp: string | number;
3046
3046
  impact_margin: string | number;
3047
3047
  interest_rate: string | number;
3048
- }>;
3048
+ } | null>;
3049
3049
  };
3050
3050
  meta: Record<string, unknown> | null;
3051
3051
  }>;