Generic Broker: sellShortMarket()

ICE Data Services -

sellShortMarket()
Previous  Top  Next

sellShortMarket( symbol, quantity [, route] [, expiry] )
Submit a market order to broker.

Parameters

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

SB_DAY
SB_GTC
SB_IOC



Usage

sellShortMarket( "IDC"100 ); 
sellShortMarket( getSymbol(), 
200 );

Interactive Broker Examples

sellShortMarket(getSymbol(), 100);  // Equities

sellShortMarket(getSymbol(), 1, "GLOBEX", "200506");  // Futures