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.

Workflow for CQG

This diagram shows the functions you can use with CQG® to monitor market price information and submit orders.

To request current, intraday, or historical data:

  1. Create the CQG connection object using cqg.

  2. Define the CQG event handlers.

  3. Connect to CQG using startUp.

  4. Subscribe to a CQG instrument to request real-time data using realtime.

  5. Request intraday data for a security using timeseries.

  6. Request historical data for a security using history.

  7. Close the CQG connection using close or shutDown.

To submit orders to CQG:

  1. Create the CQG connection object using cqg.

  2. Define the CQG event handlers.

  3. Connect to CQG using startUp.

  4. Create the CQG account credentials object.

  5. Subscribe to a CQG instrument to request real-time data using realtime.

  6. Create and submit the order using createOrder.

  7. Close the CQG connection using close or shutDown.

Related Examples

Was this topic helpful?