Skip to content

Futures History GetAllData() Crashes Kernel with R1-4 node #39

Description

With a R1-4 node executed the following code in a research.ipynb file and the kernel crashed.

import calendar

qb = QuantBook()
es = qb.AddFuture(Futures.Indices.SP500EMini)
es.SetFilter(timedelta(-360), timedelta(360))

Year to Date

start_time = datetime(date.today().year, 1, 1, 0, 0)
end_time = datetime(date.today().year, 6, 30, 23, 59)
future_history = qb.GetFutureHistory(es.Symbol, start_time, end_time)

Get all futures data as a dataframe

history = future_history.GetAllData()

Is there a better method to access and query a year of futures contracts data that does not crash the kernel?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions