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

# /zerion/wallets/pnl

> Get a wallet's realized and unrealized profit and loss by EVM address or ENS name

**Price:** 1 credit

**💡 AI Hint:** Get the all-time profit and loss (PnL) of a crypto wallet by its EVM address (0x...) or ENS name. Returns the realized PnL (from closed/sold positions), the unrealized PnL (from current holdings), and the total, each both as an absolute value in the chosen currency and as a relative return ratio (e.g. -0.68 means -68%).

**⚠️ Common errors:** 412: Wallet or ENS name not found



## OpenAPI

````yaml /openapi-filtered.json post /api/zerion/wallets/pnl
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/zerion/wallets/pnl:
    post:
      tags:
        - /zerion
      summary: /zerion/wallets/pnl
      description: >-
        Get a wallet's realized and unrealized profit and loss by EVM address or
        ENS name


        **Price:** 1 credit


        **💡 AI Hint:** Get the all-time profit and loss (PnL) of a crypto
        wallet by its EVM address (0x...) or ENS name. Returns the realized PnL
        (from closed/sold positions), the unrealized PnL (from current
        holdings), and the total, each both as an absolute value in the chosen
        currency and as a relative return ratio (e.g. -0.68 means -68%).


        **⚠️ Common errors:** 412: Wallet or ENS name not found
      operationId: __api_zerion_wallets_pnl_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZerionPnlPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ZerionPnl'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ZerionPnlPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        address:
          type: string
          description: 'Wallet address: an EVM 0x address or an ENS / identity name'
          examples:
            - '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
            - vitalik.eth
        currency:
          $ref: '#/components/schemas/ZerionCurrency'
          description: Currency to denominate profit and loss values in
          default: usd
      type: object
      required:
        - address
    ZerionPnl:
      properties:
        '@type':
          type: string
          default: ZerionPnl
        realized_pnl:
          anyOf:
            - type: number
            - type: 'null'
        unrealized_pnl:
          anyOf:
            - type: number
            - type: 'null'
        total_pnl:
          anyOf:
            - type: number
            - type: 'null'
        relative_realized_pnl:
          anyOf:
            - type: number
            - type: 'null'
        relative_unrealized_pnl:
          anyOf:
            - type: number
            - type: 'null'
        relative_total_pnl:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ZerionCurrency:
      type: string
      enum:
        - usd
        - eur
        - gbp
        - jpy
        - aud
        - cad
        - chf
        - cny
        - inr
        - krw
        - rub
        - brl
        - try
        - btc
        - eth
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````