Use to combine factor scores into one composite ($0.10), e.g
api.marketintelligenceapi.com/api/v1/analytics/weighted-score
Use to combine factor scores into one composite ($0.10), e.g. momentum, fundamentals and risk: send factors {name, score, weight}; get the 0-100 score with each factor's normalised weight and contribution. Weights need not sum to 1. Transparent and reproducible, no data fetched.
POST
https://api.marketintelligenceapi.com/api/v1/analytics/weighted-scoreUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.marketintelligenceapi.com/api/v1/analytics/weighted-score", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"factors":[{"name":"momentum","score":82,"weight":0.3},{"name":"fundamentals","score":74,"weight":0.4},{"name":"risk","score":63,"weight":0.3}]}),
});
console.log(await res.json());Example input
{
"factors": [
{
"name": "momentum",
"score": 82,
"weight": 0.3
},
{
"name": "fundamentals",
"score": 74,
"weight": 0.4
},
{
"name": "risk",
"score": 63,
"weight": 0.3
}
]
}More from Market Intelligence API
- api.marketintelligenceapi.com/api/v1/analytics/anomaly-scoreUse to flag outliers in any series ($0.10): send value and reference values; get a 0-100 anomaly score, the z-score, severity (NORMAL, LOW, MEDIUM, HIGH, EXTREME) and direction (ABOVE/BELOW). Fixed statistical thresholds, no AI and no data fetched; a score, not a probability.0.09
- api.marketintelligenceapi.com/api/v1/analytics/confidenceUse to turn evidence quality into one auditable 0-100 confidence ($0.10): send factors such as sample size, data freshness, source agreement and signal consistency (each 0-100, weighted); get the confidence, a band and the weakest factor. A transparent weighted mean, not AI confidence.0.09
- api.marketintelligenceapi.com/api/v1/analytics/correlationUse to check whether two series move together ($0.10), e.g. returns of two assets or a signal versus outcomes: send equal-length x and y; get Pearson r (default) or Spearman rank correlation, r-squared and direction. Deterministic decimal math on your numbers, nothing fetched.0.09
- api.marketintelligenceapi.com/api/v1/analytics/percentileUse to rank a value against a dataset ($0.10), e.g. today's volume versus the last 90 days: send value and values; get its 0-100 percentile rank with counts below, equal and above. Methods LINEAR (default, interpolated), MIDRANK and AT_OR_BELOW. Deterministic, no data fetched.0.09
- api.marketintelligenceapi.com/api/v1/analytics/weighted-meanUse to average values you already have by importance ($0.10): send observations {value, weight}; get sum(value*weight)/sum(weight), the total weight and the count. Deterministic decimal math on your numbers, no market data fetched; any asset class or metric (scores, prices, returns, sentiment).0.09
- api.marketintelligenceapi.com/api/v1/analytics/weighted-medianUse for a robust, outlier-resistant central value with weights ($0.10): send observations {value, weight}; get the value where cumulative weight reaches half the total. Deterministic definition, exact ties take the midpoint; works on any numeric data you supply.0.09
- api.marketintelligenceapi.com/api/v1/analytics/zscoreUse to measure how unusual a value is versus its history ($0.10): send value and reference values; get mean, standard deviation and z = (value - mean) / sd. Choose SAMPLE (default, n-1) or POPULATION (n) standard deviation. Deterministic, works for prices, volumes, spreads or any series.0.09
- api.marketintelligenceapi.com/api/v1/calendarEconomic calendar and macro events ($0.10): next market-moving releases in UTC with importance from official calendars - US CPI, jobs report, PCE, GDP, PPI and JOLTS (BLS, BEA), FOMC and ECB rate decisions. Use before opening a position; avoid entering right before a high-impact release.0.09
- api.marketintelligenceapi.com/api/v1/cot/:marketCFTC Commitments of Traders history for one market ($0.10): gold, WTI, S&P 500, Nasdaq, Treasuries, EUR, JPY, bitcoin, ether and more (aliases GOLD, SPY, BTC, EURUSD work) - speculators, hedgers and small traders net, 1w/4w change, COT index 0-100 and CROWDED_LONG/SHORT. Use for the futures positioning behind one market.0.09
- api.marketintelligenceapi.com/api/v1/datasets/:symbolHistorical crypto and tokenized stock data for backtesting: one UTC day (date=YYYY-MM-DD) of trade-flow candles for a symbol at 1m, 5m, 15m or 1h, per venue (on-chain DEX pools and Solana DEX pools for tokenized stocks) - OHLCV, aggressor buy and sell volume, buy pressure, VWAP and trade count, as JSON or CSV (format=csv). Catalog free at /api/v1/datasets.0.09
- api.marketintelligenceapi.com/api/v1/earnings/:symbolEarnings date and earnings history of a US stock ($0.10): when the company reports next (projected from its past 8-K earnings releases), its last quarters' revenue and diluted EPS with year-over-year growth, and whether growth is accelerating vs its own trend. From SEC EDGAR; no analyst estimates. Use before earnings season or a stock trade.0.09
- api.marketintelligenceapi.com/api/v1/eu/fxEuro exchange rates and forex reference rates ($0.10): official ECB euro rates for about 30 currencies (USD, GBP, JPY, CHF, CNY, ...) with the date and the change vs the previous fixing. Use for official FX conversion rates.0.09
