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

# Get Pool Swaps

> Swap history for one indexed Uniswap V3 or Aerodrome Slipstream pool, newest first.

Each row is one swap: sold and bought amounts with token symbol and decimals, USD volume (the input at that UTC day's closing price, or the current price when the day has no close), the unsigned price impact, and `priceImpactBps` — the same move in signed basis points. `orientation` only changes that sign. `token1_per_token0` (the default) treats a token0 sale as a price drop.

`txUrl` and `senderUrl` are the block-explorer links. `sender` is the Swap event's sender, usually a router.

`from` and `to` are optional inclusive bounds. A date (`YYYY-MM-DD`) is a UTC day; `to` then includes that whole day. An ISO-8601 timestamp must include a timezone. Omit both to page the full history.

`page` starts at 1. `limit` defaults to 25 and is capped at 100.

`swapsIndexed` is false, and `data` is empty, when this pool's swaps are not recorded (no base token, or the chain has no swap stream yet). Orca pools are not on this route.

**Credits:** 1 per successful call.



## OpenAPI

````yaml /openapi.yaml get /v1/pools/{chain_id}/{pool_address}/swaps
openapi: 3.1.0
info:
  title: DeFi Orbit API
  version: 1.0.0
  description: >-
    Public REST API for DeFi Orbit positions, pools, lending, portfolio, and
    usage.
servers:
  - url: https://api.defiorbit.xyz
security:
  - bearerAuth: []
tags:
  - name: Pools
  - name: Portfolio
  - name: Snapshots
  - name: Uniswap V3
  - name: Aerodrome V3
  - name: Orca
  - name: Aave V3
  - name: Morpho
  - name: Kamino
  - name: Usage
paths:
  /v1/pools/{chain_id}/{pool_address}/swaps:
    get:
      tags:
        - Pools
      summary: Get Pool Swaps
      description: >-
        Swap history for one indexed Uniswap V3 or Aerodrome Slipstream pool,
        newest first.


        Each row is one swap: sold and bought amounts with token symbol and
        decimals, USD volume (the input at that UTC day's closing price, or the
        current price when the day has no close), the unsigned price impact, and
        `priceImpactBps` — the same move in signed basis points. `orientation`
        only changes that sign. `token1_per_token0` (the default) treats a
        token0 sale as a price drop.


        `txUrl` and `senderUrl` are the block-explorer links. `sender` is the
        Swap event's sender, usually a router.


        `from` and `to` are optional inclusive bounds. A date (`YYYY-MM-DD`) is
        a UTC day; `to` then includes that whole day. An ISO-8601 timestamp must
        include a timezone. Omit both to page the full history.


        `page` starts at 1. `limit` defaults to 25 and is capped at 100.


        `swapsIndexed` is false, and `data` is empty, when this pool's swaps are
        not recorded (no base token, or the chain has no swap stream yet). Orca
        pools are not on this route.


        **Credits:** 1 per successful call.
      operationId: get_v1_pools_chain_id_pool_address_swaps
      parameters:
        - name: chain_id
          in: path
          required: true
          schema:
            type: integer
            description: >-
              Chain ID with an indexed Uniswap V3 or Aerodrome position manager.
              Uniswap V3: 1, 10, 56, 130, 137, 143, 4663, 8453, 42161, 43114.
              Aerodrome: 8453.
            example: 1
            x-default: 1
        - name: pool_address
          in: path
          required: true
          schema:
            type: string
            description: Pool contract address, 0x plus 40 hex characters.
            example: '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640'
            x-default: '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640'
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            description: Page number, starting at 1.
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
            description: Page size. Default 25, maximum 100.
        - name: from
          in: query
          required: false
          schema:
            type: string
            description: >-
              Inclusive start. UTC date YYYY-MM-DD, or an ISO-8601 timestamp
              with a timezone.
            example: '2026-11-01'
        - name: to
          in: query
          required: false
          schema:
            type: string
            description: >-
              Inclusive end. A date includes that whole UTC day. An ISO-8601
              timestamp must include a timezone.
            example: '2026-11-06'
        - name: orientation
          in: query
          required: false
          schema:
            type: string
            enum:
              - token1_per_token0
              - token0_per_token1
            description: >-
              Quote direction for the sign of priceImpactBps. Default: token1
              per token0.
            default: token1_per_token0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/RequestId'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/PoolSwap'
                      pagination:
                        $ref: '#/components/schemas/Pagination'
                      swapsIndexed:
                        type: boolean
                        description: False when this pool's swaps are not recorded.
                    required:
                      - data
                      - pagination
                      - swapsIndexed
              example:
                data:
                  - timestamp: 1761012480
                    blockNumber: 21000000
                    logIndex: 4
                    txHash: '0xabc'
                    txUrl: https://eth.blockscout.com/tx/0xabc?utm_source=Defi_Orbit
                    zeroForOne: false
                    amountIn: 0.359
                    amountOut: 878.27
                    tokenIn:
                      address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
                      symbol: WETH
                      decimals: 18
                    tokenOut:
                      address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
                      symbol: USDC
                      decimals: 6
                    fee: 0.001
                    volumeUsd: 878.7
                    sender: '0x520e000000000000000000000000000000008aa7'
                    senderUrl: >-
                      https://eth.blockscout.com/address/0x520e000000000000000000000000000000008aa7?utm_source=Defi_Orbit
                    recipient: '0x520e000000000000000000000000000000008aa7'
                    priceImpact: 0.000033
                    priceImpactBps: 0.33
                pagination:
                  page: 1
                  limit: 25
                  total: 50
                  next_page: >-
                    https://api.defiorbit.xyz/v1/pools/1/0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640/swaps?page=2&limit=25
                  prev_page: null
                swapsIndexed: true
                request_id: req_...
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    RequestId:
      type: object
      required:
        - request_id
      properties:
        request_id:
          type: string
          description: Id to quote when you contact support.
    PoolSwap:
      type: object
      description: One swap, newest first. Amounts are whole tokens.
      required:
        - timestamp
        - blockNumber
        - logIndex
        - txHash
        - txUrl
        - zeroForOne
        - amountIn
        - amountOut
        - tokenIn
        - tokenOut
        - fee
        - volumeUsd
        - sender
        - senderUrl
        - recipient
        - priceImpact
        - priceImpactBps
      properties:
        timestamp:
          type: integer
          description: Unix seconds.
        blockNumber:
          type: integer
        logIndex:
          type: integer
        txHash:
          type: string
        txUrl:
          type: string
          description: Block explorer URL for the transaction.
        zeroForOne:
          type: boolean
          description: True when token0 is sold into the pool.
        amountIn:
          type: number
          description: Amount sold, in whole tokens. Gross of the fee.
        amountOut:
          type: number
          description: Amount bought, in whole tokens.
        tokenIn:
          $ref: '#/components/schemas/PoolSwapToken'
        tokenOut:
          $ref: '#/components/schemas/PoolSwapToken'
        fee:
          type: number
          description: Fee charged on the token sold, in whole tokens.
        volumeUsd:
          type: number
          description: >-
            The input at that UTC day's closing USD price, or the current price
            when that day has no close.
        sender:
          type: string
          description: Swap event sender. Usually a router.
        senderUrl:
          type: string
          description: Block explorer URL for the sender.
        recipient:
          type: string
          description: Swap event recipient of the output.
        priceImpact:
          type: number
          nullable: true
          description: >-
            Unsigned |price change| / max(price before, price after). Null when
            unknown.
        priceImpactBps:
          type: number
          nullable: true
          description: >-
            priceImpact in signed basis points for the requested orientation. A
            token0 sale is negative under token1_per_token0.
    Pagination:
      type: object
      required:
        - page
        - limit
        - total
        - next_page
        - prev_page
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
          description: Matching rows, before this page is sliced.
        next_page:
          type: string
          nullable: true
          description: URL of the next page, or null on the last page.
        prev_page:
          type: string
          nullable: true
          description: URL of the previous page, or null on the first page.
    PoolSwapToken:
      type: object
      required:
        - address
        - symbol
        - decimals
      properties:
        address:
          type: string
        symbol:
          type: string
        decimals:
          type: integer
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - request_id
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
  responses:
    BadRequest:
      description: Missing or invalid parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_PARAMETER
              message: page must be a positive integer.
              request_id: req_...
    Unauthorized:
      description: Missing, malformed, invalid, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_API_KEY
              message: Missing API key.
              request_id: req_...
    PaymentRequired:
      description: The organization does not have enough credits.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INSUFFICIENT_CREDITS
              message: Insufficient API credits.
              request_id: req_...
    Forbidden:
      description: The organization is suspended, or the endpoint or feature is disabled.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: ACCOUNT_SUSPENDED
              message: This organization is suspended.
              request_id: req_...
    NotFound:
      description: The pool is not indexed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Pool not found
              request_id: req_...
    TooManyRequests:
      description: The organization exceeded its requests-per-second limit.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests per second for the organization.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left in the current window.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: Unix time when the window resets.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMIT_EXCEEDED
              message: Rate limit exceeded. Please try again later.
              request_id: req_...
    InternalError:
      description: Unexpected server error, or pricing is not configured.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INTERNAL_ERROR
              message: An unexpected error occurred.
              request_id: req_...
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Paste your API key from the
        [dashboard](https://platform.defiorbit.xyz/dashboard/keys). The key
        starts with `do_sk_`.
      x-default: YOUR_API_KEY

````

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