Expand description
Shared types for dYdX v4 execution module.
This module centralizes type definitions used across order submission, transaction management, and WebSocket handling components.
Structs§
- Limit
Order Params - Parameters for a limit order in batch submission.
- Order
Context - Order context passed from submission to WebSocket confirmation handler.
- Prepared
Transaction - Contains the raw bytes and metadata for retry handling.
Enums§
- Conditional
Order Type - Conditional order types supported by dYdX.
- Order
Lifetime - Order lifetime type determined by time_in_force and expire_time.
Constants§
- GTC_
CONDITIONAL_ ORDER_ EXPIRATION_ DAYS - Default expiration for GTC conditional orders (90 days).
- ORDER_
FLAG_ CONDITIONAL - Order flag for conditional orders (stop-loss, take-profit).
- ORDER_
FLAG_ LONG_ TERM - Order flag for long-term/stateful orders (expire by timestamp).
- ORDER_
FLAG_ SHORT_ TERM - Order flag for short-term orders (expire by block height).
Functions§
- calculate_
conditional_ order_ expiration - Calculates the expiration time for conditional orders based on TimeInForce.