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

# Ticks

> Get raw book ticker data at microsecond granularity

Fetch raw book ticker data for a Binance trading pair. Returns bid/ask/mid/spread for each tick with microsecond precision.

<Note>**Requires Dev or Pro tier.** This endpoint is not available on the Free tier.</Note>

| Constraint | Value                     |
| ---------- | ------------------------- |
| `limit`    | 1–10,000 (default 10,000) |
| Time range | No limit                  |

Use cursor-based pagination to iterate through large time ranges (e.g. a 15-minute window is \~63K ticks).


## OpenAPI

````yaml GET /v2/binance/ticks/{symbol}
openapi: 3.1.0
info:
  title: Predexon API
  description: Prediction market data aggregation and matching API
  version: 2.0.0
servers:
  - url: https://api.predexon.com
security:
  - apiKey: []
paths:
  /v2/binance/ticks/{symbol}:
    get:
      tags:
        - binance
      summary: Get Binance Ticks
      description: |-
        Fetch raw book ticker data at microsecond granularity.

        Returns bid/ask/mid/spread for each tick. Use cursor-based pagination
        to iterate through large time ranges (e.g. a 15m window is ~63K ticks).
      operationId: get_binance_ticks_v2_binance_ticks__symbol__get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/BinanceSymbol'
            description: Trading pair
          description: Trading pair
        - name: start_time
          in: query
          required: true
          schema:
            type: integer
            minimum: 0
            description: Unix timestamp (seconds) for range start
            title: Start Time
          description: Unix timestamp (seconds) for range start
        - name: end_time
          in: query
          required: true
          schema:
            type: integer
            minimum: 0
            description: Unix timestamp (seconds) for range end
            title: End Time
          description: Unix timestamp (seconds) for range end
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 10000
            minimum: 1
            description: Max ticks per page
            default: 10000
            title: Limit
          description: Max ticks per page
        - name: pagination_key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Cursor for next page
            title: Pagination Key
          description: Cursor for next page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BinanceTicksResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    BinanceSymbol:
      type: string
      enum:
        - BTCUSDT
        - ETHUSDT
        - SOLUSDT
        - XRPUSDT
      title: BinanceSymbol
      description: Supported Binance trading pairs for crypto up/down market backtesting.
    BinanceTicksResponse:
      properties:
        symbol:
          type: string
          title: Symbol
          description: Trading pair (e.g. BTCUSDT)
        ticks:
          items:
            $ref: '#/components/schemas/BinanceTickData'
          type: array
          title: Ticks
          description: Array of tick data points, ordered by timestamp ASC
        pagination:
          $ref: '#/components/schemas/CursorPagination'
      type: object
      required:
        - symbol
        - ticks
        - pagination
      title: BinanceTicksResponse
      description: |-
        Paginated response of raw book ticker data.

        Use cursor-based pagination to iterate through large time windows.
        A 15-minute window typically contains ~63K ticks per symbol.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BinanceTickData:
      properties:
        timestamp:
          type: string
          title: Timestamp
          description: >-
            ISO 8601 UTC timestamp with microsecond precision (e.g.
            2026-01-31T12:00:00.123456Z)
        bid_price:
          type: number
          title: Bid Price
          description: Best bid price in USDT
        ask_price:
          type: number
          title: Ask Price
          description: Best ask price in USDT
        mid_price:
          type: number
          title: Mid Price
          description: 'Mid price: (bid + ask) / 2'
        spread:
          type: number
          title: Spread
          description: 'Bid-ask spread: ask - bid'
        bid_qty:
          type: number
          title: Bid Qty
          description: Quantity available at best bid
        ask_qty:
          type: number
          title: Ask Qty
          description: Quantity available at best ask
      type: object
      required:
        - timestamp
        - bid_price
        - ask_price
        - mid_price
        - spread
        - bid_qty
        - ask_qty
      title: BinanceTickData
      description: >-
        Single book ticker tick at microsecond granularity.


        Sourced from Binance BookTicker stream — best bid/ask with quantities

        at the moment of each update. Typically 10-26 updates per second per
        symbol.
      examples:
        - ask_price: 103250.22
          ask_qty: 0.412
          bid_price: 103250.12
          bid_qty: 0.523
          mid_price: 103250.17
          spread: 0.1
          timestamp: '2026-01-31T12:00:00.123456Z'
    CursorPagination:
      properties:
        limit:
          type: integer
          title: Limit
          description: Requested limit
        count:
          type: integer
          title: Count
          description: Number of items in current response
        pagination_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Pagination Key
          description: Base64-encoded cursor for next page
        has_more:
          type: boolean
          title: Has More
          description: Whether there are more items available
      type: object
      required:
        - limit
        - count
        - has_more
      title: CursorPagination
      description: Cursor-based pagination for endpoints that don't support offset.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````