Package org.knowm.xchange.dto.account
Class OpenPosition
java.lang.Object
org.knowm.xchange.dto.account.OpenPosition
- All Implemented Interfaces:
Serializable
public class OpenPosition extends Object implements Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenPosition.Builder
static class
OpenPosition.Type
-
Constructor Summary
Constructors Constructor Description OpenPosition(Instrument instrument, OpenPosition.Type type, BigDecimal size, BigDecimal price, BigDecimal liquidationPrice, BigDecimal unRealisedPnl)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Instrument
getInstrument()
BigDecimal
getLiquidationPrice()
BigDecimal
getPrice()
BigDecimal
getSize()
OpenPosition.Type
getType()
BigDecimal
getUnRealisedPnl()
int
hashCode()
String
toString()
-
Constructor Details
-
OpenPosition
public OpenPosition(Instrument instrument, OpenPosition.Type type, BigDecimal size, BigDecimal price, BigDecimal liquidationPrice, BigDecimal unRealisedPnl)
-
-
Method Details