-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support for Tiingo API #23
base: master
Are you sure you want to change the base?
Conversation
This reverts commit c252629.
Add support for Tiingo API
"eslint": "^7.7.0", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"markdownlint-cli": "^0.23.2" | ||
"markdownlint-cli": "^0.33.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ Thank you very much for updating these!
throw new Error(`Invalid URL: ${url}`); | ||
} else { | ||
// eslint-disable-next-line no-restricted-globals | ||
let corsUrl = `${location.protocol}//${location.host}/cors?`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙋♂️ I'm not familiar with this endpoint, is this a CORS proxy service of MagicMirror? Does it really need for Tiingo, it does not support browsers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly primarily a backend dev so dealing with CORS was a bit new for me but it was required for Tiingo. I pretty much pulled the code from the default magic mirror utils code. I couldn't figure out how to directly use it.
Hello @tdadah, Thank you very much for your PR, I appreciate your contribution, especially that you have taken extra care to comment your code and extend the documentation. Great work, thank you! |
I've been having issue with the IEX Cloud API so I've added the ability to use the Tiingo API.