dice icon indicating copy to clipboard operation
dice copied to clipboard

Stock Market Visualization through WebSocket Using QWATCH

Open pratikpandey21 opened this issue 1 year ago • 20 comments

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 avatar Sep 12 '24 15:09 pratikpandey21

Depends on #555

pratikpandey21 avatar Sep 12 '24 15:09 pratikpandey21

Hi, I would like to work on this issue.

apoorvyadav1111 avatar Sep 12 '24 15:09 apoorvyadav1111

@apoorvyadav1111 thanks for contributing, assigned.

lucifercr07 avatar Sep 12 '24 16:09 lucifercr07

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

gauravrp avatar Sep 20 '24 08:09 gauravrp

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.

apoorvyadav1111 avatar Sep 20 '24 14:09 apoorvyadav1111

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

gauravrp avatar Sep 22 '24 01:09 gauravrp

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 avatar Sep 22 '24 03:09 apoorvyadav1111

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

gauravrp avatar Sep 22 '24 03:09 gauravrp

Great, Lets connect on discord.

apoorvyadav1111 avatar Sep 22 '24 03:09 apoorvyadav1111

Can you please ping me there?

gauravrp avatar Sep 22 '24 04:09 gauravrp

Hi, whats your username?

apoorvyadav1111 avatar Sep 22 '24 19:09 apoorvyadav1111

gaurav_g.

gauravrp avatar Sep 22 '24 19:09 gauravrp

@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.

Saumay avatar Sep 25 '24 11:09 Saumay

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

gauravrp avatar Sep 25 '24 16:09 gauravrp

@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 :(

gauravrp avatar Sep 30 '24 17:09 gauravrp

What's the error you are getting? @gauravrp

Saumay avatar Oct 01 '24 12:10 Saumay

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

gauravrp avatar Oct 02 '24 03:10 gauravrp

@Saumay Could you please guide me here?

gauravrp avatar Oct 07 '24 14:10 gauravrp

Hey @gauravrp, missed this. Apologies for the same. If you are still stuck on this, please schedule a call with me here. calendly.com/khandelwalsaumay

Saumay avatar Oct 16 '24 13:10 Saumay

Hello @gauravrp,

There has been no activity on this issue for the past 5 days. It would be awesome if you keep posting updates to this issue so that we know you are actively working on it.

We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work.

Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out.

Thanks again.

arpitbbhayani avatar Oct 24 '24 13:10 arpitbbhayani