Download Datafeed Toolbox User's Guide
Transcript
fetch
d = fetch(c,s,f,fromdate,todate) returns security data for the date range
fromdate through todate.
d = fetch(c,s,f,fromdate,todate,period) returns security data with the
indicated period.
Examples
Retrieve Data for a Single Security
Connect to Yahoo! Finance.
c = yahoo;
Obtain the security data for IBM.
d = fetch(c,'IBM')
d =
Symbol:
Last:
Date:
Time:
Change:
Open:
High:
Low:
Volume:
{'IBM'}
173.84
735529.00
0.42
0.98
173.23
173.84
172.95
1132526.00
fetch returns a structure with the security name, last price, date, time, change, open
price, high price, low price, and volume.
Close Yahoo! connection.
close(c)
Retrieve Data on a Specified Date
Connect to Yahoo! Finance.
c = yahoo;
5-367