typed-hyperliquid 2.4.0__tar.gz → 2.6.0__tar.gz

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.
Files changed (196) hide show
  1. {typed_hyperliquid-2.4.0/src/typed_hyperliquid.egg-info → typed_hyperliquid-2.6.0}/PKG-INFO +2 -2
  2. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/pyproject.toml +2 -2
  3. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/endpoint/stream.py +3 -0
  4. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/all_perp_metas.py +5 -1
  5. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_dexs.py +2 -2
  6. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_meta.py +9 -0
  7. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_meta_and_asset_ctxs.py +9 -0
  8. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/active_asset_ctx.py +3 -0
  9. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/active_asset_data.py +3 -0
  10. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/all_dexs_asset_ctxs.py +3 -0
  11. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/all_dexs_clearinghouse_state.py +3 -0
  12. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/all_mids.py +3 -0
  13. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/bbo.py +7 -1
  14. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/candle.py +3 -0
  15. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/clearinghouse_state.py +3 -0
  16. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/core.py +6 -1
  17. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/fast_asset_ctxs.py +3 -0
  18. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/l2_book.py +3 -0
  19. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/notification.py +3 -0
  20. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/open_orders.py +3 -0
  21. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/order_updates.py +3 -0
  22. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/outcome_meta_updates.py +3 -0
  23. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/spot_state.py +3 -0
  24. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/trades.py +3 -0
  25. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/twap_states.py +3 -0
  26. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/user_events.py +3 -0
  27. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/user_fills.py +3 -0
  28. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/user_fundings.py +3 -0
  29. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/user_non_funding_ledger_updates.py +3 -0
  30. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/user_twap_history.py +3 -0
  31. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/user_twap_slice_fills.py +3 -0
  32. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/web_data3.py +3 -0
  33. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0/src/typed_hyperliquid.egg-info}/PKG-INFO +2 -2
  34. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid.egg-info/requires.txt +1 -1
  35. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/LICENSE +0 -0
  36. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/README.md +0 -0
  37. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/setup.cfg +0 -0
  38. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/__init__.py +0 -0
  39. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/__init__.pyi +0 -0
  40. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/__init__.py +0 -0
  41. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/__init__.pyi +0 -0
  42. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/base.py +0 -0
  43. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/endpoint/__init__.py +0 -0
  44. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/endpoint/rpc.py +0 -0
  45. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/exc.py +0 -0
  46. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/types.py +0 -0
  47. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/urls.py +0 -0
  48. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/wire.py +0 -0
  49. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/ws/__init__.py +0 -0
  50. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/core/ws/client.py +0 -0
  51. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/__init__.py +0 -0
  52. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/agent_enable_dex_abstraction.py +0 -0
  53. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/agent_send_asset.py +0 -0
  54. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/agent_set_abstraction.py +0 -0
  55. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/approve_agent.py +0 -0
  56. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/approve_builder_fee.py +0 -0
  57. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/authorize_aqav2_role.py +0 -0
  58. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/cancel.py +0 -0
  59. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/cancel_by_cloid.py +0 -0
  60. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/claim_rewards.py +0 -0
  61. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/core/__init__.py +0 -0
  62. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/core/auth.py +0 -0
  63. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/core/envelope.py +0 -0
  64. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/core/transport/__init__.py +0 -0
  65. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/core/transport/http.py +0 -0
  66. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/core/transport/ws.py +0 -0
  67. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/gossip_priority_bid.py +0 -0
  68. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/hip3_liquidator_transfer.py +0 -0
  69. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/modify_order.py +0 -0
  70. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/modify_orders.py +0 -0
  71. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/noop.py +0 -0
  72. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/order.py +0 -0
  73. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/__init__.py +0 -0
  74. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/activate_outcome_deployer.py +0 -0
  75. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/register_and_associate_named_outcome_from_template.py +0 -0
  76. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/register_question_from_template.py +0 -0
  77. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/register_standalone_outcome_from_template.py +0 -0
  78. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/settle_outcome.py +0 -0
  79. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/outcome_deployer/settle_question2.py +0 -0
  80. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/__init__.py +0 -0
  81. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/disable_dex.py +0 -0
  82. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/halt_trading.py +0 -0
  83. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/register_asset.py +0 -0
  84. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/register_asset2.py +0 -0
  85. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_deployer_fees.py +0 -0
  86. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_fee_recipient.py +0 -0
  87. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_funding_interest_rates.py +0 -0
  88. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_funding_multipliers.py +0 -0
  89. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_margin_modes.py +0 -0
  90. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_margin_table_ids.py +0 -0
  91. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_open_interest_caps.py +0 -0
  92. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_oracle.py +0 -0
  93. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_perp_annotation.py +0 -0
  94. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/perp_deploy/set_sub_deployers.py +0 -0
  95. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/reserve_request_weight.py +0 -0
  96. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/schedule_cancel.py +0 -0
  97. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/send_asset.py +0 -0
  98. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/send_to_evm_with_data.py +0 -0
  99. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/__init__.py +0 -0
  100. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/disable_aligned_quote_token.py +0 -0
  101. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/disable_quote_token.py +0 -0
  102. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/enable_aligned_quote_token.py +0 -0
  103. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/enable_quote_token.py +0 -0
  104. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/genesis.py +0 -0
  105. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/register_hyperliquidity.py +0 -0
  106. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/register_spot.py +0 -0
  107. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/register_token2.py +0 -0
  108. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/set_deployer_trading_fee_share.py +0 -0
  109. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_deploy/user_genesis.py +0 -0
  110. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/spot_transfer.py +0 -0
  111. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/staking_deposit.py +0 -0
  112. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/staking_withdraw.py +0 -0
  113. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/token_delegate.py +0 -0
  114. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/top_up_isolated_only_margin.py +0 -0
  115. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/twap_cancel.py +0 -0
  116. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/twap_order.py +0 -0
  117. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/update_isolated_margin.py +0 -0
  118. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/update_leverage.py +0 -0
  119. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/usd_class_transfer.py +0 -0
  120. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/usdc_transfer.py +0 -0
  121. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_dex_abstraction.py +0 -0
  122. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_outcome/__init__.py +0 -0
  123. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_outcome/merge_outcome.py +0 -0
  124. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_outcome/merge_question.py +0 -0
  125. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_outcome/negate_outcome.py +0 -0
  126. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_outcome/split_outcome.py +0 -0
  127. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/user_set_abstraction.py +0 -0
  128. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/validator_l1_stream.py +0 -0
  129. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/vault_transfer.py +0 -0
  130. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/exchange/withdraw3.py +0 -0
  131. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/__init__.py +0 -0
  132. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/active_asset_data.py +0 -0
  133. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/aligned_quote_token_info.py +0 -0
  134. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/all_borrow_lend_reserve_states.py +0 -0
  135. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/all_mids.py +0 -0
  136. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/approved_builders.py +0 -0
  137. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/borrow_lend_reserve_state.py +0 -0
  138. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/borrow_lend_user_state.py +0 -0
  139. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/builder_fee_approved.py +0 -0
  140. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/candle_snapshot.py +0 -0
  141. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/clearinghouse_state.py +0 -0
  142. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/core/__init__.py +0 -0
  143. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/core/transport/__init__.py +0 -0
  144. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/core/transport/http.py +0 -0
  145. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/core/transport/ws.py +0 -0
  146. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/exchange_status.py +0 -0
  147. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/frontend_open_orders.py +0 -0
  148. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/funding_history.py +0 -0
  149. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/gossip_priority_auction_status.py +0 -0
  150. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/l2_book.py +0 -0
  151. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/open_orders.py +0 -0
  152. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/order_status.py +0 -0
  153. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/outcome_meta.py +0 -0
  154. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/outcome_templates.py +0 -0
  155. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_annotation.py +0 -0
  156. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_categories.py +0 -0
  157. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_concise_annotations.py +0 -0
  158. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_deploy_auction_status.py +0 -0
  159. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_dex_limits.py +0 -0
  160. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perp_dex_status.py +0 -0
  161. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/perps_at_open_interest_cap.py +0 -0
  162. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/predicted_fundings.py +0 -0
  163. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/settled_outcome.py +0 -0
  164. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/spot_clearinghouse_state.py +0 -0
  165. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/spot_deploy_state.py +0 -0
  166. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/spot_meta.py +0 -0
  167. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/spot_meta_and_asset_ctxs.py +0 -0
  168. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/spot_pair_deploy_auction_status.py +0 -0
  169. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/staking_delegations.py +0 -0
  170. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/staking_history.py +0 -0
  171. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/staking_rewards.py +0 -0
  172. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/staking_summary.py +0 -0
  173. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/sub_accounts.py +0 -0
  174. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/token_details.py +0 -0
  175. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_abstraction.py +0 -0
  176. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_dex_abstraction.py +0 -0
  177. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_fees.py +0 -0
  178. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_fills.py +0 -0
  179. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_fills_by_time.py +0 -0
  180. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_funding.py +0 -0
  181. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_historical_orders.py +0 -0
  182. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_non_funding_ledger_updates.py +0 -0
  183. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_portfolio.py +0 -0
  184. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_rate_limit.py +0 -0
  185. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_referral.py +0 -0
  186. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_role.py +0 -0
  187. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_twap_slice_fills.py +0 -0
  188. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/user_vault_equities.py +0 -0
  189. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/info/vault_details.py +0 -0
  190. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/main.py +0 -0
  191. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/py.typed +0 -0
  192. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/schemas.py +0 -0
  193. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid/streams/__init__.py +0 -0
  194. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid.egg-info/SOURCES.txt +0 -0
  195. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid.egg-info/dependency_links.txt +0 -0
  196. {typed_hyperliquid-2.4.0 → typed_hyperliquid-2.6.0}/src/typed_hyperliquid.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: typed-hyperliquid
