Download Datafeed Toolbox User`s Guide

Transcript
bdl
Examples
Connect to Bloomberg Data License Using Password Authentication
Create the Bloomberg Data License connection c. This code assumes the following:
• The Bloomberg Data License SFTP server login name is 'dl111'.
• The Bloomberg Data License SFTP server password is 'Pc=zXdA'.
• The Bloomberg Data License SFTP server name is 'dlsftp.bloomberg.com'.
• The Bloomberg Data License SFTP port number is 30206.
• The decryption code is 'nAcLeZ'.
username = 'dl111';
password = 'Pc=zXdA';
hostname = 'dlsftp.bloomberg.com';
portnumber = 30206;
decrypt = 'nAcLeZ';
c = bdl(username,password,hostname,portnumber,decrypt)
c =
bdl with properties:
Login:
Hostname:
Port:
AuthOption:
KeyFile:
Connection:
'dl111'
'dlsftp.bloomberg.com'
30206
'password'
''
[1x1 com.bloomberg.datalic.api.ExtendedFTPConnection]
c returns the Bloomberg Data License connection object with these properties:
• Bloomberg Data License SFTP server login name
• Bloomberg Data License SFTP server name
• Bloomberg Data License SFTP port number
• Authentication type is the default password authentication
• Key file is blank
• Bloomberg Data License API object
5-21