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

Stock Market Visualization through WebSocket Using QWATCH #560

Open
pratikpandey21 opened this issue Sep 12, 2024 · 17 comments
Open

Stock Market Visualization through WebSocket Using QWATCH #560

pratikpandey21 opened this issue Sep 12, 2024 · 17 comments

Comments

@pratikpandey21
Copy link
Contributor

Description:

Develop a real-time stock market visualization example using WebSocket and QWATCH queries to demonstrate how different clients can subscribe to updates for different stocks. This example will leverage DiceDB's QWATCH feature to provide real-time data updates based on WebSocket connections, allowing users to visualize stock market data dynamically.

Reference:

Use the Upstox market data feed API as a source for real-time stock data: Upstox Market Data Feed API Documentation.

Requirements:

Real-Time Stock Market Visualization:

  1. Create a WebSocket-based application where clients can connect to DiceDB and subscribe to updates for specific stocks.

  2. Implement a mechanism where clients send QWATCH queries to monitor stock prices or other related data.

  3. DiceDB should push updates to clients whenever changes in the data match the client's QWATCH query.

  4. Integration with Upstox Market Data Feed:

  • Integrate the example with the Upstox market data feed API to fetch real-time stock market data.
  • Ingest the stock data into DiceDB to make it available for querying via QWATCH.

Concrete Example with Documentation:

  1. Place the example in the examples directory.
  2. Provide a comprehensive README file that includes:
  • Step-by-step instructions for setting up the stock market visualization example.
  • Details on how to configure the integration with the Upstox API.
  • Instructions on how to run the example, including sample WebSocket clients and their respective QWATCH queries.

Use Case:

This example will demonstrate how DiceDB can be used to build real-time applications for dynamic and reactive data visualization, such as stock market dashboards. Different clients can connect to DiceDB via WebSocket and receive real-time updates on specific stocks or market data they are interested in, using QWATCH queries to subscribe to data changes.

@pratikpandey21
Copy link
Contributor Author

Depends on #555

@apoorvyadav1111
Copy link
Contributor

Hi, I would like to work on this issue.

@lucifercr07
Copy link
Contributor

@apoorvyadav1111 thanks for contributing, assigned.

@gauravrp
Copy link

@apoorvyadav1111 Are you actively working on this? If yes, can we break down this issue and collaborate?

@apoorvyadav1111
Copy link
Contributor

Hi @gauravrp , I have not started to work on this yet. But I will be . Let's connect on discord and we can discuss on collaboration for this.

@gauravrp
Copy link

Sure @apoorvyadav1111 . When do you want to start on this?

@apoorvyadav1111
Copy link
Contributor

apoorvyadav1111 commented Sep 22, 2024

Hi @gauravrp, I tried upstox api but might not be able to work on this, at least getting the data from upstox. I will unassign myself and if you would like, you can have it assigned to yourself. Additionally, this is an interesting issue to work with so if you would still like to work together maybe I can pick up things that don't need an upstox login.

Edit: Couldn't find you on discord.

Apoorv

@apoorvyadav1111 apoorvyadav1111 removed their assignment Sep 22, 2024
@gauravrp
Copy link

Sure @apoorvyadav1111 . I will get myself assigned to this issue, and let's work together on this one.

@apoorvyadav1111
Copy link
Contributor

Great, Lets connect on discord.

@gauravrp
Copy link

Can you please ping me there?

@apoorvyadav1111
Copy link
Contributor

Hi, whats your username?

@gauravrp
Copy link

gaurav_g.

@Saumay
Copy link

Saumay commented Sep 25, 2024

@apoorvyadav1111 @gauravrp
Let me know if you guys are facing issues while using Upstox apis. I might be able to help here.
I have worked there and thus I know devs within Upstox working on developer APIs.

@gauravrp
Copy link

Ohhh Thank you so much @Saumay
Just got started with this one, so yeah, will reach out to you :)

@gauravrp
Copy link

gauravrp commented Sep 30, 2024

@Saumay
QQ - I am unable to open https://account.upstox.com/developer/apps/ from where I expect to get token and clientID, can you please help me with this?
Are you able to open this even after logging in?

Apparently it works on my friend's system but not mine :(

@Saumay
Copy link

Saumay commented Oct 1, 2024

What's the error you are getting? @gauravrp

@gauravrp
Copy link

gauravrp commented Oct 2, 2024

Nothing but a blank screen, and it seems to be working intermittently
Works for me now

Another QQ- I have connected to the WSS API of market-data-feed.
However, I am not getting any responses
It could be because the market is closed right now, however, the documentation suggests that we would receive PING messages in such cases
@Saumay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants