Source: https://databento.com/docs/api-historical/helpers/dbn-store-insert-symbology-json


### DBNStore.insert\_symbology\_json

Insert JSON symbology data which may be obtained from a symbology request or loaded from a file.

#### API method

```python
DBNStore.insert_symbology_json(
    json_data: str | Mapping[str, Any] | TextIO,
    clear_existing: bool = True,
) -> None
```

#### Parameters

| Parameter | Type | Required | Description |
| `json_data` | str or Mapping[str, Any] or TextIO | required | The JSON data to insert. |
| `clear_existing` | bool | optional | If existing symbology data should be cleared from the internal mappings. |

#### Example usage

```python
import databento as db

client = db.Historical("$YOUR_API_KEY")

data = client.timeseries.get_range(
    dataset="XNAS.ITCH",
    symbols=["ALL_SYMBOLS"],
    schema="trades",
    start="2022-06-06",
    end="2022-06-07",
)

# Request symbology for all symbols and then insert this data
symbology_json = data.request_symbology(client)
data.insert_symbology_json(symbology_json, clear_existing=True)
```
