DEV Community

Abolhasan Momeni
Abolhasan Momeni

Posted on • Updated on

(Real Time streaming)display data as live in browser when json data update! (Long-Polling,Server-Sent Events,Web Sockets)

I want to display Bitcoin price in real time at my Laravel project ,what is the best way?

Discussion (6)

Collapse
pierbusdev profile image
pierbusdev

Try using the coinbase api, they have a specific guide for getting price data developers.coinbase.com/docs/walle...

Collapse
alexpaper profile image
alexpaper • Edited on

You can fetch this url "api.coindesk.com/v1/bpi/currentpri...".

Collapse
pudgeline profile image
Abolhasan Momeni Author

I mean,after ftech i want automatically gets updates from a server as live

Collapse
pudgeline profile image
Abolhasan Momeni Author • Edited on

also i find this and was helpful
freecodecamp.org/news/5-ways-to-bu...

Collapse
pudgeline profile image
Abolhasan Momeni Author

according this Article description sse(Server-Sent Events) meets my needs

Collapse
shriji profile image
Shriji

Check this API, I recently used them api.gemini.com/v1/pricefeed

api.gemini.com has decent docs