Repository navigation
API Reference
Igor Sazonov edited this page Sep 23, 2026
·
1 revision
This index maps every operation in the defillama-go pinned OpenAPI snapshot to its public Go method and the official DefiLlama endpoint documentation. It covers 132 GET operations: 31 Free and 101 Pro. Service-method signatures and usage examples are covered by the linked Wiki pages; the official documentation link in each row is authoritative for upstream endpoint semantics.
Generated from spec/defillama-api.json (132 GET operations). Each row maps an official documentation page to the SDK route and public method.
| # | Tier | Tag | Operation | Go method | Documentation |
|---|---|---|---|---|---|
| 1 | free | TVL | GET /protocols |
TVLService.GetProtocols() |
ref |
| 2 | free | TVL | GET /protocol/{protocol} |
TVLService.GetProtocol() |
ref |
| 3 | free | TVL | GET /v2/historicalChainTvl |
TVLService.GetHistoricalChainTVL() |
ref |
| 4 | free | TVL | GET /v2/historicalChainTvl/{chain} |
TVLService.GetHistoricalChainTVLByChain() |
ref |
| 5 | free | TVL | GET /tvl/{protocol} |
TVLService.GetTVL() |
ref |
| 6 | free | TVL | GET /v2/chains |
TVLService.GetChains() |
ref |
| 7 | free | coins | GET /prices/current/{coins} |
PricesService.GetCurrentPrices() |
ref |
| 8 | free | coins | GET /prices/historical/{timestamp}/{coins} |
PricesService.GetHistoricalPrices() |
ref |
| 9 | free | coins | GET /batchHistorical |
PricesService.GetBatchHistoricalPrices() |
ref |
| 10 | free | coins | GET /chart/{coins} |
PricesService.GetChart() |
ref |
| 11 | free | coins | GET /percentage/{coins} |
PricesService.GetPercentageChange() |
ref |
| 12 | free | coins | GET /prices/first/{coins} |
PricesService.GetFirstPrices() |
ref |
| 13 | free | coins | GET /block/{chain}/{timestamp} |
PricesService.GetBlockAtTimestamp() |
ref |
| 14 | free | stablecoins | GET /stablecoins |
StablecoinsService.GetStablecoins() |
ref |
| 15 | free | stablecoins | GET /stablecoincharts/all |
StablecoinsService.GetStablecoinCharts() |
ref |
| 16 | free | stablecoins | GET /stablecoincharts/{chain} |
StablecoinsService.GetStablecoinChartsByChain() |
ref |
| 17 | free | stablecoins | GET /stablecoin/{asset} |
StablecoinsService.GetStablecoin() |
ref |
| 18 | free | stablecoins | GET /stablecoinchains |
StablecoinsService.GetStablecoinChains() |
ref |
| 19 | free | stablecoins | GET /stablecoinprices |
StablecoinsService.GetStablecoinPrices() |
ref |
| 20 | free | yields | GET /pools |
YieldsService.GetPools() |
ref |
| 21 | free | yields | GET /chart/{pool} |
YieldsService.GetPoolChart() |
ref |
| 22 | free | volumes | GET /overview/dexs |
VolumesService.GetDEXOverview() |
ref |
| 23 | free | volumes | GET /overview/dexs/{chain} |
VolumesService.GetDEXOverviewByChain() |
ref |
| 24 | free | volumes | GET /summary/dexs/{protocol} |
VolumesService.GetDEXSummary() |
ref |
| 25 | free | volumes | GET /overview/options |
VolumesService.GetOptionsOverview() |
ref |
| 26 | free | volumes | GET /overview/options/{chain} |
VolumesService.GetOptionsOverviewByChain() |
ref |
| 27 | free | volumes | GET /summary/options/{protocol} |
VolumesService.GetOptionsSummary() |
ref |
| 28 | free | perps | GET /overview/open-interest |
VolumesService.GetOpenInterestOverview() |
ref |
| 29 | free | fees and revenue | GET /overview/fees |
FeesService.GetOverview() |
ref |
| 30 | free | fees and revenue | GET /overview/fees/{chain} |
FeesService.GetOverviewByChain() |
ref |
| 31 | free | fees and revenue | GET /summary/fees/{protocol} |
FeesService.GetSummary() |
ref |
| 32 | pro | TVL | GET /api/tokenProtocols/{symbol} |
TVLService.GetTokenProtocols() |
ref |
| 33 | pro | TVL | GET /api/inflows/{protocol}/{timestamp} |
TVLService.GetInflows() |
ref |
| 34 | pro | TVL | GET /api/chainAssets |
TVLService.GetChainAssets() |
ref |
| 35 | pro | Unlocks | GET /api/emissions |
EmissionsService.GetEmissions() |
ref |
| 36 | pro | Unlocks | GET /api/emission/{protocol} |
EmissionsService.GetEmission() |
ref |
| 37 | pro | main page | GET /api/categories |
EcosystemService.GetCategories() |
ref |
| 38 | pro | main page | GET /api/forks |
EcosystemService.GetForks() |
ref |
| 39 | pro | main page | GET /api/oracles |
EcosystemService.GetOracles() |
ref |
| 40 | pro | main page | GET /api/hacks |
EcosystemService.GetHacks() |
ref |
| 41 | pro | main page | GET /api/raises |
EcosystemService.GetRaises() |
ref |
| 42 | pro | main page | GET /api/treasuries |
EcosystemService.GetTreasuries() |
ref |
| 43 | pro | main page | GET /api/entities |
EcosystemService.GetEntities() |
ref |
| 44 | pro | token liquidity | GET /api/historicalLiquidity/{token} |
PricesService.GetHistoricalLiquidity() |
ref |
| 45 | pro | perps | GET /api/overview/derivatives |
VolumesService.GetDerivativesOverview() |
ref |
| 46 | pro | perps | GET /api/summary/derivatives/{protocol} |
VolumesService.GetDerivativesSummary() |
ref |
| 47 | pro | TVL | GET /api/v2/metrics/tvl/protocol/{protocol} |
TVLService.GetProtocolTVLMetrics() |
ref |
| 48 | pro | TVL | GET /api/v2/chart/tvl/protocol/{protocol} |
TVLService.GetProtocolTVLChart() |
ref |
| 49 | pro | TVL | GET /api/v2/chart/tvl/protocol/{protocol}/chain-breakdown |
TVLService.GetProtocolTVLChartChainBreakdown() |
ref |
| 50 | pro | TVL | GET /api/v2/chart/tvl/protocol/{protocol}/token-breakdown |
TVLService.GetProtocolTVLChartTokenBreakdown() |
ref |
| 51 | pro | Treasury | GET /api/v2/metrics/treasury/protocol/{protocol} |
TreasuryService.GetTreasuryMetrics() |
ref |
| 52 | pro | Treasury | GET /api/v2/chart/treasury/protocol/{protocol} |
TreasuryService.GetTreasuryChart() |
ref |
| 53 | pro | Treasury | GET /api/v2/chart/treasury/protocol/{protocol}/chain-breakdown |
TreasuryService.GetTreasuryChartChainBreakdown() |
ref |
| 54 | pro | Treasury | GET /api/v2/chart/treasury/protocol/{protocol}/token-breakdown |
TreasuryService.GetTreasuryChartTokenBreakdown() |
ref |
| 55 | pro | Oracles | GET /api/v2/metrics/oracle |
OraclesService.GetOracleMetrics() |
ref |
| 56 | pro | Oracles | GET /api/v2/chart/oracle |
OraclesService.GetOracleChart() |
ref |
| 57 | pro | Oracles | GET /api/v2/chart/oracle/chain-breakdown |
OraclesService.GetOracleChartChainBreakdown() |
ref |
| 58 | pro | Oracles | GET /api/v2/chart/oracle/protocol-breakdown |
OraclesService.GetOracleChartProtocolBreakdown() |
ref |
| 59 | pro | Oracles | GET /api/v2/chart/oracle/protocol/{protocol} |
OraclesService.GetOracleProtocolChart() |
ref |
| 60 | pro | Oracles | GET /api/v2/chart/oracle/protocol/{protocol}/chain-breakdown |
OraclesService.GetOracleProtocolChartChainBreakdown() |
ref |
| 61 | pro | Oracles | GET /api/v2/chart/oracle/chain/{chain} |
OraclesService.GetOracleChainChart() |
ref |
| 62 | pro | Oracles | GET /api/v2/chart/oracle/chain/{chain}/protocol-breakdown |
OraclesService.GetOracleChainChartProtocolBreakdown() |
ref |
| 63 | pro | Forks | GET /api/v2/metrics/fork |
ForksService.GetForkMetrics() |
ref |
| 64 | pro | Forks | GET /api/v2/chart/fork/protocol-breakdown |
ForksService.GetForkChartProtocolBreakdown() |
ref |
| 65 | pro | Forks | GET /api/v2/chart/fork/protocol/{protocol} |
ForksService.GetForkProtocolChart() |
ref |
| 66 | pro | Dimensions | GET /api/v2/metrics/{metric} |
DimensionsService.GetMetrics() |
ref |
| 67 | pro | Dimensions | GET /api/v2/chart/{metric} |
DimensionsService.GetChart() |
ref |
| 68 | pro | Dimensions | GET /api/v2/chart/{metric}/chain-breakdown |
DimensionsService.GetChartChainBreakdown() |
ref |
| 69 | pro | Dimensions | GET /api/v2/chart/{metric}/protocol-breakdown |
DimensionsService.GetChartProtocolBreakdown() |
ref |
| 70 | pro | Dimensions | GET /api/v2/metrics/{metric}/chain/{chain} |
DimensionsService.GetChainMetrics() |
ref |
| 71 | pro | Dimensions | GET /api/v2/chart/{metric}/chain/{chain} |
DimensionsService.GetChainChart() |
ref |
| 72 | pro | Dimensions | GET /api/v2/chart/{metric}/chain/{chain}/protocol-breakdown |
DimensionsService.GetChainChartProtocolBreakdown() |
ref |
| 73 | pro | Dimensions | GET /api/v2/metrics/{metric}/protocol/{protocol} |
DimensionsService.GetProtocolMetrics() |
ref |
| 74 | pro | Dimensions | GET /api/v2/chart/{metric}/protocol/{protocol} |
DimensionsService.GetProtocolChart() |
ref |
| 75 | pro | Dimensions | GET /api/v2/chart/{metric}/protocol/{protocol}/chain-breakdown |
DimensionsService.GetProtocolChartChainBreakdown() |
ref |
| 76 | pro | Dimensions | GET /api/v2/chart/{metric}/protocol/{protocol}/version-breakdown |
DimensionsService.GetProtocolChartVersionBreakdown() |
ref |
| 77 | pro | Dimensions | GET /api/v2/chart/{metric}/protocol/{protocol}/label-breakdown |
DimensionsService.GetProtocolChartLabelBreakdown() |
ref |
| 78 | pro | Dimensions | GET /api/v2/metrics/{metric}/category/{category} |
DimensionsService.GetCategoryMetrics() |
ref |
| 79 | pro | Dimensions | GET /api/v2/chart/{metric}/category/{category} |
DimensionsService.GetCategoryChart() |
ref |
| 80 | pro | Dimensions | GET /api/v2/chart/{metric}/category/{category}/chain-breakdown |
DimensionsService.GetCategoryChartChainBreakdown() |
ref |
| 81 | pro | Dimensions | GET /api/v2/chart/{metric}/category/{category}/protocol-breakdown |
DimensionsService.GetCategoryChartProtocolBreakdown() |
ref |
| 82 | pro | Dimensions | GET /api/v2/metrics/{metric}/category/{category}/chain/{chain} |
DimensionsService.GetCategoryChainMetrics() |
ref |
| 83 | pro | Dimensions | GET /api/v2/chart/{metric}/category/{category}/chain/{chain} |
DimensionsService.GetCategoryChainChart() |
ref |
| 84 | pro | Dimensions | GET /api/v2/chart/{metric}/category/{category}/chain/{chain}/protocol-breakdown |
DimensionsService.GetCategoryChainChartProtocolBreakdown() |
ref |
| 85 | pro | Financial Statements | GET /api/v2/metrics/financial-statement/protocol/{protocol} |
FinancialStatementsService.GetIncomeStatement() |
ref |
| 86 | pro | stablecoins | GET /stablecoins/stablecoindominance/{chain} |
StablecoinsService.GetStablecoinDominance() |
ref |
| 87 | pro | yields | GET /yields/v1/pools |
YieldsService.GetLegacyPools() |
ref |
| 88 | pro | yields | GET /yields/v1/chart/{pool} |
YieldsService.GetLegacyPoolChart() |
ref |
| 89 | pro | yields | GET /yields/v1/poolsBorrow |
YieldsService.GetLegacyBorrowPools() |
ref |
| 90 | pro | yields | GET /yields/v1/chartLendBorrow/{pool} |
YieldsService.GetLegacyLendBorrowChart() |
ref |
| 91 | pro | yields | GET /yields/v2/earn |
YieldsService.GetEarnPools() |
ref |
| 92 | pro | yields | GET /yields/v2/earn/query |
YieldsService.QueryEarnPools() |
ref |
| 93 | pro | yields | GET /yields/v2/earn/{id}/history |
YieldsService.GetEarnPoolHistory() |
ref |
| 94 | pro | yields | GET /yields/v2/earn/verified |
YieldsService.GetVerifiedEarnPools() |
ref |
| 95 | pro | yields | GET /yields/v2/earn/verified/{id} |
YieldsService.GetVerifiedEarnPool() |
ref |
| 96 | pro | yields | GET /yields/v2/earn/verified/{id}/history |
YieldsService.GetVerifiedEarnPoolHistory() |
ref |
| 97 | pro | yields | GET /yields/v2/borrow/markets |
YieldsService.GetBorrowMarkets() |
ref |
| 98 | pro | yields | GET /yields/v2/borrow/markets/{id}/history |
YieldsService.GetBorrowMarketHistory() |
ref |
| 99 | pro | yields | GET /yields/v2/borrow/routes |
YieldsService.GetBorrowRoutes() |
ref |
| 100 | pro | yields | GET /yields/v2/loops |
YieldsService.GetLoopStrategies() |
ref |
| 101 | pro | yields | GET /yields/perps |
YieldsService.GetPerpFundingRates() |
ref |
| 102 | pro | yields | GET /api/lstRates |
YieldsService.GetLSTRates() |
ref |
| 103 | pro | ETFs | GET /etfs/snapshot |
ETFsService.GetSnapshot() |
ref |
| 104 | pro | ETFs | GET /etfs/flows |
ETFsService.GetFlows() |
ref |
| 105 | pro | narratives | GET /fdv/performance/{period} |
NarrativesService.GetPerformance() |
ref |
| 106 | pro | bridges | GET /bridges/bridges |
BridgesService.GetBridges() |
ref |
| 107 | pro | bridges | GET /bridges/bridge/{id} |
BridgesService.GetBridge() |
ref |
| 108 | pro | bridges | GET /bridges/bridgevolume/{chain} |
BridgesService.GetBridgeVolume() |
ref |
| 109 | pro | bridges | GET /bridges/bridgedaystats/{timestamp}/{chain} |
BridgesService.GetBridgeDayStats() |
ref |
| 110 | pro | bridges | GET /bridges/transactions/{id} |
BridgesService.GetBridgeTransactions() |
ref |
| 111 | pro | meta | GET /usage/APIKEY |
AccountService.GetUsage() |
ref |
| 112 | pro | DAT | GET /dat/institutions |
DATService.GetInstitutions() |
ref |
| 113 | pro | DAT | GET /dat/institutions/{symbol} |
DATService.GetInstitution() |
ref |
| 114 | pro | Equities | GET /equities/v1/companies-list |
EquitiesService.GetCompaniesList() |
ref |
| 115 | pro | Equities | GET /equities/v1/statements |
EquitiesService.GetStatements() |
ref |
| 116 | pro | Equities | GET /equities/v1/dimensions |
EquitiesService.GetDimensions() |
ref |
| 117 | pro | Equities | GET /equities/v1/price-history |
EquitiesService.GetPriceHistory() |
ref |
| 118 | pro | Equities | GET /equities/v1/ohlcv |
EquitiesService.GetOHLCV() |
ref |
| 119 | pro | Equities | GET /equities/v1/summary |
EquitiesService.GetSummary() |
ref |
| 120 | pro | Equities | GET /equities/v1/filings |
EquitiesService.GetFilings() |
ref |
| 121 | pro | Equities | GET /equities/v1/onchain |
EquitiesService.GetOnchainMarkets() |
ref |
| 122 | pro | Pre-IPO | GET /pre-ipo/v1/companies-list |
PreIPOService.GetCompaniesList() |
ref |
| 123 | pro | Pre-IPO | GET /pre-ipo/v1/valuations |
PreIPOService.GetValuations() |
ref |
| 124 | pro | Pre-IPO | GET /pre-ipo/v1/raises |
PreIPOService.GetRaises() |
ref |
| 125 | pro | Pre-IPO | GET /pre-ipo/v1/summary |
PreIPOService.GetSummary() |
ref |
| 126 | pro | Pre-IPO | GET /pre-ipo/v1/integrations |
PreIPOService.GetIntegrations() |
ref |
| 127 | pro | RWA | GET /rwa/current |
RWAService.GetCurrentAssets() |
ref |
| 128 | pro | RWA | GET /rwa/stats |
RWAService.GetStats() |
ref |
| 129 | pro | RWA | GET /rwa/list |
RWAService.GetList() |
ref |
| 130 | pro | RWA | GET /rwa/chain/{chain} |
RWAService.GetAssetsByChain() |
ref |
| 131 | pro | RWA | GET /rwa/chart/chain/{chain} |
RWAService.GetChainChart() |
ref |
| 132 | pro | RWA | GET /rwa/chart/chain-breakdown |
RWAService.GetChartChainBreakdown() |
ref |
defillama-go is an MIT-licensed Go client for the DefiLlama API. For endpoint semantics and API-plan details, consult the official DefiLlama API reference.