public final class OrderOptions
extends java.lang.Object
Not all order options are applicable for all venues or account types. Setting an option where not allowed or not applicable will result in an order reject.
Constructor and Description |
---|
OrderOptions()
Constructs an instance without any options set.
|
Modifier and Type | Method and Description |
---|---|
OrderOptions |
setAllowRouting()
Enables the allow-routing option.
|
OrderOptions |
setArcaPassiveLiquidity()
Enables the ARCA passive liquidity option.
|
OrderOptions |
setArcaPreOpenSession()
Enables the ArcaPreOpenSession option.
|
OrderOptions |
setArcaTracking()
Enables the ARCA tracking option.
|
OrderOptions |
setBatsDarkScan()
Enables the BATS dark-scan option.
|
OrderOptions |
setBatsNoRescrapeAtLimit()
Enables the BATS no-rescrape at-limit option.
|
OrderOptions |
setCeilingFloorPrice(int price)
Enables the ceiling/floor price option.
|
OrderOptions |
setClientData1(java.lang.String clientData)
Enables the client data 1 option.
|
OrderOptions |
setClientData2(java.lang.String clientData)
Enables the client data 2 option.
|
OrderOptions |
setClientData3(java.lang.String clientData)
Enables the client data 3 option.
|
OrderOptions |
setDiscretionOffset(int offset)
Enables the discretion offset option.
|
OrderOptions |
setExpireTime(java.util.Date expire)
Enables the expire-time option.
|
OrderOptions |
setImbalanceOnly()
Enables the imbalance only option.
|
OrderOptions |
setInvisible()
Enables the invisible option.
|
OrderOptions |
setISO(int id)
Enables the ISO option.
|
OrderOptions |
setLockedCrossedAction(LockedCrossedAction action)
Enables the locked/crossed action option.
|
OrderOptions |
setMarketDisplayPrice(int price)
Enables the market display price option.
|
OrderOptions |
setMaxFloor(int floor)
Enables the max-floor option.
|
OrderOptions |
setMinimumTriggerVol(int mtv)
Enables the minimumTriggerVol option.
|
OrderOptions |
setMinQuantity(int qty)
Enables the min-quantity option.
|
OrderOptions |
setNasdaqPostOnly()
Enables the Nasdaq post-only option.
|
OrderOptions |
setNYSEClosingOffset()
Enables the NYSE closing-offset option.
|
OrderOptions |
setNyseParityStrategy(java.lang.String strategy)
Enables the NYSE parity-strategy option.
|
OrderOptions |
setPegDifference(int difference)
Enables the peg-difference option.
|
OrderOptions |
setPegOffsets(int near,
int far)
Enables the peg-offsets option.
|
OrderOptions |
setPegType(PegType type)
Enables the peg-type option.
|
OrderOptions |
setPostOnly()
Enables the post-only option.
|
OrderOptions |
setRegularSessionOnly()
Enables the regular session only option.
|
OrderOptions |
setRetailPriceOffset(int offset)
Enables the retail price offset option.
|
OrderOptions |
setRouteToNYSE()
Enables the route-to-NYSE option.
|
OrderOptions |
setRoutingInstructions(RoutingInstructions instructions)
Enables the routing-instructions option.
|
OrderOptions |
setRoutingStrategy(java.lang.String strategy)
Enables the routing strategy option.
|
OrderOptions |
setSaleAffirm()
Enables the sale affirm option.
|
OrderOptions |
setShortSaleAffirmLongQuantity(int quantity)
Enables the short-sale affirm long-quantity option.
|
OrderOptions |
setTargetLocationId(java.lang.String location)
Enables the target-location id option.
|
OrderOptions |
setTimeInForce(TimeInForce tif)
Enables the time-in-force option.
|
OrderOptions |
setTimeInMarket(int seconds)
Enables the time-in-market option.
|
OrderOptions |
setWashTradePrevention(WashTradePrevention wash)
Enables the wash-trade prevention option.
|
public OrderOptions()
public OrderOptions setRegularSessionOnly()
public OrderOptions setSaleAffirm()
public OrderOptions setImbalanceOnly()
public OrderOptions setNasdaqPostOnly()
public OrderOptions setPostOnly()
public OrderOptions setInvisible()
public OrderOptions setAllowRouting()
public OrderOptions setBatsDarkScan()
public OrderOptions setBatsNoRescrapeAtLimit()
public OrderOptions setArcaTracking()
public OrderOptions setArcaPassiveLiquidity()
public OrderOptions setRouteToNYSE()
public OrderOptions setNYSEClosingOffset()
public OrderOptions setArcaPreOpenSession()
public OrderOptions setTimeInForce(TimeInForce tif)
tif
- Time-in-force settingjava.lang.IllegalArgumentException
- setting a TIF value not appropriate for an US-Equities orderpublic OrderOptions setPegType(PegType type)
type
- peg-type valuepublic OrderOptions setWashTradePrevention(WashTradePrevention wash)
wash
- wash-trade prevention valuepublic OrderOptions setExpireTime(java.util.Date expire)
TimeInForce.GOOD_TILL_DATE
TIF option and is required for it. It determines the time when
the order should expire.expire
- expiration timeTimeInForce.GOOD_TILL_DATE
public OrderOptions setRoutingInstructions(RoutingInstructions instructions)
instructions
- routing instructionsjava.lang.IllegalArgumentException
- setting routing instructions not valid for an US-Equities orderpublic OrderOptions setLockedCrossedAction(LockedCrossedAction action)
action
- locked/crossed actionpublic OrderOptions setTargetLocationId(java.lang.String location)
location
- target-location idjava.lang.IllegalArgumentException
- setting an empty or too large stringpublic OrderOptions setNyseParityStrategy(java.lang.String strategy)
strategy
- NYSE parity-strategyjava.lang.IllegalArgumentException
- setting an empty or too large stringpublic OrderOptions setTimeInMarket(int seconds)
TimeInForce.TIME_IN_MARKET
TIF option and is required for it. It determines how long, in
seconds, until the order should expire.seconds
- seconds until order expiresjava.lang.IllegalArgumentException
- setting negative or zero
seconds, or seconds larger than in a dayTimeInForce.TIME_IN_MARKET
public OrderOptions setPegDifference(int difference)
difference
- peg-difference value (scaled by Client.PRICE_SCALE
)public OrderOptions setMaxFloor(int floor)
floor
- max floor valuejava.lang.IllegalArgumentException
- setting a negative or zero
max-floorpublic OrderOptions setMinQuantity(int qty)
qty
- min-quantity valuejava.lang.IllegalArgumentException
- setting a negative or zero
min-quantitypublic OrderOptions setISO(int id)
id
- ISO group-idjava.lang.IllegalArgumentException
- setting a negative or zero
group-idpublic OrderOptions setMinimumTriggerVol(int mtv)
mtv
- minimum Trigger Volumejava.lang.IllegalArgumentException
- setting a negative minimum Trigger Volumepublic OrderOptions setDiscretionOffset(int offset)
offset
- discretion offset (scaled by Client.PRICE_SCALE
)public OrderOptions setShortSaleAffirmLongQuantity(int quantity)
quantity
- long position being affirmedjava.lang.IllegalArgumentException
- setting a negative or zero valuesetSaleAffirm()
public OrderOptions setMarketDisplayPrice(int price)
price
- market display price (scaled by Client.PRICE_SCALE
)java.lang.IllegalArgumentException
- setting a negative or zero pricepublic OrderOptions setRetailPriceOffset(int offset)
offset
- retail price offset value (scaled by Client.PRICE_SCALE
)public OrderOptions setCeilingFloorPrice(int price)
price
- ceiling/floor price value (scaled by Client.PRICE_SCALE
)java.lang.IllegalArgumentException
- setting a negative or zero pricepublic OrderOptions setPegOffsets(int near, int far)
near
- near peg-offset value (must be between 0 and 100)far
- far peg-offset value (must be between 0 and 100)java.lang.IllegalArgumentException
- setting peg-offsets which are negative or exceed 100public OrderOptions setRoutingStrategy(java.lang.String strategy)
strategy
- routing strategy valuejava.lang.IllegalArgumentException
- setting an empty or too large stringpublic OrderOptions setClientData1(java.lang.String clientData)
clientData
- client data 1 valuejava.lang.IllegalArgumentException
- setting an empty or too large stringpublic OrderOptions setClientData2(java.lang.String clientData)
clientData
- client data 2 valuejava.lang.IllegalArgumentException
- setting an empty or too large stringpublic OrderOptions setClientData3(java.lang.String clientData)
clientData
- client data 3 valuejava.lang.IllegalArgumentException
- setting an empty or too large string
Securities are offered by Lime Trading Corp., member FINRA & SIPC,NFA. All investing incurs risk, including but not limited to loss of principal. Further information may be found on our Disclosures Page.
Please read the following documents Characteristics and Risks of Standardized Options before trading options.
Options involve risk and are not suitable for all investors as the special risks inherent to options trading may expose investors to potentially rapid and substantial losses. Options trading privileges are subject to Lime Trading Corp. review and approval. Hedging and protective strategies generally involve additional costs and do not assure a profit or guarantee against loss. With long options, investors may lose 100% of funds invested. Covered calls provide income, downside protection only to the extent of the premium received, and limit upside potential to the strike price plus premium received. Multi-leg option orders are not a standard option trade. There is no national best bid or offer for multi-leg orders. Multi-leg trades are executed on the exchanges at the discretion of specialists or market makers, who cannot be held to a net price on a multi-leg order. Therefore, you may not receive the national best bid or offer on each individual leg of an order. Multi-leg orders are executed as a single trade on the same exchange. Legs cannot be executed separately on different exchanges to get the national best bid or offer for each leg. Each individual leg of a multi-leg order can be subject to early exercise risk, possibly taking away the protection that the multi-leg position may provide. Partial or full assignment on a leg may originate a margin call or losses greater than you anticipated when you entered into the position. When a multi-leg order is canceled or filled, additional reporting may be required by the specialist or market maker. Reporting fills and cancels may cause delays and create risks, especially in fast moving markets. Other risks might be associated with multi-leg options trading.