def _quotes_add_night(quotes):
    '为 quotes 中应该有夜盘但是市价合约文件中没有夜盘的品种，添加夜盘时间'
    for symbol in quotes:
        product_id = quotes[symbol].get('product_id')
        if (quotes[symbol].get('trading_time') and product_id):
            key = f"{quotes[symbol].get('exchange_id')}.{product_id}"
            if ((key in night_trading_table) and (not quotes[symbol]['trading_time'].get('night'))):
                quotes[symbol]['trading_time']['night'] = [night_trading_table[key]]
为 quotes 中应该有夜盘但是市价合约文件中没有夜盘的品种，添加夜盘时间
def _quotes_add_night(quotes):
    
    for symbol in quotes:
        product_id = quotes[symbol].get('product_id')
        if (quotes[symbol].get('trading_time') and product_id):
            key = f"{quotes[symbol].get('exchange_id')}.{product_id}"
            if ((key in night_trading_table) and (not quotes[symbol]['trading_time'].get('night'))):
                quotes[symbol]['trading_time']['night'] = [night_trading_table[key]]