Wagyu Swap Stats API

Read protocol activity statistics.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /v2/stats/daily Read protocol volume statistics #
GET /v2/swaps/route-stats Read 30-day measured execution medians by token and network #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wagyu-xyz:wagyu-xyz-stats-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wagyu-xyz-stats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wagyu Consumer Stats API
  version: v2
  contact:
    name: Wagyu API documentation
    url: https://docs.wagyu.xyz
  description: 'Public HTTP contract for building a Wagyu swap and native-bridge client. Order IDs are not credentials; retain the returned session ID privately. WebSocket updates are documented separately because REST remains the durable source of truth. An order status is final only when it is completed or refunded: failed and expired are not final, because a recovery or a late deposit can still complete or refund the order.'
  x-final-order-statuses:
  - completed
  - refunded
servers:
- url: https://api.wagyu.xyz
  description: Production
tags:
- name: Stats
  description: Read protocol activity statistics.
paths:
  /v2/stats/daily:
    get:
      operationId: getProtocolStats
      summary: Read protocol volume statistics
      tags:
      - Stats
      parameters:
      - schema:
          type: string
          enum:
          - 'true'
          - 'false'
        in: query
        name: includeMetadata
        required: false
        description: Opt in to freshness and coverage metadata; omitted by default for older strict clients.
      - schema:
          default: 14
          type: integer
          minimum: 1
          maximum: 365
        in: query
        name: days
        required: false
        description: How many trailing days of protocol statistics to include, ending today.
      security: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProtocolStats'
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /v2/swaps/route-stats:
    get:
      operationId: getSwapRouteStats
      summary: Read 30-day measured execution medians by token and network
      tags:
      - Stats
      security: []
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouteStats'
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    ProtocolStats:
      type: object
      properties:
        metadata:
          type: object
          properties:
            asOf:
              type: string
              format: date-time
              pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
            dayBasis:
              type: string
              enum:
              - created_at_utc
            currentProducts:
              type: array
              items:
                type: string
                enum:
                - swap
                - bridge
                - coinflip
            volumeIncludesLegacy:
              type: boolean
            orderCountsIncludeLegacy:
              type: boolean
            legacyAsOf:
              anyOf:
              - type: string
                format: date-time
                pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
              - type: 'null'
            unvaluedLegacyCompletedOrders:
              anyOf:
              - type: integer
                minimum: 0
                maximum: 9007199254740991
              - type: 'null'
          required:
          - asOf
          - dayBasis
          - currentProducts
          - volumeIncludesLegacy
          - orderCountsIncludeLegacy
          - legacyAsOf
          - unvaluedLegacyCompletedOrders
          additionalProperties: false
        stats24h:
          type: object
          properties:
            orders:
              type: number
            completed:
              type: number
            failed:
              type: number
            swaps:
              type: number
            bridge:
              type: number
            volumeUsd:
              type: number
          required:
          - orders
          - completed
          - failed
          - swaps
          - bridge
          - volumeUsd
          additionalProperties: false
        totals:
          type: object
          properties:
            orders:
              type: number
            completed:
              type: number
            failed:
              type: number
            swaps:
              type: number
            bridge:
              type: number
            volumeUsd:
              type: number
          required:
          - orders
          - completed
          - failed
          - swaps
          - bridge
          - volumeUsd
          additionalProperties: false
        daily:
          type: array
          items:
            type: object
            properties:
              orders:
                type: number
              completed:
                type: number
              failed:
                type: number
              swaps:
                type: number
              bridge:
                type: number
              volumeUsd:
                type: number
              date:
                type: string
            required:
            - orders
            - completed
            - failed
            - swaps
            - bridge
            - volumeUsd
            - date
            additionalProperties: false
      required:
      - stats24h
      - totals
      - daily
      additionalProperties: false
    ApiErrorCode:
      type: string
      enum:
      - invalid_request
      - unauthorized
      - forbidden
      - not_found
      - conflict
      - amount_below_minimum
      - no_route
      - paused
      - rate_limited
      - unavailable
      - request_failed
      - integration_not_approved
      - human_check_failed
    RouteStats:
      type: object
      properties:
        asOf:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        windowStart:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        windowDays:
          type: number
          enum:
          - 30
        cohort:
          type: string
          enum:
          - completed_at
        basis:
          type: string
          enum:
          - projection_system_seconds
          description: Seconds from the detected deposit to the order's last processing step. Excludes the time before the deposit was detected and the time until the received funds are spendable in a wallet.
        minimumSamples:
          type: number
          enum:
          - 5
        routes:
          type: array
          items:
            type: object
            properties:
              fromChainId:
                type: integer
                minimum: 0
                maximum: 9007199254740991
              fromToken:
                type: string
              toChainId:
                type: integer
                minimum: 0
                maximum: 9007199254740991
              toToken:
                type: string
              sampleCount:
                type: integer
                minimum: 0
                maximum: 9007199254740991
              medianSeconds:
                anyOf:
                - type: number
                  minimum: 0
                - type: 'null'
            required:
            - fromChainId
            - fromToken
            - toChainId
            - toToken
            - sampleCount
            - medianSeconds
            additionalProperties: false
      required:
      - asOf
      - windowStart
      - windowDays
      - cohort
      - basis
      - minimumSamples
      - routes
      additionalProperties: false
    ApiError:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ApiErrorCode'
        error:
          type: string
        minAmountUsd:
          type: number
          exclusiveMinimum: 0
        retryAfter:
          type: number
          minimum: 0
      required:
      - code
      - error
      additionalProperties: false
  securitySchemes:
    orderSession:
      type: apiKey
      in: header
      name: x-session-id
      description: Owner credential returned when an order is created. Keep it private and send it only in this header, never in a URL.
    destinationProof:
      type: apiKey
      in: query
      name: verify
      description: 'Read-only proof for one order: its exact destination address. Missing or invalid proof intentionally returns the same 404 as a missing order.'
    integratorKey:
      type: apiKey
      in: header
      name: x-integrator-key
      description: Optional integration credential. It does not unlock the API — quoting, creating and tracking all work without it. It attributes the order to your integration, collects your integrator fee, and is what permits a caller-supplied sessionId at creation. A confidential (server-side) key may also end the deposit wait of the orders created by its own integration. `x-api-key` is accepted as an alias; a key in the query string is refused even when valid, so a credential can never reach a proxy log. Sending no key is anonymous, never an error. A key that is present but invalid, revoked, or belongs to a suspended integration is refused with 401 on every route rather than silently downgraded to anonymous, and that 401 carries the generic unauthorized body — the reason stays in our logs.