Class Position
- java.lang.Object
-
- tech.cassandre.trading.bot.domain.Position
-
@Entity public class Position extends Object
Position (used to save data between restarts).
-
-
Constructor Summary
Constructors Constructor Description Position()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCloseOrderId()
Getter closeOrderId.long
getId()
Getter id.String
getOpenOrderId()
Getter openOrderId.Float
getStopGainPercentageRule()
Getter rulesStopGainPercentage.Float
getStopLossPercentageRule()
Getter rulesStopLossPercentage.void
setCloseOrderId(String newCloseOrderId)
Setter closeOrderId.void
setId(long newId)
Setter id.void
setOpenOrderId(String newOpenOrderId)
Setter openOrderId.void
setStopGainPercentageRule(Float newRulesStopGainPercentage)
Setter rulesStopGainPercentage.void
setStopLossPercentageRule(Float newRulesStopLossPercentage)
Setter rulesStopLossPercentage.
-
-
-
Method Detail
-
getId
public long getId()
Getter id.- Returns:
- id
-
setId
public void setId(long newId)
Setter id.- Parameters:
newId
- the id to set
-
getStopGainPercentageRule
public Float getStopGainPercentageRule()
Getter rulesStopGainPercentage.- Returns:
- rulesStopGainPercentage
-
setStopGainPercentageRule
public void setStopGainPercentageRule(Float newRulesStopGainPercentage)
Setter rulesStopGainPercentage.- Parameters:
newRulesStopGainPercentage
- the rulesStopGainPercentage to set
-
getStopLossPercentageRule
public Float getStopLossPercentageRule()
Getter rulesStopLossPercentage.- Returns:
- rulesStopLossPercentage
-
setStopLossPercentageRule
public void setStopLossPercentageRule(Float newRulesStopLossPercentage)
Setter rulesStopLossPercentage.- Parameters:
newRulesStopLossPercentage
- the rulesStopLossPercentage to set
-
getOpenOrderId
public String getOpenOrderId()
Getter openOrderId.- Returns:
- openOrderId
-
setOpenOrderId
public void setOpenOrderId(String newOpenOrderId)
Setter openOrderId.- Parameters:
newOpenOrderId
- the openOrderId to set
-
getCloseOrderId
public String getCloseOrderId()
Getter closeOrderId.- Returns:
- closeOrderId
-
setCloseOrderId
public void setCloseOrderId(String newCloseOrderId)
Setter closeOrderId.- Parameters:
newCloseOrderId
- the closeOrderId to set
-
-