Pregunta

I want to develop real time stock price updates application using Signal R. For that purpose I have refer some tutorials based on SignalR Now for that I will use yahoo or google apis to fetch live price and display it in my web app. Problem is how my hub or my client side functions will know,that price has been changed,So it can take latest stock price from api and then I can broadcast to particular group

¿Fue útil?

Solución

You can't do anything regarding getting the API data realtime. That's how they've implemented it. If they support real time then it should be mentioned in their API. What you can do is, periodically call their API from your code behind and see whether there are any updates available. You can use SignalR to push the updates to client side. Implement server side and client side in your application so whenever an update available from your periodical checking, it will push the updates to client side.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top