|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MarketOrder
A MarketOrder is used to create a spot trade.
Order| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a exact copy of this MarketOrder. |
MarketOrder |
getClose()
|
double |
getRealizedPL()
Returns the profit realized on this trade. |
long |
getTransactionLink()
Returns the transaction number of any trade or order that is related to this trade. |
double |
getUnrealizedPL(FXTick tick)
Returns the unrealized profit/loss held by this order based on the provided market rate. |
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 |
|---|
java.lang.Object clone()
MarketOrder getClose()
double getRealizedPL()
long getTransactionLink()
double getUnrealizedPL(FXTick tick)
tick - the FXTick to be used for calculating P&L
FXTickjava.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||