Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

History request for custom universe objects #8477

Open
4 tasks done
DerekMelchin opened this issue Dec 23, 2024 · 0 comments
Open
4 tasks done

History request for custom universe objects #8477

DerekMelchin opened this issue Dec 23, 2024 · 0 comments
Assignees

Comments

@DerekMelchin
Copy link
Collaborator

Expected Behavior

We can call

qb.history[StockDataSource](universe, datetime(2018, 1, 1), datetime(2018, 6, 1))

where StockDataSource is a custom data source.

Actual Behavior

The method works for custom securities, but with custom universes we get:

TypeError: No method matches given arguments for History: (<class 'QuantConnect.Data.UniverseSelection.FuncUniverse'>, <class 'datetime.datetime'>, <class 'datetime.datetime'>)

We can get the dataframe of universe data, but not the universe data objects themselves.

Potential Solution

N/A

Reproducing the Problem

Run the cells in this notebook
https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_6c4201feab6e8c75d1494960c4fa0f37.html

System Information

QC Cloud

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants