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, verifyTickerData
addAuthTokenParameter, addFieldParameter, addFieldParameters, addHeaderParameter, addHeaderParameters, addQueryParameter, addQueryParameters, addRouteParameter, addRoutParameters, execute, getBaseUrl, getFieldParameters, getHeaderParameters, getMethodType, getQueryParameters, getReturnType, getRouteParameters, requiresToken, requireToken, setMethodType, setReturnType, setUrlBase, toString
public 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.SELL
time
- 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()
OrderMethod
setOrderParameters
in class OrderMethod