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

# Download verified history for selected event outcomes and sides

> Pass full contract objects returned by Q Search. IDs and sides are reverified. Up to 25 contracts from one provider; maximum 90-day range. JSON attachments contain metadata and rows. Missing intervals remain explicit.



## OpenAPI

````yaml https://quantura.studio/api/openapi.json post /sports/prediction-markets/export
openapi: 3.1.0
info:
  title: Quantura Forecast Intelligence API
  version: 1.0.0
  description: >-
    Versioned access to Quantura forecasts, collaborator-aware workspaces,
    screeners, datasets, and provenance metadata.
  contact:
    name: Quantura
    url: https://quantura.studio/contact
  license:
    name: Quantura API Terms
    url: https://quantura.studio/terms
servers:
  - url: https://quantura.studio/api/v1
security:
  - bearerAuth: []
tags:
  - name: Access
    description: Identity, token scopes, plans, and effective workspace access.
  - name: Workspaces
    description: Resources are authorized against current membership on every request.
  - name: Uploaded CSVs
    description: Workspace-isolated CSV metadata, organization, and authorized exports.
  - name: Datasets
    description: Licensing-aware catalog and schema metadata.
  - name: Forecasts
    description: Prospective forecasts and immutable probability trajectories.
  - name: Ensemble Forecasts
    description: >-
      Asynchronous probabilistic time-series ensemble jobs and reproducible
      presets.
  - name: Backtests
    description: >-
      Asynchronous point-in-time ensemble-quantile simulations and versioned
      strategy exports; never live order execution.
paths:
  /sports/prediction-markets/export:
    servers:
      - url: https://quantura.studio/api
    post:
      tags:
        - Q Download
      summary: Download verified history for selected event outcomes and sides
      description: >-
        Pass full contract objects returned by Q Search. IDs and sides are
        reverified. Up to 25 contracts from one provider; maximum 90-day range.
        JSON attachments contain metadata and rows. Missing intervals remain
        explicit.
      operationId: downloadQuanturaEventHistory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - source
                - contracts
                - start
                - end
              properties:
                source:
                  type: string
                  enum:
                    - kalshi
                    - polymarket_us
                contracts:
                  type: array
                  minItems: 1
                  maxItems: 25
                  items:
                    type: object
                    required:
                      - source
                      - eventId
                      - marketId
                      - contractId
                      - providerSymbol
                      - side
                    properties:
                      source:
                        type: string
                      eventId:
                        type: string
                      marketId:
                        type: string
                      contractId:
                        type: string
                      providerSymbol:
                        type: string
                      side:
                        type: string
                        enum:
                          - 'yes'
                          - 'no'
                          - long
                          - short
                start:
                  type: string
                  format: date-time
                end:
                  type: string
                  format: date-time
                frequency:
                  type: string
                  enum:
                    - raw
                    - 1m
                    - 5m
                    - 15m
                    - 30m
                    - 1h
                    - 4h
                    - 1d
                    - 1w
                    - 1month
                    - final
                history_phase:
                  type: string
                  enum:
                    - auto
                    - both
                    - pregame
                    - in_game
                mode:
                  type: string
                  enum:
                    - normalized
                    - raw
                    - canvas
                target:
                  type: string
                  enum:
                    - price
                    - bid
                    - ask
                    - midpoint
                missing:
                  type: string
                  enum:
                    - leave
                    - drop
                    - forward_fill
                format:
                  type: string
                  enum:
                    - json
                    - csv
                  default: csv
      responses:
        '200':
          description: Successful response (illustrative example)
          content:
            application/json:
              schema:
                type: object
              example:
                metadata:
                  source: kalshi
                  mode: normalized
                  frequency: 1m
                  target: price
                  history_phase: both
                  history_phase_policy: auto
                  history_phase_by_contract:
                    EXAMPLE-YES: both
                rows:
                  - timestamp: '2026-09-18T18:01:00Z'
                    contract_id: EXAMPLE-YES
                    price: 0.52
                    source: kalshi
        '400':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '404':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '413':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '422':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '429':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
        '502':
          description: Invalid request or provider unavailable
          content:
            application/json:
              schema:
                type: object
              example:
                ok: false
                error: event_query_invalid
                message: Choose a provider event and a valid continuation cursor.
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Quantura API key

````

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