Fees
Fees
Contents
- Mempool Fee Sum (mempool_fee)
- Fees entered Mempool 1 minute (mempool_fee_entered_1m)
- Mempool Fees Mean (mempool_fee_mean)
- Mean Fees Entered Mempool 1 minute (mempool_fee_entered_1m)
- Mempool Fees Median (mempool_fee_median)
Mempool Fee Sum
Definition
The sum value of all mempool transaction fees at a point in time in native units.
Dictionary
| Name | MetricID | Unit | Interval |
|---|---|---|---|
| Mempool Fee Sum | mempool_fee | Native units | 1m |
Methodology
The mempool is evaluated and all transactions indexed. The value of all transaction fees within these unprocessed transactions is then summed.
Available Assets
Bitcoin (BTC)
Sample Query
Fees entered Mempool 1 minute
Definition
The sum value of all mempool transaction fees for all transactions entering the mempool over the course of a 1-minute aggregation window. The beginning of this time window is noted in the “time” field of the response.
Dictionary
| Name | MetricID | Unit | Interval |
|---|---|---|---|
| Fees entered mempool 1 minute | mempool_fee_entered_1m | Native units | 1m |
Methodology
The mempool is evaluated and the fees attached to all transactions that have been entered (new transactions broadcasted by users) in the previous 1-minute interval are counted.
Available Assets
Bitcoin (BTC)
Sample Query
Mempool Fees Mean
Definition
The mean value of all mempool transaction fees at a point in time in native units.
Dictionary
| Name | MetricID | Unit | Interval |
|---|---|---|---|
| Mempool Fees Mean | mempool_fee_mean | Native units | 1m |
Methodology
The mempool is evaluated and all transactions indexed. The mean value of all transaction fees within these unprocessed transactions is then calculated.
Available Assets
Bitcoin (BTC)
Sample Query
Mean Fees Entered Mempool 1 minute
Definition
The mean value of the fees paid for all transactions entering the mempool over the course of a 1-minute aggregation window. The beginning of this time window is noted in the “time” field of the response.
Dictionary
| Name | MetricID | Unit | Interval |
|---|---|---|---|
| Mean Fees entered mempool 1 minute | mempool_fee_mean_entered_1m | Native units | 1m |
Methodology
The mempool is evaluated and the fees attached to all transactions that have been entered (new transactions broadcasted by users) in the previous 1-minute interval are aggregated. The statistical mean of these fees is then calculated.
Available Assets
Bitcoin (BTC)
Sample Query
Mempool Fees Median
Definition
The median value of all mempool transaction fees at a point in time in native units.
Dictionary
| Name | MetricID | Unit | Interval |
|---|---|---|---|
| Mempool Fees Median | mempool_fee_median | Native units | 1m |
Methodology
The mempool is evaluated and all transactions indexed. The median value of all transaction fees within these unprocessed transactions is then calculated.
Available Assets
Bitcoin (BTC)
Sample Query
API Endpoints
Fees metrics can be accessed using these endpoints:timeseries/asset-metricsand by passing in the metric ID's mempool_fee* in the metrics parameter.
GET /timeseries/asset-metrics
Asset metrics
Shell
curl --compressed "https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=mempool_fee&assets=btc&frequency=1m&pretty=true&api_key=<your_key>"
Python
import requests
response = requests.get('https://api.coinmetrics.io/v4/timeseries/asset-metrics?metrics=mempool_fee&assets=btc&frequency=1m&pretty=true&api_key=<your_key>').json()
print(response)
Python Client
from coinmetrics.api_client import CoinMetricsClient
api_key = "<API_KEY>"
client = CoinMetricsClient(api_key)
print(
client.get_asset_metrics(
metrics="mempool_fee",
assets="btc",
).to_dataframe()
)