8000 Pulling historical bardata · Issue #70 · alpha-xone/xbbg · GitHub
[go: up one dir, main page]

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

Pulling historical bardata #70

Open
marcus-bbq opened this issue Jun 8, 2022 · 3 comments
Open

Pulling historical bardata #70

marcus-bbq opened this issue Jun 8, 2022 · 3 comments

Comments

@marcus-bbq
Copy link
8000

Hi guys, trying to see if anyone has any tips on how to pull multi day bardata i.e. passing start and end dates. Current implementation only supports single day.

Was wondering if there is a way other than wrapping that and running for n days for x tickers.

Thanks

@marcus-bbq
Copy link
Author

Any plans to allow users to pass in their own timestamps to pull intraday bars? I feel the current approach might be enforcing too many rules on the users. Ideally we can pass something like start_time='2022-01-01 09:30:00' end_time='2022-06-01 16:30:00' and it would pull multiday

@abn84
Copy link
abn84 commented Aug 8, 2022

This would be a massive help, single day makes its very challenging to use efficiently/effectively, i believe bloomberg holds the data for 180 days in the past which allows you to develop a decent profile of volumes historically, doing multi day may kill your data limits especially if you are looking at many products.

love the wrapper though, keep up the good work

@alpha-xone
Copy link
Owner

It is easy to add arguments to blp.bdib and call itself recursively. But the problem is below.

The way blpapi works, if you send multiple requests at the same time, the returned data feeds may sometimes intertwine, meaning intraday bars of ticker A sometimes goes to ticker B if they are sent together. Since ppl caches intraday bars to local storage, it is very difficult to clean up 3 minutes of incorrect data bars here and there. So forcing ppl writing for loop of their own delegates the responsibilities of data cleaning to themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0