主要内容

getbulkdata

带有标头信息的批量数据Bloombergconnection V3

描述

example

d= getBulkData(c,s,f)returns the bulk data for the fieldsffor the security lists.

example

d= getBulkData(c,s,f,o,OV)returns the bulk data using the override fieldso具有相应的覆盖值OV.

example

d= getBulkData(c,s,f,o,OV,名称,价值)返回批量数据,其中包含一个或多个名称值对参数的其他选项®request settings.

example

[d,sec] = getBulkData(___)additionally returns the security listsecusing any of the input argument combinations in the previous syntaxes.

例子

全部收缩

创建彭博连接。

c = blp;

另外,您可以使用blpsrvor Bloomberg B-PIPE®usingbpipe.

返回IBM的股息历史®.

security ='IBM US Equity';字段='DVD_HIST';%股息历史领域[d,sec] = getBulkData(C,安全性,字段)
d = dvd_hist:{{{149x7 cell}} sec ='ibm us equity'

d是一个带有一个字段的结构,其中包含带有返回的批量数据的单元格数组。sec包含IBM安全名称。

Display the dividend history with the associated header information by accessing the structure fielddvd_hist. This field is a cell array that contains one cell array. The nested cell array contains the dividend history data. Access the contents of the nested cell using cell array indexing.

d.DVD_HIST{1}
ans = Columns 1 through 6 'Declared Date' 'Ex-Date' 'Record Date' 'Payable Date' 'Dividend Amount' 'Dividend Frequency' [ 735536] [ 735544] [ 735546] [ 735578] [ 0.95] 'Quarter' [ 735445] [ 735453] [ 735455] [ 735487] [ 0.95] 'Quarter' [ 735354] [ 735362] [ 735364] [ 735395] [ 0.95] 'Quarter' ... Column 7 'Dividend Type' 'Regular Cash' 'Regular Cash' 'Regular Cash' ...

股息历史数据的第一行是描述每列内容的标题信息。

关闭连接。

close(c)

创建彭博连接。

c = blp;

另外,您可以使用blpsrv或使用彭博b-pipebpipe.

从2004年1月1日到2005年1月1日,返回IBM的股息历史记录。

security ='IBM US Equity';字段='DVD_HIST';%股息历史领域OVerride = {'dvd_start_dt','dvd_end_dt'};% Dividend start and%结束日期OVerridevalues = {'20040101','20050101'};[d,sec] = getBulkdata(C,安全性,字段,覆盖,超级价值)
d = DVD_HIST: {{5x7 cell}} sec = 'IBM US Equity'

d是一个带有一个字段的结构,其中包含带有返回的批量数据的单元格数组。sec包含IBM安全名称。

Display the dividend history with the associated header information by accessing the structure fielddvd_hist. This field is a cell array that contains one cell array. The nested cell array contains the dividend history data. Access the contents of the nested cell using cell array indexing.

d.DVD_HIST{1}
ans =列1至6'声明日期''ex-date'记录日期''应付日期'股息金额'股息频率'[732246] [732259] [732261] [732261] [732291] [732291] [0.18] [0.18]732155] [732165] [732169] [732200] [0.18]'季度'[732064] [732073] [732077] [732077] [732108] [0.18] [0.18]'Quartion'[731973] [731973] [731973] [731983] [731983] [731983] [731987] [731987]“四分之一”第7列“股息类型”“常规现金”“常规现金”“常规现金”“常规现金”

股息历史数据的第一行是描述每列内容的标题信息。

关闭连接。

close(c)

创建彭博连接。

c = blp;

另外,您可以使用blpsrv或使用彭博b-pipebpipe.

返回IBM的收盘价和股息历史记录,其股息日期为2004年1月1日至2005年1月1日。“ return formattedValue”to'真的'.

security ='IBM US Equity';字段= {'LAST_PRICE','DVD_HIST'};% Closing price and%股息历史领域OVerride = {'dvd_start_dt','dvd_end_dt'};% Dividend start and%结束日期OVerridevalues = {'20040101','20050101'};[d,sec] = getBulkData(c,security,fields,override,overridevalues,...“ return formattedValue”,真正的)
d = DVD_HIST: {{5x7 cell}} LAST_PRICE: {'188.74'} sec = 'IBM US Equity'

dis a structure with two fields. The first fielddvd_histcontains a cell array with the dividend historical data as a cell array. The second fieldlast_price包含一个单元格数,其收盘价为角色向量。sec包含IBM安全名称。

显示收盘价。

d.last_price
ans ='188.74'

Display the dividend history with the associated header information by accessing the structure fielddvd_hist. This field is a cell array that contains one cell array. The nested cell array contains the dividend history data. Access the contents of the nested cell using cell array indexing.

d.DVD_HIST{1}
ans =列1至6'声明日期''ex-date'记录日期''应付日期'股息金额'股息频率'[732246] [732259] [732261] [732261] [732291] [732291] [0.18] [0.18]732155] [732165] [732169] [732200] [0.18]'季度'[732064] [732073] [732077] [732077] [732108] [0.18] [0.18]'Quartion'[731973] [731973] [731973] [731983] [731983] [731983] [731987] [731987]“四分之一”第7列“股息类型”“常规现金”“常规现金”“常规现金”“常规现金”

股息历史数据的第一行是描述每列内容的标题信息。

关闭连接。

close(c)

创建Bloomberg®连接,然后请求股息历史数据。这getbulkdata功能将日期的数据返回约会时间大批。

创建彭博连接。

c = blp;

另外,您可以使用blpsrvor Bloomberg B-PIPE® usingbpipe.

通过设置将数据作为表返回datareturnformat连接对象的属性。如果您不设置此属性,则getbulkdata功能将数据返回作为结构。

Return dates as a约会时间array by setting the数据电视连接对象的属性。In this case, the table contains dates in variables that are约会时间arrays.

c.datareturnformat ='桌子';c.DatetimeType ='datetime';

返回IBM®的股息历史记录。

s ='IBM US Equity';f ='DVD_HIST';%股息历史领域d = getBulkData(c,s,f);

显示表的前三行。

d.dvd_hist {1}(1:3,:)
ans = 3×7 table DeclaredDate ExmDate RecordDate PayableDate DividendAmount DividendFrequency DividendType ____________________ ____________________ ____________________ ____________________ ______________ _________________ ______________ 31-Oct-2017 00:00:00 09-Nov-2017 00:00:00 10-Nov-2017 00:00:00 09-Dec-2017 00:00:00 1.5 'Quarter' 'Regular Cash' 25-Jul-2017 00:00:00 08-Aug-2017 00:00:00 10-Aug-2017 00:00:00 09-Sep-2017 00:00:00 1.5 'Quarter' 'Regular Cash' 25-Apr-2017 00:00:00 08-May-2017 00:00:00 10-May-2017 00:00:00 10-Jun-2017 00:00:00 1.5 'Quarter' 'Regular Cash'

显示三个声明的日期。这DeclaredDatevariable is a约会时间大批。

d.DVD_HIST{1}.DeclaredDate(1:3)
ANS = 3×1 DateTime Array 31-OCT-2017 00:00:00 25-JUL-2017 00:00:00 25-APR-2017 00:00:00

关闭彭博连接。

close(c)

输入参数

全部收缩

彭博连接,指定为使用的连接对象blp,blpsrv, orbpipe.

安全列表,为一个安全性或字符矢量的单元格数组或字符串数​​组的单元数组指定为多个证券的字符阵列。您可以按名称或CUSIP以及有或没有定价源指定安全性。

数据类型:char|细胞|string

彭博数据字段, specified as a character vector, string scalar, cell array of character vectors, or string array. A character vector or string denotes one Bloomberg data field name. A cell array of character vectors or string array denotes multiple Bloomberg data field names. For details about the fields you can specify, see the彭博API开发人员指南使用wapi 彭博终端的选项。

例子:{'last_price';'open'}

数据类型:char|细胞|string

彭博覆盖字段,指定为字符向量,字符串标量,字符矢量的单元格数或字符串数​​组。字符矢量或字符串表示一个彭博覆盖字段名称。字符向量或字符串数​​组的单元格数组表示多个彭博覆盖字段名称。有关您可以指定的字段的详细信息,请参阅彭博API开发人员指南使用wapi 彭博终端的选项。

例子:'END_DT'

数据类型:char|细胞|string

彭博社覆盖场值,指定为字符向量,字符串标量,字符矢量的单元格数或字符串数​​组。字符向量或字符串表示一个彭博覆盖场值。字符向量或字符串阵列的单元格数组表示多个彭博覆盖字段值。使用此字段值过滤彭博数据结果集。

例子:'20100101'

数据类型:char|细胞|string

名称值对参数

Specify optional comma-separated pairs of名称,价值参数。Nameis the argument name and价值是相应的值。Name必须出现在引号中。您可以按任何顺序指定几个名称和值对参数NAME1,Value1,...,Namen,Valuen.

例子:“ return formattedValue”,true

权利标识符,指定为逗号分隔对的收益;nEids'和布尔人。真的adds a name and value for the entitlement identifier (EID) date to the return data.

数据类型:logical

返回格式,指定为逗号分隔对“ return formattedValue”和布尔人。真的强迫所有数据作为数据类型字符向量返回。

数据类型:logical

日期时间格式,指定为逗号分隔对'useUTCTime'和布尔人。真的返回日期和时间值作为协调的通用时间(UTC)和错误的默认为彭博社TZDF 请求者的设置。

数据类型:logical

最新参考数据,指定为逗号分隔对,由'forcedDelay'和布尔人。真的将最新数据返回到交换安全性的延迟期。

数据类型:logical

Output Arguments

全部收缩

Bloomberg data, returned as a structure, table, or timetable. The data type of the Bloomberg data depends on thedatareturnformat数据电视连接对象的属性。有关数据的详细信息,请参阅彭博API开发人员指南使用wapi 彭博终端的选项。

安全列表,作为相应证券的字符向量的单元格数组返回s. The contents ofsec在价值和秩序上相同s. You can return securities with any of the following identifiers:

  • buid

  • cins

  • common

  • cusip

  • isin

  • sedol1

  • sedol2

  • sicovam

  • svm

  • 股票(默认)

  • wpk

在R2014b中引入