I have an API that is related to digital currency rates
How can it be displayed in real time? I want the data to be displayed whenever the exchange rate changes.
I would like to use a timer that requests every 1 second.
Thankful
I have an API that is related to digital currency rates
How can it be displayed in real time? I want the data to be displayed whenever the exchange rate changes.
I would like to use a timer that requests every 1 second.
Thankful
2
Answers
Try it like this: apiCallFunction will be your API request.
To get real-time data and update from API, you must use "web socket API", which you can get from the backend developer who made the API