from ohlc import ohlc from datetime import datetime data = ohlc('SPY', minutes = 5, start_date = datetime(2024, 1, 1), end_date = datetime(2024, 1, 31)) print(data)