Historical.metadata.list_schemas

List all available schemas for a dataset.

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[str]

A list of available data schemas.

API method
1
2
3
Historical.metadata.list_schemas(
    dataset: Dataset | str,
) -> list[str]
Example usage
1
2
3
4
5
6
import databento as db

client = db.Historical("$YOUR_API_KEY")

schemas = client.metadata.list_schemas(dataset="GLBX.MDP3")
print(schemas)
Example response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[
    "mbo",
    "mbp-1",
    "mbp-10",
    "tbbo",
    "trades",
    "bbo-1s",
    "bbo-1m",
    "ohlcv-1s",
    "ohlcv-1m",
    "ohlcv-1h",
    "ohlcv-1d",
    "definition",
    "statistics",
    "status"
]