Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

marketdepth

IQFEED asynchronous level 2 data

Syntax

marketdepth(Q,S)
marketdepth(Q,S,elistener,ecallback)

Description

marketdepth(Q,S) returns asynchronous level 2 data using the default socket listener and event handler.

marketdepth(Q,S,elistener,ecallback) returns asynchronous level 2 data using an explicitly defined socket listener and event handler.

Arguments

Q

IQFEED® connection handle created using iqf.

S

S is specified as a character vector for a single security or a cell array of character vectors for multiple securities.

elistener

Function handle that specifies the function used to listen for data on the level 2 port.

ecallback

Function handle that specifies the function that processes data event.

Examples

Return level 2 data using the default socket listener and event handler and display the results in the MATLAB® workspace in the variable IQFeedLevelTwoData.

marketdepth(q,'ABC')
openvar('IQFeedLevelTwoData')

Initiate a watch on the security ABC for level 2 data using the function handles iqfeedlistener and iqfeedeventhandler. Display the results in the MATLAB workspace in the variable IQFeedLevelTwoData.

marketdepth(q,'ABC',@iqfeedmarketdepthlistener,@iqfeedmarketdeptheventhandler)
openvar('IQFeedLevelTwoData')

Related Examples

See Also

| | | |

Was this topic helpful?