• C#
  • Java
  • VB
  • C++
  • Python
Contact us
ComboLeg Class Reference

Class representing a leg within combo orders. More...

Public Member Functions

 ComboLeg (int conId, int ratio, string action, string exchange, int openClose, int shortSaleSlot, string designatedLocation, int exemptCode)
 

Static Public Attributes

static int SAME = 0
 
static int OPEN = 1
 
static int CLOSE = 2
 
static int UNKNOWN = 3
 

Properties

int ConId [get, set]
 The Contract's IB's unique id.
 
int Ratio [get, set]
 Select the relative number of contracts for the leg you are constructing. To help determine the ratio for a specific combination order, refer to the Interactive Analytics section of the User's Guide.
 
string Action [get, set]
 The side (buy or sell) of the leg:
. More...
 
string Exchange [get, set]
 The destination exchange to which the order will be routed.
 
int OpenClose [get, set]
 Specifies whether an order is an open or closing order. For institutional customers to determine if this order is to open or close a position. 0 - Same as the parent security. This is the only option for retail customers.
1 - Open. This value is only valid for institutional customers.
2 - Close. This value is only valid for institutional customers.
3 - Unknown.
 
int ShortSaleSlot [get, set]
 For stock legs when doing short selling. Set to 1 = clearing broker, 2 = third party.
 
string DesignatedLocation [get, set]
 When ShortSaleSlot is 2, this field shall contain the designated location.
 
int ExemptCode [get, set]
 Mark order as exempt from short sale uptick rule.
Possible values:
0 - Does not apply the rule.
-1 - Applies the short sale uptick rule.
 

Detailed Description

Class representing a leg within combo orders.

See Also
Order

Property Documentation

string Action
getset

The side (buy or sell) of the leg:
.

  • For individual accounts, only BUY and SELL are available. SSHORT is for institutions.