IQFEED asynchronous level 1 data
realtime(Q,S)
realtime(Q,S,F)
realtime(Q,S,elistener,ecallback)
realtime(Q,S)
returns asynchronous level 1 data using the current
update field list, default socket listener, and event handler.
realtime(Q,S,F)
returns asynchronous level 1 data for a specified
field list using the default socket listener and event handler.
realtime(Q,S,elistener,ecallback)
returns asynchronous level 1
data using an explicitly defined socket listener and event handler. For example, you can
return this data for security ABC
using the function handles
iqfeedlistener
and iqfeedeventhandler
.
realtime(q,'ABC', ... {'Symbol','Exchange ID','Last','Change','Incremental Volume'}, ... @iqfeedlistener,@iqfeedeventhandler)
Q |
IQFEED® connection handle created using |
S |
|
F |
|
elistener |
Function handle that specifies the function used to listen for data on the IQFEED Lookup port. |
ecallback |
Function handle that specifies the function that processes data event. |
Set the data precision. Setting the connection handle property
Protocol
determines the date format for the return data based
on the IQFEED version specified by the protocol.
q.Protocol = 5.1 q = iqf with properties: User: 'username' Password: 'password' Port: {[1x1 System.Net.Sockets.Socket]} PortName: {'Admin'} Protocol: 5.1000
Return level 1 data for security ABC using the default socket listener and event
handler. Display the results in the MATLAB® workspace variable IQFeedLevelOneData
.
realtime(q,'ABC') openvar('IQFeedLevelOneData')
Return level 1 data for security ABC using a field list and the defaults for the
socket listener and event handler. Display the results in the MATLAB workspace variable IQFeedLevelOneData
.
realtime(q,'ABC', ... {'Symbol','Exchange ID','Last','Change','Incremental Volume'}) openvar('IQFeedLevelOneData')
close
| history
| iqf
| marketdepth
| timeseries