Data resolutions
Choose an asset to see the resolutions available for each metric. If you request one that is not listed, the API returns HTTP 404.
- Selected asset
- bitcoin
- Matching metrics
- 194
Request a listed resolution by adding ?dataResolution=<token> to the endpoint URL. Leave it out to use daily data. Older aliases, such as day1, are also accepted.
Pulling full history at 10-minute resolution
Every request returns at most 10,000 points. At min10 that is about 69 days, so a plain ?dataResolution=min10 call gives you the most recent weeks, not the whole series. It is not truncating your data, it is one page of it.
To read the full history, page through it with startDate and endDate. Supplying startDate also switches the server off its trimmed one-year copy and onto the complete export.
# One page: the newest ~69 days GET /api/v1/onchain/supply-in-profit-loss?dataResolution=min10 # Full history, one month per call, oldest to newest GET /api/v1/onchain/supply-in-profit-loss?dataResolution=min10 &startDate=2025-01-01&endDate=2025-02-01 GET /api/v1/onchain/supply-in-profit-loss?dataResolution=min10 &startDate=2025-02-01&endDate=2025-03-01
A month of min10 is roughly 4,300 points, comfortably inside one page. Please page rather than retrying a large call: a single sub-day export can exceed 400 MB on disk, and dated windows let us serve you from a bounded read instead of streaming the whole file for every request. If you want a long span in one call, ask for a coarser resolution such as hour1 or day1, where a year fits well inside the limit.
Results