Retrieve the most recent public trades for a specific asset. This endpoint provides real-time trade data including price, size, and timing information for market analysis.
info endpoint with type: "recentTrades" retrieves the most recent public trades for a specific asset on the Hyperliquid exchange. This endpoint provides real-time trade data including execution prices, quantities, and timing information, making it essential for market analysis, price discovery, and trading decision-making.
type (string, required) — The request type. Must be "recentTrades" to retrieve recent trades.coin (string, required) — Asset identifier (simple names like “BTC”, “ETH” for perpetuals; spot format like “@107” for spot trades).px — Trade price as a string for precisionsz — Trade size (quantity traded) as a stringside — Trade side: “A” for Ask/Sell, “B” for Bid/Buytime — Trade timestamp in millisecondstid — Unique trade ID"B" (Bid/Buy) — Trade executed by a buyer (market buy or aggressive buy)"A" (Ask/Sell) — Trade executed by a seller (market sell or aggressive sell)info endpoint with type: "recentTrades" is essential for applications that need to:
Successful response with recent trades data