Enso De Fi API

The DeFi API from Enso — 3 operation(s) for defi.

GitHub OpenAPI

Operations 3

GET /api/v1/prices/{chainId}/{address} Token Price #
GET /api/v1/volume/{chainId} Chain and transactions volume #
GET /api/v1/wallet/balances Wallet balances #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/enso:enso-defi-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

enso-defi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Enso De Fi API
  description: '#### Enso API

    - Find detailed documentation on docs.enso.finance.

    - To use the API, **you must include your API Key in the Authorization header** (Bearer format).

    - For testing, Swagger pre-authorizes you using the key: `1e02632d-6feb-4a75-a157-documentation` (1rps).

    - Get your own API Key at enso.finance/developers.'
  version: 1.0.1
  contact: {}
servers:
- url: https://api.enso.build
security:
- {}
tags:
- name: DeFi
paths:
  /api/v1/prices/{chainId}/{address}:
    get:
      operationId: PricesController_getPrice
      description: Returns token price for the given address and chainId.
      summary: Token Price
      parameters:
      - name: address
        required: true
        in: path
        description: Address of the token to search for
        schema:
          example: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
      - name: chainId
        required: true
        in: path
        description: Chain ID of the network to search for
        schema:
          example: '1'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Price'
      tags:
      - DeFi
  /api/v1/volume/{chainId}:
    get:
      operationId: VolumeController_getVolume
      description: Returns total USD and transactions volume for the given chainId.
      summary: Chain and transactions volume
      parameters:
      - name: chainId
        required: true
        in: path
        description: Chain ID of the network to search for
        schema:
          default: 1
          example: '1'
          type: number
      responses:
        '200':
          description: ''
      tags:
      - DeFi
  /api/v1/wallet/balances:
    get:
      operationId: WalletController_walletBalances
      description: 'Returns tokens balances for Enso Wallet associated with the given address across all supported chains.

        With `useEoa` set to true, it returns balances for the given EOA address instead.'
      summary: Wallet balances
      parameters:
      - name: chainId
        required: false
        in: query
        description: Chain ID of the network to execute the transaction on
        schema:
          example: 1
          type: number
      - name: eoaAddress
        required: true
        in: query
        description: Address of the eoa with which to associate the ensoWallet for balances
        schema:
          default: '0x93621DCA56fE26Cdee86e4F6B18E116e9758Ff11'
          type: string
      - name: useEoa
        required: true
        in: query
        description: If true returns balances for the provided eoaAddress, instead of the associated ensoWallet
        schema:
          default: false
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WalletBalance'
      tags:
      - DeFi
components:
  schemas:
    WalletBalance:
      type: object
      properties:
        token:
          type: string
          description: The address of the token
        amount:
          type: string
          description: The unformatted balance of the token
          example: '0x0000000'
        chainId:
          type: number
          description: Chain ID of the network
        decimals:
          type: number
          description: The unformatted balance of the token
          example: 18
        price:
          type: string
          description: Price of the token in usd
          example: '0.0'
        name:
          type: string
          description: Name of the token
        symbol:
          type: string
          description: Symbol of the token
        logoUri:
          type: string
          description: Logo of the token
      required:
      - token
      - amount
      - chainId
      - decimals
      - price
      - name
      - symbol
      - logoUri
    Price:
      type: object
      properties:
        decimals:
          type: number
          example: 8
        price:
          type: number
          example: 27052
        address:
          type: string
          example: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599'
        symbol:
          type: string
          example: WBTC
        timestamp:
          type: number
          example: 1695197412
        chainId:
          type: number
          example: 1
        confidence:
          type: number
          example: 0.99
      required:
      - decimals
      - price
      - address
      - chainId
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: apiKey
      type: http
x-provenance:
  method: harvested
  publisher: Enso
  source: https://docs.enso.build/public/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)