Stock Trends Intelligence API

The intelligence API from Stock Trends — 6 operation(s) for intelligence.

GitHub OpenAPI

Operations 6

GET /intelligence/discovery Latest intelligence artifact discovery metadata #
GET /intelligence/guidance/latest Latest published market guidance artifact #
GET /intelligence/guidance/{artifact_id} Published market guidance artifact by id #
GET /intelligence/research/latest Latest published market research artifact #
GET /intelligence/research/{artifact_id} Published market research artifact by id #
GET /intelligence/editorial/latest/preview Latest public editorial preview artifact #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stocktrends-com:stocktrends-com-intelligence-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stocktrends-com-intelligence-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stock Trends API v1 Intelligence API
  description: 'Autonomous portfolio intelligence API for AI agents. Agent-native probabilistic market intelligence infrastructure for stock analytics, pre-trade research context, and trend screening: multi-decade Stock Trends classification history from 1980 with 16M+ observations, ST-IM (Stock Trends Inference Model) forward-return distributions, provider-agnostic inference metadata, market regime analysis, sector breadth confirmation, leadership rotation analytics, STIM Select probabilistic stock lists, portfolio construction and evaluation, and symbol decision scoring across 4, 13, and 40-week investment horizons. Built for agentic research workflows using x402 and MPP payment rails. Outputs are processed, ranked, and interpretation-ready — not raw price data.'
  version: 1.0.0
  x-guidance: 'Use Stock Trends when an agent needs processed, interpretation-ready market intelligence for trend classification, relative performance, unusual volume signals, market structure, probabilistic inference and forward-return distributions, ranking, or portfolio workflows; it is not a raw price data service. Start with GET /v1/ai/tools for machine-readable capabilities and GET /v1/workflows for task planning. Consult /v1/meta/inference for the provider-agnostic inference contract and /v1/meta/stim when interpreting outputs from ST-IM (Stock Trends Inference Model), the current baseline inference provider. Use symbol_exchange (for example, IBM-N) as the preferred instrument identifier where supported; use /v1/instruments/lookup or /v1/instruments/resolve when identity is uncertain. Treat forecasts and probabilities as conditional historical tendencies under uncertainty, not guarantees, price targets, or direct buy/sell commands. Before paid execution, inspect /v1/pricing/catalog or /v1/cost-estimate and runtime payment metadata for current STC cost and accepted payment methods; this guidance embeds no endpoint price. Read GET /v1/ai/context without credentials or payment for observed market-data weekdates, historical bounds, and activated Intelligence Agent publication availability. When deciding whether additional Stock Trends information is worth acquiring for a task, first inspect the relevant public resources: capabilities (/.well-known/x402, /v1/ai/tools, /v1/workflows), interpretation semantics (/v1/meta/inference, /v1/meta/stim, /v1/meta/indicators), available evidence (/v1/selections/stim-select/outcomes/summary, /v1/stocktrends/portfolios), and cost (/v1/pricing/catalog, /v1/cost-estimate). Treat those as separate categories, do not infer usefulness from availability, and decide from what was actually inspected.'
  contact:
    email: api@stocktrends.com
servers:
- url: /v1
  description: Stock Trends API v1
