info
endpoint with type: "frontendOpenOrders"
retrieves a user’s open orders with additional frontend-specific formatting and metadata. This endpoint provides enhanced order information specifically designed for display in trading interfaces, including order types, trigger conditions, and other UI-relevant data.
Parameters
Request body
type
(string, required) — The request type. Must be"frontendOpenOrders"
to retrieve user’s open orders with frontend formatting.user
(string, required) — Address in 42-character hexadecimal format (e.g.,0x31ca8395cf837de08b24da3f660e77761dfb974b
).dex
(string, optional) — Perp dex name. Defaults to the empty string which represents the first perp dex. Spot open orders are only included with the first perp dex.
Response
The response is an array of open order objects with enhanced frontend-specific information:Core order fields
coin
(string) — Trading pair or asset symbol (e.g., “BTC”, “ETH”)limitPx
(string) — Limit price of the order in string format for precisionoid
(integer) — Order ID, a unique identifier for the orderside
(string) — Order side:"A"
— Ask (sell order)"B"
— Bid (buy order)
sz
(string) — Current order size in string format for precisiontimestamp
(integer) — Order creation timestamp in milliseconds
Frontend-enhanced fields
origSz
(string) — Original order size when the order was createdorderType
(string) — Human-readable order type (e.g., “Limit”, “Market”, “Stop”, “Stop Limit”)triggerCondition
(string) — Trigger condition for conditional orderstriggerPx
(string) — Trigger price for conditional ordersreduceOnly
(boolean) — Whether this is a reduce-only order that can only decrease position sizeisPositionTpsl
(boolean) — Whether this is a position take-profit/stop-loss orderisTrigger
(boolean) — Whether this is a trigger order
Order side interpretation
- “A” (Ask): Sell order - user wants to sell the asset at the specified price
- “B” (Bid): Buy order - user wants to buy the asset at the specified price
Order types
- Limit: Standard limit order at a specific price
- Market: Immediate execution at current market price
- Stop: Stop-loss order triggered when price reaches trigger level
- Stop Limit: Stop order that becomes a limit order when triggered
Example request
Example response
Use case
Theinfo
endpoint with type: "frontendOpenOrders"
is specifically designed for trading applications that need to:
- Display comprehensive order information in trading interfaces
- Show order types and trigger conditions in user-friendly formats
- Implement advanced order management features with conditional logic
- Build order books and trading dashboards with enhanced metadata
- Provide detailed order tooltips and information panels
- Support complex order types like stop-loss and take-profit orders
- Display reduce-only orders with appropriate visual indicators
- Create order history views with complete order context
- Implement order modification workflows with type-specific handling
- Build mobile trading apps with condensed but complete order data
- Support advanced trading strategies requiring order type awareness
- Provide audit trails and order analytics with detailed classifications
Body
Request type to retrieve user's open orders with frontend-specific formatting
frontendOpenOrders
Address in 42-character hexadecimal format
Perp dex name. Defaults to the empty string which represents the first perp dex. Spot open orders are only included with the first perp dex.
Response
Array of user's open orders with frontend-specific formatting
List of open orders formatted for frontend display
Trading pair or asset symbol (e.g., 'BTC', 'ETH')
Limit price of the order
Order ID - unique identifier for the order
Order side: 'A' for ask (sell), 'B' for bid (buy)
Order size
Order creation timestamp in milliseconds
Trigger condition for conditional orders
Trigger price for conditional orders
Type of order (e.g., 'Limit', 'Market', 'Stop')
Whether this is a reduce-only order