bpipe
彭博B-PIPE连接v3
描述
这bpipe
函数创建abpipe
目的。这bpipe
对象代表彭博社®B-PIPE®Connection.
其他功能连接到其他彭博服务:彭博桌面(blp
)和彭博服务器(blpsrv
)。有关这些服务的详细信息,请参阅比较彭博连接。
有关彭博连接要求的详细信息,请参阅数据服务器连接要求。为确保成功的彭博连接,请在执行之前执行所需的步骤bpipe
。For details, see安装彭博和配置连接。
创建
句法
描述
c = bpipe(authtype,appname,ipaddress,port,timeout,
使用指定的凭据文件,密码和信任文件连接到B-Pipe零英尺云解决方案。tlscred
,,,,tlspassword
,,,,tlstrust
)
警告
要参考其他功能中的彭博连接,请使用由bpipe
功能。否则,使用bpipe
当输入参数打开了多个彭博连接,导致意外行为和耗尽内存资源。
输入参数
tlscred
-凭据文件
角色向量|字符串标量
凭据文件,指定为字符向量或字符串标量,该文件包含带有扩展名的凭据文件的完整路径PK12
。For details about the credentials file, contact Bloomberg.
数据类型:Char
|细绳
tlspassword
-B-Pipe密码
角色向量|字符串标量
B-Pipe密码,,,,specified as a character vector or string scalar. To obtain your B-PIPE password, contact Bloomberg.
数据类型:Char
|细绳
tlstrust
-信任文件
角色向量|字符串标量
信任文件,指定为字符向量或字符串标量,其中包含带有扩展名的信任文件的完整路径PK7
。有关信任文件的详细信息,请联系彭博社。
数据类型:Char
|细绳
特性
AppAuthType
-Application authentication type
“”
(默认)|“ appname_and_key”
This property is read-only.
应用程序身份验证类型,指定为以下值之一:
“”
- 彭博与Windows的B-Pipe连接®authentication“ appname_and_key”
- 彭博b-pipe连接与应用程序身份验证
authtype
-彭博用户身份验证类型
“ os_logon”
|“ application_only”
彭博用户身份验证类型,指定为以下值之一:
“ os_logon”
- 彭博与Windows身份验证的B-Pipe连接“ application_only”
- 彭博b-pipe连接与应用程序身份验证
有关详细信息,请参阅彭博b-pipeAPI Developer’s Guideusing theWAPI
AppName
-应用名称
角色向量|细绳
应用程序名称,指定为字符向量或字符串,标识您使用的应用程序要连接到彭博B-Pipe。
Example:'appName'
数据类型:Char
|细绳
User
-彭博user
彭博用户身份对象
This property is read-only.
彭博用户,指定为彭博用户身份对象。
Example:[1x1 com.bloomberglp.blpapi.impl.aT]
Session
-彭博V3会话
彭博V3 API会话对象
This property is read-only.
彭博V3会话,指定为彭博V3 API会话对象。
Example:[1x1 com.bloomberglp.blpapi.session]
IP地址
-IP address
角色向量|字符向量的单元格数|细绳|字符串数组
IP address of the machine running the Bloomberg B-PIPE process, specified as a character vector, cell array of character vectors, string, or string array. A character vector or string identifies the machine running the Bloomberg B-PIPE process, whereas a cell array of character vectors or string array specifies multiple machines.
Example:{'111.11.11.112'}
数据类型:Char
|细胞
|细绳
港口
-端口号
[]
(默认)|numeric scalar
运行彭博b-pipe进程的机器的端口号,指定为数字标量。
Example:8194
数据类型:双倍的
暂停
-暂停
numeric scalar
超时指定MATLAB的毫秒中的时间®尝试在计时之前连接到运行彭博b-pipe进程的机器(指定为数字标量)。
Example:1000
数据类型:双倍的
数据电视
-日期和时间数据类型
''
(默认)|'约会时间'
日期和时间数据类型,指定为这些值之一。
价值 | 描述 |
---|---|
'' (默认) |
返回日期和时间值作为MATLAB日期编号。 |
'约会时间' |
Return date and time values as a约会时间 大批。 |
您可以使用字符向量或字符串指定这些值(例如,“约会时间”
)。
当您创建一个bpipe
对象,bpipe
功能使此属性保持不设置。要检索数据,您必须在命令行或使用点表示法中手动设置此属性值,例如:
c.datetimetype ='dateTime';
-
笔记
如果是
datareturnformat
属性值是'table'
和数据电视
属性值是'约会时间'
,然后返回的数据是包含日期和时间值的表约会时间
大批。如果是datareturnformat
属性值是一个空的字符向量,然后设置数据电视
财产为'约会时间'
返回的日期和时间值聚合蜱虫和historical requests as MATLAB date numbers.
datareturnformat
-数据返回格式
'细胞'
|'结构体'
|'table'
|'timetable'
数据返回格式,指定为以下值之一,该值确定返回数据的数据类型。
价值 | 返回数据的数据类型 |
---|---|
'细胞' |
单元阵列 |
'table' |
桌子 |
'timetable' |
时间表 |
'结构体' |
结构体 |
笔记
返回数据的默认数据类型取决于执行的函数。要指定默认数据类型,请设置datareturnformat
财产为''
。有关默认数据类型,请参见“支持的功能列表”。万博1manbetx
您可以使用字符向量或字符串指定这些值(例如,“桌子”
)。
当您创建一个bpipe
对象,bpipe
功能使此属性保持不设置。要检索数据,您必须在命令行或使用点表示法中手动设置此属性值,例如:
C。datareturnformat= 'structure';
万博1manbetx支持的功能 | Valid Data Types for Returned Data |
---|---|
Category |
|
等式 |
|
fieldinfo |
|
fieldSearch |
|
lookup |
|
portfolio |
|
getBulkData |
|
getdata |
|
history |
|
tahistory |
|
时间序列 |
|
笔记
Regardless of the数据电视
属性值,如果datareturnformat
属性值是'timetable'
,然后getdata
和getBulkData
函数返回包含日期和时间值的表约会时间
数组。
对象功能
彭博B-PIPE联系
关 |
关彭博连接v3 |
get |
属性彭博连接v3 |
isconnection |
决定彭博连接v3 |
彭博B-PIPE数据检索
彭博B-PIPE数据信息
Category |
现场类别搜索彭博连接v3 |
fieldinfo |
Field information for彭博连接v3 |
fieldSearch |
现场搜索彭博连接v3 |
lookup |
查找有关证券的信息彭博连接v3 |
例子
创造彭博B-PIPE联系
使用运行Bloomberg B-Pipe进程的机器的IP地址创建彭博B-Pipe连接。此示例假定以下内容:
设置时的身份验证是Windows身份验证
authtype
至'os_logon'
。应用程序名称为空白,因为您没有使用应用程序连接到彭博b-pipe。
运行彭博b-pipe过程的机器的IP地址是
'111.11.11.112'
。运行彭博b-pipe过程的机器的端口号是
8194
。
authtype ='os_logon';appname ='';ipaddress = {'111.11.11.112'};端口= 8194;c = bpipe(authtype,appname,ipaddress,port)
C =带有属性的bpipe:appauthtype:''authtype:'os_logon'appName:[]用户:[1x1 com.bloomberglp.blpapi.impl.at] session:[1x1 com.bloomberglp.blpapi.session.sessession ipaddress] ipaddress] ipaddress:.11.112'}端口:8194.00超时:0 dateTimeType:''dataReturnFormat:'''
bpipe
连接到运行彭博b-pipe在端口号的机器8194
。bpipe
创建彭博b-pipe连接对象C
这些属性:
Application authentication type
彭博用户身份验证类型
应用名称
彭博用户身份对象
彭博V3 API会话对象
IP address of the machine running the Bloomberg B-PIPE process
运行彭博b-pipe过程的机器的端口号
数字(以毫秒为单位)指定MATLAB尝试在计时之前尝试连接多长时间
日期和时间数据类型
数据返回格式
要求Microsoft的最后一个开放价格®。
format银行%显示货币的数据格式s =“ MSFT US权益”;f = {'last_price';'打开'};[d,sec] = getData(c,s,f)
d= LAST_PRICE: 33.34 OPEN: 33.60 sec = 'MSFT US Equity'
getdata
返回结构d
with the last and open prices. Also,getdata
返回安全的名称秒
。
关闭Bloomberg B-Pipe连接。
关闭(c)
创造彭博B-PIPE与超时的连接
使用运行Bloomberg B-Pipe进程的机器的IP地址创建彭博B-Pipe连接。此示例假定以下内容:
设置时的身份验证是Windows身份验证
authtype
至'os_logon'
。应用程序名称为空白,因为您没有使用应用程序连接到彭博b-pipe。
运行彭博b-pipe过程的机器的IP地址是
'111.11.11.112'
。运行彭博b-pipe过程的机器的端口号是
8194
。这timeout value is 1000 milliseconds.
authtype ='os_logon';appname ='';ipaddress = {'111.11.11.112'};端口= 8194;超时= 1000;c = bpipe(authtype,appname,ipaddress,port,timeout)
C =带有属性的bpipe:appauthtype:''authtype:'os_logon'appName:[]用户:[1x1 com.bloomberglp.blpapi.impl.at] session:[1x1 com.bloomberglp.blpapi.session.sessession ipaddress] ipaddress] ipaddress:'172.28.17.118'}端口:8194.00超时:1000.00 dateTimeType:''dataReturnFormat:''
bpipe
连接到运行彭博b-pipe在端口号的机器8194
。bpipe
创建彭博b-pipe连接对象C
这些属性:
Application authentication type
彭博用户身份验证类型
应用名称
彭博用户身份对象
彭博V3 API会话对象
IP address of the machine running the Bloomberg B-PIPE process
运行彭博b-pipe过程的机器的端口号
数字(以毫秒为单位)指定MATLAB尝试在计时之前尝试连接多长时间
日期和时间数据类型
数据返回格式
要求Microsoft的最后和开放价格。
format银行%显示货币的数据格式s =“ MSFT US权益”;f = {'last_price';'打开'};[d,sec] = getData(c,s,f)
d= LAST_PRICE: 33.34 OPEN: 33.60 sec = 'MSFT US Equity'
getdata
返回结构d
with the last and open prices. Also,getdata
返回安全的名称秒
。
关闭Bloomberg B-Pipe连接。
关闭(c)
创造彭博B-PIPEZero-Footprint Connection
使用运行Bloomberg B-Pipe进程的机器的IP地址创建彭博B-Pipe零英尺连接。此示例假定以下内容:
设置时的身份验证基于应用程序名称
authtype
至'application_only'
。这application name is
'应用程序'
。运行彭博b-pipe过程的机器的IP地址是
'111.11.11.112'
。运行彭博b-pipe过程的机器的端口号是
8194
。该数字(以毫秒为单位)指定MATLAB在定时之前尝试连接到机器的时间为1000。
凭据文件的完整路径是
C:\ abcdefg.pk12
。B-Pipe密码是
12345
。信任文件的完整路径是
c:\ hijklm.pk7
。
authtype ='application_only';appname ='应用程序';ipaddress = {'111.11.11.112'};端口= 8194;超时= 1000;tlscred ='c:\ abcdefg.pk12';tlspassword ='12345';tlstrust ='c:\ hijklm.pk7';c = bpipe(authtype,appname,ipaddress,port,...超时,tlscred,tlspassword,tlstrust)
c =带有属性的bpipe:appauthtype:'appname_and_key'authtype:'application_only'appname:'app'user:[1x1 com.bloomberglp.blpapi.impl.impl.by] session:[1x1 com.bloomberglp.blppapi.sessession] ipaddress] ipaddress:'111.11.11.112'}端口:8194.00超时:1000.00 dateTimeType:'dataReturnFormat:'''
bpipe
连接到运行彭博b-pipe在端口号的机器8194
。这bpipe
函数创建彭博b-pipe连接对象C
这些属性:
Application authentication type
彭博用户身份验证类型
应用名称
彭博用户身份对象
彭博V3 API会话对象
IP address of the machine running the Bloomberg B-PIPE process
运行彭博b-pipe过程的机器的端口号
数字(以毫秒为单位)指定MATLAB尝试在计时之前尝试连接多长时间
日期和时间数据类型
数据返回格式
要求Microsoft的最后和开放价格。
format银行%显示货币的数据格式s =“ MSFT US权益”;f = {'last_price';'打开'};[d,sec] = getData(c,s,f)
d= LAST_PRICE: 33.34 OPEN: 33.60 sec = 'MSFT US Equity'
getdata
返回结构d
with the last and open prices. Also,getdata
返回安全的名称秒
。
关闭Bloomberg B-Pipe连接。
关闭(c)
版本历史记录
matlab命令
您单击了与此MATLAB命令相对应的链接:
通过在MATLAB命令窗口中输入该命令。Web浏览器不支持MATLAB命令。万博1manbetx
您还可以从以下列表中选择一个网站:
如何获得最佳网站性能
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
美洲
- América Latina(Español)
- 加拿大(英语)
- 美国(英语)