def get_all_unique_type_ids(market_datas):
    """
    Get all unique type ids from market data
    :param market_datas: the market data dictionary
    :return: list of type ids
    """
    type_ids = []
    for _, market_data in market_datas.items():
        for order in market_data:
            type_id = order['type_id']
            if type_id not in type_ids:
                type_ids.append(type_id)
    return type_ids