Привет. Есть код: "lotfiltres = { 'minOrderQty': float(lotsizefilter.get('minOrderQty',…
- User
Привет. Есть код: "lot_filtres = { 'minOrderQty': float(lot_size_filter.get('minOrderQty', '0')), 'qtyStep': float(lot_size_filter.get('qtyStep', '0')), 'minNotionalValue': float(lot_size_filter.get('minNotionalValue', '0')) }
if lot_filtres['qtyStep'] == 0: print(f"qtyStep для инструмента {instrument} равен 0, что некорректно.") return False # Записываем в словарь if instrument not in active_instruments: active_instruments[instrument] = {} active_instruments[instrument]['lot_filtres'] = lot_filtres return True" Как проверить есть ли вложенный словарь ['lot_filtres'] в словаре active_instruments? Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.