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

# Get Wallet Trading Analysis

## Optional per-network breakdown

By default, `/api/2/wallet/analysis` keeps the same response shape and returns aggregated wallet trading stats.

Set `includeNetworkBreakdown=true` to also receive per-chain stats in `data.networkBreakdown`.

```bash theme={null}
curl 'https://api.mobula.io/api/2/wallet/analysis?wallet=0xd8B207De2B3a38f45D5b2BAE46D7755CA6a5fC2B&period=30d&includeNetworkBreakdown=true'
```

The added field is optional and does not replace the top-level `data.stat` object:

```ts theme={null}
networkBreakdown: Array<{
  chainId: string;
  networkId: number | null;
  stat: WalletAnalysisStat;
}>
```

`networkBreakdown[].stat` uses the same data model as the top-level `data.stat` field, so clients can reuse the same parser for aggregated and per-network wallet analysis.


## OpenAPI

````yaml get /2/wallet/analysis
openapi: 3.0.0
info:
  version: 1.0.0
  title: Mobula API
  description: >-
    Documentation of the Mobula API


    **Demo API**: The default server (demo-api.mobula.io) is a demo API with
    rate limits.

    For production use, please use api.mobula.io with an API key from
    https://admin.mobula.io
servers:
  - url: https://demo-api.mobula.io/api/
    description: Demo API (rate limited, for testing only)
  - url: https://api.mobula.io/api/
    description: Production API (requires API key)
security: []
tags:
  - name: V2 - Token
    description: Token details, price, security, ATH, and holder data
  - name: V2 - Market Data
    description: Market details, OHLCV history, and lighthouse metrics
  - name: V2 - Trades
    description: Token trades, enriched trades, and trade filters
  - name: V2 - Wallet
    description: Wallet positions, activity, trades, analysis, and labels
  - name: V2 - Assets
    description: Cross-chain asset details and price history
  - name: V2 - Swap
    description: Swap quoting and execution
  - name: V2 - Perps
    description: Perpetual futures quoting, execution, and positions
  - name: V2 - Bridge
    description: Cross-chain bridge quoting and intent status (Alpha Preview)
  - name: V2 - DeFi
    description: Bonding pools and pulse data
  - name: V2 - Search
    description: Universal fast search
  - name: V2 - Blockchains
    description: System metadata and chain listings
  - name: V1 - Market Data
    description: Market prices, history, sparklines, pairs, and multi-data
  - name: V1 - Wallet
    description: Wallet portfolio, transactions, history, and NFTs
  - name: V1 - Token
    description: First buyers
  - name: V1 - Trades
    description: Market trades by pair
  - name: V1 - Metadata
    description: Token metadata, categories, trendings, and news
  - name: V1 - Assets
    description: List all assets
  - name: V1 - Search
    description: Search for assets, tokens, and pairs
  - name: V1 - DeFi
    description: Bonding pool pulse data
  - name: V1 - Blockchains
    description: Blockchain listings, pairs, and stats
  - name: V1 - Webhooks
    description: Webhook management
  - name: V1 - Feed
    description: Custom feed creation
