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

Source: https://databento.com/docs/api-historical/helpers/request-symbology


### DBNStore.request_symbology

Request to resolve [symbology](https://databento.com/docs/api-historical/basics/symbology.md) mappings based on the metadata properties.

#### API method

```python
DBNStore.request_symbology(
    client: Historical,
) -> dict[str, Any]
```

#### Parameters

| Parameter | Type | Required | Description |
| `client` | Historical | required | The historical client to use for the request (contains the API key). |

#### Returns

`dict[str, Any]`

A result including a map of input symbol to output symbol across a date range.

#### Example usage

```python
import databento as db

client = db.Historical("$YOUR_API_KEY")

data = client.timeseries.get_range(
    dataset="GLBX.MDP3",
    symbols=["ESM2"],
    schema="trades",
    start="2022-06-06",
)

# Save streamed data to .dbn.zst
data.to_file("GLBX-ESM2-20220606.trades.dbn.zst")

# Read saved .dbn.zst
stored_data = db.DBNStore.from_file("GLBX-ESM2-20220606.trades.dbn.zst")

# Request symbology from .dbn.zst metadata
symbology = stored_data.request_symbology(client=client)
print(symbology)
```
#### Example response

```json
{
    "result": {
        "ESM2": [
            {
                "d0": "2022-06-06",
                "d1": "2022-06-07",
                "s": "3403"
            }
        ]
    },
    "symbols": [
        "ESM2"
    ],
    "stype_in": "raw_symbol",
    "stype_out": "instrument_id",
    "start_date": "2022-06-06",
    "end_date": "2022-06-07",
    "partial": [],
    "not_found": [],
    "message": "OK",
    "status": 0
}
```
