Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Hegic TVL API

Total Value Locked data for Hegic and other protocols

Hegic TVL API is one of 10 APIs that Hegic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include TVL. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 6 operations across 6 paths, and defines 4 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against a single base URL, https://api.arbiscan.io/api.

6 operations 6 paths 4 schemas 6 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://api.llama.fi
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Hegic TVL API declares 1 security scheme for authenticating requests. An API key is passed in the query as apikey (ApiKeyQuery). By default, every request must be authenticated.

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 6 GET. Each is listed below with its method, path, parameters, and response codes.

TVL 6

Total Value Locked data for Hegic and other protocols

GET
/protocols
List all protocols with TVL
listProtocols → 200
GET
/protocol/{protocol}
Get protocol historical TVL
getProtocol 1 param → 200
GET
/tvl/{protocol}
Get current TVL of a protocol
getProtocolTvl 1 param → 200
GET
/v2/historicalChainTvl
Get historical TVL for all chains
getHistoricalChainTvl → 200
GET
/v2/historicalChainTvl/{chain}
Get historical TVL for a specific chain
getHistoricalChainTvlByChain 1 param → 200
GET
/v2/chains
Get current TVL of all chains
getChains → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are ProtocolSummary (8 properties), ProtocolDetail (7 properties), ChainTvl (6 properties), TvlDataPoint (2 properties). Each schema is shown below with its type and property counts.

ChainTvl
object
6 properties
ProtocolDetail
object
Detailed protocol data including historical TVL
7 properties
ProtocolSummary
object
Summary of a DeFi protocol including Hegic
8 properties
TvlDataPoint
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hegic-tvl-api-openapi.yml Raw ↑

Other APIs Hegic publishes across the network.

Arbiscan Token API
Hegic Options Subgraph API
Hegic Smart Contracts (Arbitrum)
Hegic Accounts API
Hegic Contracts API
Hegic Fees API
Hegic Options API
Hegic Prices API
Hegic Tokens API