This sample allows one to specify a symbol to retrieve a snapshot for all available contracts. Supported contract types are future, future options and stock options contracts. Month, year and put/call filters can further be specified for stock options and future options contracts. There is a link to download the sample at the end of this article.
Before you run this sample, you need to have a current Interactive Data client account. If you do not yet have an account, click here to find out about setting up a trial.
To run the sample from a command line, go to the folder in which you unzipped the sample (see attachment below) and enter the following command:
> QuoteChainSample.exe[-h <host>] -u <username> -p <password> [-s <symbol>]
$ export LD_LIBRARY_PATH=./ $ chmod a+x QuoteChainSample $ ./QuoteChainSample [-h <host>] -u <username> -p <password> [-s <symbol>]
|-h||<host>||is the address to use to connect to the Interactive Data Consolidated Feed Network.|
|-u||<username>||is the username for your client (required field)|
|-p||<password>||is the password for your client (required field)|
is a comma separated list of symbols for which to make a chain request. For example: IBM,GE,WFM,O:AAPL7
Note: If you do not enter a value for <host> or <symbols> the sample will user default values.
<username> and <password> must be entered at the command line.