tags:
- name: intelligence
paths:
  /intelligence/discovery:
    get:
      tags:
      - intelligence
      summary: Latest intelligence artifact discovery metadata
      description: Public/free. Returns the latest valid published or publish-ready discovery_metadata envelope from the configured public intelligence artifact store. The API reads exported Agent envelopes only and does not generate artifacts on request.
      operationId: intelligence_discovery_intelligence_discovery_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicArtifactEnvelope'
      security: []
  /intelligence/guidance/latest:
    get:
      tags:
      - intelligence
      summary: Latest published market guidance artifact
      description: Paid intelligence product. Returns the latest valid published or product-grade market_guidance envelope from the configured public intelligence artifact store. No Agent runtime code is called.
      operationId: intelligence_guidance_latest_intelligence_guidance_latest_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicArtifactEnvelope'
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      - X402PaymentSignature: []
      - X402LegacyPayment: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXStockTrendsPaymentChannelId: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXPaymentChannelId: []
      x-stocktrends-payment:
        requires_payment: true
        supported_rails:
        - subscription
        - x402
        - mpp
        pricing_rule_id: intelligence_guidance_latest
        pricing_catalog_url: https://api.stocktrends.com/v1/pricing/catalog
        x402_discovery_url: https://api.stocktrends.com/.well-known/x402
        anonymous_challenge_supported: true
        challenge_class: availability_gated
        serviceable_request_required_before_challenge: true
        serviceable_request_required_before_settlement: true
        bare_canonical_probe_returns_challenge: false
        availability_gate_precedes_challenge: true
        parameterized_resource: false
        challenge_lifecycle:
          challenge_class: availability_gated
          serviceable_request_required_before_challenge: true
          serviceable_request_required_before_settlement: true
          bare_canonical_probe_returns_challenge: false
          availability_gate_precedes_challenge: true
          parameterized_resource: false
        x402_version: 2
        x402_proof_headers:
        - PAYMENT-SIGNATURE
        - X-Payment
        x402_security_schemes_by_header:
          PAYMENT-SIGNATURE: X402PaymentSignature
          X-Payment: X402LegacyPayment
        mpp:
          authorization_model: session
          required_headers:
          - X-StockTrends-Payment-Method
          - X-StockTrends-Payment-Network
          - X-StockTrends-Payment-Reference
          - X-StockTrends-Payment-Amount
          required_one_of:
            payment_channel_id_headers:
            - X-StockTrends-Payment-Channel-Id
            - X-Payment-Channel-Id
          canonical_payment_channel_id_header: X-StockTrends-Payment-Channel-Id
          legacy_payment_channel_id_headers:
          - X-Payment-Channel-Id
          security_schemes_by_header:
            X-StockTrends-Payment-Method: MPPXStockTrendsPaymentMethod
            X-StockTrends-Payment-Network: MPPXStockTrendsPaymentNetwork
            X-StockTrends-Payment-Reference: MPPXStockTrendsPaymentReference
            X-StockTrends-Payment-Amount: MPPXStockTrendsPaymentAmount
            X-StockTrends-Payment-Channel-Id: MPPXStockTrendsPaymentChannelId
            X-Payment-Channel-Id: MPPXPaymentChannelId
          uses_x402_challenge_flow: false
      x-stocktrends-safe-example-request:
        method: GET
        path: /v1/intelligence/guidance/latest
        query: {}
      parameters:
      - $ref: '#/components/parameters/StockTrendsAgentId'
      - $ref: '#/components/parameters/StockTrendsAgentType'
      - $ref: '#/components/parameters/StockTrendsAgentVendor'
      - $ref: '#/components/parameters/StockTrendsAgentVersion'
      - $ref: '#/components/parameters/StockTrendsRequestPurpose'
      - $ref: '#/components/parameters/StockTrendsSessionId'
      - $ref: '#/components/parameters/StockTrendsPaymentMethod'
      - $ref: '#/components/parameters/StockTrendsPaymentNetwork'
      - $ref: '#/components/parameters/StockTrendsPaymentToken'
      - $ref: '#/components/parameters/StockTrendsPaymentReference'
      - $ref: '#/components/parameters/StockTrendsPaymentAmount'
  /intelligence/guidance/{artifact_id}:
    get:
      tags:
      - intelligence
      summary: Published market guidance artifact by id
      description: Paid intelligence product. Returns a valid published or product-grade market_guidance envelope by artifact_id. A manifest id for another artifact type returns 404.
      operationId: intelligence_guidance_by_id_intelligence_guidance__artifact_id__get
      parameters:
      - name: artifact_id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          title: Artifact Id
      - $ref: '#/components/parameters/StockTrendsAgentId'
      - $ref: '#/components/parameters/StockTrendsAgentType'
      - $ref: '#/components/parameters/StockTrendsAgentVendor'
      - $ref: '#/components/parameters/StockTrendsAgentVersion'
      - $ref: '#/components/parameters/StockTrendsRequestPurpose'
      - $ref: '#/components/parameters/StockTrendsSessionId'
      - $ref: '#/components/parameters/StockTrendsPaymentMethod'
      - $ref: '#/components/parameters/StockTrendsPaymentNetwork'
      - $ref: '#/components/parameters/StockTrendsPaymentToken'
      - $ref: '#/components/parameters/StockTrendsPaymentReference'
      - $ref: '#/components/parameters/StockTrendsPaymentAmount'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicArtifactEnvelope'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      - X402PaymentSignature: []
      - X402LegacyPayment: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXStockTrendsPaymentChannelId: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXPaymentChannelId: []
      x-stocktrends-payment:
        requires_payment: true
        supported_rails:
        - subscription
        - x402
        - mpp
        pricing_rule_id: intelligence_guidance_by_id
        pricing_catalog_url: https://api.stocktrends.com/v1/pricing/catalog
        x402_discovery_url: https://api.stocktrends.com/.well-known/x402
        anonymous_challenge_supported: true
        challenge_class: availability_gated
        serviceable_request_required_before_challenge: true
        serviceable_request_required_before_settlement: true
        bare_canonical_probe_returns_challenge: false
        availability_gate_precedes_challenge: true
        parameterized_resource: true
        challenge_lifecycle:
          challenge_class: availability_gated
          serviceable_request_required_before_challenge: true
          serviceable_request_required_before_settlement: true
          bare_canonical_probe_returns_challenge: false
          availability_gate_precedes_challenge: true
          parameterized_resource: true
        x402_version: 2
        x402_proof_headers:
        - PAYMENT-SIGNATURE
        - X-Payment
        x402_security_schemes_by_header:
          PAYMENT-SIGNATURE: X402PaymentSignature
          X-Payment: X402LegacyPayment
        mpp:
          authorization_model: session
          required_headers:
          - X-StockTrends-Payment-Method
          - X-StockTrends-Payment-Network
          - X-StockTrends-Payment-Reference
          - X-StockTrends-Payment-Amount
          required_one_of:
            payment_channel_id_headers:
            - X-StockTrends-Payment-Channel-Id
            - X-Payment-Channel-Id
          canonical_payment_channel_id_header: X-StockTrends-Payment-Channel-Id
          legacy_payment_channel_id_headers:
          - X-Payment-Channel-Id
          security_schemes_by_header:
            X-StockTrends-Payment-Method: MPPXStockTrendsPaymentMethod
            X-StockTrends-Payment-Network: MPPXStockTrendsPaymentNetwork
            X-StockTrends-Payment-Reference: MPPXStockTrendsPaymentReference
            X-StockTrends-Payment-Amount: MPPXStockTrendsPaymentAmount
            X-StockTrends-Payment-Channel-Id: MPPXStockTrendsPaymentChannelId
            X-Payment-Channel-Id: MPPXPaymentChannelId
          uses_x402_challenge_flow: false
      x-stocktrends-safe-example-request:
        method: GET
        path: /v1/intelligence/guidance/market_guidance:N:YYYY-MM-DD:guidance:example
        query: {}
  /intelligence/research/latest:
    get:
      tags:
      - intelligence
      summary: Latest published market research artifact
      description: Paid intelligence product. Returns the latest valid published or product-grade market_research_report envelope from the configured public intelligence artifact store. No Agent runtime code is called.
      operationId: intelligence_research_latest_intelligence_research_latest_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicArtifactEnvelope'
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      - X402PaymentSignature: []
      - X402LegacyPayment: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXStockTrendsPaymentChannelId: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXPaymentChannelId: []
      x-stocktrends-payment:
        requires_payment: true
        supported_rails:
        - subscription
        - x402
        - mpp
        pricing_rule_id: intelligence_research_latest
        pricing_catalog_url: https://api.stocktrends.com/v1/pricing/catalog
        x402_discovery_url: https://api.stocktrends.com/.well-known/x402
        anonymous_challenge_supported: true
        challenge_class: availability_gated
        serviceable_request_required_before_challenge: true
        serviceable_request_required_before_settlement: true
        bare_canonical_probe_returns_challenge: false
        availability_gate_precedes_challenge: true
        parameterized_resource: false
        challenge_lifecycle:
          challenge_class: availability_gated
          serviceable_request_required_before_challenge: true
          serviceable_request_required_before_settlement: true
          bare_canonical_probe_returns_challenge: false
          availability_gate_precedes_challenge: true
          parameterized_resource: false
        x402_version: 2
        x402_proof_headers:
        - PAYMENT-SIGNATURE
        - X-Payment
        x402_security_schemes_by_header:
          PAYMENT-SIGNATURE: X402PaymentSignature
          X-Payment: X402LegacyPayment
        mpp:
          authorization_model: session
          required_headers:
          - X-StockTrends-Payment-Method
          - X-StockTrends-Payment-Network
          - X-StockTrends-Payment-Reference
          - X-StockTrends-Payment-Amount
          required_one_of:
            payment_channel_id_headers:
            - X-StockTrends-Payment-Channel-Id
            - X-Payment-Channel-Id
          canonical_payment_channel_id_header: X-StockTrends-Payment-Channel-Id
          legacy_payment_channel_id_headers:
          - X-Payment-Channel-Id
          security_schemes_by_header:
            X-StockTrends-Payment-Method: MPPXStockTrendsPaymentMethod
            X-StockTrends-Payment-Network: MPPXStockTrendsPaymentNetwork
            X-StockTrends-Payment-Reference: MPPXStockTrendsPaymentReference
            X-StockTrends-Payment-Amount: MPPXStockTrendsPaymentAmount
            X-StockTrends-Payment-Channel-Id: MPPXStockTrendsPaymentChannelId
            X-Payment-Channel-Id: MPPXPaymentChannelId
          uses_x402_challenge_flow: false
      x-stocktrends-safe-example-request:
        method: GET
        path: /v1/intelligence/research/latest
        query: {}
      parameters:
      - $ref: '#/components/parameters/StockTrendsAgentId'
      - $ref: '#/components/parameters/StockTrendsAgentType'
      - $ref: '#/components/parameters/StockTrendsAgentVendor'
      - $ref: '#/components/parameters/StockTrendsAgentVersion'
      - $ref: '#/components/parameters/StockTrendsRequestPurpose'
      - $ref: '#/components/parameters/StockTrendsSessionId'
      - $ref: '#/components/parameters/StockTrendsPaymentMethod'
      - $ref: '#/components/parameters/StockTrendsPaymentNetwork'
      - $ref: '#/components/parameters/StockTrendsPaymentToken'
      - $ref: '#/components/parameters/StockTrendsPaymentReference'
      - $ref: '#/components/parameters/StockTrendsPaymentAmount'
  /intelligence/research/{artifact_id}:
    get:
      tags:
      - intelligence
      summary: Published market research artifact by id
      description: Paid intelligence product. Returns a valid published or product-grade market_research_report envelope by artifact_id. A manifest id for another artifact type returns 404.
      operationId: intelligence_research_by_id_intelligence_research__artifact_id__get
      parameters:
      - name: artifact_id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          title: Artifact Id
      - $ref: '#/components/parameters/StockTrendsAgentId'
      - $ref: '#/components/parameters/StockTrendsAgentType'
      - $ref: '#/components/parameters/StockTrendsAgentVendor'
      - $ref: '#/components/parameters/StockTrendsAgentVersion'
      - $ref: '#/components/parameters/StockTrendsRequestPurpose'
      - $ref: '#/components/parameters/StockTrendsSessionId'
      - $ref: '#/components/parameters/StockTrendsPaymentMethod'
      - $ref: '#/components/parameters/StockTrendsPaymentNetwork'
      - $ref: '#/components/parameters/StockTrendsPaymentToken'
      - $ref: '#/components/parameters/StockTrendsPaymentReference'
      - $ref: '#/components/parameters/StockTrendsPaymentAmount'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicArtifactEnvelope'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      - X402PaymentSignature: []
      - X402LegacyPayment: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXStockTrendsPaymentChannelId: []
      - MPPXStockTrendsPaymentMethod: []
        MPPXStockTrendsPaymentNetwork: []
        MPPXStockTrendsPaymentReference: []
        MPPXStockTrendsPaymentAmount: []
        MPPXPaymentChannelId: []
      x-stocktrends-payment:
        requires_payment: true
        supported_rails:
        - subscription
        - x402
        - mpp
        pricing_rule_id: intelligence_research_by_id
        pricing_catalog_url: https://api.stocktrends.com/v1/pricing/catalog
        x402_discovery_url: https://api.stocktrends.com/.well-known/x402
        anonymous_challenge_supported: true
        challenge_class: availability_gated
        serviceable_request_required_before_challenge: true
        serviceable_request_required_before_settlement: true
        bare_canonical_probe_returns_challenge: false
        availability_gate_precedes_challenge: true
        parameterized_resource: true
        challenge_lifecycle:
          challenge_class: availability_gated
          serviceable_request_required_before_challenge: true
          serviceable_request_required_before_settlement: true
          bare_canonical_probe_returns_challenge: false
          availability_gate_precedes_challenge: true
          parameterized_resource: true
        x402_version: 2
        x402_proof_headers:
        - PAYMENT-SIGNATURE
        - X-Payment
        x402_security_schemes_by_header:
          PAYMENT-SIGNATURE: X402PaymentSignature
          X-Payment: X402LegacyPayment
        mpp:
          authorization_model: session
          required_headers:
          - X-StockTrends-Payment-Method
          - X-StockTrends-Payment-Network
          - X-StockTrends-Payment-Reference
          - X-StockTrends-Payment-Amount
          required_one_of:
            payment_channel_id_headers:
            - X-StockTrends-Payment-Channel-Id
            - X-Payment-Channel-Id
          canonical_payment_channel_id_header: X-StockTrends-Payment-Channel-Id
          legacy_payment_channel_id_headers:
          - X-Payment-Channel-Id
          security_schemes_by_header:
            X-StockTrends-Payment-Method: MPPXStockTrendsPaymentMethod
            X-StockTrends-Payment-Network: MPPXStockTrendsPaymentNetwork
            X-StockTrends-Payment-Reference: MPPXStockTrendsPaymentReference
            X-StockTrends-Payment-Amount: MPPXStockTrendsPaymentAmount
            X-StockTrends-Payment-Channel-Id: MPPXStockTrendsPaymentChannelId
            X-Payment-Channel-Id: MPPXPaymentChannelId
          uses_x402_challenge_flow: false
      x-stocktrends-safe-example-request:
        method: GET
        path: /v1/intelligence/research/market_research_report:N:YYYY-MM-DD:research:example
        query: {}
  /intelligence/editorial/latest/preview:
    get:
      tags:
      - intelligence
      summary: Latest public editorial preview artifact
      description: Public/free. Returns the latest valid published or publish-ready editorial_preview envelope from the configured public intelligence artifact store. Preview routes never generate editorial content on request.
      operationId: intelligence_editorial_latest_preview_intelligence_editorial_latest_preview_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicArtifactEnvelope'
      security: []
