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

Add support for Tiingo API #23

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

tdadah
Copy link

@tdadah tdadah commented Mar 19, 2023

I've been having issue with the IEX Cloud API so I've added the ability to use the Tiingo API.

README.md Outdated Show resolved Hide resolved
"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"
Copy link
Owner

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?`;
Copy link
Owner

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?

Copy link
Author

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.

@balassy
Copy link
Owner

balassy commented Apr 17, 2023

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!

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.

2 participants