I tried to connect to Bloomberg via Bloomberg data license (using datafeed toolbox in version R2015a) but cannot get a connection.

4 Ansichten (letzte 30 Tage)
Error message:Undefined variable "Account" or class "Account.FTP_OPTION_SFTP".
Error in bdl (line 101)
accountContext =
AccountContext(String(lgon),String(pword),String(hostname),Integer(port),Account.FTP_OPTION_SFTP,String(authoption),String(keyfile),String(passphrase));
I already copied the relevant jar-file(bblapi.jar) in the matlab jar-path. I also tried to connect via filezilla, which is no problem.
Have you any idea what i have to insert for the parameter "Account.FTP_OPTION_SFTP"?
thx

Akzeptierte Antwort

Vineeth Kartha
Vineeth Kartha am 16 Mär. 2016
Hi,
In order to connect to the Bloomberg Data License connection from MATLAB, the following JAR files are needed to be added on the MATLAB Java Classpath.
- bbdl.jar - bbdlftp.jar - bbdlapi.jar
For details about these JAR files, see the Data License Java SE API folder. Find this folder by entering DLSD and clicking GO in the Bloomberg terminal. These JAR files are usually downloaded in the 'C:\Bloomberg\...' path of your computer.
In order to add these JAR files to the MATLAB Java Classpath, execute the following commands.
>> javaaddpath('C:\Bloomberg\....\bbdlapi.jar'); >> javaaddpath('C:\Bloomberg\....\bbdl.jar'); >> javaaddpath('C:\Bloomberg\....\bbdlftp.jar');
Once the files are added to the MATLAB Java Classpath, execute the following command to save the userpath and then restart MATLAB to use the Bloomberg Data License Connection.
>> userpath
Hope this helps
Regards
Vineeth
  1 Kommentar
ZUR
ZUR am 16 Mär. 2016
Hi Vineeth, thx a lot for your answer. Mathworks Support sent us a new bbdlapi.jar-file. We only added this file with javaaddpath in Matlab and it looks fine and the Bloomberg Data License Connection works. Regards Rene

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Bloomberg Desktop finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by