如上案例,为什么 short_avg 等这类指标一定要写在 api.wait_update 下面 ?如果和 klines 写在一起,数值就无法更新; 而为什么 klines 就可以直接写在外面?
您好,支持的,并且免费,可以参考quote里的bid_price1使用方法,相应的如果获取的是bid_price5即是第五档行情 https://doc.shinnytech.com/pysdk/latest/reference/tqsdk.objs.html#tqsdk.objs.Quote.bid_price1