{
  "x402Version": 2,
  "id": 32930,
  "slug": "32930",
  "resource": "https://hubvibe-io.com/work/finance/analytics",
  "description": "Trading and portfolio math: returns and CAGR, volatility, Sharpe and Sortino, max drawdown, VaR/CVaR, beta, alpha and correlation vs a benchmark, SMA/EMA, RSI, Bollinger bands, Black-Scholes option price with Greeks, and the Kelly fraction, over prices you send or a ticker fetched live. Deterministic, every formula named, no LLM. Input: prices or symbol; optional metrics, benchmark, option, kelly.",
  "type": "http",
  "serviceName": "HubVibe",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x837C40E2B4e976f43Ffb4451eE281A00fA9477dd",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "500000",
      "amountUsd": 0.5,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "J1K4mdbvXEbJLRKpgxFcA7s66LWMCYHu71ye6Hz2icSh",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "500000",
      "amountUsd": 0.5,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "kelly": {
              "win_loss_ratio": 1.5,
              "win_probability": 0.55
            },
            "option": {
              "rate": 0.04,
              "strike": 120,
              "time_to_expiry_years": 0.5,
              "type": "call"
            },
            "prices": [
              100,
              101.5,
              99.8,
              102.2,
              103.9,
              103.1,
              105.4,
              104.2,
              106.8,
              108,
              107.1,
              109.5,
              111.2,
              110.4,
              112.9,
              114.3,
              113,
              115.8,
              117.1,
              116.2,
              118.6,
              120
            ],
            "risk_free_rate": 0.04,
            "windows": {
              "bollinger": 10,
              "ema": [
                5
              ],
              "rsi": 14,
              "sma": [
                5,
                10
              ]
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "oneOf": [
                  {
                    "required": [
                      "prices"
                    ]
                  },
                  {
                    "required": [
                      "symbol"
                    ]
                  }
                ],
                "properties": {
                  "alpha": {
                    "exclusiveMinimum": 0,
                    "maximum": 0.5,
                    "type": "number"
                  },
                  "benchmark_prices": {
                    "items": {
                      "oneOf": [
                        {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        {
                          "additionalProperties": true,
                          "properties": {
                            "close": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "close"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 100000,
                    "minItems": 2,
                    "type": "array"
                  },
                  "benchmark_symbol": {
                    "pattern": "^[A-Za-z][A-Za-z0-9.\\-]{0,11}$",
                    "type": "string"
                  },
                  "kelly": {
                    "additionalProperties": false,
                    "properties": {
                      "win_loss_ratio": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      },
                      "win_probability": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      }
                    },
                    "required": [
                      "win_probability",
                      "win_loss_ratio"
                    ],
                    "type": "object"
                  },
                  "language": {
                    "maxLength": 35,
                    "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
                    "type": "string"
                  },
                  "metrics": {
                    "items": {
                      "enum": [
                        "returns",
                        "volatility",
                        "sharpe",
                        "sortino",
                        "drawdown",
                        "var",
                        "beta",
                        "moving_averages",
                        "rsi",
                        "bollinger",
                        "black_scholes",
                        "kelly"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array",
                    "uniqueItems": true
                  },
                  "option": {
                    "additionalProperties": false,
                    "properties": {
                      "dividend_yield": {
                        "minimum": 0,
                        "type": "number"
                      },
                      "rate": {
                        "type": "number"
                      },
                      "spot": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      },
                      "strike": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      },
                      "time_to_expiry_years": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      },
                      "type": {
                        "enum": [
                          "call",
                          "put"
                        ],
                        "type": "string"
                      },
                      "volatility": {
                        "exclusiveMinimum": 0,
                        "type": "number"
                      }
                    },
                    "required": [
                      "type",
                      "strike",
                      "time_to_expiry_years"
                    ],
                    "type": "object"
                  },
                  "periods_per_year": {
                    "maximum": 100000,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "prices": {
                    "items": {
                      "oneOf": [
                        {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        {
                          "additionalProperties": true,
                          "properties": {
                            "close": {
                              "exclusiveMinimum": 0,
                              "type": "number"
                            },
                            "date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "close"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "maxItems": 100000,
                    "minItems": 2,
                    "type": "array"
                  },
                  "range": {
                    "enum": [
                      "1d",
                      "5d",
                      "1mo",
                      "3mo",
                      "6mo",
                      "1y",
                      "2y",
                      "5y"
                    ],
                    "type": "string"
                  },
                  "risk_free_rate": {
                    "maximum": 10,
                    "minimum": -1,
                    "type": "number"
                  },
                  "symbol": {
                    "pattern": "^[A-Za-z][A-Za-z0-9.\\-]{0,11}$",
                    "type": "string"
                  },
                  "windows": {
                    "additionalProperties": false,
                    "properties": {
                      "bollinger": {
                        "oneOf": [
                          {
                            "maximum": 5000,
                            "minimum": 2,
                            "type": "integer"
                          },
                          {
                            "items": {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            "maxItems": 10,
                            "minItems": 1,
                            "type": "array"
                          }
                        ]
                      },
                      "ema": {
                        "oneOf": [
                          {
                            "maximum": 5000,
                            "minimum": 2,
                            "type": "integer"
                          },
                          {
                            "items": {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            "maxItems": 10,
                            "minItems": 1,
                            "type": "array"
                          }
                        ]
                      },
                      "rsi": {
                        "oneOf": [
                          {
                            "maximum": 5000,
                            "minimum": 2,
                            "type": "integer"
                          },
                          {
                            "items": {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            "maxItems": 10,
                            "minItems": 1,
                            "type": "array"
                          }
                        ]
                      },
                      "sma": {
                        "oneOf": [
                          {
                            "maximum": 5000,
                            "minimum": 2,
                            "type": "integer"
                          },
                          {
                            "items": {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            "maxItems": 10,
                            "minItems": 1,
                            "type": "array"
                          }
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "trading",
    "technical-analysis",
    "risk",
    "sharpe-ratio",
    "rsi",
    "bazaar"
  ],
  "sourceHost": "hubvibe-io.com",
  "lastUpdated": "2026-10-01T04:01:16.937Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T04:01:16.763Z"
  },
  "metadata": {
    "serviceName": "HubVibe",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "kelly": {
                "win_loss_ratio": 1.5,
                "win_probability": 0.55
              },
              "option": {
                "rate": 0.04,
                "strike": 120,
                "time_to_expiry_years": 0.5,
                "type": "call"
              },
              "prices": [
                100,
                101.5,
                99.8,
                102.2,
                103.9,
                103.1,
                105.4,
                104.2,
                106.8,
                108,
                107.1,
                109.5,
                111.2,
                110.4,
                112.9,
                114.3,
                113,
                115.8,
                117.1,
                116.2,
                118.6,
                120
              ],
              "risk_free_rate": 0.04,
              "windows": {
                "bollinger": 10,
                "ema": [
                  5
                ],
                "rsi": 14,
                "sma": [
                  5,
                  10
                ]
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "oneOf": [
                    {
                      "required": [
                        "prices"
                      ]
                    },
                    {
                      "required": [
                        "symbol"
                      ]
                    }
                  ],
                  "properties": {
                    "alpha": {
                      "exclusiveMinimum": 0,
                      "maximum": 0.5,
                      "type": "number"
                    },
                    "benchmark_prices": {
                      "items": {
                        "oneOf": [
                          {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          {
                            "additionalProperties": true,
                            "properties": {
                              "close": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "date": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "close"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "maxItems": 100000,
                      "minItems": 2,
                      "type": "array"
                    },
                    "benchmark_symbol": {
                      "pattern": "^[A-Za-z][A-Za-z0-9.\\-]{0,11}$",
                      "type": "string"
                    },
                    "kelly": {
                      "additionalProperties": false,
                      "properties": {
                        "win_loss_ratio": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "win_probability": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "win_probability",
                        "win_loss_ratio"
                      ],
                      "type": "object"
                    },
                    "language": {
                      "maxLength": 35,
                      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
                      "type": "string"
                    },
                    "metrics": {
                      "items": {
                        "enum": [
                          "returns",
                          "volatility",
                          "sharpe",
                          "sortino",
                          "drawdown",
                          "var",
                          "beta",
                          "moving_averages",
                          "rsi",
                          "bollinger",
                          "black_scholes",
                          "kelly"
                        ],
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "option": {
                      "additionalProperties": false,
                      "properties": {
                        "dividend_yield": {
                          "minimum": 0,
                          "type": "number"
                        },
                        "rate": {
                          "type": "number"
                        },
                        "spot": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "strike": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "time_to_expiry_years": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        },
                        "type": {
                          "enum": [
                            "call",
                            "put"
                          ],
                          "type": "string"
                        },
                        "volatility": {
                          "exclusiveMinimum": 0,
                          "type": "number"
                        }
                      },
                      "required": [
                        "type",
                        "strike",
                        "time_to_expiry_years"
                      ],
                      "type": "object"
                    },
                    "periods_per_year": {
                      "maximum": 100000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "prices": {
                      "items": {
                        "oneOf": [
                          {
                            "exclusiveMinimum": 0,
                            "type": "number"
                          },
                          {
                            "additionalProperties": true,
                            "properties": {
                              "close": {
                                "exclusiveMinimum": 0,
                                "type": "number"
                              },
                              "date": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "close"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "maxItems": 100000,
                      "minItems": 2,
                      "type": "array"
                    },
                    "range": {
                      "enum": [
                        "1d",
                        "5d",
                        "1mo",
                        "3mo",
                        "6mo",
                        "1y",
                        "2y",
                        "5y"
                      ],
                      "type": "string"
                    },
                    "risk_free_rate": {
                      "maximum": 10,
                      "minimum": -1,
                      "type": "number"
                    },
                    "symbol": {
                      "pattern": "^[A-Za-z][A-Za-z0-9.\\-]{0,11}$",
                      "type": "string"
                    },
                    "windows": {
                      "additionalProperties": false,
                      "properties": {
                        "bollinger": {
                          "oneOf": [
                            {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            {
                              "items": {
                                "maximum": 5000,
                                "minimum": 2,
                                "type": "integer"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "ema": {
                          "oneOf": [
                            {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            {
                              "items": {
                                "maximum": 5000,
                                "minimum": 2,
                                "type": "integer"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "rsi": {
                          "oneOf": [
                            {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            {
                              "items": {
                                "maximum": 5000,
                                "minimum": 2,
                                "type": "integer"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        },
                        "sma": {
                          "oneOf": [
                            {
                              "maximum": 5000,
                              "minimum": 2,
                              "type": "integer"
                            },
                            {
                              "items": {
                                "maximum": 5000,
                                "minimum": 2,
                                "type": "integer"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            }
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "hubvibe-io.com",
    "manifest_name": "hubvibe-io.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": {},
    "type": "string"
  }
}