Home


CQG API Samples & TemplatesClick to Enlarge
CQG's API templates can be used as a product to provide users with speed and automation.

  • FCMs can monitor risk for all of their accounts on one screen.
  • Energy traders can use an order ticket designed especially for them.
  • Traders who need the freedom and flexibility of automation can enter bracket orders to limit risk and can define their own spreads. 
  • CQG watches the market for you and triggers orders based on your parameters.
  • CQG's templates and source code are readily available free of charge.
 

 

NOTE: Two files are needed for Excel to work properly with the API.  

  • Install these files: pick Open to install from the server; pick Save to install from your drive.

Spreads Trading Matrix:

  • View native data for exchange-traded intracommodity spreads and synthetic data for user-defined intracommodity and intercommodity spreads
  • Define the conditions to trigger spread orders
  • Place market, limit, and stop spread orders
  • Track your orders real-time

Energy Trading Template:

  • Customize a list of the energy contracts you frequently watch
  • View over a dozen data points for those contracts
  • Place market, limit, stop, and stop limit orders

Risk Console Template:

  • Monitor risk for all of your accounts on one screen
  • Be warned when net liquidity value falls below both 80% and 90% of the current balance
  • View working orders and position details
  • Liquidate a position with the click of a mouse
  • Choose how frequently you want risk information refreshed – from one minute to two hours

Bracket Order Template:

  • Enter an order with corresponding high sell/high buy stop and low sell stop/low buy orders one a single order ticket.  In this way, you are able to protect yourself from loss while locking in profit without having to monitor the market yourself.

Order Ticket Template:

  • View the current bid, ask, and trade prices and volumes for a commodity
  • Place market, limit, stop, and stop limit orders
  • View your order details

CQG Data Exporter:

  • Save market data for selected contracts into local files
  • Specify the frequency of file updates
  • Exported in either ASCII or binary formats

Excel Samples:

CQG provides over a dozen sample spreadsheet trading solutions that are compatible with the API.

Code Samples:

CQG API code samples are available for VB.Net, C#.Net, and C++ with MFC.

Related

API help page
CQG API article
CQG API flyer
Markets Covered
Trading Platforms