Historical.metadata.list_unit_prices
List unit prices for each feed mode and data schema in US dollars per gigabyte.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
dataset | Dataset or str | required | The dataset code (string identifier). Must be one of the values from list_datasets. |
Returns
list[dict[str, Any]]
A list of maps of feed mode to schema to unit price.
| Field | Type | Description |
|---|---|---|
mode | str | The feed mode. Will be one of "historical", "historical-streaming", or "live". |
unit_prices | dict[str | float] | A mapping of schemas to unit prices in US dollars per gigabyte. |
API method
1 2 3
Historical.metadata.list_unit_prices(
dataset: Dataset | str,
) -> list[dict[str, Any]] Example usage
1 2 3 4 5 6
import databento as db
client = db.Historical("$YOUR_API_KEY")
unit_prices = client.metadata.list_unit_prices(dataset="OPRA.PILLAR")
print(unit_prices) Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
[
{
"mode": "historical",
"unit_prices": {
"cmbp-1": 0.16,
"cbbo-1s": 2.0,
"cbbo-1m": 2.0,
"tcbbo": 210.0,
"trades": 280.0,
"ohlcv-1s": 280.0,
"ohlcv-1m": 280.0,
"ohlcv-1h": 600.0,
"ohlcv-1d": 600.0,
"statistics": 11.0,
"status": 5.0,
"definition": 5.0
}
},
{
"mode": "historical-streaming",
"unit_prices": {
"cmbp-1": 0.16,
"cbbo-1s": 2.0,
"cbbo-1m": 2.0,
"tcbbo": 210.0,
"trades": 280.0,
"ohlcv-1s": 280.0,
"ohlcv-1m": 280.0,
"ohlcv-1h": 600.0,
"ohlcv-1d": 600.0,
"statistics": 11.0,
"status": 5.0,
"definition": 5.0
}
},
{
"mode": "live",
"unit_prices": {
"cmbp-1": 0.2,
"cbbo-1s": 2.4,
"cbbo-1m": 2.4,
"tcbbo": 252.0,
"trades": 336.0,
"ohlcv-1s": 336.0,
"ohlcv-1m": 336.0,
"ohlcv-1h": 720.0,
"ohlcv-1d": 720.0,
"statistics": 13.2,
"status": 6.0,
"definition": 6.0
}
}
]