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

# Wallet PnL Summary

> Aggregated wallet-level profitability totals across all queried chains: PnL, volumes, trade counts, and win rate.

export const EndpointMeta = ({premium, cus, cusUnit, mainnetOnly}) => {
  const items = [];
  const planName = typeof premium === "string" ? premium : "Pro";
  if (premium) {
    items.push({
      icon: "\u26a0\ufe0f",
      label: "Premium endpoint",
      text: <>
          Requires the <strong>{planName} plan</strong> or above.{" "}
          <a href="/data-api/introduction/resources/premium-endpoints">
            View all
          </a>
          .
        </>
    });
  }
  if (cus) {
    const isDynamic = !!cusUnit;
    items.push({
      icon: "\u26a1",
      label: isDynamic ? "Dynamic cost" : "Endpoint cost",
      text: isDynamic ? <>
          {cus} CUs per {cusUnit}.{" "}
          <a href="/get-started/pricing#dynamic-endpoints">Learn more</a>.
        </> : <>
          {cus} CUs.{" "}
          <a href="/get-started/pricing">Learn more</a>.
        </>
    });
  }
  if (mainnetOnly) {
    items.push({
      icon: "\ud83d\udd17",
      label: "Mainnet only",
      text: <>Testnet chains are not supported.</>
    });
  }
  if (items.length === 0) return null;
  return <div className="endpoint-meta" style={{
    border: "1px solid var(--border-color, #e2e8f0)",
    borderRadius: "8px",
    overflow: "hidden",
    marginBottom: "16px",
    fontSize: "14px",
    lineHeight: "1.6",
    maxWidth: "100%"
  }}>
      <style dangerouslySetInnerHTML={{
    __html: `
            .endpoint-meta {
              --border-color: #e2e8f0;
              --row-bg: #f8fafc;
              --label-color: #0f172a;
              --text-color: #1f2937;
            }
            .endpoint-meta a {
              color: #0f7fff !important;
              text-decoration: underline;
            }
            @media (prefers-color-scheme: dark) {
              .endpoint-meta {
                --border-color: #374151 !important;
                --row-bg: #1e293b !important;
                --label-color: #f9fafb !important;
                --text-color: #e5e7eb !important;
              }
              .endpoint-meta a {
                color: #60a5fa !important;
              }
            }
            html.dark .endpoint-meta,
            [data-theme="dark"] .endpoint-meta {
              --border-color: #374151 !important;
              --row-bg: #1e293b !important;
              --label-color: #f9fafb !important;
              --text-color: #e5e7eb !important;
            }
            html.dark .endpoint-meta a,
            [data-theme="dark"] .endpoint-meta a {
              color: #60a5fa !important;
            }
          `
  }} />
      {items.map((item, i) => <div key={i} style={{
    display: "flex",
    alignItems: "baseline",
    gap: "8px",
    padding: "10px 14px",
    borderBottom: i < items.length - 1 ? "1px solid var(--border-color, #e2e8f0)" : "none",
    backgroundColor: "var(--row-bg, #f8fafc)"
  }}>
          <span style={{
    flexShrink: 0
  }}>{item.icon}</span>
          <span style={{
    wordBreak: "break-word",
    color: "var(--text-color, #1f2937)"
  }}>
            <strong style={{
    color: "var(--label-color, #0f172a)"
  }}>
              {item.label}:
            </strong>{" "}
            {item.text}
          </span>
        </div>)}
    </div>;
};

<EndpointMeta cus={30} cusUnit="chain" mainnetOnly />

<Note>
  This is the multi-chain successor to the legacy Deep Index [Wallet PnL Summary](/data-api/evm/wallet/wallet-pnl-summary) endpoint. Pass multiple `chains` (or `mainnets`) to get aggregated wallet-level totals across chains in a single request.
</Note>


## OpenAPI

````yaml openapi-files/data-api/api-v1.json GET /v1/wallets/{walletAddress}/pnl/summary
openapi: 3.0.0
info:
  title: Moralis Universal API 🚧
  description: This API is in early access and is subject to change.
  version: '1.0'
servers:
  - url: https://api.moralis.com
security: []
externalDocs:
  description: Moralis API Docs
  url: https://docs.moralis.com
