openapi: 3.0.3
info:
  title: Coinranking API
  description:
    Coinranking cryptocurrency API providing real-time and historical data on
    coins, exchanges, markets, and global stats.
  version: '2.0'
  contact:
    name: Coinranking
    url: https://coinranking.com
  x-jentic-source-url: https://raw.githubusercontent.com/sophie-jentic/openapi-specs/refs/heads/import-jentic-pr-specs/coinranking.com/coinranking-api/2.0/openapi.json
servers:
  - url: https://api.coinranking.com/v2
paths:
  /coins:
    get:
      summary: List of coins
      description: Get a list of coins with market data.
      operationId: getCoins
      tags:
        - Coins
      parameters:
        - name: referenceCurrencyUuid
          in: query
          description: UUID of reference currency for price calculations.
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          description: Time period for change and sparkline data.
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
        - name: symbols[]
          in: query
          description: Filter by coin symbols.
          schema:
            type: array
            items:
              type: string
        - name: contractAddresses[]
          in: query
          description: Filter by contract addresses.
          schema:
            type: array
            items:
              type: string
        - name: blockchains[]
          in: query
          description: Filter by blockchain names.
          schema:
            type: array
            items:
              type: string
        - name: uuids[]
          in: query
          description: Filter by coin UUIDs.
          schema:
            type: array
            items:
              type: string
        - name: tiers[]
          in: query
          description: Filter by coin tiers.
          schema:
            type: array
            items:
              type: integer
              enum:
                - 1
                - 2
                - 3
        - name: tags[]
          in: query
          description: Filter by tags.
          schema:
            type: array
            items:
              type: string
              enum:
                - defi
                - stablecoin
                - nft
                - dex
                - exchange
                - staking
                - dao
                - meme
                - privacy
                - metaverse
                - gaming
                - wrapped
                - layer-1
                - layer-2
                - fan-token
                - football-club
                - web3
                - social
        - name: orderBy
          in: query
          description: Order coins by field.
          schema:
            type: string
            default: marketCap
            enum:
              - price
              - marketCap
              - 24hVolume
              - change
              - listedAt
        - name: orderDirection
          in: query
          description: Sort direction.
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
        - name: limit
          in: query
          description: Maximum number of results.
          schema:
            type: integer
            default: 50
            minimum: 0
            maximum: 5000
        - name: offset
          in: query
          description: Pagination offset.
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: cursor
          in: query
          description: Pagination cursor string.
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoinsResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /coins/trending:
    get:
      summary: Trending coins
      description: Get trending coins ranked by user engagement.
      operationId: getTrendingCoins
      tags:
        - Coins
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
        - name: tiers[]
          in: query
          schema:
            type: array
            items:
              type: integer
              enum:
                - 1
                - 2
                - 3
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 5000
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoinsResponse'
  /coin/{uuid}:
    get:
      summary: Coin details
      description: Get detailed information about a specific coin.
      operationId: getCoinDetails
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoinDetailResponse'
        '404':
          description: Coin not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /coin/{uuid}/price:
    get:
      summary: Coin price
      description: Get the price of a specific coin.
      operationId: getCoinPrice
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timestamp
          in: query
          description: Epoch timestamp in seconds for historical price.
          schema:
            type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      price:
                        type: string
                      timestamp:
                        type: integer
  /coin/{uuid}/price-history:
    get:
      summary: Coin price history
      description: Get historical price data for a coin.
      operationId: getCoinPriceHistory
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
              - all
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      change:
                        type: string
                      history:
                        type: array
                        items:
                          type: object
                          properties:
                            price:
                              type: string
                            timestamp:
                              type: integer
  /coin/{uuid}/ohlcv:
    get:
      summary: Coin OHLCV
      description:
        Get OHLCV (Open, High, Low, Close, Volume) candlestick data for a coin.
        Pro endpoint.
      operationId: getCoinOhlcv
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: interval
          in: query
          description: Interval for OHLCV data.
          schema:
            type: string
            default: day
            enum:
              - minute
              - 5min
              - hour
              - 8hour
              - day
              - week
              - month
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 5000
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      ohlcv:
                        type: array
                        items:
                          type: object
                          properties:
                            startingAt:
                              type: integer
                            endingAt:
                              type: integer
                            open:
                              type: string
                            high:
                              type: string
                            low:
                              type: string
                            close:
                              type: string
                            avg:
                              type: string
                            volume:
                              type: string
                            count:
                              type: integer
  /coin/{uuid}/exchanges:
    get:
      summary: Coin exchange listings
      description: Get exchanges where a coin is traded. Pro endpoint.
      operationId: getCoinExchanges
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 5000
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - price
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      stats:
                        type: object
                        properties:
                          total:
                            type: integer
                      exchanges:
                        type: array
                        items:
                          $ref: '#/components/schemas/Exchange'
  /coin/{uuid}/markets:
    get:
      summary: Coin market listings
      description: Get markets for a specific coin. Pro endpoint.
      operationId: getCoinMarkets
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 5000
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - price
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      stats:
                        type: object
                        properties:
                          total:
                            type: integer
                      markets:
                        type: array
                        items:
                          $ref: '#/components/schemas/Market'
  /coin/{uuid}/supply-modifiers:
    get:
      summary: Coin supply modifiers
      description: Get supply modifier wallets for a coin. Pro endpoint.
      operationId: getCoinSupplyModifiers
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /coin/{uuid}/fiat-prices:
    get:
      summary: Coin fiat prices
      description:
        Get real-time coin prices in multiple fiat currencies. Pro endpoint.
      operationId: getCoinFiatPrices
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /coin/{uuid}/market-cap-history:
    get:
      summary: Coin market cap history
      description: Get historical market cap data for a coin. Pro endpoint.
      operationId: getCoinMarketCapHistory
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /coin/{uuid}/rank-history:
    get:
      summary: Coin rank history
      description: Get historical ranking data for a coin. Pro endpoint.
      operationId: getCoinRankHistory
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /coin/{uuid}/volume-history:
    get:
      summary: Coin trading volume history
      description: Get historical trading volume data. Pro endpoint.
      operationId: getCoinVolumeHistory
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /coin/{uuid}/supply-history:
    get:
      summary: Coin supply history
      description: Get historical supply data. Pro endpoint.
      operationId: getCoinSupplyHistory
      tags:
        - Coins
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /stats:
    get:
      summary: Global stats
      description: Get global cryptocurrency market statistics.
      operationId: getStats
      tags:
        - Stats
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponse'
  /stats/coins:
    get:
      summary: Stats for selection of coins
      description:
        Get summarized statistics for a filtered selection of coins. Pro
        endpoint.
      operationId: getStatsCoins
      tags:
        - Stats
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: uuids[]
          in: query
          schema:
            type: array
            items:
              type: string
        - name: tags[]
          in: query
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /stats/market-cap-history:
    get:
      summary: Global market cap history
      description:
        Get historical global cryptocurrency market capitalization. Pro
        endpoint.
      operationId: getGlobalMarketCapHistory
      tags:
        - Stats
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /stats/volume-history:
    get:
      summary: Global trading volume history
      description: Get historical global trading volume. Pro endpoint.
      operationId: getGlobalVolumeHistory
      tags:
        - Stats
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /stats/btc-dominance-history:
    get:
      summary: Bitcoin dominance history
      description: Get historical Bitcoin dominance data. Pro endpoint.
      operationId: getBtcDominanceHistory
      tags:
        - Stats
      parameters:
        - name: timePeriod
          in: query
          schema:
            type: string
            default: 24h
            enum:
              - 1h
              - 3h
              - 12h
              - 24h
              - 7d
              - 30d
              - 3m
              - 1y
              - 3y
              - 5y
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /exchanges:
    get:
      summary: List exchanges
      description: Get a list of centralized exchanges. Pro endpoint.
      operationId: getExchanges
      tags:
        - Exchanges
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 5000
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - numberOfMarkets
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
        - name: search
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /exchange/{uuid}:
    get:
      summary: Exchange details
      description:
        Get detailed information about a specific exchange. Pro endpoint.
      operationId: getExchangeDetails
      tags:
        - Exchanges
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /exchange/{uuid}/coins:
    get:
      summary: Exchange coin listings
      description: Get coins listed on a specific exchange. Pro endpoint.
      operationId: getExchangeCoins
      tags:
        - Exchanges
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - price
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /exchange/{uuid}/markets:
    get:
      summary: Exchange markets
      description: Get markets on a specific exchange. Pro endpoint.
      operationId: getExchangeMarkets
      tags:
        - Exchanges
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - price
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
        - name: search
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /dexs:
    get:
      summary: List DEXs
      description: Get a list of decentralized exchanges.
      operationId: getDexs
      tags:
        - DEXs
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - numberOfMarkets
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /dex/{uuid}:
    get:
      summary: DEX details
      description: Get detailed information about a specific DEX.
      operationId: getDexDetails
      tags:
        - DEXs
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /dex/{uuid}/coins:
    get:
      summary: DEX coin listings
      description: Get coins listed on a specific DEX.
      operationId: getDexCoins
      tags:
        - DEXs
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /dex/{uuid}/markets:
    get:
      summary: DEX markets
      description: Get markets on a specific DEX.
      operationId: getDexMarkets
      tags:
        - DEXs
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /markets:
    get:
      summary: List markets
      description: Get a list of markets. Pro endpoint.
      operationId: getMarkets
      tags:
        - Markets
      parameters:
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: orderBy
          in: query
          schema:
            type: string
            default: 24hVolume
            enum:
              - 24hVolume
              - price
        - name: orderDirection
          in: query
          schema:
            type: string
            default: desc
            enum:
              - desc
              - asc
        - name: search
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /market/{uuid}:
    get:
      summary: Market details
      description: Get details about a specific market. Pro endpoint.
      operationId: getMarketDetails
      tags:
        - Markets
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /blockchains:
    get:
      summary: List blockchains
      description: Get a list of blockchains. Pro endpoint.
      operationId: getBlockchains
      tags:
        - Blockchains
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: search
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /blockchain/{uuid}:
    get:
      summary: Blockchain details
      description: Get details about a specific blockchain. Pro endpoint.
      operationId: getBlockchainDetails
      tags:
        - Blockchains
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /blockchain/{uuid}/contract-address/{contractAddress}:
    get:
      summary: Blockchain contract address
      description: Resolve a contract address to a coin UUID. Pro endpoint.
      operationId: getBlockchainContractAddress
      tags:
        - Blockchains
      parameters:
        - name: uuid
          in: path
          required: true
          schema:
            type: string
        - name: contractAddress
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
  /reference-currencies:
    get:
      summary: List reference currencies
      description:
        Get a list of available reference currencies (fiat and crypto).
      operationId: getReferenceCurrencies
      tags:
        - Reference Currencies
      parameters:
        - name: types[]
          in: query
          description: Filter by currency type.
          schema:
            type: array
            items:
              type: string
              enum:
                - coin
                - fiat
                - denominator
                - asset
        - name: search
          in: query
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 5000
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
        - name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReferenceCurrenciesResponse'
  /search-suggestions:
    get:
      summary: Search suggestions
      description: Search for coins, exchanges, markets, and categories.
      operationId: getSearchSuggestions
      tags:
        - Search
      parameters:
        - name: query
          in: query
          description: Search term.
          schema:
            type: string
        - name: referenceCurrencyUuid
          in: query
          schema:
            type: string
            default: yhjMzLPhuIDl
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      coins:
                        type: array
                        items:
                          $ref: '#/components/schemas/CoinSummary'
                      exchanges:
                        type: array
                        items:
                          type: object
                      markets:
                        type: array
                        items:
                          type: object
                      fiat:
                        type: array
                        items:
                          type: object
                      categories:
                        type: array
                        items:
                          type: object
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key obtained from the Coinranking developer dashboard.
  schemas:
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: fail
        type:
          type: string
          example: VALIDATION_ERROR
        message:
          type: string
    CoinSummary:
      type: object
      properties:
        uuid:
          type: string
        symbol:
          type: string
        name:
          type: string
        color:
          type: string
        iconUrl:
          type: string
        marketCap:
          type: string
        price:
          type: string
        listedAt:
          type: integer
          nullable: true
        tier:
          type: integer
          nullable: true
        change:
          type: string
        rank:
          type: integer
        sparkline:
          type: array
          items:
            type: string
        lowVolume:
          type: boolean
        coinrankingUrl:
          type: string
        24hVolume:
          type: string
        btcPrice:
          type: string
        contractAddresses:
          type: array
          items:
            type: object
    CoinDetail:
      type: object
      properties:
        uuid:
          type: string
        symbol:
          type: string
        name:
          type: string
        description:
          type: string
        color:
          type: string
        iconUrl:
          type: string
        websiteUrl:
          type: string
        links:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              url:
                type: string
              type:
                type: string
        supply:
          type: object
          properties:
            confirmed:
              type: boolean
            supplyAt:
              type: integer
            circulating:
              type: string
            total:
              type: string
            max:
              type: string
        24hVolume:
          type: string
        marketCap:
          type: string
        fullyDilutedMarketCap:
          type: string
        price:
          type: string
        btcPrice:
          type: string
        priceAt:
          type: integer
        change:
          type: string
        rank:
          type: integer
        numberOfMarkets:
          type: integer
        numberOfExchanges:
          type: integer
        sparkline:
          type: array
          items:
            type: string
        allTimeHigh:
          type: object
          properties:
            price:
              type: string
            timestamp:
              type: integer
        coinrankingUrl:
          type: string
        tier:
          type: integer
        lowVolume:
          type: boolean
        listedAt:
          type: integer
        notices:
          type: array
          items:
            type: object
        contractAddresses:
          type: array
          items:
            type: object
        tags:
          type: array
          items:
            type: string
    CoinsResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            stats:
              type: object
              properties:
                total:
                  type: integer
                totalCoins:
                  type: integer
                totalMarkets:
                  type: integer
                totalExchanges:
                  type: integer
                totalMarketCap:
                  type: string
                total24hVolume:
                  type: string
            coins:
              type: array
              items:
                $ref: '#/components/schemas/CoinSummary'
        pagination:
          $ref: '#/components/schemas/Pagination'
    CoinDetailResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            coin:
              $ref: '#/components/schemas/CoinDetail'
    StatsResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            totalCoins:
              type: integer
            totalMarkets:
              type: integer
            totalExchanges:
              type: integer
            totalMarketCap:
              type: string
            total24hVolume:
              type: string
            btcDominance:
              type: number
            bestCoins:
              type: array
              items:
                $ref: '#/components/schemas/CoinSummary'
            newestCoins:
              type: array
              items:
                $ref: '#/components/schemas/CoinSummary'
    ReferenceCurrenciesResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            stats:
              type: object
              properties:
                total:
                  type: integer
            currencies:
              type: array
              items:
                type: object
                properties:
                  uuid:
                    type: string
                  type:
                    type: string
                  symbol:
                    type: string
                  name:
                    type: string
                  iconUrl:
                    type: string
                  sign:
                    type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
    Exchange:
      type: object
      properties:
        uuid:
          type: string
        name:
          type: string
        iconUrl:
          type: string
        numberOfMarkets:
          type: integer
        24hVolume:
          type: string
        rank:
          type: integer
        recommended:
          type: boolean
        coinrankingUrl:
          type: string
    Market:
      type: object
      properties:
        uuid:
          type: string
        base:
          type: object
          properties:
            uuid:
              type: string
            symbol:
              type: string
            name:
              type: string
        quote:
          type: object
          properties:
            uuid:
              type: string
            symbol:
              type: string
            name:
              type: string
        exchange:
          type: object
          properties:
            uuid:
              type: string
            name:
              type: string
        price:
          type: string
        24hVolume:
          type: string
        recommended:
          type: boolean
    Pagination:
      type: object
      properties:
        limit:
          type: integer
        hasNextPage:
          type: boolean
        hasPreviousPage:
          type: boolean
        nextCursor:
          type: string
          nullable: true
        previousCursor:
          type: string
          nullable: true
security:
  - ApiKeyAuth: []
tags:
  - name: Blockchains
  - name: Coins
  - name: DEXs
  - name: Exchanges
  - name: Markets
  - name: Reference Currencies
  - name: Search
  - name: Stats
