|
5 | 5 | % |
6 | 6 | % Inputs: |
7 | 7 | % |
8 | | -% action (String) - one of: license,version,update,revert,doc,quotes,intervalbars,fundamental,greeks,news,history,summary,lookup,alert,chain,disconnect,reconnect,time,stats,command,log,marketdepth,regional |
| 8 | +% action (String) - one of: license,version,update,revert,doc,quotes,intervalbars,fundamental,greeks,news,history,summary,lookup,alert,chain,disconnect,reconnect,time,stats,command,log,marketdepth,regional,registry |
9 | 9 | % |
10 | 10 | % parameters - Matlab struct or XLS filename or parameter name/value pairs with the following optional parameters: |
11 | 11 | % |
12 | 12 | % Connection: |
13 | 13 | % Username (String) the login ID for connecting to IQFeed via the client |
14 | 14 | % Password (String) the password for connecting to IQFeed via the client |
| 15 | +% Protocol (Number) default=latest; the IQFeed API protocol number to be used |
15 | 16 | % |
16 | 17 | % Message processing (also see Logging section below): |
17 | 18 | % Timeout (Number) default=5; max # of seconds to wait for a response to a blocking query (0=infinite) |
18 | 19 | % Debug (Logical) default=0 or false; if true or 1, extra data will be displayed in Matlab console |
19 | | -% AddPortStats (Logical) default=0 or false; if true or 1, extra port stats are streamed and returned when Action=stats |
| 20 | +% AddPortStats (Logical) default=0 or false; if true or 1, extra port stats are streamed and reported when Action=stats |
20 | 21 | % MsgParsingLevel (Integer) default=2; amount of parsing for incoming IQFeed messages (0=minimal, 1=partial, 2=maximal) |
21 | 22 | % ProcessFunc (function handle or struct) default=[]; if non-empty, this function is invoked upon every IQFeed message |
22 | 23 | % RaiseErrorMsgs (Logical) default=1 or true; if true or 1, IQFeed error messages raise a Matlab error in blocking query |
|
28 | 29 | % NumOfEvents (Integer) default=inf; max # of IQFeed messages to process in streaming (non-blocking) data mode |
29 | 30 | % MaxItems (Integer) default=1; size of the reported buffer accumulating the latest streaming quotes/ticks |
30 | 31 | % Fields (String or cell-array) list of data fields to be reported by IQFeed (default: 16 fields) |
| 32 | +% ClearBuffer (Logical) default=0 or false; if true or 1, internal cyclic quotes buffer is cleared when data is returned |
31 | 33 | % |
32 | 34 | % Interval bars: |
33 | 35 | % Symbols (String :-delimited or cell-array) default=''; e.g., '@VX#' or 'IBM:GOOG' or {'IBM','GOOG'} |
34 | 36 | % NumOfEvents (Integer) default=inf; max # of IQFeed messages to process in streaming (non-blocking) data mode |
35 | 37 | % MaxItems (Integer) default=100; size of the reported buffer accumulating the latest streaming interval bars |
36 | | -% IntervalSize (Integer) default=60; size of interval bars in specified or default units (seconds) |
37 | | -% IntervalType (String) default='secs'; one of 'secs','volume','trades' |
38 | 38 | % MaxDays (String) default=1; max number of days to be retrieved |
| 39 | +% IntervalType (String) default='secs'; one of 'secs','volume','trades' |
| 40 | +% IntervalSize (Integer) default=60; size of interval bars in specified or default units (seconds) |
39 | 41 | % BeginFilterTime (String) default='00:00:00'; earliest bar time |
40 | 42 | % EndFilterTime (String) default='23:59:59'; latest bar time |
41 | 43 | % BeginDateTime (Integer or String) default=''; earliest bar date |
42 | 44 | % |
| 45 | +% Market depth: |
| 46 | +% Symbols (String :-delimited or cell-array) default=''; e.g., '@VX#' or 'IBM:GOOG' or {'IBM','GOOG'} |
| 47 | +% NumOfEvents (Integer) default=inf; max # of IQFeed messages to process in streaming (non-blocking) data mode |
| 48 | +% IncludeEmptyQuotes (Logical) default=0 or false; if true or 1, Level 2 quotes with no Bid/Ask will also be reported |
| 49 | +% |
| 50 | +% Greeks: |
| 51 | +% Symbol (String) default=''; e.g., 'IBM1814L116' |
| 52 | +% UnderlyingSymbol (String) default=''; e.g., 'IBM' |
| 53 | +% Side (String) default=''; either 'Call' or 'Put' |
| 54 | +% HistoricVolatility (Number) default=-1; underlying asset's volatility (%) |
| 55 | +% UseImpliedVolatility (Logical) default=0 or false; if true or 1, the implied (not historic) volatility will be used to calculate Greeks |
| 56 | +% RiskFreeRate (Number) default=0; domestic risk-free rate (%) |
| 57 | +% DividendsYield (Number) default=0; underlying asset's dividends yield (%) |
| 58 | +% DaysToExpiration (Number) default=-1; days until the contract expires |
| 59 | +% AnnualFactor (Number) default=365; used to de-annualize Theta,Charm,Veta,Color |
| 60 | +% |
| 61 | +% Summary: |
| 62 | +% DataType (String) default='snapshot'; one of 'snapshot','fundamental','top' |
| 63 | +% Exchange (String) default='NYSE'; one of 'NYSE','NASDAQ','AMEX','CBOT',... |
| 64 | +% SecType (String) default='equity'; one of 'equity','bond','mutual fund',... |
| 65 | +% Date (Integer or String) default=now; end-of-day (or latest) data for this date (only!) will be fetched |
| 66 | +% ReportEmptyFields (Logical) default=0 or false; if true or 1, empty fields will be reported |
| 67 | +% Filter (String or cell-array) list of criteria to filter the returned data |
| 68 | +% |
43 | 69 | % History: |
44 | 70 | % DataType (String) default='day'; one of 'day','week','month','interval','ticks' |
45 | 71 | % Symbol (String) default=''; e.g., '@VX#' |
46 | 72 | % DataDirection (Integer) default=1; either 1 (oldest-to-newest, default) or -1 (newest-to-oldest) |
47 | 73 | % MaxItems (Integer) default=100; returns up to the specified # of bars |
48 | 74 | % BeginDate (Integer or String) default=[]; earliest bar date (only relevant if DataType=day/week/month) |
49 | 75 | % EndDate (Integer or String) default=[]; latest bar date (only relevant if DataType=day) |
50 | | -% IntervalSize (Integer) default=60; size of interval bars in seconds (only relevant if DataType=interval) |
51 | 76 | % IntervalType (String) default='secs'; one of secs,volume,ticks (only relevant if DataType=interval) |
| 77 | +% IntervalSize (Integer) default=60; size of interval bars in seconds (only relevant if DataType=interval) |
| 78 | +% LabelAtBeginning(Logical) default=0 or false; if true or 1, 11:17:41 data is reported in '11:17' bar (otherwise: '11:18') |
52 | 79 | % Days (Integer) default=1; # of calendar days to return, -1=all (only relevant if DataType=interval or ticks) |
53 | | -% BeginDateTime (Integer or String) default=''; earliest bar date (only relevant if DataType=interval or ticks) |
54 | | -% EndDateTime (Integer or String) default=''; latest bar date (only relevant if DataType=interval or ticks) |
55 | 80 | % BeginFilterTime (String) default='00:00:00'; earliest bar time (only relevant if DataType=interval or ticks) |
56 | 81 | % EndFilterTime (String) default='23:59:59'; latest bar time (only relevant if DataType=interval or ticks) |
57 | | -% |
58 | | -% Summary: |
59 | | -% DataType (String) default='snapshot'; one of 'snapshot','fundamental','top' |
60 | | -% SecType (String) default='equity'; one of 'equity','bond','mutual fund',... |
61 | | -% Exchange (String) default='NYSE'; one of 'NYSE','NASDAQ','AMEX','CBOT',... |
62 | | -% ReportEmptyFields (Logical) default=0 or false; if true or 1, empty fields will be reported |
63 | | -% Filter (String or cell-array) list of criteria to filter the returned data |
64 | | -% Date (Integer or String) default=now; end-of-day (or latest) data for this date (only!) will be fetched |
65 | | -% |
66 | | -% Greeks: |
67 | | -% Symbol (String) default=''; e.g., 'IBM1814L116' |
68 | | -% UnderlyingSymbol (String) default=''; e.g., 'IBM' |
69 | | -% HistoricVolatility (Number) default=-1; underlying asset's volatility (%) |
70 | | -% RiskFreeRate (Number) default=0; domestic risk-free rate (%) |
71 | | -% DividendsYield (Number) default=0; underlying asset's dividends yield (%) |
72 | | -% Side (String) default=''; either 'Call' or 'Put' |
73 | | -% DaysToExpiration (Number) default=-1; days until the contract expires |
74 | | -% AnnualFactor (Number) default=365; used to de-annualize Theta,Charm,Veta,Color |
| 82 | +% BeginDateTime (Integer or String) default=''; earliest bar date (only relevant if DataType=interval or ticks) |
| 83 | +% EndDateTime (Integer or String) default=''; latest bar date (only relevant if DataType=interval or ticks) |
75 | 84 | % |
76 | 85 | % News: |
77 | 86 | % DataType (String) default='config'; one of 'config','headlines','story' |
|
80 | 89 | % Date (Integer or String) default=[]; Date at which the news headline was published (or all dates, if empty) |
81 | 90 | % NumOfEvents (Integer) default=inf; max # of headlines to process in streaming (non-blocking) data mode |
82 | 91 | % MaxItems (Integer) default=inf; max # of headlines to be reported by IQFeed |
| 92 | +% GetStory (Logical) default=false; if true or 1, automatically fetch the full story text for each headline |
83 | 93 | % ID (Integer) default=[]; news story ID |
84 | 94 | % BeginDate (Integer or String) default=[]; earliest date at which the news items were published |
85 | 95 | % EndDate (Integer or String) default=[]; latest date at which the news items were published |
86 | | -% GetStory (Logical) default=false; if true or 1, automatically fetch the full story text for each headline |
87 | 96 | % |
88 | 97 | % Lookup: |
89 | 98 | % DataType (String) default='symbols'; one of 'symbols','markets','sectypes','sic','naics','conditions' |
|
94 | 103 | % Markets (Integers or Strings) default=[]; Limits results to those in the specified market (exchange) name(s) or code(s) |
95 | 104 | % SecTypes (Integers or Strings) default=[]; Limits results to those with the specified security type(s) |
96 | 105 | % |
97 | | -% Alert: |
98 | | -% Symbols (String :-delimited or cell-array) default=''; e.g., 'FB' or 'IBM:GOOG' or {'IBM','GOOG'} |
99 | | -% Trigger (String) alert trigger condition; composed of data type, parameter, operator, value (e.g. 'quote bid > 7') (case insensitive) |
100 | | -% AlertAction (String or function handle) default='display'; one of 'display','popup','email',function handle |
101 | | -% NumOfEvents (Integer) default=1; max # of times to trigger the alert |
102 | | -% AlertID (Numeric) the unique ID number assigned to each alert created, used for querying/editing/deleting existing alert |
103 | | -% GetStory (Logical) default=true; if true or 1, automatically fetch the full story (not just headline) of news alerts when AlertAction='email'/callback |
104 | | -% StartStream (Logical) default=false; if true or 1, automatically start data streaming |
105 | | -% EmailRecipients (String :/,-delimited or cell-array of Strings); only relevant when AlertAction='email' |
106 | | -% SmtpEmail (String) default='[email protected]'; sender address of email alerts. Only relevant if AlertAction='email' |
107 | | -% SmtpServer (String) default='smtp.gmail.com'; sender SMTP server. Only relevant if AlertAction='email', SmtpEmail~=default |
108 | | -% SmtpPassword (String) sender email password. Only relevant if AlertAction='email' and SmtpEmail~=default |
109 | | -% |
110 | 106 | % Chain: |
111 | 107 | % Symbol (String) default=''; e.g., 'GOOG' |
112 | 108 | % DataType (String) default='options'; one of 'options','futures','foptions','spreads' |
|
121 | 117 | % NumInMoney (Integer) default=[]; only report this number of options in the money; only relevant if DataType='options'. |
122 | 118 | % NumOutOfMoney (Integer) default=[]; only report this number of options out of money; only relevant if DataType='options'. |
123 | 119 | % |
| 120 | +% Alert: |
| 121 | +% Symbols (String :-delimited or cell-array) default=''; e.g., 'FB' or 'IBM:GOOG' or {'IBM','GOOG'} |
| 122 | +% Trigger (String) alert trigger condition; composed of data type, parameter, operator, value (e.g. 'quote bid > 7') (case insensitive) |
| 123 | +% AlertAction (String or function handle) default='display'; one of 'display','popup','email',function handle |
| 124 | +% NumOfEvents (Integer) default=1; max # of times to trigger the alert |
| 125 | +% AlertID (Numeric) the unique ID number assigned to each alert created, used for querying/editing/deleting existing alert |
| 126 | +% GetStory (Logical) default=true; if true or 1, automatically fetch the full story (not just headline) of news alerts when AlertAction='email'/callback |
| 127 | +% StartStream (Logical) default=false; if true or 1, automatically start data streaming |
| 128 | +% EmailRecipients (String :/,-delimited or cell-array of Strings); only relevant when AlertAction='email' |
| 129 | +% SmtpEmail (String) default='[email protected]'; sender address of email alerts. Only relevant if AlertAction='email' |
| 130 | +% SmtpServer (String) default='smtp.gmail.com'; sender SMTP server. Only relevant if AlertAction='email', SmtpEmail~=default |
| 131 | +% SmtpPassword (String) sender email password. Only relevant if AlertAction='email' and SmtpEmail~=default |
| 132 | +% |
124 | 133 | % Custom IQFeed command: |
125 | 134 | % String (String) default=''; command to be sent to IQFeed |
126 | 135 | % PortName (String) default='Level1'; one of 'Level1','Level2','Admin' |
| 136 | +% ProcessFunc (Function handle) custom user callback function to process incoming IQFeed data messages |
127 | 137 | % |
128 | 138 | % Logging: |
129 | 139 | % Path (String) default=''; Path of folder containing the log file |
|
0 commit comments