> ## 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.

# /binance/tickers

> Get price-change statistics for one or more trading pairs over a rolling window

**Price:** 1 credit

**💡 AI Hint:** Get rolling price-change statistics for one or more Binance spot trading pairs (e.g. 'BTCUSDT'). For each pair it returns the last price, price change and percent change, weighted average price, open/high/low prices, base and quote volume, the number of trades, and the window's open and close times. With the default 24-hour window it also includes the current best bid/ask prices and sizes, previous close, and last trade size. Set window_size (e.g. '1h', '4h', '1d') for a rolling window other than 24 hours.

**⚠️ Common errors:** 412: None of the requested trading pairs were found



## OpenAPI

````yaml /openapi-filtered.json post /api/binance/tickers
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/binance/tickers:
    post:
      tags:
        - /binance
      summary: /binance/tickers
      description: >-
        Get price-change statistics for one or more trading pairs over a rolling
        window


        **Price:** 1 credit


        **💡 AI Hint:** Get rolling price-change statistics for one or more
        Binance spot trading pairs (e.g. 'BTCUSDT'). For each pair it returns
        the last price, price change and percent change, weighted average price,
        open/high/low prices, base and quote volume, the number of trades, and
        the window's open and close times. With the default 24-hour window it
        also includes the current best bid/ask prices and sizes, previous close,
        and last trade size. Set window_size (e.g. '1h', '4h', '1d') for a
        rolling window other than 24 hours.


        **⚠️ Common errors:** 412: None of the requested trading pairs were
        found
      operationId: __api_binance_tickers_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BinanceTickersPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BinanceTicker'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BinanceTickersPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        symbols:
          items:
            type: string
          type: array
          minItems: 1
          description: Trading pair symbols, uppercase, no separator
          examples:
            - - BTCUSDT
              - ETHUSDT
        window_size:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Rolling window for the statistics, e.g. '1h', '4h', '1d'. When
            omitted, a fixed 24-hour window is used
          examples:
            - 1d
            - 4h
      type: object
      required:
        - symbols
    BinanceTicker:
      properties:
        '@type':
          type: string
          default: BinanceTicker
        symbol:
          type: string
        price_change:
          anyOf:
            - type: number
            - type: 'null'
        price_change_percent:
          anyOf:
            - type: number
            - type: 'null'
        weighted_avg_price:
          anyOf:
            - type: number
            - type: 'null'
        prev_close_price:
          anyOf:
            - type: number
            - type: 'null'
        last_price:
          anyOf:
            - type: number
            - type: 'null'
        last_qty:
          anyOf:
            - type: number
            - type: 'null'
        bid_price:
          anyOf:
            - type: number
            - type: 'null'
        bid_qty:
          anyOf:
            - type: number
            - type: 'null'
        ask_price:
          anyOf:
            - type: number
            - type: 'null'
        ask_qty:
          anyOf:
            - type: number
            - type: 'null'
        open_price:
          anyOf:
            - type: number
            - type: 'null'
        high_price:
          anyOf:
            - type: number
            - type: 'null'
        low_price:
          anyOf:
            - type: number
            - type: 'null'
        volume:
          anyOf:
            - type: number
            - type: 'null'
        quote_volume:
          anyOf:
            - type: number
            - type: 'null'
        open_at:
          anyOf:
            - type: integer
            - type: 'null'
        close_at:
          anyOf:
            - type: integer
            - type: 'null'
        first_id:
          anyOf:
            - type: integer
            - type: 'null'
        last_id:
          anyOf:
            - type: integer
            - type: 'null'
        trade_count:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - symbol
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    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

````