python 获取IB历史数据 ib_insync 库的使用 import pandas as pd from ib_insync import * # util.startLoop() # uncomment this line when in a notebook ib = IB() ib.connect('127.0.0.1', 7496