IQML User Guide

MATLAB connector to DTN IQFeed

Version 2.67

August 16, 2023

Fully compatible with:

Windows, Linux, Mac OS

DTN IQFeed 5.0 - 6.2

MATLAB R2008b - R2023a

© Yair Altman, Octahedron Ltd.

https://UndocumentedMatlab.com/IQML

???

Undocumented Matlab

The engineering choice for professional Matlab solutions

Table of Contents

DISCLAIMER 4

1 Introduction 5

2 Installation and licensing 6

2.1 Installing IQML 6

2.2 Licensing and activation 7

2.3 Switching activated computers 9

2.4 Updating the installed version 9

3 Using IQML 10

3.1 General usage 10

3.2 Common request properties 13

3.3 Blocking & non-blocking modes 13

3.4 Common causes of confusion 14

3.5 Returned data format 17

3.6 Run-time performance 20

4 Querying the latest market data 24

4.1 Snapshot (top of book) quotes 24

4.2 Fundamental information 35

4.3 Interval bars 40

4.4 Market depth (Level 2) 44

4.5 Greeks, fair value, and implied volatility 51

4.6 Market summary data and scanner 56

5 Historical and intra-day data 64

5.1 Daily data 64

5.2 Weekly data 70

5.3 Monthly data 73

5.4 Interval data 76

5.5 Tick data 83

5.6 Market summary data and scanner 89

6 Streaming data 91

6.1 Streaming quotes 91

6.2 Regional updates 98

6.3 Interval bars 102

6.4 Market depth (Level 2) 109

7 News 113

7.1 Configuration 113

7.2 Story headlines 114

7.3 Story text 119

7.4 Story count 121

7.5 Streaming news headlines 123

8 Lookup of symbols and codes 127

8.1 Symbols lookup 127

8.2 Options/futures chain 133

8.3 Markets lookup 139

8.4 Security types lookup 141

8.5 SIC codes lookup 143

8.6 NAICS codes lookup 145

8.7 Trade condition codes lookup 147

9 Connection, administration and other special commands 149

9.1 Connecting & disconnecting from IQFeed 149

9.2 Server time 153

9.3 Client stats 154

9.4 Sending a custom command to IQFeed 158

9.5 Modifying IQFeed’s registry settings 159

10 Attaching user callbacks to IQFeed messages 160

10.1 Processing IQFeed messages in IQML 160

10.2 Run-time performance implications 164

10.3 Usage example – using callbacks to parse options/futures chains 165

10.4 Usage example – using callbacks for realtime quotes GUI updates 166

10.5 Usage example – using callbacks for realtime order-book GUI updates 167

11 Alerts 170

11.1 General Usage 170

11.2 Alert Configuration 172

11.3 Alerts Query 176

11.4 Alert Editing or Deletion 176

12 Messages and logging 177

12.1 IQML messages 177

12.2 IQFeed logging 179

13 Frequently-asked questions (FAQ) 182

14 Troubleshooting 185

15 Professional services 187

15.1 Sample program screenshots 188

15.2 About the author 191

16 Spread the word! 192

Appendix A – online resources 194

Appendix B – change log 195

B.1 Complete change log (functional + documentation) 195

B.2 Functional change log (excluding documentation changes) 214