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

Is there anyway I can add another data source? #1

Open
buzzsubash opened this issue Nov 14, 2023 · 1 comment
Open

Is there anyway I can add another data source? #1

buzzsubash opened this issue Nov 14, 2023 · 1 comment

Comments

@buzzsubash
Copy link

Hi,
Great work from you !

Can you please explain a bit about data source? Is it from Yahoo finance?

How do I change the data source ? I have real time data for derivates of the stocks being saved in a postgres datavase

@chinmayagrawal775
Copy link
Owner

Hi
Glad you liked it.

Yes, the data source is yahoo finance. This project is using free API provided yahoo.

To change the data source you will need to do some kind of refactoring of code. Basically as of now get_quote_table function is used to fetch details of stock so, instead of that function you will need to write a new function which can get you the data from the DB. For your reference, tasks.py views.py are the two files in which we are fetching the data. So you will need to make changes accordingly.

Also as you mentioned your DB is postgres, so you will need to add config for connecting that DB too.

One extra point I want to mention is that, when you change the data source then there are high chances that your data will have different schema, so at the time page rendering(at FE) you will need to update the schema keys also.

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

No branches or pull requests

2 participants