-
Notifications
You must be signed in to change notification settings - Fork 727
Functions to extract OHLCV data #504
Comments
Thanks @sam31415 ! I would suggest to add the new functions to a new directory - Thanks, |
Actually, my installation of Catalyst already has a directory |
You don't mean |
Ah sorry for the confusion. Now I see my catalyst folder is a bit weird, many of the folders in |
Yes, you are correct: if you want to add your code using Then perhaps a better idea will be - similarly to what you originally proposed - a new directory named |
Ok. I still have a problem. I added |
This should work.
|
Thanks for the tips. Yes, I also thought this should work, but it doesn't... Using a new |
Did you install catalyst from the source code allowing you to run the most updated lib, using: |
Ah maybe that's the problem. When I try to run this command I get a gcc error, |
Hi @sam31415 , were you able to overcome your issues? If you still have trouble with creating a development environment please have a look at this section of the docs. |
Hi @lenak25 |
@sam31415 can you share the code to those functions please? |
Ok, I created a pull request to include the class in the Catalyst codebase. If you're in a hurry and want to use it right now, here is the code: |
Extracting the price data for research purpose is currently rather cumbersome and very slow, requiring to run a backtest. I wrote two functions that simply read the bcolz data and returns OHLCV data for either a single pair or a list of pairs. I'd be happy to submit a pull request to include them in the catalyst codebase so that everybody can use them, but I'm not sure where to put them.
Do you have any recommendation? Maybe we could create a new research.py file in catalyst/catalyst/data to gather tools useful to do research, as opposed to backtesting.
The text was updated successfully, but these errors were encountered: