Skip to main content
GET
/
trades
Get Recent Trades
curl --request GET \
  --url https://api.dexaggregatorbeta.xyz/trades \
  --header 'X-API-KEY: <api-key>'
{
  "trades": [
    {
      "id": "<string>",
      "symbol": "BTC-USD",
      "exchange": "hyperliquid",
      "price": "<string>",
      "size": "<string>",
      "side": "BUY",
      "timestamp": 123
    }
  ]
}
Retrieve recent public trade executions for a specific trading pair. This endpoint provides historical trade data with exchange attribution.

Features

  • Real-time trade data: Recent trade executions across exchanges
  • Exchange filtering: Filter trades by specific exchanges
  • Configurable limit: Control the number of trades returned
  • Trade details: Price, size, side, and timestamp for each trade

Request

  • Method: GET
  • Endpoint: /trades
  • Query Parameters: symbol (required), limit, exchanges[]
curl -X GET "https://api.dexaggregatorbeta.xyz/trades?symbol=BTC-USD&limit=50" \
  -H "Content-Type: application/json"

Use Cases

  • Display recent trade history in trading interfaces
  • Analyze trading patterns and volume distribution
  • Calculate volume-weighted average prices (VWAP)
  • Monitor market activity and liquidity
For real-time trade updates, use the WebSocket trades:{symbol} topic for live trade streams.

Authorizations

X-API-KEY
string
header
required

Query Parameters

symbol
string
required

Trading pair symbol

Example:

"BTC-USD"

exchanges[]
enum<string>[]

Filter by exchanges

Available options:
hyperliquid,
aster,
lighter,
avantis
limit
integer
default:50

Number of trades to return

Required range: 1 <= x <= 500

Response

200 - application/json

Recent trades

trades
object[]