paths:
  /v1/wallets/{walletAddress}/pnl/summary:
    get:
      tags:
        - Wallets
        - PnL
      summary: Get the wallet-level profitability summary across multiple chains.
      description: >-
        Aggregated wallet-level profitability totals across all queried chains:
        PnL, volumes, trade counts, and win rate.
      operationId: getWalletProfitabilitySummary
      parameters:
        - name: walletAddress
          required: true
          in: path
          description: The address
          examples:
            '0xcb1c1fde09f811b294172696404e88e658659905':
              value: '0xcb1c1fde09f811b294172696404e88e658659905'
          schema:
            type: string
        - name: chains
          required: false
          in: query
          description: Chains to query
          schema:
            type: array
            items:
              type: string
              enum:
                - '0x1'
                - ethereum
                - '0x171'
                - pulse
                - '0x2105'
                - base
                - '0x38'
                - binance
                - '0x89'
                - polygon
                - '0xa'
                - optimism
                - '0xa86a'
                - avalanche
                - all
                - mainnets
        - name: period
          required: false
          in: query
          schema:
            type: string
        - name: fromTimestamp
          required: false
          in: query
          schema:
            type: string
        - name: toTimestamp
          required: false
          in: query
          schema:
            type: string
        - name: excludeLowLiquidity
          required: false
          in: query
          schema:
            type: boolean
        - name: minVolumeUsd
          required: false
          in: query
          schema:
            minimum: 0
            type: number
        - name: minTradeCount
          required: false
          in: query
          schema:
            minimum: 0
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWalletProfitabilitySummaryResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GetWalletProfitabilitySummaryResponse:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/MultiChainResponseMetaDto'
        totalTokensBought:
          type: number
        totalTokensSold:
          type: number
        totalBoughtVolumeUsd:
          type: number
        totalSoldVolumeUsd:
          type: number
          description: 'Pinned field name: totalSoldVolumeUsd.'
        totalTrades:
          type: number
        totalBuys:
          type: number
        totalSells:
          type: number
        realizedProfitUsd:
          type: number
        realizedProfitPercentage:
          type: number
        unrealizedProfitUsd:
          type: number
        unrealizedProfitPercentage:
          type: number
        totalPnlUsd:
          type: number
        totalPnlPercentage:
          type: number
        roi:
          type: number
        winRate:
          type: number
          description: Fraction of tokens with totalPnlUsd > 0. 0 for empty wallets.
          example: 0.6
        tokensTraded:
          type: number
          description: Distinct tokens that contributed to the summary.
      required:
        - meta
        - totalTokensBought
        - totalTokensSold
        - totalBoughtVolumeUsd
        - totalSoldVolumeUsd
        - totalTrades
        - totalBuys
        - totalSells
        - realizedProfitUsd
        - realizedProfitPercentage
        - unrealizedProfitUsd
        - unrealizedProfitPercentage
        - totalPnlUsd
        - totalPnlPercentage
        - roi
        - winRate
        - tokensTraded
    MultiChainResponseMetaDto:
      type: object
      properties:
        syncedAt:
          type: object
          description: >-
            Last sync block position for each chain in the response. The literal
            'latest' indicates the chain is synced up to the latest block (no
            pinned block number available).
          additionalProperties:
            oneOf:
              - type: number
              - type: string
          example:
            '0x1': 1710000000
            solana-mainnet: latest
        unsupportedChains:
          description: Requested chains that are not supported
          nullable: true
          example:
            - '0x89'
          type: array
          items:
            type: string
        failedChains:
          description: Requested chains that are not supported
          nullable: true
          example:
            - '0x89'
          type: array
          items:
            $ref: '#/components/schemas/ChainFailureDto'
      required:
        - syncedAt
        - unsupportedChains
        - failedChains
    ChainFailureDto:
      type: object
      properties:
        chainId:
          type: string
          description: Chain ID of the failed chain
          example: '0x89'
        code:
          type: string
          description: Error code for the failed chain
          example: INTERNAL_SERVER_ERROR
        error:
          type: object
          description: Error message for the failed chain
          example: Failed to fetch data from the chain
          nullable: true
      required:
        - chainId
        - code
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````