Module models

Module models 

Source

Re-exports§

pub use execution_cloid::Cloid;

Modules§

execution_cloid
Custom serde module for handling 128-bit hex client order IDs.

Structs§

AssetPosition
A single asset position in the clearinghouse state.
ClearinghouseState
Complete clearinghouse state response from POST /info with { "type": "clearinghouseState", "user": "address" }. This provides account positions, margin information, and balances.
CrossMarginSummary
Cross margin summary information.
EvmContract
EVM contract information for a spot token.
HyperliquidAssetInfo
Represents asset information from the meta endpoint.
HyperliquidBracketOrderRequest
Bracket order request (entry + TP + SL).
HyperliquidCancelTriggerOrderRequest
Request to cancel a trigger order.
HyperliquidCandle
Represents a single candle (OHLCV bar) from Hyperliquid.
HyperliquidCandleSnapshot
Response from candleSnapshot endpoint.
HyperliquidExchangeRequest
Represents an exchange action request wrapper for POST /exchange.
HyperliquidExecBuilderFee
Optional builder fee for orders in exchange endpoint.
HyperliquidExecCancelByCloidRequest
Cancel specification for canceling orders by client order ID via exchange endpoint.
HyperliquidExecCancelOrderRequest
Cancel specification for canceling orders by order ID via exchange endpoint.
HyperliquidExecCancelResponseData
Cancel response data containing status for each cancellation from exchange endpoint.
HyperliquidExecFilledInfo
Information about a filled order via exchange endpoint.
HyperliquidExecLimitParams
Parameters for limit orders in exchange endpoint.
HyperliquidExecModifyOrderRequest
Modify specification for modifying existing orders via exchange endpoint.
HyperliquidExecModifyResponseData
Modify response data containing status for each modification from exchange endpoint.
HyperliquidExecOrderResponseData
Order response data containing status for each order from exchange endpoint.
HyperliquidExecPlaceOrderRequest
Order specification for placing orders via exchange endpoint.
HyperliquidExecRequest
Exchange request envelope for the /exchange endpoint.
HyperliquidExecResponse
Exchange response envelope from the /exchange endpoint.
HyperliquidExecRestingInfo
Information about a resting order via exchange endpoint.
HyperliquidExecTriggerParams
Parameters for trigger orders (stop/take profit) in exchange endpoint.
HyperliquidExecTwapRequest
TWAP (Time-Weighted Average Price) order specification for exchange endpoint.
HyperliquidFill
Represents an individual fill from user fills.
HyperliquidL2Book
Represents an L2 order book snapshot from POST /info.
HyperliquidLevel
Represents an order book level with price and size.
HyperliquidMeta
Represents metadata about available markets from POST /info.
HyperliquidModifyTriggerOrderRequest
Request to modify an existing trigger order.
HyperliquidOcoOrderRequest
OCO (One-Cancels-Other) order request.
HyperliquidOrderInfo
Represents order information within an order status entry.
HyperliquidOrderStatus
Represents order status response from POST /info.
HyperliquidOrderStatusEntry
Represents an individual order status entry.
HyperliquidPlaceTriggerOrderRequest
Request to place a trigger order (stop or take profit).
HyperliquidTrailingStopParams
Trailing stop order parameters.
HyperliquidTriggerOrderInfo
Information about a trigger order.
HyperliquidTriggerOrderParams
Extended trigger order parameters for advanced conditional orders.
HyperliquidTriggerOrderStatus
Trigger order status response.
MarginTable
Margin table with leverage tiers.
MarginTier
Individual margin tier.
PerpAsset
A single perpetual asset from the universe.
PerpAssetCtx
Runtime context for a perpetual asset (mark prices, funding, etc).
PerpMeta
Complete perpetuals metadata response from POST /info with { "type": "meta" }.
PositionData
Detailed position data for an asset.
SpotAssetCtx
Runtime context for a spot pair (prices, volumes, etc).
SpotMeta
Complete spot metadata response from POST /info with { "type": "spotMeta" }.
SpotPair
A single spot pair from the universe.
SpotToken
A single spot token from the tokens list.

Enums§

HyperliquidExchangeResponse
Represents an exchange response wrapper from POST /exchange.
HyperliquidExecAction
All possible exchange actions for the Hyperliquid /exchange endpoint.
HyperliquidExecCancelStatus
Status of an individual order cancellation via exchange endpoint.
HyperliquidExecGrouping
Order grouping strategy for linked TP/SL orders in exchange endpoint.
HyperliquidExecModifyStatus
Status of an individual order modification via exchange endpoint.
HyperliquidExecOrderKind
Order kind specification for the t field in exchange endpoint order requests.
HyperliquidExecOrderStatus
Status of an individual order submission via exchange endpoint.
HyperliquidExecResponseData
Response data containing the actual response payload from exchange endpoint.
HyperliquidExecTif
Time-in-force for limit orders in exchange endpoint.
HyperliquidExecTpSl
Take profit or stop loss side for trigger orders in exchange endpoint.
PerpMetaAndCtxs
Optional perpetuals metadata with asset contexts from { "type": "metaAndAssetCtxs" }. Returns a tuple: [PerpMeta, Vec<PerpAssetCtx>]
SpotMetaAndCtxs
Optional spot metadata with asset contexts from { "type": "spotMetaAndAssetCtxs" }. Returns a tuple: [SpotMeta, Vec<SpotAssetCtx>]

Type Aliases§

AssetId
Asset ID type for Hyperliquid.
HyperliquidFills
Represents user fills response from POST /info.
OrderId
Order ID assigned by Hyperliquid.