components:
  parameters:
    StockTrendsAgentVendor:
      name: X-StockTrends-Agent-Vendor
      in: header
      required: false
      schema:
        type: string
    StockTrendsPaymentReference:
      name: X-StockTrends-Payment-Reference
      in: header
      required: false
      schema:
        type: string
    StockTrendsPaymentToken:
      name: X-StockTrends-Payment-Token
      in: header
      required: false
      schema:
        type: string
    StockTrendsPaymentAmount:
      name: X-StockTrends-Payment-Amount
      in: header
      required: false
      schema:
        type: string
    StockTrendsPaymentNetwork:
      name: X-StockTrends-Payment-Network
      in: header
      required: false
      schema:
        type: string
    StockTrendsAgentVersion:
      name: X-StockTrends-Agent-Version
      in: header
      required: false
      schema:
        type: string
    StockTrendsAgentId:
      name: X-StockTrends-Agent-Id
      in: header
      required: false
      schema:
        type: string
    StockTrendsSessionId:
      name: X-StockTrends-Session-Id
      in: header
      required: false
      schema:
        type: string
    StockTrendsAgentType:
      name: X-StockTrends-Agent-Type
      in: header
      required: false
      schema:
        type: string
    StockTrendsRequestPurpose:
      name: X-StockTrends-Request-Purpose
      in: header
      required: false
      schema:
        type: string
    StockTrendsPaymentMethod:
      name: X-StockTrends-Payment-Method
      in: header
      required: false
      schema:
        type: string
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    PublicArtifactEnvelope:
      properties:
        schema_version:
          type: string
          const: '1'
          title: Schema Version
        artifact_id:
          type: string
          minLength: 1
          title: Artifact Id
        artifact_type:
          type: string
          enum:
          - market_guidance
          - market_research_report
          - editorial_preview
          - discovery_metadata
          title: Artifact Type
        publication_status:
          type: string
          enum:
          - publish_ready
          - product_grade
          - agent_actionable
          - published
          title: Publication Status
        validation_status:
          type: string
          enum:
          - validated
          - validated_with_warnings
          title: Validation Status
        generated_at:
          type: string
          minLength: 1
          title: Generated At
        published_at:
          type: string
          minLength: 1
          title: Published At
        weekdate:
          type: string
          title: Weekdate
        exchange:
          type: string
          title: Exchange
        provider:
          additionalProperties: true
          type: object
          title: Provider
        lineage:
          additionalProperties: true
          type: object
          title: Lineage
        payload:
          title: Payload
        revision:
          type: integer
          minimum: 1.0
          title: Revision
        content_hash:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
          title: Content Hash
        source_endpoints:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Source Endpoints
        input_snapshot_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Input Snapshot Id
        validation_summary:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Validation Summary
        guardrail_summary:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Guardrail Summary
        warnings:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Warnings
        expires_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Expires At
        access_tier:
          anyOf:
          - type: string
          - type: 'null'
          title: Access Tier
      additionalProperties: false
      type: object
      required:
      - schema_version
      - artifact_id
      - artifact_type
      - publication_status
      - validation_status
      - generated_at
      - published_at
      - weekdate
      - exchange
      - provider
      - lineage
      - payload
      - revision
      - content_hash
      title: PublicArtifactEnvelope
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer
    InternalSecretAuth:
      type: apiKey
      in: header
      name: X-Internal-Secret
      description: Internal/admin authentication for observability operations. A customer API key does not satisfy this requirement.
    X402PaymentSignature:
      type: apiKey
      in: header
      name: PAYMENT-SIGNATURE
      description: Runtime-recognized x402 payment proof supplied when retrying an otherwise serviceable challenged request.
    X402LegacyPayment:
      type: apiKey
      in: header
      name: X-Payment
      description: Runtime-recognized x402 payment proof supplied when retrying an otherwise serviceable challenged request.
    MPPXStockTrendsPaymentMethod:
      type: apiKey
      in: header
      name: X-StockTrends-Payment-Method
      description: Runtime-recognized MPP session authorization header.
    MPPXStockTrendsPaymentNetwork:
      type: apiKey
      in: header
      name: X-StockTrends-Payment-Network
      description: Runtime-recognized MPP session authorization header.
    MPPXStockTrendsPaymentReference:
      type: apiKey
      in: header
      name: X-StockTrends-Payment-Reference
      description: Runtime-recognized MPP session authorization header.
    MPPXStockTrendsPaymentAmount:
      type: apiKey
      in: header
      name: X-StockTrends-Payment-Amount
      description: Runtime-recognized MPP session authorization header.
    MPPXStockTrendsPaymentChannelId:
      type: apiKey
      in: header
      name: X-StockTrends-Payment-Channel-Id
      description: Runtime-recognized MPP session authorization header.
    MPPXPaymentChannelId:
      type: apiKey
      in: header
      name: X-Payment-Channel-Id
      description: Runtime-recognized MPP session authorization header.
