import numpy import pandas as pd def main(): x = 0 while x == 0: exchange.SetContractType(“m888”) record = exchange.GetRecords() data = pd.DataFrame(record) Log(“起始的时间:”,_D(data[‘Time’][1]/1000)) Log(“最后的时间:”,_D(data[‘Time’][-1]/1000)) x = x + 1