Generic Broker: sellMarket()

ICE Data Services -

sellMarket()
Previous  Top  Next

sellMarket( 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

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

 

Interactive Broker Examples

 

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

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