3
- Version: 2.4.0
3
+ Version: 2.6.0
4
4
  Summary: A fully typed, validated async client for the Hyperliquid API.
5
5
  Author-email: Marcel Claramunt <marcel@tribulnation.com>
6
6
  License-Expression: MIT
@@ -14,7 +14,7 @@ Classifier: Typing :: Typed
14
14
  Requires-Python: >=3.10
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: typed-core>=0.10.0
17
+ Requires-Dist: typed-core>=0.12.0
18
18
  Requires-Dist: lazy-loader
19
19
  Requires-Dist: eth-account
20
20
  Requires-Dist: msgpack
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "typed-hyperliquid"
7
- version = "2.4.0"
7
+ version = "2.6.0"
8
8
  authors = [
9
9
  {name="Marcel Claramunt", email="marcel@tribulnation.com"}
10
10
  ]
@@ -18,7 +18,7 @@ classifiers = [
18
18
  "Typing :: Typed",
19
19
  ]
20
20
  dependencies = [
21
- "typed-core>=0.10.0",
21
+ "typed-core>=0.12.0",
22
22
  "lazy-loader",
23
23
  "eth-account",
24
24
  "msgpack"
@@ -39,12 +39,15 @@ class StreamClient(Protocol):
39
39
  *,
40
40
  request_channel: str | None = None,
41
41
  message_key: Callable[[Any], str] | None = None,
42
+ keep_latest: bool = False,
42
43
  ) -> StreamManager[Any, Any, Any]:
