> ## 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.

# UnconfirmedSwapEventData

> Event data for a token swap event. Reference for the UnconfirmedSwapEventData type in the Codex API: every field, its type, and the operations that return it.

## GraphQL

```
type UnconfirmedSwapEventData {
  amountNonLiquidityToken: String
  priceBaseToken: String
  priceBaseTokenTotal: String
  priceUsd: String
  priceUsdTotal: String
  type: EventType!
  amountBaseToken: String
}

enum EventType {
  Burn
  Mint
  Swap
  Sync
  Collect
  CollectProtocol
  PoolBalanceChanged
  LiquidityLock
}
```

### Used By

**Returned by**

* [onUnconfirmedEventsCreated](https://docs.codex.io/api-reference/subscriptions/onunconfirmedeventscreated.md) *(deprecated)*: Deprecated unconfirmed live-streamed transactions for a token. Use `onEventsCreated` instead. (Solana only)
* [onUnconfirmedEventsCreatedByMaker](https://docs.codex.io/api-reference/subscriptions/onunconfirmedeventscreatedbymaker.md) *(deprecated)*: Deprecated unconfirmed live-streamed transactions for a maker. Use `onEventsCreatedByMaker` instead. (Solana only)


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