Caching/saving downloaded OHLCV data #245
Random-Investments
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
|
Hi @GogeiD, this is a good idea, I’ll see how to add an option to persist data on the disk. Right now you can try to download some data, then call data.update with end value set to some further point in time, and repeat the process until you get all data. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Oleg and community. I hope you are doing well.
Playing around with the package, I have encountered myself with this issue: when downloading large sets of data with
vectorbt.data.custom(multiple symbols OHLCV 1 minute data for several months for instance), sometimes I stumble upon some timeout error, I lose connection momentarily or something else happens, and the code throws an error and all the downloaded data so far is lost. Sometimes is really frustrating to, specially when a long time has passed and it's about to finish.So I'm trying to come out with a solution to fix this. A way to save a temp-file that can be accessed if the code blows out and can be used as a starting point to resume the downloading. So far I have tried to pickle the result once in a while, but it doesn't seems to be very efficient and sometimes an error is shown when (I presume) the pickle is corrupted or contains incomplete data that can't be matched.
I tried, then, to use the cache decorators provided in
vectorbt.utils.decoratorsbut honestly I have no idea how to use them appropriately. I am about to start implementing some sort of SQL database or similar, but I remembered what is often said about this awesome package: there is some easier workaround lying somewhere.So, there is some tool I can use to resume the downloads seamlessly without complicating my life?
As always, thanks a lot for your invaluable time, effort and help.
Beta Was this translation helpful? Give feedback.
All reactions