def get_market_info(assets):
    assets_market_info = list(config.mongo_db.asset_market_info.find({'asset': {'$in': assets}}, {'_id': 0}))
    extended_asset_info = config.mongo_db.asset_extended_info.find({'asset': {'$in': assets}})
    extended_asset_info_dict = {}
    for e in extended_asset_info:
        if not e.get('disabled', False):  # skip assets marked disabled
            extended_asset_info_dict[e['asset']] = e
    for a in assets_market_info:
        if a['asset'] in extended_asset_info_dict and extended_asset_info_dict[a['asset']].get('processed', False):
            extended_info = extended_asset_info_dict[a['asset']]
            a['extended_image'] = bool(extended_info.get('image', ''))
            a['extended_description'] = extended_info.get('description', '')
            a['extended_website'] = extended_info.get('website', '')
            a['extended_pgpsig'] = extended_info.get('pgpsig', '')
        else:
            a['extended_image'] = a['extended_description'] = a['extended_website'] = a['extended_pgpsig'] = ''
    return assets_market_info