43
44
  """Subscribe to a channel, optionally separating request and message channels.
44
45
 
45
46
  `message_key`: for channels shared across multiple concurrent subscriptions (e.g.
46
47
  `l2Book`, tagged identically for every coin), a function deriving the local
47
48
  subscription key from an incoming notification.
49
+
50
+ `keep_latest`: deliver only the newest notification.
48
51
  """
49
52
  ...
50
53
 
@@ -13,10 +13,14 @@ class PerpMarginTier(TypedDict):
13
13
 
14
14
 
15
15
  class PerpUniverseAsset(TypedDict):
16
+ deployerFeeScale: NotRequired[Decimal]
17
+ """HIP-3 deployer fee scale for this asset, as a decimal string (e.g. "1.0"). Scales the protocol fee by `1 + s` when below 1 and by `2s` otherwise, and sets the deployer's share of fees. Present on builder-deployed (HIP-3) dex assets; omitted on Hyperliquid's own dex. This per-asset value is authoritative; `perpDexs` does not report a dex-level scale."""
16
18
  growthMode: NotRequired[Literal['enabled']]
17
- """Present and set to "enabled" when this asset participates in the HIP-3 growth-mode fee schedule (`SetGrowthModes`); omitted otherwise."""
19
+ """Present and set to "enabled" when this asset participates in the HIP-3 growth-mode fee schedule (`SetGrowthModes`), which scales its protocol fees by 0.1; omitted otherwise."""
18
20
  isDelisted: NotRequired[bool]
19
21
  """Whether this asset has been delisted; delisted assets no longer accept new positions."""
22
+ lastFeeScaleChangeTime: NotRequired[TimestampIso]
23
+ """ISO-8601 timestamp of the most recent `deployerFeeScale` change for this asset."""
20
24
  lastGrowthModeChangeTime: NotRequired[TimestampIso]
21
25
  """ISO-8601 timestamp of the most recent `growthMode` change for this asset."""
22
26
  marginMode: NotRequired[Literal['strictIsolated', 'noCross', 'normal']]
@@ -26,13 +26,13 @@ class PerpDex(TypedDict):
26
26
  deployer: str
27
27
  """Address that deployed this perp dex."""
28
28
  deployerFeeScale: NotRequired[Decimal]
29
- """Fee scale factor applied to the deployer's share of trading fees, as a decimal string."""
29
+ """Dex-level deployer fee scale, as a decimal string. Not observed in live `perpDexs` responses on any dex; the per-asset `deployerFeeScale` in `meta`/`allPerpMetas` is authoritative and should be used instead."""
30
30
  feeRecipient: str | None
31
31
  """Address receiving the deployer's fee share, or `null` if unset."""
32
32
  fullName: str
33
33
  """Full display name of the perp dex."""
34
34
  lastDeployerFeeScaleChangeTime: NotRequired[TimestampIso]
35
- """ISO 8601 timestamp of the last change to `deployerFeeScale`."""
35
+ """ISO 8601 timestamp of the last change to the dex-level `deployerFeeScale`. Not observed live; see the per-asset `lastFeeScaleChangeTime` in `meta`."""
36
36
  name: str
37
37
  """Short name of the perp dex."""
38
38
  oracleUpdater: str | None
@@ -1,6 +1,7 @@
1
1
  # Generated by typed-dev — see CONTRIBUTING.md.
2
2
  from decimal import Decimal
3
3
  from typing_extensions import Literal, NotRequired, TypedDict
4
+ from typed_hyperliquid.core import TimestampIso
4
5
  from typed_hyperliquid.info.core import InfoCore
5
6
 
6
7
 
@@ -12,8 +13,16 @@ class PerpMarginTier(TypedDict):
12
13
 
13
14
 
14
15
  class PerpUniverseAsset(TypedDict):
