getdata
Retrieve Money.Net current data
Syntax
Description
Examples
Create Money.Net connection c using
a user name and password.
username = 'user@company.com'; pwd = '999999'; c = moneynet(username,pwd);
Retrieve Money.Net current data d for the symbol
IBM® using the Money.Net connection c. Specify
the Money.Net data fields f for ask and bid price.
symbol = 'IBM'; f = {'Ask','Bid'}; d = getdata(c,symbol,f);
Display Money.Net current data.
d
d =
Symbol Ask Bid
______ ______ ______
'IBM' 145.00 143.85d is a table that contains the columns for symbol, ask
price, and bid price. The row contains the Money.Net data values for each
column.
Close the Money.Net connection.
close(c)
Create Money.Net connection c using
a user name and password.
username = 'user@company.com'; pwd = '999999'; c = moneynet(username,pwd);
Retrieve Money.Net current data d for the
symbols list that contains IBM, Google®, and Yahoo!® using the Money.Net connection c. Specify
the Money.Net data fields f for ask and bid price.
symbols = {'IBM','GOOG','YHOO'};
f = {'Ask','Bid'};
d = getdata(c,symbols,f);Display Money.Net current data.
d
d =
Symbol Ask Bid
______ ______ ______
'IBM' 145.00 143.85
'GOOG' 700.50 700.05
'YHOO' 37.50 37.41d is a table that contains the columns for symbol, ask
price, and bid price. The rows contains the Money.Net data values for each
symbol in the symbol list.
Close the Money.Net connection.
close(c)
Input Arguments
Money.Net connection, specified as a connection object created
using moneynet.
Money.Net 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.
Example: 'IBM'
Example: {'IBM','GOOG'}
Data Types: char | cell | string
Money.Net 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.
Specify the field by using the single character or the field definition. For example, to
specify the highest price for the equity during the current trading day, use
a single character "H" or the corresponding field
definition "High". When using the field definition, the
software ignores the case of the definition.
Example: "High"
Example: ["High" "Low"]
Data Types: char | cell | string
Output Arguments
Version History
Introduced in R2016b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)