Re-exports§
pub use execution_cloid::Cloid;
Modules§
- execution_
cloid - Custom serde module for handling 128-bit hex client order IDs.
Structs§
- Asset
Position - A single asset position in the clearinghouse state.
- Clearinghouse
State - Complete clearinghouse state response from
POST /info
with{ "type": "clearinghouseState", "user": "address" }
. This provides account positions, margin information, and balances. - Cross
Margin Summary - Cross margin summary information.
- EvmContract
- EVM contract information for a spot token.
- Hyperliquid
Asset Info - Represents asset information from the meta endpoint.
- Hyperliquid
Bracket Order Request - Bracket order request (entry + TP + SL).
- Hyperliquid
Cancel Trigger Order Request - Request to cancel a trigger order.
- Hyperliquid
Candle - Represents a single candle (OHLCV bar) from Hyperliquid.
- Hyperliquid
Candle Snapshot - Response from candleSnapshot endpoint.
- Hyperliquid
Exchange Request - Represents an exchange action request wrapper for
POST /exchange
. - Hyperliquid
Exec Builder Fee - Optional builder fee for orders in exchange endpoint.
- Hyperliquid
Exec Cancel ByCloid Request - Cancel specification for canceling orders by client order ID via exchange endpoint.
- Hyperliquid
Exec Cancel Order Request - Cancel specification for canceling orders by order ID via exchange endpoint.
- Hyperliquid
Exec Cancel Response Data - Cancel response data containing status for each cancellation from exchange endpoint.
- Hyperliquid
Exec Filled Info - Information about a filled order via exchange endpoint.
- Hyperliquid
Exec Limit Params - Parameters for limit orders in exchange endpoint.
- Hyperliquid
Exec Modify Order Request - Modify specification for modifying existing orders via exchange endpoint.
- Hyperliquid
Exec Modify Response Data - Modify response data containing status for each modification from exchange endpoint.
- Hyperliquid
Exec Order Response Data - Order response data containing status for each order from exchange endpoint.
- Hyperliquid
Exec Place Order Request - Order specification for placing orders via exchange endpoint.
- Hyperliquid
Exec Request - Exchange request envelope for the
/exchange
endpoint. - Hyperliquid
Exec Response - Exchange response envelope from the
/exchange
endpoint. - Hyperliquid
Exec Resting Info - Information about a resting order via exchange endpoint.
- Hyperliquid
Exec Trigger Params - Parameters for trigger orders (stop/take profit) in exchange endpoint.
- Hyperliquid
Exec Twap Request - TWAP (Time-Weighted Average Price) order specification for exchange endpoint.
- Hyperliquid
Fill - Represents an individual fill from user fills.
- Hyperliquid
L2Book - Represents an L2 order book snapshot from
POST /info
. - Hyperliquid
Level - Represents an order book level with price and size.
- Hyperliquid
Meta - Represents metadata about available markets from
POST /info
. - Hyperliquid
Modify Trigger Order Request - Request to modify an existing trigger order.
- Hyperliquid
OcoOrder Request - OCO (One-Cancels-Other) order request.
- Hyperliquid
Order Info - Represents order information within an order status entry.
- Hyperliquid
Order Status - Represents order status response from
POST /info
. - Hyperliquid
Order Status Entry - Represents an individual order status entry.
- Hyperliquid
Place Trigger Order Request - Request to place a trigger order (stop or take profit).
- Hyperliquid
Trailing Stop Params - Trailing stop order parameters.
- Hyperliquid
Trigger Order Info - Information about a trigger order.
- Hyperliquid
Trigger Order Params - Extended trigger order parameters for advanced conditional orders.
- Hyperliquid
Trigger Order Status - Trigger order status response.
- Margin
Table - Margin table with leverage tiers.
- Margin
Tier - Individual margin tier.
- Perp
Asset - A single perpetual asset from the universe.
- Perp
Asset Ctx - Runtime context for a perpetual asset (mark prices, funding, etc).
- Perp
Meta - Complete perpetuals metadata response from
POST /info
with{ "type": "meta" }
. - Position
Data - Detailed position data for an asset.
- Spot
Asset Ctx - Runtime context for a spot pair (prices, volumes, etc).
- Spot
Meta - Complete spot metadata response from
POST /info
with{ "type": "spotMeta" }
. - Spot
Pair - A single spot pair from the universe.
- Spot
Token - A single spot token from the tokens list.
Enums§
- Hyperliquid
Exchange Response - Represents an exchange response wrapper from
POST /exchange
. - Hyperliquid
Exec Action - All possible exchange actions for the Hyperliquid
/exchange
endpoint. - Hyperliquid
Exec Cancel Status - Status of an individual order cancellation via exchange endpoint.
- Hyperliquid
Exec Grouping - Order grouping strategy for linked TP/SL orders in exchange endpoint.
- Hyperliquid
Exec Modify Status - Status of an individual order modification via exchange endpoint.
- Hyperliquid
Exec Order Kind - Order kind specification for the
t
field in exchange endpoint order requests. - Hyperliquid
Exec Order Status - Status of an individual order submission via exchange endpoint.
- Hyperliquid
Exec Response Data - Response data containing the actual response payload from exchange endpoint.
- Hyperliquid
Exec Tif - Time-in-force for limit orders in exchange endpoint.
- Hyperliquid
Exec TpSl - Take profit or stop loss side for trigger orders in exchange endpoint.
- Perp
Meta AndCtxs - Optional perpetuals metadata with asset contexts from
{ "type": "metaAndAssetCtxs" }
. Returns a tuple:[PerpMeta, Vec<PerpAssetCtx>]
- Spot
Meta AndCtxs - Optional spot metadata with asset contexts from
{ "type": "spotMetaAndAssetCtxs" }
. Returns a tuple:[SpotMeta, Vec<SpotAssetCtx>]
Type Aliases§
- AssetId
- Asset ID type for Hyperliquid.
- Hyperliquid
Fills - Represents user fills response from
POST /info
. - OrderId
- Order ID assigned by Hyperliquid.