16
+ deployerFeeScale: NotRequired[Decimal]
17
+ """HIP-3 deployer fee scale for this asset, as a decimal string (e.g. "1.0"). Scales the protocol fee by `1 + s` when below 1 and by `2s` otherwise, and sets the deployer's share of fees. Present on builder-deployed (HIP-3) dex assets; omitted on Hyperliquid's own dex. This per-asset value is authoritative; `perpDexs` does not report a dex-level scale."""
18
+ growthMode: NotRequired[Literal['enabled']]
19
+ """Present and set to "enabled" when this asset participates in the HIP-3 growth-mode fee schedule (`SetGrowthModes`), which scales its protocol fees by 0.1; omitted otherwise."""
15
20
  isDelisted: NotRequired[bool]
16
21
  """Whether this asset has been delisted; delisted assets no longer accept new positions."""
22
+ lastFeeScaleChangeTime: NotRequired[TimestampIso]
23
+ """ISO-8601 timestamp of the most recent `deployerFeeScale` change for this asset."""
24
+ lastGrowthModeChangeTime: NotRequired[TimestampIso]
25
+ """ISO-8601 timestamp of the most recent `growthMode` change for this asset."""
17
26
  marginMode: NotRequired[Literal['strictIsolated', 'noCross', 'normal']]
18
27
  """Margin mode restriction for this asset. `strictIsolated` forbids removing margin from an open isolated position; `noCross` allows isolated margin only, never cross; `normal` places no restriction beyond the account's own margin mode choice."""
19
28
  marginTableId: int
@@ -1,6 +1,7 @@
1
1
  # Generated by typed-dev — see CONTRIBUTING.md.
2
2
  from decimal import Decimal
3
3
  from typing_extensions import Literal, NotRequired, TypedDict
4
+ from typed_hyperliquid.core import TimestampIso
4
5
  from typed_hyperliquid.info.core import InfoCore
5
6
 
6
7
 
@@ -35,8 +36,16 @@ class PerpMarginTier(TypedDict):
35
36
 
36
37
 
37
38
  class PerpUniverseAsset(TypedDict):
39
+ deployerFeeScale: NotRequired[Decimal]
40
+ """HIP-3 deployer fee scale for this asset, as a decimal string (e.g. "1.0"). Scales the protocol fee by `1 + s` when below 1 and by `2s` otherwise, and sets the deployer's share of fees. Present on builder-deployed (HIP-3) dex assets; omitted on Hyperliquid's own dex. This per-asset value is authoritative; `perpDexs` does not report a dex-level scale."""
41
+ growthMode: NotRequired[Literal['enabled']]
42
+ """Present and set to "enabled" when this asset participates in the HIP-3 growth-mode fee schedule (`SetGrowthModes`), which scales its protocol fees by 0.1; omitted otherwise."""
38
43
  isDelisted: NotRequired[bool]
39
44
  """Whether this asset has been delisted; delisted assets no longer accept new positions."""
45
+ lastFeeScaleChangeTime: NotRequired[TimestampIso]
46
+ """ISO-8601 timestamp of the most recent `deployerFeeScale` change for this asset."""
47
+ lastGrowthModeChangeTime: NotRequired[TimestampIso]
48
+ """ISO-8601 timestamp of the most recent `growthMode` change for this asset."""
40
49
  marginMode: NotRequired[Literal['strictIsolated', 'noCross', 'normal']]
41
50
  """Margin mode restriction for this asset. `strictIsolated` forbids removing margin from an open isolated position; `noCross` allows isolated margin only, never cross; `normal` places no restriction beyond the account's own margin mode choice."""
42
51
  marginTableId: NotRequired[int]
@@ -78,12 +78,14 @@ class ActiveAssetCtx(StreamsCore):
78
78
  self,
79
79
  coin: str,
80
80
  *,
81
+ keep_latest: bool = False,
81
82
  validate: bool | None = None,
82
83
  ) -> StreamManager[Payload, Any, Any]:
83
84
  """Subscribe to Hyperliquid `activeAssetCtx` updates: the live market context (prices, funding, volume) for one coin.
84
85
 
85
86
  Args:
86
87
  coin: Coin symbol to subscribe to, e.g. `BTC`.
88
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
87
89
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
88
90
 
89
91
  References:
@@ -92,6 +94,7 @@ class ActiveAssetCtx(StreamsCore):
92
94
  return self.subscribe(
93
95
  'activeAssetCtx',
94
96
  Parameters(coin=coin),
97
+ keep_latest=keep_latest,
95
98
  validate=validate,
96
99
  request_type=Parameters,
97
100
  response_type=Payload,
@@ -47,6 +47,7 @@ class ActiveAssetData(StreamsCore):
47
47
  *,
48
48
  coin: str,
49
49
  user: str,
50
+ keep_latest: bool = False,
50
51
  validate: bool | None = None,
51
52
  ) -> StreamManager[WsActiveAssetData, Any, Any]:
52
53
  """Subscribe to Hyperliquid `activeAssetData` updates: one user's leverage and tradable size for one perp coin. Perps only.
