getdata
Current SIX Financial Information data
Syntax
Description
Examples
Retrieve Pricing Data for Securities
Retrieve SIX Financial Information pricing data for specified securities.
% Connect to Telekurs. c = tlkrs('US12345','userapid01','userapid10') % Convert specified fields to ID strings. ids = tkfieldtoid(c,{'Bid','Ask','Last'},'market'); % Retrieve data for specified securities. d = getdata(c,{'1758999,149,134','275027,148,184'},ids);
Your output appears as follows:
d = XRF: [1x1 struct] IL: [1x1 struct] I: [1x1 struct] M: [1x1 struct] P: [1x1 struct]
d.I
contains the instrument IDs, and
d.P
contains the pricing data.
View the instrument IDs like this:
d.I.k
ans = '1758999,149,134' '275027,148,184'
View the pricing data field IDs like this:
d.P.k
ans = '33,2,1' '33,3,1' '3,1,1' '33,2,1' '33,3,1' '3,1,1'
And the pricing data like this:
d.P.v
ans = '44.94' '44.95' [] '0.9715' '0.9717' []
Convert field IDs in d.P.k
to field names like
this:
d.P.k = tkidtofield(c,d.P.k,'market')
Load the file @tlkrs/tkfields.mat
for a listing of the
field names (Bid
, Ask
,
Last
) and corresponding IDs.
Input Arguments
c
— connection object
tlkrs
object
Connection object, specified as a tlkrs
object.
s
— security
cell array of character vectors
Security, specified as a cell array of character vectors.
f
— field IDs
cell array of character vectors
Field IDs, specified as a cell array of character vectors.
Version History
Introduced in R2011b
See Also
tlkrs
| history
| timeseries
| tkfieldtoid
| tkidtofield
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- 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)