> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yieldo.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Vault Stats

> Real success-rate stats from historical deposits, optionally filtered by
source chain + token. Returns overall + per-bridge breakdown so the deposit
UI can tag each route option with its observed success rate.



## OpenAPI

````yaml https://api.yieldo.xyz/openapi.json get /v1/vaults/{vault_id}/stats
openapi: 3.1.0
info:
  title: Yieldo API
  description: Cross-chain deposit aggregator for ERC-4626 and custom yield vaults
  version: 1.0.0
servers:
  - url: https://api.yieldo.xyz
    description: Production
security: []
paths:
  /v1/vaults/{vault_id}/stats:
    get:
      tags:
        - vaults
      summary: Get Vault Stats
      description: >-
        Real success-rate stats from historical deposits, optionally filtered by

        source chain + token. Returns overall + per-bridge breakdown so the
        deposit

        UI can tag each route option with its observed success rate.
      operationId: get_vault_stats_v1_vaults__vault_id__stats_get
      parameters:
        - name: vault_id
          in: path
          required: true
          schema:
            type: string
            title: Vault Id
        - name: days
          in: query
          required: false
          schema:
            type: integer
            maximum: 365
            minimum: 1
            default: 30
            title: Days
        - name: from_chain_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Filter by source chain
            title: From Chain Id
          description: Filter by source chain
        - name: from_token
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by source token address (case-insensitive)
            title: From Token
          description: Filter by source token address (case-insensitive)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````