@@ -54,6 +55,7 @@ class ActiveAssetData(StreamsCore):
54
55
  Args:
55
56
  coin: Coin symbol to subscribe to, e.g. `BTC`.
56
57
  user: Wallet address to subscribe to.
58
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
57
59
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
58
60
 
59
61
  References:
@@ -62,6 +64,7 @@ class ActiveAssetData(StreamsCore):
62
64
  return self.subscribe(
63
65
  'activeAssetData',
64
66
  Parameters(coin=coin, user=user),
67
+ keep_latest=keep_latest,
65
68
  validate=validate,
66
69
  request_type=Parameters,
67
70
  response_type=WsActiveAssetData,
@@ -70,11 +70,13 @@ class AllDexsAssetCtxs(StreamsCore):
70
70
  def all_dexs_asset_ctxs(
71
71
  self,
72
72
  *,
73
+ keep_latest: bool = False,
73
74
  validate: bool | None = None,
74
75
  ) -> StreamManager[Payload, Any, Any]:
75
76
  """Subscribe to Hyperliquid `allDexsAssetCtxs` updates: the perp asset contexts of every dex on the venue, pushed together.
76
77
 
77
78
  Args:
79
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
78
80
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
79
81
 
80
82
  References:
@@ -82,6 +84,7 @@ class AllDexsAssetCtxs(StreamsCore):
82
84
  """
83
85
  return self.subscribe(
84
86
  'allDexsAssetCtxs',
87
+ keep_latest=keep_latest,
85
88
  validate=validate,
86
89
  response_type=Payload,
87
90
  )
@@ -70,12 +70,14 @@ class AllDexsClearinghouseState(StreamsCore):
70
70
  self,
71
71
  user: str,
72
72
  *,
73
+ keep_latest: bool = False,
73
74
  validate: bool | None = None,
74
75
  ) -> StreamManager[WsAllDexsClearinghouseStateUpdate, Any, Any]:
75
76
  """Subscribe to Hyperliquid `allDexsClearinghouseState` updates: a user's clearinghouse state on every perp dex, pushed together.
76
77
 
77
78
  Args:
78
79
  user: Wallet address to subscribe to clearinghouse state updates for.
80
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
79
81
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
80
82
 
81
83
  References:
@@ -84,6 +86,7 @@ class AllDexsClearinghouseState(StreamsCore):
84
86
  return self.subscribe(
85
87
  'allDexsClearinghouseState',
86
88
  Parameters(user=user),
89
+ keep_latest=keep_latest,
87
90
  validate=validate,
88
91
  request_type=Parameters,
89
92
  response_type=WsAllDexsClearinghouseStateUpdate,
@@ -25,12 +25,14 @@ class AllMidsEndpoint(StreamsCore):
25
25
  self,
26
26
  dex: str | None = None,
27
27
  *,
28
+ keep_latest: bool = False,
28
29
  validate: bool | None = None,
29
30
  ) -> StreamManager[AllMids, Any, Any]:
30
31
  """Subscribe to Hyperliquid `allMids` updates: the current mid price of every coin on one perp dex.
31
32
 
32
33
  Args:
33
34
  dex: Perp dex to source mids from. Optional; if omitted, the first perp dex is used, and spot mids are only included alongside the first perp dex.
35
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
34
36
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
35
37
 
36
38
  References:
