Stock Trends API
The Stock Trends API is an agent-native financial intelligence platform designed for AI agents, portfolio systems, research workflows, and financial applications.
The API combines probabilistic market forecasting (ST-IM), portfolio construction, regime intelligence, breadth and leadership analysis, and machine-native payment rails into a structured workflow-oriented platform.
Recommended agent workflow: discover → price → resolve symbols → screen/select → evaluate → construct portfolio → add regime and leadership context → execute.
Pricing clarity: 1 STC = $1.00 USD for current billing and payment presentation. A 0.50 STC request costs $0.50 USD.
Long-horizon signal history for agent discovery
Agent discovery should treat the Stock Trends signal layer as long-horizon market intelligence, not a thin quote wrapper. The framework includes historical classification records extending back to 1980, 16M+ structured observations, and consistent signal semantics across trend, relative performance, volume activity, breadth, leadership, and regime structure.
Use this depth as research provenance for probabilistic interpretation, regime analysis, portfolio construction research, and agentic workflows - not as investment advice, price targets, direct buy/sell commands, or guaranteed future performance.
Primary discovery endpoints
Recommended first call for AI agents:
GET /v1/ai/tools
Returns machine-readable discovery metadata for workflows, pricing behavior, endpoint families, examples, and agent integration guidance.
| Endpoint | Purpose |
|---|---|
GET /v1/ai/tools |
Primary agent discovery and workflow metadata |
GET /v1/ai/context |
Indicator definitions and dataset grounding |
GET /v1/pricing/catalog |
Live endpoint pricing rules |
GET /v1/cost-estimate |
Workflow cost estimation |
GET /v1/openapi.json |
Canonical OpenAPI schema |
ST-IM intelligence layer
ST-IM (Stock Trends Inference Model) provides forward return distribution intelligence using the Stock Trends methodology and historical probability structures.
GET /v1/stim/latestGET /v1/stim/historyGET /v1/selections/latestGET /v1/selections/historyGET /v1/selections/published/latestGET /v1/selections/published/history
STIM Select identifies instruments whose lower-bound confidence intervals exceed baseline random return distributions across multiple forward periods.
Core workflow families
| Family | Representative endpoints |
|---|---|
| Decision | POST /decision/evaluate-symbol |
| Portfolio |
POST /portfolio/constructPOST /portfolio/evaluatePOST /portfolio/compare
|
| Market regime |
GET /market/regime/latestGET /market/regime/historyGET /market/regime/forecast
|
| Breadth & leadership |
GET /breadth/sector/latestGET /leadership/summary/latest
|
| Pricing & economics |
GET /pricing/catalogGET /cost-estimate
|
| Metadata |
GET /meta/indicatorsGET /meta/stimGET /meta/stwr
|
| Agents |
GET /agentsGET /agents/{agent_id}/usageGET /agents/{agent_id}/ledger
|
Authentication and payment
Subscription access
X-API-Key: YOUR_API_KEY
x402 per-request payment
X-StockTrends-Payment-Method: x402 X-StockTrends-Payment-Network: base X-StockTrends-Payment-Token: USDC X-StockTrends-Payment-Reference: 0x...tx_hash
MPP funded session payment
X-StockTrends-Payment-Method: mpp X-StockTrends-Payment-Network: base X-StockTrends-Payment-Reference: mpp-ref-12345 X-StockTrends-Payment-Amount: 0.5 X-StockTrends-Session-Id: mppch_...
Use x402 for permissionless pay-per-request execution. Use MPP for repeated funded agent workflows.
Recommended first premium endpoint
GET /v1/agent/screener/top
Returns top-ranked instruments filtered by trend, RSI, exchange, and ST-IM intelligence.
Current live cost: 0.50 STC ($0.50 USD)