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
»

Complete Volume / Fill Or Kill Order

RSS
A single Complete Volume / Fill or Kill / FOK order can be submitted using the SubmitNewOrder method on the AccountList object:

' Submit an order.
moOrder = moAccounts.SubmitNewOrder( _
oAccount, _
oMarket, _
BuySell.Buy, _
PriceType.Limit, _
TimeType.CompleteVolume, _
10, _
CDbl(6534))

The parameters for the SubmitNewOrder method are described here.

penPriceTypeSet to PriceType.Limit for a limit order.
penTimeTypeSet to TimeType.CompleteVolume for a complete volume order (also known as Fill Or Kill or FOK) that will be submitted and either filled completely or cancelled immediately.
piVolumeSet to the order volume you want.
pdblLimitPriceSet to the limit price you want. Be sure that you are using the correct overloaded SubmitNewOrder method and providing either a display price as a double or a tick price as an integer.

In this example, the order will be submitted and either filled all 10 lots (there may be one or multiple fills returned) immediately, or the order is cancelled.

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.