from typing import Dict
import json


def _load_company_info() -> Dict[str, str]:
    """Return a dict mapping from company name to symbol."""
    # Raw data is downloaded from: https://api.iextrading.com/1.0/ref-data/symbols
    with open("chatbot/resources/stock_symbols.json") as fp:
        data = json.load(fp)
        return {c["name"]: c["symbol"] for c in data}