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

# REST API: Platform liquidity and volume history

> Query historical platform-wide liquidity or volume in tinybar over hourly, daily, or weekly intervals between two unix-second timestamps you choose.



## OpenAPI

````yaml GET /stats/platformData
openapi: 3.0.4
info:
  title: SaucerSwap REST API
  version: 1.0.0
servers:
  - url: https://api.saucerswap.finance
    description: Mainnet
  - url: https://test-api.saucerswap.finance
    description: Testnet
security:
  - ApiKeyAuth: []
paths:
  /stats/platformData:
    get:
      tags:
        - Stats
      summary: Get platform historical liquidity or volume data
      parameters:
        - $ref: '#/components/parameters/ApiKeyParam'
        - name: from
          in: query
          required: true
          schema:
            type: integer
            example: 1697600000
          description: From unix seconds
        - name: to
          in: query
          required: true
          schema:
            type: integer
            example: 1697610000
          description: To unix seconds
        - name: interval
          in: query
          description: Data interval
          required: true
          schema:
            type: string
            example: HOUR
            default: HOUR
            enum:
              - HOUR
              - DAY
              - WEEK
        - name: field
          in: query
          required: true
          description: Data type
          schema:
            type: string
            example: LIQUIDITY
            default: LIQUIDITY
            enum:
              - LIQUIDITY
              - VOLUME
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    valueHbar:
                      type: string
                      example: 46701854905030720
                      description: value in Tinybar
                    timestampSeconds:
                      type: integer
                      example: 1697598000
components:
  parameters:
    ApiKeyParam:
      name: x-api-key
      in: header
      required: true
      schema:
        type: string
        example: YOUR_API_KEY
      description: >-
        API key for authentication. Request a key from
        support@saucerswap.finance.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key provisioned by the SaucerSwap team. Request one from
        support@saucerswap.finance and send it in the x-api-key header with
        every request.

````