@@ -42,6 +44,7 @@ class AllMidsEndpoint(StreamsCore):
42
44
  return self.subscribe(
43
45
  'allMids',
44
46
  parameters,
47
+ keep_latest=keep_latest,
45
48
  validate=validate,
46
49
  request_type=Parameters,
47
50
  response_type=AllMids,
@@ -50,12 +50,17 @@ class Bbo(StreamsCore):
50
50
  """Subscribe to Hyperliquid `bbo` updates: the best bid and ask level for one coin."""
51
51
 
52
52
  def bbo(
53
- self, coin: str, *, validate: bool | None = None
53
+ self,
54
+ coin: str,
55
+ *,
56
+ keep_latest: bool = False,
57
+ validate: bool | None = None,
54
58
  ) -> StreamManager[WsBbo, Any, Any]:
55
59
  """Subscribe to Hyperliquid `bbo` updates: the best bid and ask level for one coin.
56
60
 
57
61
  Args:
58
62
  coin: Coin symbol to subscribe to, e.g. `BTC`.
63
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
59
64
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
60
65
 
61
66
  References:
@@ -64,6 +69,7 @@ class Bbo(StreamsCore):
64
69
  return self.subscribe(
65
70
  'bbo',
66
71
  Parameters(coin=coin),
72
+ keep_latest=keep_latest,
67
73
  validate=validate,
68
74
  request_type=Parameters,
69
75
  response_type=WsBbo,
@@ -91,6 +91,7 @@ class CandleEndpoint(StreamsCore):
91
91
  '1w',
92
92
  '1M',
93
93
  ],
94
+ keep_latest: bool = False,
94
95
  validate: bool | None = None,
95
96
  ) -> StreamManager[Candle, Any, Any]:
96
97
  """Subscribe to Hyperliquid `candle` updates.
@@ -98,6 +99,7 @@ class CandleEndpoint(StreamsCore):
98
99
  Args:
99
100
  coin: Coin symbol to subscribe to candles for.
100
101
  interval: Candle interval to subscribe to.
102
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
101
103
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
102
104
 
103
105
  References:
@@ -106,6 +108,7 @@ class CandleEndpoint(StreamsCore):
106
108
  return self.subscribe(
107
109
  'candle',
108
110
  Parameters(coin=coin, interval=interval),
111
+ keep_latest=keep_latest,
109
112
  validate=validate,
110
113
  request_type=Parameters,
111
114
  response_type=Candle,
@@ -74,6 +74,7 @@ class ClearinghouseStateEndpoint(StreamsCore):
74
74
  *,
75
75
  dex: str,
76
76
  user: str,
77
+ keep_latest: bool = False,
77
78
  validate: bool | None = None,
78
79
  ) -> StreamManager[ClearinghouseStateUpdate, Any, Any]:
79
80
  """Subscribe to Hyperliquid `clearinghouseState` updates.
@@ -81,6 +82,7 @@ class ClearinghouseStateEndpoint(StreamsCore):
81
82
  Args:
82
83
  dex: Perp dex to subscribe on; the empty string names the default (first) perp dex.
83
84
  user: Wallet address to subscribe to clearinghouse state updates for.
85
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
84
86
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
85
87
 
86
88
  References:
@@ -89,6 +91,7 @@ class ClearinghouseStateEndpoint(StreamsCore):
89
91
  return self.subscribe(
90
92
  'clearinghouseState',
91
93
  Parameters(dex=dex, user=user),
94
+ keep_latest=keep_latest,
92
95
  validate=validate,
93
96
  request_type=Parameters,
94
97
  response_type=ClearinghouseStateUpdate,
@@ -66,6 +66,7 @@ class StreamsCore(StreamEndpoint):
66
66
  parameters: Any = None,
67
67
  *,
68
68
  validate: bool | None = None,
69
+ keep_latest: bool = False,
69
70
  request_type: type[Any] | UnionType | None = None,
70
71
  response_type: type[T] | UnionType | None = None,
71
72
  ) -> StreamManager[T, Any, Any]:
@@ -84,13 +85,17 @@ class StreamsCore(StreamEndpoint):
84
85
  parameters: The generated `Parameters` value, or `None` for a parameterless
85
86
  subscription.
86
87
  validate: Per-call override of pushed-message validation.
88
+ keep_latest: Deliver only the newest push. Every generated method forwards the
89
+ caller's choice; it is safe only where each push is the full state. Routing still
90
+ decodes each frame (the push tag alone does not name the coin); only validation
91
+ is skipped for replaced pushes.
87
92
  request_type: The generated parameters type, used to serialize `parameters`.
88
93
  response_type: The generated payload type, used to validate each pushed message.
89
94
  """
90
95
  values = dump_request(parameters, request_type)
91
96
  scope = _SCOPE_FIELDS.get(channel)
92
97
  list_shaped = channel in _LIST_SHAPED
93
- subscribe_kwargs: dict[str, Any] = {}
98
+ subscribe_kwargs: dict[str, Any] = {'keep_latest': keep_latest}
94
99
 
95
100
  if scope is not None:
96
101
  key = ':'.join(str(values.get(sub, '')).lower() for sub, _ in scope)
@@ -13,11 +13,13 @@ class FastAssetCtxs(StreamsCore):
13
13
  def fast_asset_ctxs(
14
14
  self,
15
15
  *,
16
+ keep_latest: bool = False,
16
17
  validate: bool | None = None,
17
18
  ) -> StreamManager[FastAssetCtxsCompressedPayload, Any, Any]:
18
19
  """Subscribe to Hyperliquid `fastAssetCtxs` updates: a low-latency mark/mid price feed across every asset on the venue, pushed as a base64-encoded, raw-DEFLATE-compressed JSON payload rather than plain JSON. See this endpoint's `notes` for the full decode recipe and the structural mismatch with this client's usual stream envelope.
19
20
 
20
21
  Args:
22
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
21
23
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
22
24
 
23
25
  References:
@@ -25,6 +27,7 @@ class FastAssetCtxs(StreamsCore):
25
27
  """
26
28
  return self.subscribe(
27
29
  'fastAssetCtxs',
30
+ keep_latest=keep_latest,
28
31
  validate=validate,
29
32
  response_type=FastAssetCtxsCompressedPayload,
30
33
  )
@@ -62,6 +62,7 @@ class L2Book(StreamsCore):
62
62
  fast: bool | None = None,
63
63
  mantissa: int | None = None,
64
64
  n_sig_figs: int | None = None,
65
+ keep_latest: bool = False,
65
66
  validate: bool | None = None,
66
67
  ) -> StreamManager[L2BookUpdate, Any, Any]:
