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 4.0 Guide
API 4.0 Reference
FIX API




Search the wiki
»
If you are creating an application that users interact with then an easy way to allow the user to select a specific contract is to use the API's ContractPicker method.

' Display the contract picker to the user for them to select a market.
moContract = moHost.MarketData.ContractPicker(moContract)

' Check to see if a contract was selected.
If Not moContract Is Nothing Then

' User selected a contract.

End If

If the user selected a Contract then it will be returned, if they didn't then the default Contract you specified will be returned. In this example above the previously selected Contract would be returned. You can also pass Nothing as the default in which case Nothing will be returned if they don't select anything.

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.