com.oanda.fxtrade.api
Interface EntryOrder

All Superinterfaces:
Order
All Known Subinterfaces:
LimitOrder

public interface EntryOrder
extends Order

EntryOrder is an abstract base class extending class Order to include expiry and desired execution price information.

See Also:
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

getExpiry

long getExpiry()
Returns this order's expiry date expressed as a unix timestamp.

Returns:
this order's expiry date expressed as a unix timestamp.

setExpiry

void setExpiry(long expiry)
Sets the expiry date for this order. Expiry is expressed as a unix timestamp.

A valid expiry timestamp is greater than the current time and less than 90 days or 7776000 seconds.

Parameters:
expiry - expiry date expressed as a unix timestamp

setPrice

void setPrice(double price)
Sets the desired execution price for this order.

Parameters:
price - the desired execution price


Copyright © 2005 OANDA Corporation. All Rights Reserved.