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

# EventLabelData

> Specific data for an event label. Reference for EventLabelData in the Codex API: every member type and where it appears in a response.

## GraphQL

```
union EventLabelData = FrontRunLabelData | SandwichedLabelData

type FrontRunLabelData {
  index: Int
  token0DrainedAmount: String!
  token1DrainedAmount: String!
}

type SandwichedLabelData {
  token0DrainedAmount: String
  token1DrainedAmount: String
}
```

### Used By

**Returned by**

* [getEventLabels](https://docs.codex.io/api-reference/queries/geteventlabels.md): Returns a list of event labels for a pair.
* [onEventLabelCreated](https://docs.codex.io/api-reference/subscriptions/oneventlabelcreated.md): Live-streamed event labels for a token.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.