Available languages: [Python](https://databento.com/docs/api-historical/helpers/dbn-store.python.md) · [C++](https://databento.com/docs/api-historical/helpers/dbn-store.cpp.md) · [Rust](https://databento.com/docs/api-historical/helpers/dbn-store.rust.md) · [HTTP](https://databento.com/docs/api-historical/helpers/dbn-store.http.md)

Source: https://databento.com/docs/api-historical/helpers/dbn-store


### DBNStore

The `DBNStore` object is an I/O helper class for working with [DBN](https://databento.com/docs/conventions/databento-binary-encoding.md)-encoded data.
Typically, this object is created when performing historical requests. However,
it can be created directly using DBN data on disk or in memory using provided
factory methods:

- [DBNStore.from_bytes](https://databento.com/docs/api-historical/helpers/dbn-store-from-bytes.md)
- [DBNStore.from_file](https://databento.com/docs/api-historical/helpers/dbn-store-from-file.md)

#### Attributes

| Parameter | Type | Description |
| `nbytes` | int | The size of the data in bytes. |
| `raw` | bytes | The raw data from the I/O stream. |
| `metadata` | Metadata | The metadata header for the `DBNStore`. |
| `dataset` | str | The dataset ID. |
| `schema` | Schema or None | The data record schema. If `None`, the `DBNStore` may contain multiple schemas. |
| `symbols` | list[str] | The query symbols for the data. |
| `stype_in` | SType or None | The query input symbology type for the data. If `None`, the `DBNStore` may contain mixed STypes. |
| `stype_out` | SType | The query output symbology type for the data. |
| `start` | pd.Timestamp | The query start for the data as a [pd.Timestamp](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timestamp.html). |
| `end` | pd.Timestamp or None | The query end for the data as a [pd.Timestamp](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Timestamp.html). If `None`, the `DBNStore` data was created without a known end time. |
| `limit` | int or None | The query limit for the data. |
| `encoding` | Encoding | The data encoding. |
| `compression` | Compression | Return the data compression format (if any). |
| `mappings` | dict[str, list[dict[str, Any]]] | Return the symbology mappings for the data. |
| `symbology` | dict[str, Any] | Return the symbology resolution information for the data. |