67
68
  """Subscribe to Hyperliquid `l2Book` updates.
@@ -71,6 +72,7 @@ class L2Book(StreamsCore):
71
72
  fast: Optional depth cap: 5 price levels per side when true, 20 when false or omitted.
72
73
  mantissa: Optional mantissa restriction on aggregated price levels; only meaningful together with `nSigFigs`. Omit or null for the default.
73
74
  n_sig_figs: Optional price-level aggregation: round book prices to this many significant figures. Omit or null for full precision.
75
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
74
76
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
75
77
 
76
78
  References:
@@ -86,6 +88,7 @@ class L2Book(StreamsCore):
86
88
  return self.subscribe(
87
89
  'l2Book',
88
90
  parameters,
91
+ keep_latest=keep_latest,
89
92
  validate=validate,
90
93
  request_type=Parameters,
91
94
  response_type=L2BookUpdate,
@@ -25,12 +25,14 @@ class NotificationEndpoint(StreamsCore):
25
25
  self,
26
26
  user: str,
27
27
  *,
28
+ keep_latest: bool = False,
28
29
  validate: bool | None = None,
29
30
  ) -> StreamManager[Notification, Any, Any]:
30
31
  """Subscribe to Hyperliquid `notification` updates.
31
32
 
32
33
  Args:
33
34
  user: Wallet address to subscribe to notifications for.
35
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
34
36
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
35
37
 
36
38
  References:
@@ -39,6 +41,7 @@ class NotificationEndpoint(StreamsCore):
39
41
  return self.subscribe(
40
42
  'notification',
41
43
  Parameters(user=user),
44
+ keep_latest=keep_latest,
42
45
  validate=validate,
43
46
  request_type=Parameters,
44
47
  response_type=Notification,
@@ -32,6 +32,7 @@ class OpenOrders(StreamsCore):
32
32
  *,
33
33
  dex: str,
34
34
  user: str,
35
+ keep_latest: bool = False,
35
36
  validate: bool | None = None,
36
37
  ) -> StreamManager[OpenOrdersUpdate, Any, Any]:
37
38
  """Subscribe to Hyperliquid `openOrders` updates.
@@ -39,6 +40,7 @@ class OpenOrders(StreamsCore):
39
40
  Args:
40
41
  dex: Perp dex to subscribe on; the empty string names the default (first) perp dex.
41
42
  user: Wallet address to subscribe to open orders for.
43
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
42
44
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
43
45
 
44
46
  References:
@@ -47,6 +49,7 @@ class OpenOrders(StreamsCore):
47
49
  return self.subscribe(
48
50
  'openOrders',
49
51
  Parameters(dex=dex, user=user),
52
+ keep_latest=keep_latest,
50
53
  validate=validate,
51
54
  request_type=Parameters,
52
55
  response_type=OpenOrdersUpdate,
@@ -84,12 +84,14 @@ class OrderUpdates(StreamsCore):
84
84
  self,
85
85
  user: str,
86
86
  *,
87
+ keep_latest: bool = False,
87
88
  validate: bool | None = None,
88
89
  ) -> StreamManager[Payload, Any, Any]:
89
90
  """Subscribe to Hyperliquid `orderUpdates` updates.
90
91
 
91
92
  Args:
92
93
  user: Address whose order updates to subscribe to.
94
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
93
95
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
94
96
 
95
97
  References:
@@ -98,6 +100,7 @@ class OrderUpdates(StreamsCore):
98
100
  return self.subscribe(
99
101
  'orderUpdates',
100
102
  Parameters(user=user),
103
+ keep_latest=keep_latest,
101
104
  validate=validate,
102
105
  request_type=Parameters,
103
106
  response_type=Payload,
@@ -88,11 +88,13 @@ class OutcomeMetaUpdates(StreamsCore):
88
88
  def outcome_meta_updates(
89
89
  self,
90
90
  *,
91
+ keep_latest: bool = False,
91
92
  validate: bool | None = None,
92
93
  ) -> StreamManager[WsOutcomeMetaUpdates, Any, Any]:
93
94
  """Subscribe to Hyperliquid `outcomeMetaUpdates` updates: streaming diffs of HIP-4 outcome/question creation, settlement, and metadata updates.
94
95
 
95
96
  Args:
97
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
96
98
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
97
99
 
98
100
  References:
@@ -100,6 +102,7 @@ class OutcomeMetaUpdates(StreamsCore):
100
102
  """
101
103
  return self.subscribe(
102
104
  'outcomeMetaUpdates',
105
+ keep_latest=keep_latest,
103
106
  validate=validate,
104
107
  response_type=WsOutcomeMetaUpdates,
105
108
  )
@@ -51,6 +51,7 @@ class SpotStateEndpoint(StreamsCore):
51
51
  user: str,
52
52
  *,
53
53
  ignore_portfolio_margin: bool | None = None,
54
+ keep_latest: bool = False,
54
55
  validate: bool | None = None,
55
56
  ) -> StreamManager[WsSpotStateUpdate, Any, Any]:
