public class MakeLimitStopOrder extends OrderMethod
config, MAX_TICKERS, reqMan, RH_URL| Constructor and Description |
|---|
MakeLimitStopOrder(java.lang.String ticker,
TimeInForce time,
float limitPrice,
int quantity,
OrderTransactionType orderType,
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 MakeLimitStopOrder(java.lang.String ticker,
TimeInForce time,
float limitPrice,
int quantity,
OrderTransactionType orderType,
float stopPrice,
Configuration config)
throws TickerNotFoundException
ticker - The ticker which the buy or sell order should be performed ontime - The Enum representation for when this order should be madelimitPrice - The price you're willing to accept in a sell, or pay in a buyquantity - The number of shares you would like to buy or sellorderType - Which type of order is being made. A buy, or a sellstopPrice - The price at which the stop trigger converts the order
into a market orderconfig - A config holding authentication dataTickerNotFoundException - The ticker supplied is not validprotected void setOrderParameters()
OrderMethodsetOrderParameters in class OrderMethod