If api.is_changing(klines.iloc[-1],”datetime”):
If api.is_changing(klines):
上面是kline时间戳变化,下面是任意值变化,具体可以看一下python关于datafram数据的知识