56
57
  """Subscribe to Hyperliquid `spotState` updates: a user's spot token balances.
@@ -58,6 +59,7 @@ class SpotStateEndpoint(StreamsCore):
58
59
  Args:
59
60
  user: Wallet address to subscribe to spot state updates for.
60
61
  ignore_portfolio_margin: Optional: exclude portfolio-margin balances from this subscription. Defaults to `false` when omitted. Named `isPortfolioMargin` in upstream docs -- see `notes`.
62
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
61
63
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
62
64
 
63
65
  References:
@@ -69,6 +71,7 @@ class SpotStateEndpoint(StreamsCore):
69
71
  return self.subscribe(
70
72
  'spotState',
71
73
  parameters,
74
+ keep_latest=keep_latest,
72
75
  validate=validate,
73
76
  request_type=Parameters,
74
77
  response_type=WsSpotStateUpdate,
@@ -44,12 +44,14 @@ class Trades(StreamsCore):
44
44
  self,
45
45
  coin: str,
46
46
  *,
47
+ keep_latest: bool = False,
47
48
  validate: bool | None = None,
48
49
  ) -> StreamManager[Payload, Any, Any]:
49
50
  """Subscribe to Hyperliquid `trades` updates.
50
51
 
51
52
  Args:
52
53
  coin: Coin symbol to subscribe to trade prints for.
54
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
53
55
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
54
56
 
55
57
  References:
@@ -58,6 +60,7 @@ class Trades(StreamsCore):
58
60
  return self.subscribe(
59
61
  'trades',
60
62
  Parameters(coin=coin),
63
+ keep_latest=keep_latest,
61
64
  validate=validate,
62
65
  request_type=Parameters,
63
66
  response_type=Payload,
@@ -59,6 +59,7 @@ class TwapStatesEndpoint(StreamsCore):
59
59
  *,
60
60
  dex: str,
61
61
  user: str,
62
+ keep_latest: bool = False,
62
63
  validate: bool | None = None,
63
64
  ) -> StreamManager[TwapStates, Any, Any]:
64
65
  """Subscribe to Hyperliquid `twapStates` updates.
@@ -66,6 +67,7 @@ class TwapStatesEndpoint(StreamsCore):
66
67
  Args:
67
68
  dex: Perp dex name; the empty string names the default (first) perp dex.
68
69
  user: Address whose TWAP states to subscribe to.
70
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
69
71
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
70
72
 
71
73
  References:
@@ -74,6 +76,7 @@ class TwapStatesEndpoint(StreamsCore):
74
76
  return self.subscribe(
75
77
  'twapStates',
76
78
  Parameters(dex=dex, user=user),
79
+ keep_latest=keep_latest,
77
80
  validate=validate,
78
81
  request_type=Parameters,
79
82
  response_type=TwapStates,
@@ -139,12 +139,14 @@ class UserEvents(StreamsCore):
139
139
  self,
140
140
  user: str,
141
141
  *,
142
+ keep_latest: bool = False,
142
143
  validate: bool | None = None,
143
144
  ) -> StreamManager[Payload, Any, Any]:
144
145
  """Subscribe to Hyperliquid `userEvents` updates. Unlike every other channel, the venue pushes these on a raw `user` channel name rather than echoing `userEvents`.
145
146
 
146
147
  Args:
147
148
  user: Address whose events to subscribe to.
149
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
148
150
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
149
151
 
150
152
  References:
@@ -153,6 +155,7 @@ class UserEvents(StreamsCore):
153
155
  return self.subscribe(
154
156
  'user',
155
157
  Parameters(user=user),
158
+ keep_latest=keep_latest,
156
159
  validate=validate,
157
160
  request_type=Parameters,
158
161
  response_type=Payload,
@@ -85,6 +85,7 @@ class UserFillsEndpoint(StreamsCore):
85
85
  user: str,
86
86
  *,
87
87
  aggregate_by_time: bool | None = None,
88
+ keep_latest: bool = False,
88
89
  validate: bool | None = None,
89
90
  ) -> StreamManager[UserFills, Any, Any]:
90
91
  """Subscribe to Hyperliquid `userFills` updates: a fills snapshot followed by streaming fills.
@@ -92,6 +93,7 @@ class UserFillsEndpoint(StreamsCore):
92
93
  Args:
93
94
  user: Address whose fills to subscribe to.
94
95
  aggregate_by_time: Optional. When true, fills that are part of the same order are aggregated into one record.
96
+ keep_latest: Keep only the newest frame per subscription: older unread frames are dropped, counted in the stream's `skipped`, and never decoded where the transport can route raw frames. Suitable only when each frame is the full state for this subscription; wrong for diffs or incremental depth, trades, fills, account events, or streams carrying different symbols in different frames (e.g. the all-symbol `!bookTicker`).
95
97
  validate: Override this call's pushed-payload validation; falls back to the client-level default when omitted.
96
98
 
97
99
  References:
@@ -103,6 +105,7 @@ class UserFillsEndpoint(StreamsCore):
103
105
  return self.subscribe(
104
106
  'userFills',
105
107
  parameters,
108
+ keep_latest=keep_latest,
106
109
  validate=validate,
107
110
  request_type=Parameters,
108
111
  response_type=UserFills,