CoinGecko · Capability

CoinGecko Onchain DEX API — Trending Pools

CoinGecko Onchain DEX API — Trending Pools. 2 operations. Lead operation: Get trending pools across all networks. Self-contained Naftiko capability covering one Coingecko business surface.

Run with Naftiko CoingeckoTrending Pools

What You Can Do

GET
Getonchaintrendingpools — Get trending pools across all networks
/v1/onchain/networks/trending-pools
GET
Getonchainnetworktrendingpools — Get trending pools on a network
/v1/onchain/networks/{network}/trending-pools

MCP Tools

get-trending-pools-across-all

Get trending pools across all networks

read-only idempotent
get-trending-pools-network

Get trending pools on a network

read-only idempotent

Capability Spec

onchain-dex-trending-pools.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CoinGecko Onchain DEX API — Trending Pools
  description: 'CoinGecko Onchain DEX API — Trending Pools. 2 operations. Lead operation: Get trending pools across all networks.
    Self-contained Naftiko capability covering one Coingecko business surface.'
  tags:
  - Coingecko
  - Trending Pools
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    COINGECKO_API_KEY: COINGECKO_API_KEY
capability:
  consumes:
  - type: http
    namespace: onchain-dex-trending-pools
    baseUri: https://pro-api.coingecko.com/api/v3
    description: CoinGecko Onchain DEX API — Trending Pools business capability. Self-contained, no shared references.
    resources:
    - name: onchain-networks-trending_pools
      path: /onchain/networks/trending_pools
      operations:
      - name: getonchaintrendingpools
        method: GET
        description: Get trending pools across all networks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: include
          in: query
          type: string
          description: Additional data to include (e.g., base_token, quote_token, dex, network)
        - name: page
          in: query
          type: integer
          description: Page number for pagination
        - name: duration
          in: query
          type: string
          description: Trending duration filter
    - name: onchain-networks-network-trending_pools
      path: /onchain/networks/{network}/trending_pools
      operations:
      - name: getonchainnetworktrendingpools
        method: GET
        description: Get trending pools on a network
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: include
          in: query
          type: string
          description: Additional data to include (e.g., base_token, quote_token, dex)
        - name: page
          in: query
          type: integer
          description: Page number for pagination
        - name: duration
          in: query
          type: string
          description: Trending duration filter
    authentication:
      type: apikey
      key: x-cg-pro-api-key
      value: '{{env.COINGECKO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: onchain-dex-trending-pools-rest
    port: 8080
    description: REST adapter for CoinGecko Onchain DEX API — Trending Pools. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/onchain/networks/trending-pools
      name: onchain-networks-trending-pools
      description: REST surface for onchain-networks-trending_pools.
      operations:
      - method: GET
        name: getonchaintrendingpools
        description: Get trending pools across all networks
        call: onchain-dex-trending-pools.getonchaintrendingpools
        with:
          include: rest.include
          page: rest.page
          duration: rest.duration
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/onchain/networks/{network}/trending-pools
      name: onchain-networks-network-trending-pools
      description: REST surface for onchain-networks-network-trending_pools.
      operations:
      - method: GET
        name: getonchainnetworktrendingpools
        description: Get trending pools on a network
        call: onchain-dex-trending-pools.getonchainnetworktrendingpools
        with:
          include: rest.include
          page: rest.page
          duration: rest.duration
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onchain-dex-trending-pools-mcp
    port: 9090
    transport: http
    description: MCP adapter for CoinGecko Onchain DEX API — Trending Pools. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-trending-pools-across-all
      description: Get trending pools across all networks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onchain-dex-trending-pools.getonchaintrendingpools
      with:
        include: tools.include
        page: tools.page
        duration: tools.duration
      outputParameters:
      - type: object
        mapping: $.
    - name: get-trending-pools-network
      description: Get trending pools on a network
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onchain-dex-trending-pools.getonchainnetworktrendingpools
      with:
        include: tools.include
        page: tools.page
        duration: tools.duration
      outputParameters:
      - type: object
        mapping: $.