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

Source: https://databento.com/docs/api-historical/helpers/metadata-symbol-map-for-date


### Metadata::symbol_map_for_date

Create a symbology map from the `mappings` in the metadata for the specified date.
Useful for requests that span a single day.
For multi-day requests, it's better to use [Metadata::symbol_map](https://databento.com/docs/api-historical/helpers/metadata-symbol-map.md).

#### API method

```rust
pub fn symbol_map_for_date(
    &self,
    date: time::Date,
) -> dbn::Result<PitSymbolMap>;
```

#### Parameters

| Parameter | Type | Description |
| `date` | time::Date | The date to create the symbol map for. |

#### Returns

A [PitSymbolMap](https://databento.com/docs/api-historical/helpers/pit-symbol-map.md) with the symbol mappings for the query range indexed by instrument ID.

This function returns an error if it fails to parse a symbol mapping into a `u32` instrument ID or the provided date is outside the query range.
