Skip to main content
Hyperliquid
POST/info

Request Headers

string
required
Must be application/json
string
Signature proving you own user. Without it, data is 20 seconds old.

Request Body

string
required
Must be "twapGetById"
string
required
User wallet address, e.g., "0x1111111111111111111111111111111111111111"
string
required
TWAP order ID to fetch, e.g., "0x1a2b3c4d5e6f7890...". A TWAP owned by another wallet returns null.

Response

Response Fields

string
TWAP order ID, e.g., "0x1a2b3c..."
string
Schedule state: "pending", "active", "completed", "completed_partial", "canceled", "expired", "error", or "rejected".
string
Market display label, for example "BTC".
string
"buy" or "sell"
string
Total requested quantity in base-asset units.
string
Aggregate executed quantity across slices, in base-asset units.
string
Requested quantity still unfilled, in base-asset units.
boolean
  • true: Restricts fills to reducing the position.
  • false: Allows opening or increasing it.
number
Slices accepted with a complete fill result.
number
Slices accepted with a partial fill result.
number
Rejected slice orders, including order_rejected skips.
string
Sum of executed size × execution price across slices, in the market’s quote units.
string
Volume-weighted average execution price in quote units per base unit, formatted to six decimals; "0" before any fill.
number
Requested execution duration in milliseconds.
number
Nominal interval between slices in milliseconds.
number
Schedule start time in Unix milliseconds; 0 for a rejected TWAP, and for an isolated TWAP until its first slice is accepted.
number
Planned schedule end time (startedAt + durationMs) in Unix milliseconds; 0 while startedAt is 0.
number
Zero-based index of the next slice to process.
number
Planned number of suborders
boolean
  • true: Randomizes the time between TWAP slices.
  • false: Uses the configured interval.
number
Request creation time in Unix milliseconds.
number
Last schedule-state update time in Unix milliseconds.
number
Optional terminal time in Unix milliseconds; present only for completed, completed_partial, expired, and error.
number
Optional cancellation time in Unix milliseconds; present only for canceled.
string
Optional. Admission rejection reason, the latest slice failure while running (cleared when a later slice is accepted or fills), or the finish detail.