| Datafeed Toolbox | ![]() |
Syntax
data = fetch(Connect, 'Security') data = fetch(Connect, 'Security', 'Fields') data = fetch(Connect, 'Security', 'Date') data = fetch(Connect, 'Security', 'Fields', 'Date') data = fetch(Connect, 'Security', 'FromDate', 'ToDate') data = fetch(Connect, 'Security', 'Fields', 'FromDate', 'ToDate')
data = fetch(Connect, 'Security', 'FromDate', 'ToDate', 'Period')
Arguments
Connect |
Hyperfeed connection object created with the hyperfeed command. |
Security |
A MATLAB string or cell array of strings containing the names of a securities in a format recognizable by the Hyperfeed server. |
|
A MATLAB string or cell array of strings indicating the data fields for which data is to be retrieved. Some possible values are:SymbolLastDateTimeChangeOpenHighLowVolume |
Date |
Date string or serial date number indicating date for the requested data. If today's date is entered, yesterday's data is returned. |
FromDate |
Beginning date for historical data. |
ToDate |
End date for historical data. |
Period |
Period within date range. Period values are: |
Description
data = fetch(Connect, 'Security')
returns data for all fields from Hyperfeed's web site for the indicated securities.
data = fetch(Connect, 'Security', ' returns data for the specified fields.Fields')
data = fetch(Connect, 'Security', 'Date')
returns all security data for the requested date.
data = fetch(Connect, 'Security', ' returns security data for the specified fields on the requested date.Fields', 'Date')
data = fetch(Connect, 'Security', 'FromDate', 'ToDate')
returns security data for the date range FromDate to ToDate.
data = fetch(Connect, 'Security', ' returns security data for the specified fields for the date range Fields', 'FromDate', 'ToDate')
FromDate to ToDate.
data = fetch(Connect, 'Security', 'FromDate', 'ToDate', ' returns security data for the date range Period')
FromDate to ToDate with the indicated period.
Examples
Obtain the closing price for Coca Cola on April 6, 2000.
c = hyperfeed('History'); ClosePrice = fetch(c,'ko','Close','Apr 6 00') ClosePrice = 730582.00 45.75
See Also
close, get, hyperfeed, isconnection (Hyperfeed functions)
| close | get | ![]() |