Stock Trends Instruments API
The instruments API from Stock Trends — 2 operation(s) for instruments.
The instruments API from Stock Trends — 2 operation(s) for instruments.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/stocktrends-com:stocktrends-com-instruments-api"
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.
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: 3.2.0
info:
title: Stock Trends API v1 Instruments 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: Instruments
paths:
/instruments/lookup:
get:
tags:
- Instruments
summary: Instrument Lookup
description: 'Lookup all instruments that match a symbol across exchanges.
Uses instrument metadata. Returns symbol_exchange keys like IBM-N.'
operationId: instrument_lookup_instruments_lookup_get
parameters:
- name: symbol
in: query
required: true
schema:
type: string
description: Ticker symbol, e.g. ABC
title: Symbol
description: Ticker symbol, e.g. ABC
- name: cs_only
in: query
required: false
schema:
type: boolean
description: Filter to Common Stocks only (type='CS')
default: true
title: Cs Only
description: Filter to Common Stocks only (type='CS')
- name: limit
in: query
required: false
schema:
type: integer
maximum: 500
minimum: 1
description: Safety limit
default: 50
title: Limit
description: Safety limit
- name: details
in: query
required: false
schema:
type: boolean
description: Include extra fields (industry names, website, location, etc.)
default: false
title: Details
description: Include extra fields (industry names, website, location, etc.)
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/instruments/resolve:
get:
tags:
- Instruments
summary: Instrument Resolve
description: 'Returns exactly one instrument if it can be resolved safely.
If ambiguous, returns 409 with matches.'
operationId: instrument_resolve_instruments_resolve_get
parameters:
- name: symbol_exchange
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: e.g., IBM-N
title: Symbol Exchange
description: e.g., IBM-N
- name: symbol
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: e.g., IBM
title: Symbol
description: e.g., IBM
- name: exchange
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: 'Exchange code: N,Q,A,B,T,I'
title: Exchange
description: 'Exchange code: N,Q,A,B,T,I'
- name: prefer_exchange
in: query
required: false
schema:
type: string
description: Preferred exchange if symbol-only is ambiguous
default: N
title: Prefer Exchange
description: Preferred exchange if symbol-only is ambiguous
- name: cs_only
in: query
required: false
schema:
type: boolean
default: true
title: Cs Only
- name: details
in: query
required: false
schema:
type: boolean
description: Include extra fields (same as /lookup details)
default: false
title: Details
description: Include extra fields (same as /lookup details)
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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
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.