CoinGecko · Capability

CoinGecko Onchain DEX API — Trades

CoinGecko Onchain DEX API — Trades. 1 operations. Lead operation: Get recent trades for a pool. Self-contained Naftiko capability covering one Coingecko business surface.

Run with Naftiko CoingeckoTrades

What You Can Do

GET
Getonchainpooltrades — Get recent trades for a pool
/v1/onchain/networks/{network}/pools/{pool-address}/trades

MCP Tools

get-recent-trades-pool

Get recent trades for a pool

read-only idempotent

Capability Spec

onchain-dex-trades.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CoinGecko Onchain DEX API — Trades
  description: 'CoinGecko Onchain DEX API — Trades. 1 operations. Lead operation: Get recent trades for a pool. Self-contained
    Naftiko capability covering one Coingecko business surface.'
  tags:
  - Coingecko
  - Trades
  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-trades
    baseUri: https://pro-api.coingecko.com/api/v3
    description: CoinGecko Onchain DEX API — Trades business capability. Self-contained, no shared references.
    resources:
    - name: onchain-networks-network-pools-pool_address-trades
      path: /onchain/networks/{network}/pools/{pool_address}/trades
      operations:
      - name: getonchainpooltrades
        method: GET
        description: Get recent trades for a pool
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pool_address
          in: path
          type: string
          description: The pool contract address
          required: true
        - name: trade_volume_in_usd_greater_than
          in: query
          type: number
          description: Filter trades by minimum USD volume
        - name: page
          in: query
          type: integer
          description: Page number for pagination
    authentication:
      type: apikey
      key: x-cg-pro-api-key
      value: '{{env.COINGECKO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: onchain-dex-trades-rest
    port: 8080
    description: REST adapter for CoinGecko Onchain DEX API — Trades. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/onchain/networks/{network}/pools/{pool-address}/trades
      name: onchain-networks-network-pools-pool-address-trades
      description: REST surface for onchain-networks-network-pools-pool_address-trades.
      operations:
      - method: GET
        name: getonchainpooltrades
        description: Get recent trades for a pool
        call: onchain-dex-trades.getonchainpooltrades
        with:
          pool_address: rest.pool_address
          trade_volume_in_usd_greater_than: rest.trade_volume_in_usd_greater_than
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onchain-dex-trades-mcp
    port: 9090
    transport: http
    description: MCP adapter for CoinGecko Onchain DEX API — Trades. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-recent-trades-pool
      description: Get recent trades for a pool
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onchain-dex-trades.getonchainpooltrades
      with:
        pool_address: tools.pool_address
        trade_volume_in_usd_greater_than: tools.trade_volume_in_usd_greater_than
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.