import json


def exchange_suffix(path):
    """Reads mapping to create: {Exchange name: Yahoo Finance suffix}"""
    with open(path) as f:
        market2symbol = json.load(f)
        exchange2symbol = dict()
        for market_entry in market2symbol.values():
            exchange2symbol.update(market_entry)
    return exchange2symbol