Datastreamws error (HTTPs)

7 views (last 30 days)
Leonardo Ricci
Leonardo Ricci on 30 Oct 2021
Answered: Pratyush Roy on 2 Nov 2021
Hello everyone,
I'm trying to use Datafeed toolbox. During my login trought Matlab via datastreamws, it says there is an error concerning http and https protocols:
Error using datastreamws (line 103)
HTTP is an insecure protocol, use HTTPS instead..
I have tryed to check if there were possibilities to change it directly from datastreamws script, but I can not find anything. Do you have any suggestions?
Thank you in advance
Leonardo Ricci

Answers (1)

Pratyush Roy
Pratyush Roy on 2 Nov 2021
Hi Leonardo,
Currently, DATASTREAMWS does use HTTP in the endpoint. To work around the issue and use the HTTPS protocol through our interface, use the following code:
d = datastreamws("","","")
d.URL = ""
where user and pword are your username and password. After connecting with this syntax, you should be able to make historical requests.
Hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!