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

# SwapEventData

> Payload for an Event with eventType=Swap. Per-side amounts and prices.

### TypeScript shape

```ts theme={null}
interface SwapEventData {
  amount0: string | null;
  amount0In: string | null;
  amount0Out: string | null;
  amount1: string | null;
  amount1In: string | null;
  amount1Out: string | null;
  amountNonLiquidityToken: string | null;
  priceBaseToken: string | null;
  priceBaseTokenTotal: string | null;
  priceUsd: string | null;
  priceUsdTotal: string | null;
  tick: string | null;
  type: EventType;
}
```

<ResponseField name="__typename" type="String!">Always `"SwapEventData"`.</ResponseField>
<ResponseField name="type" type="EventType!">Always `Swap`. See [EventType](/api-reference/graphql/types/EventType).</ResponseField>
<ResponseField name="amount0" type="String">Signed raw amount of token0 (positive = into pool, negative = out of pool).</ResponseField>
<ResponseField name="amount1" type="String">Signed raw amount of token1.</ResponseField>
<ResponseField name="amount0In" type="String">Token0 amount entering the pool. Null on the historical path; populated by the live subscription.</ResponseField>
<ResponseField name="amount0Out" type="String">Token0 amount leaving the pool. Null on the historical path.</ResponseField>
<ResponseField name="amount1In" type="String">Token1 amount entering the pool. Null on the historical path.</ResponseField>
<ResponseField name="amount1Out" type="String">Token1 amount leaving the pool. Null on the historical path.</ResponseField>
<ResponseField name="amountNonLiquidityToken" type="String">Decimal amount of the quote-side token. Populated only when the request specifies `quoteToken`.</ResponseField>
<ResponseField name="priceUsd" type="String">Per-unit USD price for the quote-side token. Defaults to token0 if `quoteToken` not supplied.</ResponseField>
<ResponseField name="priceUsdTotal" type="String">Total USD value of the swap (`amount_usd`).</ResponseField>
<ResponseField name="priceBaseToken" type="String">Per-unit price denominated in the chain's base token. Null on the historical path; populated by the live subscription.</ResponseField>
<ResponseField name="priceBaseTokenTotal" type="String">Total swap value denominated in the chain's base token. Null on the historical path.</ResponseField>
<ResponseField name="tick" type="String">V3 post-swap pool tick. Null on the historical path (column not preserved at extraction time).</ResponseField>
