klines = api.get_kline_serial(“CFFEX.IF2012”, 60*60)
ma = sum(klines.close.iloc[-20:])/20 print(“前20天最低价”,
min(klines.close.iloc[-20:])