HodlBase API
The first API built for accessing Bitcoin treasury data. Gain insight into BTC holdings, mNAV, amplification, and leverage for treasury companies, alongside yields, credit ratings, and volume for preferred securities — available in real-time or historical time series.
https://api.hodlbase.io/v2Features
Structured financial data for Bitcoin treasury companies and their preferred securities.
Bitcoin Treasuries
Comprehensive metrics for public companies holding Bitcoin as a treasury asset. Access BTC holdings, reserve valuations, mNAV ratios, amplification factors, leverage metrics, and capital structure data.
Preferred Securities
Detailed data for preferred stocks issued by Bitcoin treasury companies. Track effective yields, Bitcoin ratings, dividend coverage, notional values, ATM issuances, and trading volume.
Real-time Data
Get the latest metric values updated continuously throughout each trading day. Live endpoints return the most recent snapshot of any metric — from BTC holdings to market caps and yield calculations.
Historical Data
Access up to 14 days of historical data on the explorer plan. Timeseries endpoints return daily data points for any metric, perfect for trend analysis, backtesting, and research.
Simple Auth
Single API key in the X-API-Key header. No OAuth, no token refresh.
RESTful JSON
Clean REST endpoints returning JSON. Works with any language or HTTP client.
Per-Metric Endpoints
Fetch metrics by subgroup or query individual metrics for efficient, targeted data access.
Integrate in minutes
Easily bring HodlBase data into your web app, dashboard, or Node.js service — with a single npm install.
Build faster with @hodlbase/client
Type-safe access to every endpoint with built-in auto-pagination, zero dependencies, and full IntelliSense. Drop it into any webapp, dashboard, or Node.js service.
npm install @hodlbase/clientimport { HodlBase } from "@hodlbase/client"
const hb = new HodlBase("YOUR_API_KEY")
// Get Strategy's latest BTC holdings
const mstr = await hb.companies.get("MSTR")
// MSTR share price — live snapshot
const price = await hb.companies.metrics
.priceLive("MSTR")// STRC volatility — live
const vol = await hb.securities.metrics
.volatilityLive("STRC")
// STRC vol-above-par — 14-day history
const hist = await hb.securities.metrics
.volAboveParTs("STRC")Quickstart
Make your first API request in seconds. All you need is an API key.
Sample Requests
# 1. Get fundamental metrics for a specific company
curl -X GET "https://api.hodlbase.io/v2/companies/MSTR/fundamental_metrics/live" \
-H "X-API-Key: YOUR_API_KEY"
# 2. Get historical timeseries for a metric
curl -X GET "https://api.hodlbase.io/v2/companies/MSTR/fundamental_metrics/btc_holdings/ts?days=14" \
-H "X-API-Key: YOUR_API_KEY"
# 3. Get live data for a preferred security
curl -X GET "https://api.hodlbase.io/v2/securities/STRK/fundamental_metrics/live" \
-H "X-API-Key: YOUR_API_KEY"Sample Response
Response from GET /companies/MSTR/fundamental_metrics/live:
{
"status": "ok",
"ticker": "MSTR",
"subgroup": "fundamental_metrics",
"subgroup_display_name": "Fundamental Metrics",
"plan": "explorer",
"metrics_count": 5,
"result": {
"timestamp": "2026-02-10",
"values": {
"btc_holdings": 478740,
"btc_reserve_usd": 46528410000,
"bitcoin_per_share": 0.0019915,
"enterprise_value_usd": 85000000000,
"mnav": 1.827
}
}
}Getting Access
Get started with the HodlBase API in three simple steps.
Create an Account
Sign up for a free HodlBase account. No credit card required — you can start exploring the API immediately with the explorer plan.
Generate an API Key
Go to your Account page and navigate to the API Keys section. Click Create API Key to generate your key. Copy it and store it securely — you won't be able to see it again.
Include Your Key in Requests
Add your API key to every request using the X-API-Key header. That's it — no OAuth, no token refresh, no complexity.
curl -X GET "https://api.hodlbase.io/v2/companies" \
-H "X-API-Key: YOUR_API_KEY"Explore the Endpoints
Browse all available endpoints, parameters, and response examples.