DebitMyData Stats

For developers

DMD Stats API

The DebitMyData network's figures as JSON and CSV files: the hashrate, difficulty, volume, market cap, mining cost and reference price of DMD, with chart points and candles, the miners and the large transfers. Free, with no key and no sign-up, readable from any website.

Base addresshttps://stats.debitmydata.io/api/

Endpoints

  • GET /api/summary.json

    The latest figures, with their changes over 24 hours: height, last block, difficulty, hashrate (last hour, 24 hours, all-time high), blocks and block time, the pool's share, mining cost, reference price, market cap, on-chain volume and transactions, the exchanges' trading volume and market price (null until DMD trades on an exchange), block reward, next halving, DMD mined, and the chain's status.

    Every minute.
  • GET /api/chart-24h.json

    A chart's points and candles. Ranges: 15m, 1h, 4h, 24h, 7d, 30d, 1y and all (since block 1), as chart-<range>.json. Their step: 30 seconds, 1 minute, 5 minutes, 10 minutes, 1 hour, 4 hours, a day and a day.

    Every minute (30d, 1y and all: every 10 minutes).
  • GET /api/miners.json

    Who found the blocks of the last 24 hours, 7 days and 30 days: each miner's name (a pool of DebitMyData's pool list, else the text it writes in its blocks, or the address it pays), its blocks and its share; a listed pool's slug names its logo, /pools/<slug>.svg.

    Every minute.
  • GET /api/blocks.json

    The last 1,000 blocks, newest first: height, time (Unix seconds), hash, difficulty, who found it (miner, named as in miners.json, with a listed pool's slug, and pool: the DebitMyData pool), the text its miner wrote (coinbase_text), its transactions, size in bytes, and reward_dmd (the new coins and the fees). DMD Mining follows the pools with it.

    Every new block, and every minute.
  • GET /api/transfers.json

    The large transfers of the last 7 days: each transaction's id, block, time, the DMD it sent to other addresses and its fee.

    Every minute.
  • GET /api/richlist.json

    The rich list: the 100 addresses with the most DMD, with their balance and their share of the DMD mined, from the monitor's own count of every block (the coinbases' payouts and every transaction). ready is false while it is still counting the blocks.

    Every minute.
  • GET /api/coin.json

    The coin's facts and figures in one file, for exchanges and listing sites: ticker, algorithm, decimals, block time, height, difficulty, hashrate (24 hours), block reward, next halving, the supply (circulating and total are the same: no pre-mine, nothing locked; max_dmd is null because the reward starts a new cycle of 20,999,999.964 DMD after 32 halvings), the market or reference price, the market cap and which price it uses (market_cap_from), and links.

    Every minute.
  • GET /api/circulating-supply.txt

    The DMD in circulation as a plain number, nothing else (for example 5335155), the way CoinGecko and CoinMarketCap read a supply. /api/total-supply.txt gives the total supply, the same number.

    Every minute.
  • GET /api/dmd-daily.csvDownload

    One line per day since block 1: first and last block, blocks, average block time, difficulty, hashrate, mining cost, reference price, the pool's blocks, on-chain volume, transactions and market cap. For spreadsheets.

    Every minute.
  • GET /api/dmd-blocks.csvDownload

    One line per block since block 1: height, time, hash, difficulty, transactions, size, pool, the miner's text, mining cost, miner, volume and fees.

    Every hour.

The chart files

Each chart-<range>.json has points: one array per step, in the order of fields, the last one at the time the file was written. A point's value is its value at its time (the price, the difficulty, the hashrate over the window before it); its counts are over the step before it (blocks, volume, transactions).

FieldWhat it isUnit
timeThe point's timeUnix seconds, UTC
priceDebitMyData's reference price (not a market price)USD per DMD
mining_costThe electricity it takes to mine 1 DMDUSD per DMD
difficultyThe chain's difficulty at its last block
hashrateThe work of the blocks over the window before the point (hashrate_window), divided by its lengthhashes per second
block_secondsThe average time between blocks over the same windowseconds
blocksBlocks found during the step
volumeDMD sent to other addresses during the step (change and mining rewards left out); null while the monitor is still counting itDMD
market_capThe reference price × the DMD mined so farUSD
transactionsTransactions during the step, besides the mining rewards
trading_volume_24hWhat the exchanges traded over the 24 hours before the point, from CoinGecko; null until DMD trades on an exchangeUSD
market_priceThe exchanges' price, from CoinGecko; null until DMD trades on an exchangeUSD per DMD

candles has the candles of price, hashrate, difficulty and market_cap: one per step, [time, open, high, low, close], the time being the step's start.

fetch("https://stats.debitmydata.io/api/chart-7d.json")
  .then((r) => r.json())
  .then((chart) => {
    const at = Object.fromEntries(chart.fields.map((f, i) => [f, i]));
    const last = chart.points[chart.points.length - 1];
    console.log("hashrate", last[at.hashrate], "H/s");
    console.log("last hashrate candle", chart.candles.hashrate.at(-1));
  });

Good to know

  • No key, no limits to sign up for. The files are static and cached for a minute: read them as often as you like, once a minute is enough. Any website can read them (CORS: Access-Control-Allow-Origin: *).
  • Times are Unix seconds (UTC) in the chart files, and ISO 8601 in the others. Amounts of DMD are in DMD (8 decimals); prices and market cap in US dollars; hashrate in hashes per second.
  • The reference price is not a market price. DMD is not on an exchange yet: the reference price is the rate the DebitMyData Gateway uses for DMD payments, the higher of DebitMyData's minimum rate and the mining cost (the gateway's own price API). The market cap uses it.
  • Trading volume and market price come from CoinGecko once DMD trades on an exchange; until then they are null, and summary.json says "listed": false.
  • Hashrate is worked out from the blocks (the work they took divided by the time they took), so short windows move with luck; difficulty is exact.
  • Fields may be added; existing ones keep their name and meaning. Please name DMD Stats as the source when you show the figures.

More DebitMyData APIs

Get the DMD Stats app