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

# Fast FIFO-derived holdings (no Shyft)

> Returns holdings derived entirely from Dexploit's own swap index using FIFO lot matching. No external Shyft call — typically ~30 ms.

Only covers tokens the wallet traded through indexed DEXes (pump.fun, pumpswap, Raydium, Meteora, Orca). Tokens acquired via airdrop or off-platform will not appear. No USD values.

Use this endpoint when you need a quick snapshot and completeness is less important than latency. Uncached.

See [Wallet portfolio](/concepts/wallet-portfolio) for the trade-off between this endpoint and `/holdings`.



## OpenAPI

````yaml /api-reference/openapi.json get /wallets/{w}/holdings/basic
openapi: 3.1.0
info:
  title: Dexploit API
  version: 1.0.0
  description: Real-time and historical Solana DEX swap and OHLCV data.
servers:
  - url: https://api.dexploit.dev
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
  - ApiKeyQuery: []
paths:
  /wallets/{w}/holdings/basic:
    get:
      tags:
        - Wallet portfolio
      summary: Fast FIFO-derived holdings (no Shyft)
      description: >-
        Returns holdings derived entirely from Dexploit's own swap index using
        FIFO lot matching. No external Shyft call — typically ~30 ms.


        Only covers tokens the wallet traded through indexed DEXes (pump.fun,
        pumpswap, Raydium, Meteora, Orca). Tokens acquired via airdrop or
        off-platform will not appear. No USD values.


        Use this endpoint when you need a quick snapshot and completeness is
        less important than latency. Uncached.


        See [Wallet portfolio](/concepts/wallet-portfolio) for the trade-off
        between this endpoint and `/holdings`.
      operationId: getWalletHoldingsBasic
      parameters:
        - name: w
          in: path
          required: true
          schema:
            type: string
          description: Wallet address (base58, 32–44 characters).
        - name: dex
          in: query
          required: false
          schema:
            type: string
          description: >-
            Filter to one or more DEXes — a comma-separated list of integer IDs
            and/or lowercase names (e.g. `pumpfun,raydium_clmm` or `0,3`). See
            `DexId` for the id↔name mapping.
      responses:
        '200':
          description: FIFO-derived holdings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HoldingsBasicResponse'
        '400':
          description: Wallet address is not valid base58
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    HoldingsBasicResponse:
      type: object
      description: >-
        Response from `/wallets/{w}/holdings/basic`. FIFO-derived holdings from
        Dexploit's own swap index — no Shyft call, no USD values (SOL only).
        Fast (~30 ms). Only covers tokens traded through indexed DEXes. Unlike
        `/holdings`, entries omit `no_cost_basis` and any USD fields.
      required:
        - wallet
        - holdings
      properties:
        wallet:
          type: string
        holdings:
          type: array
          items:
            type: object
            required:
              - mint
              - qty
              - cost_basis_sol
              - price_stale
            properties:
              mint:
                type: string
              qty:
                type: integer
                format: int64
                description: Held quantity in atomic base units (not UI-scaled).
              cost_basis_sol:
                type: number
                description: >-
                  FIFO cost basis in SOL. Always present — basic holdings are
                  derived from the wallet's own indexed swaps.
              current_value_sol:
                type:
                  - number
                  - 'null'
                description: >-
                  Current value in SOL (`qty` × latest price); `null` when no
                  recent price is available (`price_stale`).
              unrealized_pnl_sol:
                type:
                  - number
                  - 'null'
                description: >-
                  `current_value_sol - cost_basis_sol`; `null` when
                  `current_value_sol` is `null`.
              price_stale:
                type: boolean
                description: >-
                  `true` when no price ≤1h old was found for the mint (so
                  `current_value_sol`/`unrealized_pnl_sol` are `null`).
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: INVALID_PARAM
            message:
              type: string
              example: >-
                use pair_address; see /api/v1/pairs?token_address=X to discover
                pools
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Preferred for swaps-api endpoints (`/swaps/*`, `/stats/*`, `/trending`,
        `/pool-events`).
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Required by the OHLCV endpoints (`/api/v1/*`) and accepted by every
        other endpoint. Send `Authorization: Bearer ohlcv_live_sk_<your_key>`.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: >-
        Browser-friendly alternative to the Bearer header — accepted by every
        endpoint and required for WebSocket from the browser.

````