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

Source: https://databento.com/docs/api-historical/helpers/pit-symbol-map-on-symbol-mapping


### PitSymbolMap::OnSymbolMapping

Update the symbol map with the contents of the record, either a `SymbolMappingMsg` or a `SymbolMappingMsgV1`.

#### API method

```cpp
void OnSymbolMapping(const SymbolMappingMsgV1& symbol_mapping);
void OnSymbolMapping(const SymbolMappingMsg& symbol_mapping);
```

#### Parameters

| Parameter | Type | Description |
| `symbol_mapping` | SymbolMappingMsgV1 or SymbolMappingMsg | The record to update the map from. |
