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

create alpha-vantage data-bundle #155

Closed
wants to merge 1 commit into from

Conversation

kaessert
Copy link

No description provided.

@kaessert kaessert force-pushed the atarax_alpha_vantage branch 3 times, most recently from 161a568 to 3f0a173 Compare December 20, 2020 12:39
Copy link
Owner

@shlomiku shlomiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first review :)

zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
@kaessert kaessert force-pushed the atarax_alpha_vantage branch 4 times, most recently from 767ceb4 to 745902b Compare January 2, 2021 13:49
Copy link
Owner

@shlomiku shlomiku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review#2

first usage review 👍

zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved


if __name__ == '__main__':
from zipline.data.bundles import register
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import shouldn't be here. all should be on the top part of the file

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i put it to the top it fails, don't know why. you're using it like this in the alpaca-bundle, do you remember why?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only import modules in the __main__ if it's not used when called from another file. e.g I want to test something but when used in production not called. in our case, we do use the main part to do ingestion in "production" but not only (the module is loaded by __init__ of bundles.
I will take a look at the failure and let you know

zipline/data/bundles/alpha_vantage_api.py Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Outdated Show resolved Hide resolved
zipline/data/bundles/alpha_vantage_api.py Show resolved Hide resolved
@kaessert kaessert force-pushed the atarax_alpha_vantage branch 6 times, most recently from cadcb4e to 1539367 Compare January 16, 2021 17:45
@kaessert kaessert force-pushed the atarax_alpha_vantage branch 3 times, most recently from bef5dc3 to 596d26f Compare January 21, 2021 10:34
@kaessert kaessert force-pushed the atarax_alpha_vantage branch 3 times, most recently from b284d3a to 02172f8 Compare February 2, 2021 15:34
@kaessert
Copy link
Author

closing this as it's aleady included in the postgres-part

@kaessert kaessert closed this Feb 10, 2021
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

Successfully merging this pull request may close these issues.

3 participants