public class MakeMarketStopOrder extends OrderMethod
config, MAX_TICKERS, reqMan, RH_URL| Constructor and Description |
|---|
MakeMarketStopOrder(java.lang.String ticker,
int quantity,
OrderTransactionType orderType,
TimeInForce time,
float stopPrice,
Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setOrderParameters()
Method which sets the URLParameters for the order.
|
setEndpointParameters, verifyTickerDataaddAuthTokenParameter, addFieldParameter, addFieldParameters, addHeaderParameter, addHeaderParameters, addQueryParameter, addQueryParameters, addRouteParameter, addRoutParameters, execute, getBaseUrl, getFieldParameters, getHeaderParameters, getMethodType, getQueryParameters, getReturnType, getRouteParameters, requiresToken, requireToken, setMethodType, setReturnType, setUrlBase, toStringpublic MakeMarketStopOrder(java.lang.String ticker,
int quantity,
OrderTransactionType orderType,
TimeInForce time,
float stopPrice,
Configuration config)
throws TickerNotFoundException
ticker - The stock tickerquantity - The number of elements to orderorderType - OrderTransactionType.BUY or OrderTransactionType.SELLtime - The time and/or duration an order will be active.stopPrice - The stop (activation) priceconfig - A config holding authentication dataTickerNotFoundException - If the ticker is not tracked by RHNotLoggedInException - If instance is not logged inprotected void setOrderParameters()
OrderMethodsetOrderParameters in class OrderMethod