主要内容

getdata

获取金钱。网current data

描述

例子

d= getdata (c符号f返回钱。净数据d使用金钱。网络连接c为了那些符号和钱。网领域f

例子

全部折叠

创造货币。网connectionc使用用户名和密码。

用户名=“user@company.com”;pwd =“999999”;C = moneynet(用户名,pwd);

获取金钱。网current datadIBM的标志®使用金钱。网络连接c.指定资金。净数据字段f询价和买入价。

符号=“IBM”;F = {“问”“收购”};D = getdata(c,symbol,f);

显示的钱。网current data.

d
d =符号问报价  ______ ______ ______ ' IBM的145.00 - 143.85

d是一个表,其中包含符号、询价和出价的列。行包含Money。净数据values for each column.

关闭货币。网络连接。

关闭(c)

创造货币。网connectionc使用用户名和密码。

用户名=“user@company.com”;pwd =“999999”;C = moneynet(用户名,pwd);

获取金钱。网current datad符号包含IBM、谷歌的列表®和雅虎!®使用金钱。网络连接c.指定资金。净数据字段f询价和买入价。

符号= {“IBM”“google”“yahoo”};F = {“问”“收购”};D = getdata(c,symbols,f);

显示的钱。网current data.

d
d =符号问报价  ______ ______ ______ ' IBM“145.00 - 143.85”google yahoo的37.50 - 37.41 700.50 - 700.05

d是一个表,其中包含符号、询价和出价的列。每行包含钱。净数据values for each symbol in the symbol list.

关闭货币。网络连接。

关闭(c)

输入参数

全部折叠

钱。网connection, specified as a connection object created usingmoneynet

钱。网symbol list, specified as a character vector, cell array of character vectors, string scalar, or a string array. To specify one symbol, use a character vector or string scalar. To specify multiple symbols, use a cell array of character vectors or a string array.

例子:“IBM”

例子:{“IBM”、“google”}

数据类型:字符|细胞|字符串

钱。网data field list, specified as a character vector, cell array of character vectors, string scalar, or a string array. To specify one field, use a character vector or string scalar. To specify multiple fields, use a cell array of character vectors or a string array.

通过使用单个字符或字段定义指定字段。例如,要指定当前交易日内股票的最高价格,请使用单个字符“H”或者对应的字段定义“高”.当使用字段定义时,软件会忽略定义的大小写。查看有效货币的列表。网领域and field definitions, see the钱。网API Documentation

例子:“高”

例子:(“高”“低”)

数据类型:字符|细胞|字符串

输出参数

全部折叠

钱。网data, returned as a table. Each row corresponds to the符号列表。每一列都对应字段列表f

版本历史

在R2016b中引入