paths:
  /2/wallet/analysis:
    get:
      tags:
        - V2 - Wallet
      summary: Get wallet trading analysis
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Wallet address to analyze
          required: true
          description: Wallet address to analyze
          name: wallet
          in: query
        - schema:
            type: string
          required: false
          name: chainId
          in: query
        - schema:
            type: string
            description: >-
              Comma-separated list of chain IDs (e.g.,
              "evm:1,evm:8453,solana:solana"). If omitted, all chains.
          required: false
          description: >-
            Comma-separated list of chain IDs (e.g.,
            "evm:1,evm:8453,solana:solana"). If omitted, all chains.
          name: chainIds
          in: query
        - schema:
            type: string
            description: 'Analysis period: 1d, 7d, 30d, or 90d (default: 7d)'
          required: false
          description: 'Analysis period: 1d, 7d, 30d, or 90d (default: 7d)'
          name: period
          in: query
        - schema:
            type: number
            nullable: true
            description: Start timestamp in milliseconds (alternative to period)
          required: false
          description: Start timestamp in milliseconds (alternative to period)
          name: from
          in: query
        - schema:
            type: number
            nullable: true
            description: End timestamp in milliseconds (alternative to period)
          required: false
          description: End timestamp in milliseconds (alternative to period)
          name: to
          in: query
        - schema:
            type: boolean
            default: false
            description: >-
              When true, includes per-chain wallet analysis using the same stat
              shape as the top-level stat field.
          required: false
          description: >-
            When true, includes per-chain wallet analysis using the same stat
            shape as the top-level stat field.
          name: includeNetworkBreakdown
          in: query
      responses:
        '200':
          description: Wallet analysis response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      winRateDistribution:
                        type: object
                        properties:
                          '>500%':
                            type: number
                          200%-500%:
                            type: number
                          50%-200%:
                            type: number
                          0%-50%:
                            type: number
                          '-50%-0%':
                            type: number
                          <-50%:
                            type: number
                        required:
                          - '>500%'
                          - 200%-500%
                          - 50%-200%
                          - 0%-50%
                          - '-50%-0%'
                          - <-50%
                      marketCapDistribution:
                        type: object
                        properties:
                          '>1000M':
                            type: number
                          '>100M':
                            type: number
                          10M-100M:
                            type: number
                          1M-10M:
                            type: number
                          100k-1M:
                            type: number
                          <100k:
                            type: number
                        required:
                          - '>1000M'
                          - '>100M'
                          - 10M-100M
                          - 1M-10M
                          - 100k-1M
                          - <100k
                      periodTimeframes:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            realized:
                              type: number
                          required:
                            - date
                            - realized
                      calendarBreakdown:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                            volumeBuy:
                              type: number
                            volumeSell:
                              type: number
                            totalVolume:
                              type: number
                            buys:
                              type: number
                            sells:
                              type: number
                            realizedPnlUSD:
                              type: number
                          required:
                            - date
                            - volumeBuy
                            - volumeSell
                            - totalVolume
                            - buys
                            - sells
                            - realizedPnlUSD
                      stat:
                        type: object
                        properties:
                          totalValue:
                            type: number
                          periodTotalPnlUSD:
                            type: number
                          periodRealizedPnlUSD:
                            type: number
                          periodRealizedRate:
                            type: number
                          periodActiveTokensCount:
                            type: number
                          periodWinCount:
                            type: number
                          fundingInfo:
                            type: object
                            properties:
                              from:
                                type: string
                                nullable: true
                              date:
                                type: string
                                nullable: true
                              chainId:
                                type: string
                                nullable: true
                              txHash:
                                type: string
                                nullable: true
                              amount:
                                type: string
                                nullable: true
                              formattedAmount:
                                type: number
                                nullable: true
                              currency:
                                type: object
                                nullable: true
                                properties:
                                  name:
                                    type: string
                                  symbol:
                                    type: string
                                  logo:
                                    type: string
                                    nullable: true
                                  decimals:
                                    type: number
                                  address:
                                    type: string
                                required:
                                  - name
                                  - symbol
                                  - logo
                                  - decimals
                                  - address
                              fromWalletLogo:
                                type: string
                                nullable: true
                              fromWalletTag:
                                type: string
                                nullable: true
                              fromWalletMetadata:
                                type: object
                                nullable: true
                                properties:
                                  entityName:
                                    type: string
                                    nullable: true
                                  entityLogo:
                                    type: string
                                    nullable: true
                                  entityLabels:
                                    type: array
                                    items:
                                      type: string
                                  entityType:
                                    type: string
                                    nullable: true
                                  entityDescription:
                                    type: string
                                    nullable: true
                                  entityTwitter:
                                    type: string
                                    nullable: true
                                  entityWebsite:
                                    type: string
                                    nullable: true
                                  entityGithub:
                                    type: string
                                    nullable: true
                                  entityDiscord:
                                    type: string
                                    nullable: true
                                  entityTelegram:
                                    type: string
                                    nullable: true
                                  extra:
                                    type: object
                                    additionalProperties:
                                      nullable: true
                                required:
                                  - entityName
                                  - entityLogo
                                  - entityLabels
                                  - entityType
                                  - entityDescription
                                  - entityTwitter
                                  - entityWebsite
                                  - entityGithub
                                  - entityDiscord
                                  - entityTelegram
                            required:
                              - from
                              - date
                              - chainId
                              - txHash
                              - amount
                              - formattedAmount
                              - currency
                              - fromWalletLogo
                              - fromWalletTag
                          periodVolumeBuy:
                            type: number
                          periodVolumeSell:
                            type: number
                          periodBuys:
                            type: number
                          periodSells:
                            type: number
                          nativeBalance:
                            type: object
                            nullable: true
                            properties:
                              rawBalance:
                                type: string
                              formattedBalance:
                                type: number
                              assetId:
                                type: number
                                nullable: true
                              chainId:
                                type: string
                              address:
                                type: string
                              decimals:
                                type: number
                              name:
                                type: string
                              symbol:
                                type: string
                              logo:
                                type: string
                                nullable: true
                              price:
                                type: number
                              balanceUSD:
                                type: number
                            required:
                              - rawBalance
                              - formattedBalance
                              - assetId
                              - chainId
                              - address
                              - decimals
                              - name
                              - symbol
                              - logo
                              - price
                              - balanceUSD
                          periodBuyTokens:
                            type: number
                          periodSellTokens:
                            type: number
                          periodTradingTokens:
                            type: number
                          holdingTokensCount:
                            type: number
                          holdingDuration:
                            type: number
                          tradingTimeFrames:
                            type: number
                          winRealizedPnl:
                            type: number
                          winRealizedPnlRate:
                            type: number
                          winToken:
                            type: object
                            nullable: true
                            properties:
                              address:
                                type: string
                              chainId:
                                type: string
                              name:
                                type: string
                              symbol:
                                type: string
                              logo:
                                type: string
                                nullable: true
                              decimals:
                                type: number
                            required:
                              - address
                              - chainId
                              - name
                              - symbol
                              - logo
                              - decimals
                        required:
                          - totalValue
                          - periodTotalPnlUSD
                          - periodRealizedPnlUSD
                          - periodRealizedRate
                          - periodActiveTokensCount
                          - periodWinCount
                          - fundingInfo
                          - periodVolumeBuy
                          - periodVolumeSell
                          - periodBuys
                          - periodSells
                          - nativeBalance
                          - periodBuyTokens
                          - periodSellTokens
                          - periodTradingTokens
                          - holdingTokensCount
                          - holdingDuration
                          - tradingTimeFrames
                          - winRealizedPnl
                          - winRealizedPnlRate
                          - winToken
                      networkBreakdown:
                        type: array
                        items:
                          type: object
                          properties:
                            chainId:
                              type: string
                            networkId:
                              type: number
                              nullable: true
                            stat:
                              type: object
                              properties:
                                totalValue:
                                  type: number
                                periodTotalPnlUSD:
                                  type: number
                                periodRealizedPnlUSD:
                                  type: number
                                periodRealizedRate:
                                  type: number
                                periodActiveTokensCount:
                                  type: number
                                periodWinCount:
                                  type: number
                                fundingInfo:
                                  type: object
                                  properties:
                                    from:
                                      type: string
                                      nullable: true
                                    date:
                                      type: string
                                      nullable: true
                                    chainId:
                                      type: string
                                      nullable: true
                                    txHash:
                                      type: string
                                      nullable: true
                                    amount:
                                      type: string
                                      nullable: true
                                    formattedAmount:
                                      type: number
                                      nullable: true
                                    currency:
                                      type: object
                                      nullable: true
                                      properties:
                                        name:
                                          type: string
                                        symbol:
                                          type: string
                                        logo:
                                          type: string
                                          nullable: true
                                        decimals:
                                          type: number
                                        address:
                                          type: string
                                      required:
                                        - name
                                        - symbol
                                        - logo
                                        - decimals
                                        - address
                                    fromWalletLogo:
                                      type: string
                                      nullable: true
                                    fromWalletTag:
                                      type: string
                                      nullable: true
                                    fromWalletMetadata:
                                      type: object
                                      nullable: true
                                      properties:
                                        entityName:
                                          type: string
                                          nullable: true
                                        entityLogo:
                                          type: string
                                          nullable: true
                                        entityLabels:
                                          type: array
                                          items:
                                            type: string
                                        entityType:
                                          type: string
                                          nullable: true
                                        entityDescription:
                                          type: string
                                          nullable: true
                                        entityTwitter:
                                          type: string
                                          nullable: true
                                        entityWebsite:
                                          type: string
                                          nullable: true
                                        entityGithub:
                                          type: string
                                          nullable: true
                                        entityDiscord:
                                          type: string
                                          nullable: true
                                        entityTelegram:
                                          type: string
                                          nullable: true
                                        extra:
                                          type: object
                                          additionalProperties:
                                            nullable: true
                                      required:
                                        - entityName
                                        - entityLogo
                                        - entityLabels
                                        - entityType
                                        - entityDescription
                                        - entityTwitter
                                        - entityWebsite
                                        - entityGithub
                                        - entityDiscord
                                        - entityTelegram
                                  required:
                                    - from
                                    - date
                                    - chainId
                                    - txHash
                                    - amount
                                    - formattedAmount
                                    - currency
                                    - fromWalletLogo
                                    - fromWalletTag
                                periodVolumeBuy:
                                  type: number
                                periodVolumeSell:
                                  type: number
                                periodBuys:
                                  type: number
                                periodSells:
                                  type: number
                                nativeBalance:
                                  type: object
                                  nullable: true
                                  properties:
                                    rawBalance:
                                      type: string
                                    formattedBalance:
                                      type: number
                                    assetId:
                                      type: number
                                      nullable: true
                                    chainId:
                                      type: string
                                    address:
                                      type: string
                                    decimals:
                                      type: number
                                    name:
                                      type: string
                                    symbol:
                                      type: string
                                    logo:
                                      type: string
                                      nullable: true
                                    price:
                                      type: number
                                    balanceUSD:
                                      type: number
                                  required:
                                    - rawBalance
                                    - formattedBalance
                                    - assetId
                                    - chainId
                                    - address
                                    - decimals
                                    - name
                                    - symbol
                                    - logo
                                    - price
                                    - balanceUSD
                                periodBuyTokens:
                                  type: number
                                periodSellTokens:
                                  type: number
                                periodTradingTokens:
                                  type: number
                                holdingTokensCount:
                                  type: number
                                holdingDuration:
                                  type: number
                                tradingTimeFrames:
                                  type: number
                                winRealizedPnl:
                                  type: number
                                winRealizedPnlRate:
                                  type: number
                                winToken:
                                  type: object
                                  nullable: true
                                  properties:
                                    address:
                                      type: string
                                    chainId:
                                      type: string
                                    name:
                                      type: string
                                    symbol:
                                      type: string
                                    logo:
                                      type: string
                                      nullable: true
                                    decimals:
                                      type: number
                                  required:
                                    - address
                                    - chainId
                                    - name
                                    - symbol
                                    - logo
                                    - decimals
                              required:
                                - totalValue
                                - periodTotalPnlUSD
                                - periodRealizedPnlUSD
                                - periodRealizedRate
                                - periodActiveTokensCount
                                - periodWinCount
                                - fundingInfo
                                - periodVolumeBuy
                                - periodVolumeSell
                                - periodBuys
                                - periodSells
                                - nativeBalance
                                - periodBuyTokens
                                - periodSellTokens
                                - periodTradingTokens
                                - holdingTokensCount
                                - holdingDuration
                                - tradingTimeFrames
                                - winRealizedPnl
                                - winRealizedPnlRate
                                - winToken
                          required:
                            - chainId
                            - networkId
                            - stat
                      labels:
                        type: array
                        items:
                          type: string
                      walletMetadata:
                        type: object
                        nullable: true
                        properties:
                          entityName:
                            type: string
                            nullable: true
                          entityLogo:
                            type: string
                            nullable: true
                          entityLabels:
                            type: array
                            items:
                              type: string
                          entityType:
                            type: string
                            nullable: true
                          entityDescription:
                            type: string
                            nullable: true
                          entityTwitter:
                            type: string
                            nullable: true
                          entityWebsite:
                            type: string
                            nullable: true
                          entityGithub:
                            type: string
                            nullable: true
                          entityDiscord:
                            type: string
                            nullable: true
                          entityTelegram:
                            type: string
                            nullable: true
                          extra:
                            type: object
                            additionalProperties:
                              nullable: true
                        required:
                          - entityName
                          - entityLogo
                          - entityLabels
                          - entityType
                          - entityDescription
                          - entityTwitter
                          - entityWebsite
                          - entityGithub
                          - entityDiscord
                          - entityTelegram
                      platform:
                        type: object
                        nullable: true
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          logo:
                            type: string
                            nullable: true
                        required:
                          - id
                          - name
                          - logo
                    required:
                      - winRateDistribution
                      - marketCapDistribution
                      - periodTimeframes
                      - calendarBreakdown
                      - stat
                      - labels
                      - walletMetadata
                      - platform
                required:
                  - data

````