{"slug":"api-marketintelligenceapi-com-api-v1-analytics-weighted-mean-125232","title":"Use to average values you already have by importance ($0.01)","host":"api.marketintelligenceapi.com","method":"POST","resource":"https://api.marketintelligenceapi.com/api/v1/analytics/weighted-mean","category":"market","description":"Use to average values you already have by importance ($0.01): 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).","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":5,"reported_payers_30d":3,"networks":["eip155:137","eip155:42161","eip155:480","eip155:8453","eip155:84532","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"observations":[{"value":0.72,"weight":100},{"value":0.81,"weight":500},{"value":0.44,"weight":50}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"observations":{"items":{"properties":{"value":{"description":"The value","type":"number"},"weight":{"description":"Weight >= 0, default 1","type":"number"}},"required":["value"],"type":"object"},"maxItems":10000,"minItems":1,"type":"array"}},"required":["observations"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"additionalProperties":true,"properties":{"example":{"description":"Example JSON response returned by this endpoint"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input","output"],"type":"object"},"history":[],"description_full":"Use to average values you already have by importance ($0.01): 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).","last_updated":"2026-10-08T06:08:45.845Z","schemes":["exact"]}