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

# WalletTrade

> One of a wallet's trades: everything the wallet did in one transaction. WalletTrade type reference: every field and its type.

## GraphQL

```
type WalletTrade {
  walletAddress: String!
  networkId: Int!
  transactionHash: String!
  blockNumber: Int!
  transactionIndex: Int!
  timestamp: Int!
  side: WalletTradeSide!
  tokenAddress: String
  tokenAmount: String
  liquidityTokenAddress: String
  liquidityTokenAmount: String
  valueUsd: String
  tokenPriceUsd: String
  liquidityTokenPriceUsd: String
  status: WalletTradeStatus!
  valuation: WalletTradeValuation!
  flows: [WalletTradeFlow!]!
}

enum WalletTradeSide {
  BUY
  SELL
  BURN
}

enum WalletTradeStatus {
  CLEAN
  ONE_SIDED
  AMBIGUOUS
}

enum WalletTradeValuation {
  WALLET
  FORWARDED
  ESTIMATED
  SKIPPED
  UNVALUED
  BURNED
}

type WalletTradeFlow {
  tokenAddress: String!
  amountIn: String
  amountOut: String
}
```

### Used By

**Returned by**

* [walletTrades](https://docs.codex.io/api-reference/queries/wallettrades.md): Returns a wallet's trades, newest first: one per transaction, with what the wallet paid and received and what it was worth. Each network's trades begin at the time in `coverage`.


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