public class MakeLimitOrder extends OrderMethod
config, MAX_TICKERS, reqMan, RH_URL
Constructor and Description |
---|
MakeLimitOrder(java.lang.String ticker,
TimeInForce time,
float limitPrice,
int quantity,
OrderTransactionType orderType,
Configuration config)
Method which returns a
SecurityOrder after running a LIMIT order
given the supplied parameters. |
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 MakeLimitOrder(java.lang.String ticker, TimeInForce time, float limitPrice, int quantity, OrderTransactionType orderType, Configuration config) throws TickerNotFoundException
SecurityOrder
after running a LIMIT order
given the supplied parameters.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 sell.config
- A config holding authentication dataTickerNotFoundException
- Thrown when the ticker supplied to the
method is invalid.NotLoggedInException
- Thrown when this Robinhood Api instance is
not logged into an account. Run the login method first.protected void setOrderParameters()
OrderMethod
setOrderParameters
in class OrderMethod