CQG Trading Platform Service
- What is Included
- Setup Instructions
- CQG Account Requirements
- Market Data Authorizations for Symbols/Exchanges
- Common Error Messages
- CQG Symbol Format
- CQG Exchange Traded Strategies/Spreads Symbol Format
- Historical Price Data
- Solving CQG Market Data Feed Problems
- Frequent Server Disconnections when Using CQG
- CQG Trading Account Numbers
- CQG Market Depth Data
- Solving Contract ID Mapping Error when Submitting Order
- Technical Support Policy Regarding CQG Market Data
- CQG Demo Accounts Not Supported
Information about Teton Order Routing Service versus CQG.
Notice: Sierra Chart is asking current and potential CQG users who are trading the CME Group of markets to use the Teton Order Routing Service instead of CQG. You will have a superior level of service and safety with Teton and no transaction fees! The service has superior functionality, risk management, and connectivity as compared to CQG. Server-side bracket orders are also supported with the Teton Order Routing Service, unlike with CQG. There are no transaction fees unlike the .10 USD per contract fill fee from CQG. And no monthly connection fee.
With the CQG Trading platform service you are able to chart and trade futures for many exchanges in the world.
Refer to the supported CQG exchange list for the exchanges that you can trade on.
When using CQG, CME Group data and EUREX data is only provided through the Denali Exchange Data Feed. Sierra Chart does not support data from these exchanges from CQG.
CQG demo accounts are not supported, only live accounts. For simulated trading you need to use the Sierra Chart Simulated Trading Service.
Effective May 15, 2022, Sierra Chart Service Package 10 or higher is required to use CQG.
What is Included
- Supported Exchanges: Refer to the supported CQG exchange list.
- Streaming Real-Time Data: For CME Group and EUREX only provided when using the Denali Exchange Data Feed. Market data from these exchanges is not supported from CQG. For other exchanges you need to use market data from CQG.
- Historical Intraday Data: For CME Group and EUREX only provided when using the Denali Exchange Data Feed. Market data from these exchanges is not supported from CQG. For other exchanges you need to use market data from CQG.
- Historical Daily Data: For CME Group and EUREX only provided when using the Denali Exchange Data Feed. Market data from these exchanges is not supported from CQG. For other exchanges you need to use market data from CQG.
- Historical BidVolume and AskVolume: For CME Group and EUREX only provided when using the Denali Exchange Data Feed. Market data from these exchanges is not supported from CQG. For other exchanges you need to use market data from CQG.
- Market Depth Data: For CME Group and EUREX only provided when using the Denali Exchange Data Feed. Market data from these exchanges is not supported from CQG. For other exchanges you need to use market data from CQG.
- Live Trading Services: Yes.
- Simulated Trading: Yes. Only through Sierra Chart Trade Simulation Mode.
- Order Types Supported: All including Market if Touched.
- Server Managed OCO (Order Cancels Order): Yes. Server side OCO orders are always enabled.
However, once one of the OCO orders partially fills the other side will be fully canceled. So if the order quantities are different for the two orders in the OCO group, this creates a problem where the other side of the OCO group gets canceled instead of having a remaining working quantity. To have the OCO orders managed as expected, where the other side of the OCO order when there is a fill of one side, is reduced in quantity and only canceled if there is no longer a remaining quantity, it is necessary to use the Teton Order Routing Service.
- Server Managed Bracket Orders: No. Support has been removed as of version 1819 due to unexpected behavior with this order type on CQG. For Server Managed Bracket orders, it is necessary that you use the Teton Order Routing Service instead of CQG.
This is actually one of the strongest reasons why Sierra Chart recommends using the Teton Order Routing Service instead of CQG, if you are trading CME Group. When server-side bracket orders, are not supported, this makes order handling less safe.
- Automated Trading (applies to Live or Simulated): Yes.
- Historical Order Fills from Trading Server: Yes. Current day only and clears at the end of the trading day. For at least 1 Year of order fill history, use the Teton Order Routing Service.
- Efficient Market Data with Processing on Background Thread: No. For support for this you need to use the Denali Exchange Data Feed.
- Processing of Historical Downloaded Data on Background Thread: No. For support for this you need to use the Denali Exchange Data Feed.
- CQG demo accounts are not supported, only live accounts. For simulated trading you need to use the Sierra Chart Simulated Trading Service or Trade Simulation Mode. In this case stop here.
- In order to use the CQG Trading Platform service, you must have an account with a broker or clearing firm supporting CQG.
Sierra Chart strongly recommends users do not use CQG and instead use Teton Order Routing if you are trading on the CME Group of markets.
- Your broker will need to set you up with an account on the CQG system. Your broker will then provide you with the necessary CQG Username and Password. You will need that from them before you can proceed.
- If you are trading on the CME Group or EUREX exchanges, then your broker must not authorize your CQG account for market data for these exchanges since that is not supported by Sierra Chart. This market data can only come from the Denali Exchange Data Feed.
In the case of EUREX data, refer to EUREX Historical and Real-time Data.
- Make sure your broker has configured your CQG account with the necessary Product Enablements. This is essential to be able to connect.
- Update Sierra Chart to the current version following the Fast Update instructions.
- Go to Sierra Chart. Select Global Settings >> Data/Trade Service Settings on the menu.
- In the Current Selected Service list box, select the CQG Web API [trading] service name from the list.
- In the Service Settings >> Username box enter your CQG trading account username. In the Service Settings >> Password box enter your CQG trading account password. These are case sensitive! Make certain you enter them exactly as provided by your broker/trading service.
- Press OK to close the Data/Trade Service Settings window.
- To connect to the data and trading servers, select File >> Connect to Data Feed on the menu.
- If the Window >> Message Log window opens and displays messages indicating there was an error connecting to the CQG Trading service, then select File >> Disconnect to prevent further connection attempts. Carefully review the setup steps above again.
Refer to the Common Error Messages section for help with what to do for each known error message.
If there is some other message displayed in the Message Log, then in most cases it is a message from the CQG system. You need to read what it says and contact your broker/trading service about it. The message should be self-explanatory. If not, then have your broker/trading service contact CQG for interpretation of that particular message.
After checking the connection settings in the Global Settings >> Data/Trade Service Settings window and your CQG account enablements through your Trading service, try connecting to the data and trading servers again by selecting File >> Connect to Data Feed on the menu.
If there still is an error connecting, then review help topic 1.5.
- To open a Historical Chart, an Intraday Chart or a Trading DOM, select File >> Find Symbol on the menu. Locate the symbol in the lists and press the appropriate button. If you do not see the symbol that you need to use listed, contact Sierra Chart support so that we can add it for you.
If you do not see any symbols listed in the Find Symbol window, then select Global Settings >> Symbol Settings >> Update From Server. Wait for the symbol list to update and then press OK and try opening the Find Symbol window again.
- For a complete list of CQG symbols, refer to the CQG Tradable Symbols XLSX.
- Note: When performing trading, the Trade Account in the list of accounts on the Trade Window, may be different than your actual Trade Account identifier.
- Continue with step number 3 on the Getting Started documentation page.
CQG Account Requirements
To use Sierra Chart with CQG requires that you have a CQG account which has the following enablement: The Sierra Chart Connection Mode with the SierraChartData private label. This is another reason why we do not recommend CQG! Too much complexity with usage and cost.
CQG only allows one connection to the CQG system per CQG username at a time. The solution to this is to use the Teton Order Routing Service instead of CQG.
Market Data Authorizations for Symbols/Exchanges
To receive streaming real-time data from the CQG Trading Platform service for a particular symbol requires that your CQG Trading account is authorized for the exchange that the symbol trades on.
However, in the case of CME, CBOT, NYMEX, COMEX, EUREX exchanges, market data can only come from the Denali Exchange Data Feed (set up instructions are on this linked page). Sierra Chart does not support market data from CQG for these exchanges. The Denali Data Feed does integrate to the CQG Trading platform service and you can still trade on CQG when using the Denali Data Feed.
If you will be using the CQG data feed, it is necessary to contact your Trading service and have them authorize your CQG account for the exchanges that you require but not for CME, CBOT, NYMEX, COMEX, EUREX.
An example message you will see in the Sierra Chart Window >> Message Log is the following which indicates your CQG trading account is not authorized for the particular exchange the symbol trades on:
CQG FIX Trading | Market data subscription for [symbol] was unsuccessful. Text: Real-time data for instrument [symbol] (corresponding to ID = 1) are not allowed.
You will also see Symbol is Unknown displayed on the chart for 30 seconds when a Symbol is not authorized on your CQG trading account.
After your account has been authorized for the exchange or exchanges for the symbol or symbols that you want to follow, and you have set your correct CQG Username and Password in Global Settings >> Data/Trade Service Settings, then follow the procedure to reconnect to the data feed.
Common Error Messages
This section lists common error messages you may receive in the Sierra Chart Message Log (Window >> Message Log) or Trade Service Log (Trade >> Trade Service Log) relating to CQG Trading.
- If there is a message in the Window >> Message Log indicating a connection error and you are using a CQG demo account, then those are not supported by Sierra Chart. Refer to CQG Demo Accounts Not Supported.
CQG WebAPI | Market data logon unsuccessful. Server message: Unknown client application.
If you receive the above message in the Message Log, then contact your Trading service and refer them to the CQG Account Requirements section for what needs to be enabled on your CQG account in order to be able to connect.
CQG WebAPI | Logon unsuccessful. Server message: Username or password is incorrect.
If you receive any of the above messages in the Window >> Message Log or in the pop-up message after connecting to an external service when there is an error connecting, then check the Username and Password in Global Settings >> Data/Trade Service Settings >> Service Settings and make sure they are correct.
These need to be set to your CQG provided Username and Password.
Contact your broker/trading service to find out what your CQG Username and Password are if you do not know.
Sierra Chart support will not know what they are. These are different than your Sierra Chart Account Name and Password.
Press OK to close the Data/Trade Service Settings window. Try connecting again with File >> Connect to Data Feed.
For complete setup instructions, refer to Setup Instructions.
Information in this section no longer relevant.
CQG Trading FIX: Received a Logout message. Text = Too many logon attempts. Please contact your FCM.
The above message, "Too many logon attempts. Please contact your FCM." means there have been too many connection attempts to the CQG FIX server and further connections are being blocked. Follow through the instructions at step 4 in the Setup Instructions and reenter your Username and Password to make sure they are correct. If you are not sure what they are, contact your broker and get your current CQG Username and Password and reenter them into Global Settings >> Data/Trade Service Settings.
Connect again to the server with File >> Connect to Data Feed. If you continue to get the message "Too many logon attempts.", contact your broker and see if they need to unlock your account.
CQG WebAPI | Market data logon unsuccessful. Server message: Trader is not enabled to use SierraChartData. Please contact your FCM.
If you encounter the above message, you need to contact your broker/trading service and have them enable the Sierra Chart Connection Mode with the SierraChartData private label to be able to connect to the CQG Web API. For additional details, refer to CQG Account Requirements.
However, we strongly recommend instead of using CQG if you are trading the CME Group of markets, use the Teton Order Routing Service for a superior level of service in multiple ways. And use a broker supporting the service.
Logon rate has exceeded the allowable limit 20 logins per 5 minutes. Contact Customer Support for assistance.
This message is from CQG. When you see this message, select File >> Disconnect. Wait 5 minutes. And then try connecting again.
If there is another error after connecting, see if that error message is listed in this section here and take the appropriate steps to resolve.
Text: Order Action rate exceeded. Order Modification failed. Please call CQG.
A message containing the above text can be displayed in the Trade Service Log when there are too many order actions (new orders, order modifications, or order cancellations) occurring within too short of a time period. You need to contact CQG and have them increase the allowed order action rate for your account. This message comes from CQG.
CQG WebAPI | Market data logon unsuccessful. Server message: Trade routing is not available now. Contact customer support for assistance.
This message in the Message Log or displayed in the Connection Error pop up box, is an error from CQG, indicating that you cannot connect to the CQG trading server because it is not possible to route orders at the time this message is received.
We cannot provide any further help with this. You need to contact your broker about this if it is unexpected. Certainly this message can be expected to be received over the weekend and before Sunday evening.
CQG WebAPI | Logon unsuccessful. Server message: Your logon is disabled. Contact your FCM.
This means your broker, has disabled your connection to CQG. You need to contact your broker for help with this.
In the meantime:
To access historical and streaming market data independent from your Trading service (CQG), follow these instructions.
Set Global Settings >> Data/Trade Service Settings >> Current Selected Service to SC Data-All Services.
Translate the symbols in your Chartbooks and symbols elsewhere in Sierra Chart using the Edit >> Translate Symbols to Current Service command.
You can then use the data provided by Sierra Chart independent of your trading service.
CQG Symbol Format
The symbols used with the CQG system need to be formatted as shown below.
Refer to the CQG Tradable Symbols XLSX document for the available symbols.
|Futures||F.[commodity prefix].[instrument symbol][month code] [two-digit year code]|
|Relative Daily Future||F.[commodity prefix].[instrument symbol]|
|Options||[C or P].[commodity prefix].[instrument symbol][month code][twodigit year code][strike price]|
|Fixed Income||T.[commodity prefix].[instrument symbol]|
|Cash and Currency||X.[commodity prefix].[instrument symbol]|
|Exchange-Traded Spreads||The [instrument symbol] should include the type of strategy and strategy leg gap without additional periods. See: http://www.cqg.com/Docs/ExchangeTradedStrategies.pdf|
The commodity prefix is usually US. You can confirm the prefix using Symbol Search in CQG IC. Some exceptions are stocks on the Australian Stock Exchange (AU), the Bombay Stock Exchange (IN), and German Equities (DE), for example.
The most common symbols are listed in File >> Find Symbol. If the symbol is not listed, then just simply manually enter it in the Selected Symbol box and open a chart.
CQG Exchange Traded Strategies/Spreads Symbol Format
Sierra Chart supports CQG exchange traded strategy and spread symbols. It is necessary to use the standard CQG format for these.
The format is described in the Symbology for Exchange-Traded Strategies PDF document.
Once the correct symbol format is determined, add F.US. in front of it. Example: F.US.ZSES4N18. This is required.
The year is two digits. So you may need to change the year to two digits if necessary. For a particular strategy/spread contract, you must use a two digit year in the symbol and consistently use that symbol in the different charts, Trading DOMs, and Quote Boards.
If for the particular strategy/spread contract, there is a symbol inconsistency in the different places you are using that symbol in Sierra Chart, there will be conflicts with symbol data mapping due to how the CQG system works. This is not related to Sierra Chart itself. If you have changed between a single digit year and a two digit year for a particular strategy/spread contract you must reconnect to the data feed.
To open a chart or Trade DOM for one of these strategy symbols, select File >> Find Symbol. In the Selected Symbol box, enter the complete symbol and press the appropriate button.
The strategy symbols listed in File >> Find Symbol >> Futures Spreads - * (SC Exchange Data) are only for when using one of the Real-Time Exchange Data Feeds Available from Sierra Chart.
If you want to change the symbol of an existing chart or Trade DOM, refer to the Changing the Symbol of a Chart section.
If you want to trade exchange traded strategies/spreads, it is recommended use the Teton Order Routing Service instead of CQG. That service supports automatically getting a list off available spread symbols for a particular futures market. There is also full historical data provided for these symbols.
Historical Price Data
To be able to receive historical price data for strategies/spreads and some less common futures markets, requires that your CQG account is authorized for historical price data. You will need to contact your broker or clearing firm and request this be done.
If it is not, you will see a message like the following in the Window >> Message Log.
Solving CQG Market Data Feed Problems
When using CQG the following problems can be encountered with market data from CQG.
- Symbol does not update in real time on a Chart, Trade DOM, or Quote Board.
- Data is Lagging.
- Refer to help topic 4.
- If you are unable to resolve the problem, then use one of the Real-Time Exchange Data Feeds Available from Sierra Chart.
- Data is Incomplete.
- To re-download the existing Intraday data in an Intraday chart to recover any missing data, refer to Retrying the Download When There is Data in the Chart.
- To avoid this problem to begin with, use one of the Real-Time Exchange Data Feeds Available from Sierra Chart.
- Data Feed Stops.
- Reconnect to the data feed.
- If this problem is ongoing and you have to frequently reconnect, then use one of the Real-Time Exchange Data Feeds Available from Sierra Chart.
- Frequent Reconnections.
If the data feed stops, there is a reconnection to the data feed and the following messages are listed in the Window >> Message Log at that time, then this indicates the connection has been lost which can be for various reasons.CQG WebSocket socket (35) | Close event error. Windows error code 10053: An established connection was aborted by the software in your host machine.
CQG WebSocket socket (35) | Socket gracefully closed by remote side.
CQG WebSocket socket (35) | Received socket Close event.
CQG WebSocket socket (35) | Initiating close of socket by core.
CQG WebSocket | Network socket for WebSocket has been closed by remote side.
CQG WebAPI | Websocket received OpCode Close. Received status code: 1000If this problem is ongoing, then it is recommended you use one of the Real-Time Exchange Data Feeds Available from Sierra Chart.
Connection to the external service has been lost.
Frequent Server Disconnections when Using CQG
If you have a problem where there are relatively frequent disconnections of Sierra Chart from the CQG server, then this is going to be a CQG server problem, a network connectivity issue somewhere, or you have more than one connection to the same CQG username from either Sierra Chart or another program. Sierra Chart cannot help with these issues other than what is explained here.
As a matter of policy we will only refer to the documentation here. Under no circumstances will we put any effort into looking into or helping with CQG connection problems because we cannot solve them and they are very very common among the users for reasons which we have explained here.
If the problem is related to having more than one connection to CQG using the same username, then the Message Log will have messages like the following:
In this case you need to disconnect all copies of Sierra Chart and other programs using your CQG username other than one. A Sierra Chart instance can be disconnected from the data feed with File >> Disconnect.
If you continue to have the problem, the next step is to discontinue use of CQG and instead use the Teton Order Routing Service which provides stable connectivity assuming there is not an external network connectivity issue. Based on user feedback of users who have switched, the network connectivity issues are resolved. However, this does not mean you are never going to have a network connectivity issue. You still can due to connectivity issues on the Internet somewhere.
Other than the above, there is no further help Sierra Chart support can provide with CQG connection problems.
For the record, Sierra Chart uses a very reliable and high-performance network communications foundation fully developed by Sierra Chart senior engineers which runs on a separate thread. There simply is no possibility this issue could be within Sierra Chart itself. This is the very same foundation and code, used throughout the entire Sierra Chart infrastructure which handles immense amounts of market data every day reliably including the market statistics data feed which many of you use and can see does not have a frequent disconnection problem.
Additionally Sierra Chart sets the operating system TCP No Delay flag for all network communications, so there is no delay when any data is sent out to the network by Sierra Chart. And the same dedicated background thread of execution and code handles multiple network connections including the CQG connection. So if this were a problem within Sierra Chart or at the operating system level, all of the network connections would be affected. They are not. Only the CQG connection gets lost.
CQG Trading Account Numbers
When Sierra Chart connects to the CQG trading server, it receives the account number or numbers assigned to your CQG username. You can select a particular Trade Account you want to use, on the Trade Window. Refer to Selecting Trade Account.
The correct account number should be properly assigned to your CQG username, however you need to check with your broker about this.
The account number that you actually see from the FIX server and listed on the Trade Window may be different than the account number you see on the account statements from your broker. The account number you see listed is the account number from FIX Tag 1. This is a valid account number.
Trust the account number received from the FIX server is the correct account number and maps to the correct account name that your broker may use. Your broker should be able to confirm this.
CQG Market Depth Data
Currently CQG provides a large number of market depth levels for WTI crude oil (CL) futures on the CME. This is over 100 levels of market depth.
Due to the fact that the communication of this market depth for the initial snapshot and for the 20 minute refreshes that CQG does, spans more than one message with no signal as to the end of a snapshot or refresh and no indication of the beginning of a refresh, this causes studies like the Bid and Ask Depth Bars to show a "spike" every 20 minutes.
These refreshes also cause problems with the market depth pulling and stacking data as well.
This refreshing of market depth data every 20 minutes is regarded as an inefficient hack which is trying to correct for some other deficiency in the CQG transmission of market depth data.
The solution to this problem if you are affected by it, is to use the Denali Exchange Data Feed from Sierra Chart which provides high quality and accurate market depth data, at least 800 levels, which works properly and accurately with all of the Sierra Chart market depth functionality.
Any studies within Sierra Chart which use market depth data, they will only be assured to be accurate when using Sierra Chart provided data feeds.
And this market depth data from Sierra Chart data feeds is provided very efficiently with no refreshes, which are unnecessary to begin with. The Sierra Chart Data Feeds are properly engineered and reliable.
There is no other solution Sierra Chart can provide to this issue.
Any questions that Sierra Chart support receives regarding any market depth related features within Sierra Chart which relate to the data feed and when you are using CQG data, will be declined.
Solving Contract ID Mapping Error when Submitting Order
With the CQG Web API, when submitting a trading related request to CQG for a particular symbol, it requires a contract ID number.
Therefore, when using the Trade and Current Quote Symbol setting in the Chart >> Chart Settings and you have enabled Use as Trade Only Symbol, when an order is submitted it will initially get rejected for that symbol. Below is an example of the rejection message.
The solution to this is to resubmit the order since at the time of the rejection, the necessary contract ID number will have been requested from CQG.
CQG WebAPI order update (Order reject). Info: Order Error - No symbol contract ID mapping. Unable to submit the order. Text: Parent order. Internal Order ID: #. Service Order ID: #. Symbol: F.US.MQOZ19.
Technical Support Policy Regarding CQG Market Data
Sierra Chart support does not provide any technical support for market data issues when using the CQG provided data feed.
If you only have a need for CME/CBOT/NYMEX/COMEX data, then if you want a reliable data feed for CME/CBOT/NYMEX/COMEX to power Sierra Chart, use the Denali Exchange Data Feed. This data feed is fully integrated when using CQG. So you can still use CQG for order routing.
CQG Demo Accounts Not Supported
Sierra Chart does not support CQG Demo accounts. Users instead need to follow the Basic Instructions for Demo.
You will be provided full and unrestricted access to the Delayed Exchange Data Feed which is available for all Sierra Chart users.
This Sierra Chart provided Delayed Exchange Data Feed and the Sierra Chart Simulated Trading Services or the built-in Trade Simulation Mode provide a high quality of service drastically far and above which would be available with a CQG demo account.
You have access to outright futures data, futures spreads and futures options data. All of these types of markets can be traded. Full historical data for current and expired futures contracts is provided.
The CQG data feed also provides a limited / poor impression of Sierra Chart because there are limitations with it, in particular with market depth data, and there are issues with market depth data.
There is more of a support burden upon Sierra Chart, supporting CQG demo accounts as compared to Sierra Chart provided services.
Another reason CQG demo accounts are not supported is because after the demo period is up which would be at most 30 days, you are locked out of that account for good. You have no access to market data, you have no access to your Orders, Positions, or Fill history. And then you can no longer continue with your Sierra Chart trial at least in the same way that you did before.
Whereas with the Sierra Chart provided services you will continue to have access to these Sierra Chart provided services. For complete details, refer to Basic Instructions for Demo.
*Last modified Friday, 17th March, 2023.