externalDocs:
  url: https://developer.stocktrends.com/
x-stocktrends-provenance-summary: Stock Trends is a long-horizon market-intelligence framework, not a shallow market-data wrapper. Its historical classification record extends back to 1980 and includes 16M+ observations encoded through a consistent Stock Trends doctrine covering trend, relative performance, relative performance direction, volume, breadth, sector leadership, and regime structure. Agents should treat this historical depth as research provenance for probabilistic interpretation, not as a guarantee of future performance.
x-stocktrends-data-provenance:
  historical_coverage_start_year: 1980
  approximate_observation_count: 16M+
  update_frequency: weekly
  classification_framework: Stock Trends trend classification methodology
  semantic_continuity: Stock Trends indicators use a consistent classification doctrine across decades of observations.
  native_signal_domains:
  - trend classification
  - relative performance
  - relative performance direction
  - volume activity
  - market breadth
  - sector leadership
  - regime structure
  research_value:
  - long-horizon signal validation
  - regime analysis
  - sector rotation research
  - portfolio construction research
  - causal and probabilistic market analysis
  - agentic market-intelligence workflows
  important_limits:
  - Historical depth supports research and probabilistic interpretation but does not guarantee future performance.
  - Stock Trends outputs are not investment advice, price targets, or direct buy/sell commands.
  - Externally named market events are not native Stock Trends labels unless separately curated.