Skip to content
Alchemy Logo

liquidationFills stream

This API is in private preview. Target September 2026; timing is subject to change.

{
  "method": "subscribe",
  "subscription": {
    "type": "liquidationFills",
    "coins": ["BTC"]
  }
}

{
  "channel": "subscriptionResponse",
  "data": {
    "subscriptionId": "sub_01",
    "type": "liquidationFills"
  }
}

{
  "channel": "liquidationFills",
  "subscriptionId": "sub_01",
  "blockHeight": 123456,
  "blockTime": 1780000000000,
  "cursor": "<opaque cursor>",
  "data": {
    "fills": [
      {
        "user": "0x1111111111111111111111111111111111111111",
        "coin": "BTC",
        "px": "100000.0",
        "sz": "0.01",
        "side": "B",
        "time": 1780000000000,
        "startPosition": "0.00",
        "dir": "Open Long",
        "closedPnl": "0.0",
        "hash": "0xabc123",
        "oid": 12345,
        "crossed": false,
        "fee": "0.20",
        "tid": 87654321,
        "liquidation": {
          "liquidatedUser": "0x3333333333333333333333333333333333333333",
          "markPx": "99990.0",
          "method": "market"
        },
        "feeToken": "USDC",
        "builderFee": "0.01",
        "cloid": "client-order-01",
        "deployerFee": "0.01",
        "priorityGas": "0.001",
        "builder": "0x2222222222222222222222222222222222222222",
        "twapId": null,
        "txIndex": 3
      }
    ]
  }
}

FieldTypeDescription
fillsarrayFill records.
fills[]objectFill record.
fills[].userstringUser identifier for the fill.
fills[].coinstringMarket symbol for the fill.
fills[].pxstringExecution price.
fills[].szstringExecuted size.
fills[].sidestringSide code: A is ask/sell; B is bid/buy.
fills[].timeintegerTime of the fill, in milliseconds.
fills[].startPositionstringPosition size immediately before the fill.
fills[].dirstringDisplay direction for the fill.
fills[].closedPnlstringRealized profit or loss closed by the fill.
fills[].hashstringLayer-1 transaction hash for the fill.
fills[].oidintegerIdentifier of the order that produced the fill.
fills[].crossedbooleanWhether the order crossed the spread.
fills[].feestringFee charged for the fill; a negative value is a rebate.
fills[].tidintegerTrade identifier.
fills[].liquidationobject or nullLiquidation details when the fill is a liquidation.
fills[].liquidation.liquidatedUserstringAddress of the liquidated user, when present.
fills[].liquidation.markPxstringMark price at liquidation.
fills[].liquidation.methodstringLiquidation method: market or backstop.
fills[].feeTokenstringToken in which the fee was paid.
fills[].builderFeestringAmount paid to the builder and included in fee.
fills[].cloidstring or nullClient order identifier.
fills[].deployerFeestringFee paid to the HIP-3 deployer.
fills[].priorityGasstring or nullOrder-priority fee paid in HYPE.
fills[].builderstringBuilder address associated with the fill.
fills[].twapIdinteger or nullIdentifier of the TWAP that produced the fill.
fills[].txIndexintegerTransaction index of the fill within its block.

{
  "method": "unsubscribe",
  "subscription": {
    "type": "liquidationFills",
    "coins": ["BTC"]
  }
}

To resume a stream, supply cursor in the subscription object. The cursor is opaque: clients store and return it unmodified, and its format may change.

Was this page helpful?