diff --git a/hikyuu/data/pytdx_to_h5.py b/hikyuu/data/pytdx_to_h5.py index aac33e88..fdcf65cc 100644 --- a/hikyuu/data/pytdx_to_h5.py +++ b/hikyuu/data/pytdx_to_h5.py @@ -287,7 +287,7 @@ def import_one_stock_data(connect, api, h5file, market, ktype, stock_record, sta if today_datetime >= bar_datetime > last_datetime \ and bar['high'] >= bar['open'] >= bar['low'] > 0 \ and bar['high'] >= bar['close'] >= bar['low'] > 0 \ - and int(bar['vol']) != 0 and int(bar['amount']*0.001) != 0: + and int(bar['vol']) >= 0 and int(bar['amount']*0.001) >= 0: try: row['datetime'] = bar_datetime row['openPrice'] = bar['open'] * 1000