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

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


### Metadata::symbol_map

Create a symbology map from instrument ID and date to text symbol from the `mappings` in the metadata.
Useful for multi-day requests.

#### API method

```rust
pub fn symbol_map(&self) -> dbn::Result<TsSymbolMap>;
```

#### Returns

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

This function returns an error if it fails to parse a symbol mapping into a `u32` instrument ID.
