> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# HypercoreFillTransaction

Decoded details for a Hypercore perpetuals trade fill

Implements: [`DecodedDetails`](/api-reference/streaming-api/types/decoded-details)

## Fields

<ResponseField name="type" type="enum">
  Enum value identifying the transaction type

  Type: [`TransactionType`](/api-reference/streaming-api/types/transaction-type)
</ResponseField>

<ResponseField name="liquidation" type="object">
  Liquidation details, present only when this fill resulted from a liquidation

  Type: [`HypercoreLiquidation`](/api-reference/streaming-api/types/hypercore-liquidation)

  <Expandable title="properties">
    <ResponseField name="market_price" type="string">
      Mark price at the time of liquidation
    </ResponseField>

    <ResponseField name="method" type="string">
      Liquidation method: Market or Backstop
    </ResponseField>

    <ResponseField name="liquidated_user" type="string">
      Address of the user whose position was liquidated
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="twap_id" type="string">
  TWAP order ID when this fill was part of a TWAP execution
</ResponseField>

<ResponseField name="builder_fee" type="string">
  Fee paid to the builder, if a builder was involved
</ResponseField>

<ResponseField name="side" type="string">
  Fill side: BUY, SELL, or UNSPECIFIED
</ResponseField>

<ResponseField name="cloid" type="string">
  Client-supplied order ID for programmatic order tracking
</ResponseField>

<ResponseField name="closed_pnl" type="string">
  Realized PnL from the closed portion of the position
</ResponseField>

<ResponseField name="fee" type="string">
  Fee charged for this fill
</ResponseField>

<ResponseField name="fee_token" type="string">
  Token in which the fee was denominated
</ResponseField>

<ResponseField name="oid" type="string">
  Order ID that originated this fill
</ResponseField>

<ResponseField name="dir" type="string">
  Direction indicator for the position change
</ResponseField>

<ResponseField name="start_position" type="string">
  Position size before this fill executed
</ResponseField>

<ResponseField name="tid" type="string">
  Unique trade ID assigned by the exchange
</ResponseField>

<ResponseField name="size" type="string">
  Filled quantity
</ResponseField>

<ResponseField name="price" type="string">
  Execution price per unit
</ResponseField>

<ResponseField name="builder" type="string">
  Address of the builder that constructed this order
</ResponseField>

<ResponseField name="time" type="string">
  ISO-8601 timestamp of the fill
</ResponseField>

<ResponseField name="crossed" type="boolean">
  Whether the order crossed the spread (true = taker, false = maker)
</ResponseField>

<ResponseField name="hash" type="string">
  On-chain transaction hash
</ResponseField>

<ResponseField name="coin" type="string">
  Market/coin symbol (e.g. ETH, BTC)
</ResponseField>
