Olympus OHM Total Supply API

Serverless GCP Cloud Function that returns the current OHM total supply as a plain-text numeric string. Reads from a one-hour Firestore cache backed by the Olympus Protocol Metrics API. Used by CoinGecko to display accurate total supply on the OHM token page. Cache can be bypassed with ?cache=false.

SDKs

API entry from apis.yml

apis.yml Raw ↑
name: Olympus OHM Total Supply API
description: Serverless GCP Cloud Function that returns the current OHM total supply as a plain-text numeric
  string. Reads from a one-hour Firestore cache backed by the Olympus Protocol Metrics API. Used by CoinGecko
  to display accurate total supply on the OHM token page. Cache can be bypassed with ?cache=false.
image: https://www.olympusdao.finance/images/og-image.png
humanURL: https://github.com/OlympusDAO/coingecko-api
baseURL: https://total-supply.api.olympusdao.finance
tags:
- OHM Supply
- CoinGecko
- Total Supply
properties:
- type: GitHubRepository
  url: https://github.com/OlympusDAO/coingecko-api
contact:
- FN: OlympusDAO
  url: https://www.olympusdao.finance/
endpoints:
- name: OHM Total Supply
  description: Returns the current OHM total supply as a plain-text numeric string. Cached in Firestore
    for one hour; append ?cache=false to force a live fetch from the treasury subgraph API.
  method: GET
  path: /
  parameters:
  - name: cache
    in: query
    required: false
    description: Set to "false" to bypass the one-hour Firestore cache.
    schema:
      type: string
      enum:
      - 'false'
  tags:
  - OHM Supply
  - Total Supply