Modulus Financial Engineering HomeModulus Financial Engineering
NAQ Professional Data Feed API (Level I and Level II)

Getting Started

The Modulus FE ActiveX Data Feed API is an COM object. You must register the control on your machine. 

Skip this step if you installed the Data Feed API using a Windows installer.
Place NAQ.ocx and NAQ.lic in your Windows System directory. Then click Start,  Run and type the following and press OK:
REGSVR32 C:\Winnt\System32\NAQ.ocx

Using the Modulus FE Data API is very straight forward. Simply import the component into your project, place it on a form or dialog, and begin using it. Before using  the component, you must initialize the data feed by calling the Initialize method:

NAQ1.Initialize()

The next step is to login to the NAQ data server with your NAQ username and password, using the Login method:

NAQ1.Login(ServerIP, Username, Password)


NAQ will give you a server IP address, username, and password when you sign up for your RT Trader Pro account.


Click here for a free 14-day RT Trader Pro trial account.

The return codes sent by the ConnectionStatus event will indicate if your login was successful or not. See also StatusCode enumeration.

IMPORTANT NOTES
When using the NAQ.ocx API, you must constantly send a ping to the data server to keep your connection alive. The method for doing this is simply Ping. See the example projects for more details. You should call the Ping method once every 30 seconds.

Always call the CloseSocket method to disconnect from the data server before your program exits to free the socket(s) that were used.

After calling the Login function, your application must wait at least one second after the naqLoginSuccessful message before calling any functions.


 

Copyright © 2001 to 2005 Modulus Financial Engineering, Inc.
Parts of this software are owned and copyright © 2004 by North American Quotations (FRI Corporation).
The NAQ ActiveX API is written by, owned by, and copyrighted by Modulus Financial Engineering, Inc. for North American Quotations.
Address all technical support questions to: support@modulusfe.com
Address all subscription billing questions to: sales@naq.com