{
  "x402Version": 2,
  "id": 35172,
  "slug": "35172",
  "resource": "https://api.marketintelligenceapi.com/api/v1/analytics/weighted-mean",
  "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).",
  "type": "http",
  "serviceName": "Market Intelligence API",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "9CAhY1vdaZfrfoto3KLQtRAo1dVWxNn5xAfmc2XbZVsf",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:480",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x79A02482A880bCE3F13e09Da970dC34db4CD24d1",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:480",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x1C60ba0A0eD1019e8Eb035E6daF4155A5cE2380B",
      "amount": "9000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0x48d5A78d480B4C32dE319C2aEF69e682Dc304615",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "additionalProperties": true,
    "properties": {
      "example": {
        "description": "Example JSON response returned by this endpoint"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "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": {
          "example": {
            "method": "WEIGHTED_ARITHMETIC_MEAN",
            "observations": 3,
            "operation": "weighted-mean",
            "result": 0.767692,
            "totalWeight": 650,
            "weightedMean": 0.767692
          },
          "type": "json"
        }
      },
      "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"
      }
    }
  },
  "tags": [
    "statistics",
    "weighted average",
    "aggregation",
    "bazaar"
  ],
  "sourceHost": "api.marketintelligenceapi.com",
  "lastUpdated": "2026-10-08T06:08:45.845Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:45.633Z"
  },
  "metadata": {
    "serviceName": "Market Intelligence API",
    "extensions": {
      "bazaar": {
        "info": {
          "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": {
            "example": {
              "method": "WEIGHTED_ARITHMETIC_MEAN",
              "observations": 3,
              "operation": "weighted-mean",
              "result": 0.767692,
              "totalWeight": 650,
              "weightedMean": 0.767692
            },
            "type": "json"
          }
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.marketintelligenceapi.com",
    "manifest_name": "api.marketintelligenceapi.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": null,
    "type": "string"
  }
}