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

# walletTrades

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

## GraphQL

```
type Query {
  # Requires a Growth or Enterprise plan.
  walletTrades(
    input: WalletTradesInput!
    limit: Int
    cursor: String
    direction: RankingDirection
  ): WalletTradesConnection
}

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
}

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!]!
}

type WalletTradeCoverage {
  networkId: Int!
  from: Int
}

type WalletTradesConnection {
  items: [WalletTrade!]!
  cursor: String
  coverage: [WalletTradeCoverage!]!
}

input EventQueryTimestampInput {
  from: Int!
  to: Int!
}

input WalletTradesInput {
  walletAddress: String!
  networkIds: [Int!]
  tokenAddress: String
  side: WalletTradeSide
  timestamp: EventQueryTimestampInput
}

enum RankingDirection {
  ASC
  DESC
}
```


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