frontendOpenOrders
Returns open orders for a user with additional frontend display information such as order type and trigger details.
type
string
Must be "frontendOpenOrders"
user
string
Ethereum address (0x-prefixed, 42 characters)
dex
string
Perp DEX name (optional). Defaults to empty string for first perp DEX. Spot open orders are only included with the first perp DEX.
Request
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "frontendOpenOrders",
"user": "0x0000000000000000000000000000000000000000"
}'import requests
import os
import json
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'frontendOpenOrders',
'user': '0x0000000000000000000000000000000000000000'
},
headers={
'Authorization': f'Bearer {os.environ["HYDROMANCER_API_KEY"]}',
'Content-Type': 'application/json'
}
)
print(json.dumps(response.json(), indent=2))Response Fields
coin
string
Asset symbol
isPositionTpsl
boolean
Whether this is a position TP/SL order
isTrigger
boolean
Whether this is a trigger order
limitPx
string
Limit price
oid
int
Order ID
orderType
string
Order type (e.g. "Limit", "Stop Market", "Stop Limit", "Take Profit Market", "Take Profit Limit")
origSz
string
Original order size
reduceOnly
boolean
Whether this is a reduce-only order
side
string
"A" (sell) or "B" (buy)
sz
string
Remaining order size
timestamp
int
Order creation timestamp (ms)
triggerCondition
string
Trigger condition (e.g. "N/A", "tp", "sl")
triggerPx
string
Trigger price for stop/take-profit orders
Last updated