DiceDB / dice

DiceDB is a redis-compliant, reactive, scalable, highly-available, unified cache optimized for modern hardware.
https://dicedb.io/
Other
6.86k stars 1.09k forks source link

Stock Market Visualization through WebSocket Using QWATCH #560

Open pratikpandey21 opened 2 months ago

pratikpandey21 commented 2 months ago

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:

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 commented 2 months ago

Depends on #555

apoorvyadav1111 commented 2 months ago

Hi, I would like to work on this issue.

lucifercr07 commented 2 months ago

@apoorvyadav1111 thanks for contributing, assigned.

gauravrp commented 2 months ago

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

apoorvyadav1111 commented 2 months ago

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 commented 2 months ago

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

apoorvyadav1111 commented 2 months ago

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

gauravrp commented 2 months ago

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

apoorvyadav1111 commented 2 months ago

Great, Lets connect on discord.

gauravrp commented 2 months ago

Can you please ping me there?

apoorvyadav1111 commented 2 months ago

Hi, whats your username?

gauravrp commented 2 months ago

gaurav_g.

Saumay commented 2 months ago

@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 commented 2 months ago

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

gauravrp commented 1 month ago

@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 commented 1 month ago

What's the error you are getting? @gauravrp

gauravrp commented 1 month ago

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 commented 1 month ago

@Saumay Could you please guide me here?

Saumay commented 1 month ago

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

arpitbbhayani commented 1 month ago

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.