πŸ†•Perp Trades

Get TGM Perp Trades Data

post

Retrieve perpetual trade data for a specific token on Hyperliquid. Shows individual trades with detailed information including trader address, trade side (Long/Short), action type (Add/Reduce/Open/Close), order type (Market/Limit), and trade metrics.

Key Features:

  • Hyperliquid perpetual contracts only

  • Smart money filtering capabilities

  • Detailed trade breakdown with parsed action fields

  • Support for both Long and Short position trading

  • Market and Limit order types

Request Parameters:

  • token_symbol: Token symbol to fetch trades for (e.g., "BTC", "ETH")

  • date: Date range for the trades

  • filters: Additional filters for side, action, order_type, etc.

  • pagination: Page and per_page parameters

Authorizations
apiKeystringRequired

API key for authentication

Body

Request model for TGM perp trades endpoint.

This endpoint provides perp trades data for a specific token.

token_symbolstringRequired

Token symbol

Example: BTC
filtersany ofOptional

Additional filters to apply to the query.

Example: {"order_type":["MARKET"],"side":["Long"]}
order_byany ofOptional

Custom sort order to override the endpoint's default ordering.

Examples:

  • [{"field": "block_timestamp", "direction": "DESC"}] - Sort by timestamp descending
  • [{"field": "value_usd", "direction": "DESC"}] - Sort by trade value descending
Responses
200

TGM perp trades data

application/json
post
/api/v1/tgm/perp-trades
POST /api/v1/tgm/perp-trades HTTP/1.1
Host: api.nansen.ai
apiKey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 218

{
  "token_symbol": "BTC",
  "date": {
    "from": "2025-07-07",
    "to": "2025-07-14"
  },
  "pagination": {
    "page": 1,
    "per_page": 10
  },
  "filters": {
    "order_type": [
      "MARKET"
    ],
    "side": [
      "Long"
    ]
  },
  "order_by": [
    {
      "field": "block_timestamp",
      "direction": "ASC"
    }
  ]
}
{
  "data": [
    {
      "trader_address_label": "Smart Money",
      "trader_address": "0x28c6c06298d514db089934071355e5743bf21d60",
      "token_symbol": "BTC",
      "side": "Long",
      "action": "Add",
      "token_amount": 1.5,
      "price_usd": 60000,
      "value_usd": 90000,
      "type": "MARKET",
      "block_timestamp": "2025-10-01T12:40:00Z",
      "transaction_hash": "0x61adb6da30853c5988f0204dd9f6e4abbc878e02c34030a4f707cf4ec3124bcb"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 10,
    "is_last_page": true
  }
}

Last updated

Was this helpful?