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

# analyze Csv Dataset

> Population variance and strict ±2SD across forecast dates. A bounded raw IEX completed-close read is optional; an outage returns descriptive statistics and an explicit unavailable comparison. Supplied model metrics are not recalculated. Future target summaries exclude historical dates and non-session US-equity days. reference_analysis reproduces the supplied quantile analyzer: XNYS session filtering, all lower/higher quantile date comparisons, P90 inversions, exact observed-close joins, nearest quantile and rolling sample variance (ddof=1). Missing/future closes stay null. Naive timestamps use America/New_York; ambiguous/nonexistent DST times are rejected. These SELL labels are numeric inversion diagnostics, not validated trading signals. The separate statistics field uses population variance. All retained columns include numeric, chronological or lexical min/max. Full summaries accompany paged dated rows. include_comparisons returns at most 10000 exhaustive comparisons; narrow start/end if exceeded. Original CSV bytes are never rewritten.



## OpenAPI

````yaml /docs/api/openapi.json get /v1/csv-imports/{id}/analysis
openapi: 3.1.0
info:
  title: Quantura API
  version: 1.0.0
  description: >-
    Search markets and public datasets, download historical observations, create
    forecasts and inspect screener quantiles.
  contact:
    name: Quantura
    url: https://quantura.studio/contact
  license:
    name: Quantura API Terms
    url: https://quantura.studio/terms
servers:
  - url: https://quantura.studio/api
security:
  - bearerAuth: []
  - clerkOAuth:
      - openid
      - profile
      - email
tags:
  - name: Access
  - name: Forecast
  - name: Screener
  - name: Admin Canvas
  - name: CSV library
  - name: Privacy
  - name: Search
  - name: Download
  - name: Scout
paths:
  /v1/csv-imports/{id}/analysis:
    servers:
      - url: https://quantura.studio/api
    get:
      tags:
        - CSV library
      summary: analyze Csv Dataset
      description: >-
        Population variance and strict ±2SD across forecast dates. A bounded raw
        IEX completed-close read is optional; an outage returns descriptive
        statistics and an explicit unavailable comparison. Supplied model
        metrics are not recalculated. Future target summaries exclude historical
        dates and non-session US-equity days. reference_analysis reproduces the
        supplied quantile analyzer: XNYS session filtering, all lower/higher
        quantile date comparisons, P90 inversions, exact observed-close joins,
        nearest quantile and rolling sample variance (ddof=1). Missing/future
        closes stay null. Naive timestamps use America/New_York;
        ambiguous/nonexistent DST times are rejected. These SELL labels are
        numeric inversion diagnostics, not validated trading signals. The
        separate statistics field uses population variance. All retained columns
        include numeric, chronological or lexical min/max. Full summaries
        accompany paged dated rows. include_comparisons returns at most 10000
        exhaustive comparisons; narrow start/end if exceeded. Original CSV bytes
        are never rewritten.
      operationId: analyzeCsvDataset
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^(?:[a-f0-9]{64}|(?:csv_|legacy_)[A-Za-z0-9_-]+)$
        - name: interval
          in: query
          schema:
            type: string
            enum:
              - 1m
              - 5m
              - 15m
              - 30m
              - 1h
              - 4h
              - 1d
        - name: bar_label
          in: query
          schema:
            enum:
              - start
              - end
        - name: lookback
          in: query
          schema:
            type: integer
            minimum: 2
            maximum: 1000
            default: 20
        - name: causal
          in: query
          schema:
            type: boolean
            default: false
        - name: start
          in: query
          schema:
            type: string
            format: date
        - name: end
          in: query
          schema:
            type: string
            format: date
        - name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
        - name: include_comparisons
          in: query
          schema:
            type: boolean
            default: false
      responses:
        '200':
          description: >-
            Source-bound analysis, source SHA, observed-history provenance and
            availability
          content:
            application/json:
              schema:
                type: object
              example:
                data:
                  success: true
                meta:
                  api_version: v1
        '401':
          description: Sign-in required
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Scope, current membership or CSV permission denied
          content:
            application/json:
              schema:
                type: object
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                type: object
        '409':
          description: >-
            Conflicting request ID or an unconfirmed write; do not blindly retry
            with a new ID
          content:
            application/json:
              schema:
                type: object
        '412':
          description: Connect Google and grant drive.file
          content:
            application/json:
              schema:
                type: object
        '413':
          description: Decoded CSV or Sheets export limit exceeded
          content:
            application/json:
              schema:
                type: object
        '422':
          description: CSV, type, mapping, metrics or metadata invalid
          content:
            application/json:
              schema:
                type: object
        '503':
          description: Provider unavailable; source data is retained
          content:
            application/json:
              schema:
                type: object
      security:
        - bearerAuth: []
        - clerkOAuth:
            - openid
            - profile
            - email
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Clerk personal API key or legacy Quantura key
    clerkOAuth:
      type: oauth2
      description: >-
        Clerk authorization code with PKCE S256. Pass
        resource=https://quantura.studio on authorization and token requests.
        Paid Pro, enterprise or verified administrator API access is required.
      flows:
        authorizationCode:
          authorizationUrl: https://clerk.quantura.studio/oauth/authorize
          tokenUrl: https://clerk.quantura.studio/oauth/token
          refreshUrl: https://clerk.quantura.studio/oauth/token
          scopes:
            openid: Identify the Quantura account
            profile: Resolve the account profile
            email: Verify account email
            offline_access: Refresh access after expiry

````

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