Expand description
Order types and builders for dYdX v4.
This module provides order construction utilities for placing orders on dYdX v4. dYdX supports two order lifetime types:
- Short-term orders: Expire by block height (max 20 blocks).
- Long-term orders: Expire by timestamp.
See dYdX order types.
Structs§
- Order
Builder Orderbuilder.- Order
Market Params - Market parameters required for price and size quantizations.
Enums§
- Order
Flags - Order flags indicating order lifetime and execution type.
- Order
Good Until - Order expiration types.
Constants§
- DEFAULT_
RUST_ CLIENT_ METADATA - Value used to identify the Rust client in order metadata.
- SHORT_
TERM_ ORDER_ MAXIMUM_ LIFETIME - Maximum short-term order lifetime in blocks.