com.oanda.fxtrade.api
Interface StopLossOrder

All Superinterfaces:
java.lang.Cloneable, Order

public interface StopLossOrder
extends Order, java.lang.Cloneable

A StopLossOrder will close a MarketOrder when the designated market rate is reached.

Please note that setting any field other than the price field will have no effect.

See Also:
Order, MarketOrder

Method Summary
 java.lang.Object clone()
          Returns a exact copy of this StopLossOrder.
 void setPrice(double price)
          Sets the desired execution price for this stop loss.
 java.lang.String toString()
           
 
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

clone

java.lang.Object clone()
Returns a exact copy of this StopLossOrder.


setPrice

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

Parameters:
price - the desired execution price

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 OANDA Corporation. All Rights Reserved.