我试了你的代码,是可以的,你可以检查下xtquant是否连接成功,或者是否有权限{'832978.BJ': {'time': 1703574004000, 'lastPrice': 15.65, 'open': 16.27, 'high': 16.75, 'low': 15.0, 'lastClose': 16.2, 'amount': 183897100.0, 'volume': 115626, 'pvolume': 115626, 'stockStatus': 5, 'openInt': 15, 'transactionNum': 0, 'lastSettlementPrice': 0.0, 'settlementPrice': 0.0, 'pe': 0.0, 'askPrice': [15.700000000000001, 15.72, 15.74, 15.75, 15.76], 'bidPrice': [15.65, 15.64, 15.620000000000001, 15.610000000000001, 15.6], 'askVol': [50, 26, 74, 56, 30], 'bidVol': [107, 84, 69, 47, 258], 'volRatio': 0.0, 'speed1Min': 0.0, 'speed5Min': 0.0}}
|