|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EntryOrder
EntryOrder is an abstract base class extending class Order to include expiry and desired execution price information.
Order,
LimitOrder| Method Summary | |
|---|---|
long |
getExpiry()
Returns this order's expiry date expressed as a unix timestamp. |
void |
setExpiry(long expiry)
Sets the expiry date for this order. |
void |
setPrice(double price)
Sets the desired execution price for this order. |
| Methods inherited from interface com.oanda.fxtrade.api.Order |
|---|
getHighPriceLimit, getLowPriceLimit, getPair, getPrice, getStopLoss, getTakeProfit, getTimestamp, getTrailingStopLoss, getTransactionNumber, getUnits, setHighPriceLimit, setLowPriceLimit, setPair, setStopLoss, setTakeProfit, setTrailingStopLoss, setUnits |
| Method Detail |
|---|
long getExpiry()
void setExpiry(long expiry)
A valid expiry timestamp is greater than the current time and less than 90 days or 7776000 seconds.
expiry - expiry date expressed as a unix timestampvoid setPrice(double price)
price - the desired execution price
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||