Welcome Guest, you are in: Login
CTS Futures
Home
Pricing
FAQ

T4 Desktop
User Guide
Scripting Guide
Release Notes

Mobile and Web
T4 Mobile
T4 WebTrader

Admins
T4 Admin Guide

Developers
API 2.0 Guide
API 2.0 Reference
API 4.0 Guide
- coming soon
API 4.0 Reference
- coming soon




Search the wiki
»

Requesting Trade Volumes for all Markets of a Contract

RSS
When charting, it is sometimes helpful to know which market is the most active (i.e. has the most volume traded) for a given date. The T4 API supports this via a BeginRequestMarketTradeVolumeData method off of the Contract object. This request will provide the total trade volumes for every market of a contract on a given trade date.

This method takes a Trade Date parameter and a callback, and operates in much the same way a Market chart data requests.

Once the request is submitted and the data is collected, the callback will be called passing the ChartDataMarketVolumeRequest object as the sole parameter. After checking to make sure the Status property has a value of Completed, you can access the resulting data using the Data property.

The Data property of this request type is an array of MarketTTV objects which will give you a list of every market for the contract and their Total Traded Volume’s for the date requested.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

141 W. Jackson Blvd., Suite 211A, Chicago, IL 60604

© 2009-2012 Cunningham Trading Systems Inc. All rights reserved.