automatic refresh webread data
2 views (last 30 days)
Show older comments
Commented: Jonas on 26 Feb 2023
I have a webread data (XXX are confidential):
https://api.XXXXXXXX.com/time_series?apikey=XXXXXXXX&interval=1min&symbol=EUR/USD&timezone=Europe/Rome&end_date=2023-02-14 09:37:00&start_date=2023-02-13 09:37:00&format=CSV')
that I save as table in workspace and analyze it.
how can I get an automatic refresh every 1 minute to this url without copy and launch it manually on command window?
tks very much
Jonas on 13 Feb 2023
Edited: Jonas on 13 Feb 2023
create a timer object, use a method for repeated execution and add the callback
everyNowAndThen = timer("Period",intervalInS,"ExecutionMode","fixedRate","TimerFcn",@refresh);
roberto on 16 Feb 2023
Jonas on 26 Feb 2023
take ensure my code is working as intended, please copy y cody to a new .m file, save it and run it using
it looks like tried to paste my code to the command line
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!