Generic Broker: sellShortLimit()

ICE Data Services -

sellShortLimit()
Previous  Top  Next

sellShortLimit( symbol, quantity, limit [, route] [, expiry] )
Submit a limit order to broker.

Parameters

symbol
the symbol for which to initiate the trade
quantity
the number of shares/contracts
limit
the limit price
route
optional. the route or exchange for the trade (broker specific)
expiry
optional. expiration for the order:

SB_DAY
SB_GTC
SB_IOC



Usage

sellShortLimit( "IDC"10019.00 ); 
sellShortLimit( getSymbol(), 
200100.00null, SB_GTC );

 

Interactive Broker Examples

var myLimit = getMostRecentTrade().toFixed(4); 

sellShortLimit(getSymbol(), 100, myLimit);  // Equities

sellShortLimit(getSymbol(), 1, myLimit, "GLOBEX", "200506");  // Futures