Skip to main content
Query the status and details of a specific order.
The examples on this page use Hyperliquid (provider: 'hyperliquid'). Replace the provider value with any supported DEX from getProviders().
import { getOrder } from '@lifi/perps-sdk';

const order = await getOrder(client, {
  provider: 'hyperliquid',
  address: userAddress,
  id: '12345678',
});

console.log(order.status);       // 'FILLED'
console.log(order.averagePrice); // '95050.00'
console.log(order.filledSize);   // '0.1'

Order Status Values

StatusDescription
PENDINGSubmitted, not yet on orderbook
OPENResting on orderbook
PARTIALLY_FILLEDSome quantity filled
FILLEDFully filled
CANCELLEDCancelled by user
REJECTEDRejected by DEX
EXPIREDGTT order expired
TRIGGEREDTrigger order activated (TP/SL)
API Reference: GET /orders