Add FXMacroData price and macro feature collectors#2293
Draft
roberttidball wants to merge 4 commits into
Draft
Conversation
Author
|
@microsoft-github-policy-service agree company="FXMacroData" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
download_macro_datafor FXMacroData announcements, release calendars, and prediction groupsdownload_catalogueso qlib users can discover currency/indicator coverage before building macro feature setsNotes
Macro datasets use symbols such as
usd_inflationand include numeric features such asvalue,actual,consensus,forecast,surprise,prediction,prediction_count,announcement_datetime, andis_future. This makes FXMacroData usable for macro-event features, not only OHLCV-shaped FX spot rates.The collector defaults to
https://api.fxmacrodata.com/v1. Users can use public catalogue/calendar/evaluation endpoints without a key, then subscribe at https://fxmacrodata.com/subscribe when they need broader history, higher request budgets, non-USD announcement history, COT, commodities, or other protected datasets.Validation
python -m py_compile scripts\data_collector\fxmacrodata\collector.py tests\misc\test_fxmacrodata_collector.pypython -m pytest tests\misc\test_fxmacrodata_collector.py -q(5 passed)python -m black --check -l 120 scripts\data_collector\fxmacrodata\collector.py tests\misc\test_fxmacrodata_collector.pypython -m flake8 --ignore=E501,F541,E266,E402,W503,E731,E203 scripts\data_collector\fxmacrodata\collector.py tests\misc\test_fxmacrodata_collector.py(isolated temp install)git diff --checkdownload_catalogue --currencies usd --include_coverage truereturned USD indicator rows with coverage metadata