Available languages: [Python](https://databento.com/docs/api-live/helpers/create-symbol-map-for-date.python.md) · [C++](https://databento.com/docs/api-live/helpers/create-symbol-map-for-date.cpp.md) · [Rust](https://databento.com/docs/api-live/helpers/create-symbol-map-for-date.rust.md) · [Raw](https://databento.com/docs/api-live/helpers/create-symbol-map-for-date.raw.md)

Source: https://databento.com/docs/api-live/helpers/create-symbol-map-for-date


### Metadata::CreateSymbolMapForDate

Create a symbology mapping 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::CreateSymbolMap](https://databento.com/docs/api-historical/helpers/metadata-create-symbol-map.md).

#### API method

```cpp
PitSymbolMap CreateSymbolMapForDate(
    date::year_month_day date) const;
```

#### Parameters

| Parameter | Type | Description |
| `date` | date::year_month_day | 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.
