Errore in Creation of a Datastream Object
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Carlo Reggiani
 il 5 Apr 2023
  
    
    
    
    
    Risposto: Nihal Reddy
    
 il 11 Apr 2023
            Hi. 
I've a Datastream Licence and I'm trying to get data from refinitiv.
First, I tried to create a Datasteram Object in the following way:
    c = datastreamws('username', 'password');
The script gave me an error: 
    Error using datastreamws. HTTP is an insecure protocol, use HTTPS instead..
So I tried a solution in an answer here in the community and a I wrote the following code:
    d = datastreamws("","","https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/Token?        username=user&password=pword")
    d.URL = "https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/GetData"
I works, but the script gave me another error:
    Error using datastreamws
    Login Failed, invalid username or password.
Maybe I wrote user id and pw in a wrong way? if my user is ABC and my password is DEF, it's enough to write like that:
     d = datastreamws("","","https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/Token?        username=ABC&password=DEF")
    d.URL = "https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/GetData"
Or it requires some quotes or double quotes?
Thank you, regards.
0 Commenti
Risposta accettata
  Nihal Reddy
    
 il 11 Apr 2023
        I understand you are getting an error while creating a "datastreamws" connection object.
You can refer to the following sample code to create a "datastreamws" connection object-
username = 'ABCDEF';
password = 'abcdef12345';
c = datastreamws(username,password)
You can refer to the following MATLAB documenation links for more information regarding Datastream Web Services from Refinitiv connection-
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su MATLAB Compiler SDK in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

