Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt

Use this file to discover all available pages before exploring further.

Monitor all BTC perpetual futures trades including position changes and realized PnL.

Use Case

Track Bitcoin trading activity to:
  • Monitor BTC market depth and liquidity
  • Analyze position changes and PnL
  • Track market maker activity
  • Build BTC-specific trading analytics

Sample Response

{
  "header": {
    "number": 900000004,
    "timestamp": 1771562718537
  },
  "fills": [
    {
      "user": "0x0bb3e7ca6d66021eecbf23fb09e6dabe44bf1b41",
      "coin": "BTC",
      "px": 67261.0,
      "sz": 0.00305,
      "side": "B",
      "startPosition": -3.23188,
      "dir": "Close Short",
      "closedPnl": 0.061915,
      "fee": 0.0
    }
  ]
}

Field Descriptions

  • coin - Asset symbol (always “BTC” in this query)
  • px - Fill price in USD
  • sz - Fill size in BTC
  • side - “A” (ask/sell) or “B” (bid/buy)
  • dir - Trade direction: “Open Long”, “Close Long”, “Open Short”, “Close Short”
  • closedPnl - Realized profit/loss when closing a position (0 for opening trades)
  • startPosition - Position size before this fill (negative = short, positive = long)
  • fee - Trading fee charged