Test your knowledge of how orders are placed on Hyperliquid.
1. How does the Hyperliquid Python SDK's `market_open` send a market order?
The order API has only limit and trigger order types. `market_open` reads the mid price, moves it by `slippage` (default 0.05) in the trade direction, and sends a limit order with {"limit": {"tif": "Ioc"}}. Any unfilled remainder is canceled.
2. How are Time-in-Force (TiF) values formatted in the Hyperliquid SDK?
The Hyperliquid SDK expects TiF values in capitalized format: "Gtc" (Good til Cancel), "Ioc" (Immediate or Cancel), "Alo" (Add Liquidity Only).
3. In the Hyperliquid SDK order params, which field determines buy vs sell direction?
The SDK's `order` and `bulk_orders` take "is_buy" as a boolean: True for a buy, False for a sell. On the wire this becomes the "b" field of the order action.