CoinGecko · Capability

CoinGecko Onchain DEX API — Simple

CoinGecko Onchain DEX API — Simple. 1 operations. Lead operation: Get token prices by contract addresses. Self-contained Naftiko capability covering one Coingecko business surface.

Run with Naftiko CoingeckoSimple

What You Can Do

GET
Getonchainsimpletokenprice — Get token prices by contract addresses
/v1/onchain/simple/networks/{network}/token-price/{addresses}

MCP Tools

get-token-prices-contract-addresses

Get token prices by contract addresses

read-only idempotent

Capability Spec

onchain-dex-simple.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CoinGecko Onchain DEX API — Simple
  description: 'CoinGecko Onchain DEX API — Simple. 1 operations. Lead operation: Get token prices by contract addresses.
    Self-contained Naftiko capability covering one Coingecko business surface.'
  tags:
  - Coingecko
  - Simple
  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-simple
    baseUri: https://pro-api.coingecko.com/api/v3
    description: CoinGecko Onchain DEX API — Simple business capability. Self-contained, no shared references.
    resources:
    - name: onchain-simple-networks-network-token_price-addresses
      path: /onchain/simple/networks/{network}/token_price/{addresses}
      operations:
      - name: getonchainsimpletokenprice
        method: GET
        description: Get token prices by contract addresses
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: addresses
          in: path
          type: string
          description: Comma-separated list of token contract addresses (up to 30)
          required: true
    authentication:
      type: apikey
      key: x-cg-pro-api-key
      value: '{{env.COINGECKO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: onchain-dex-simple-rest
    port: 8080
    description: REST adapter for CoinGecko Onchain DEX API — Simple. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/onchain/simple/networks/{network}/token-price/{addresses}
      name: onchain-simple-networks-network-token-price-addresses
      description: REST surface for onchain-simple-networks-network-token_price-addresses.
      operations:
      - method: GET
        name: getonchainsimpletokenprice
        description: Get token prices by contract addresses
        call: onchain-dex-simple.getonchainsimpletokenprice
        with:
          addresses: rest.addresses
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onchain-dex-simple-mcp
    port: 9090
    transport: http
    description: MCP adapter for CoinGecko Onchain DEX API — Simple. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-token-prices-contract-addresses
      description: Get token prices by contract addresses
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onchain-dex-simple.getonchainsimpletokenprice
      with:
        addresses: tools.addresses
      outputParameters:
      - type: object
        mapping: $.