Package com.longbridge.trade
Class StockPosition
- java.lang.Object
-
- com.longbridge.trade.StockPosition
-
public class StockPosition extends Object
Stock position
-
-
Constructor Summary
Constructors Constructor Description StockPosition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetAvailableQuantity()Returns the available (sellable) quantity.BigDecimalgetCostPrice()Returns the cost price.StringgetCurrency()Returns the currency.BigDecimalgetInitQuantity()Returns the initial holding quantity at the start of the day.MarketgetMarket()Returns the market.BigDecimalgetQuantity()Returns the holding quantity.StringgetSymbol()Returns the security symbol.StringgetSymbolName()Returns the security name.StringtoString()
-
-
-
Method Detail
-
getSymbol
public String getSymbol()
Returns the security symbol.- Returns:
- security symbol
-
getSymbolName
public String getSymbolName()
Returns the security name.- Returns:
- security name
-
getQuantity
public BigDecimal getQuantity()
Returns the holding quantity.- Returns:
- holding quantity
-
getAvailableQuantity
public BigDecimal getAvailableQuantity()
Returns the available (sellable) quantity.- Returns:
- available quantity
-
getCurrency
public String getCurrency()
Returns the currency.- Returns:
- currency
-
getCostPrice
public BigDecimal getCostPrice()
Returns the cost price.- Returns:
- cost price
-
getMarket
public Market getMarket()
Returns the market.- Returns:
- market
-
getInitQuantity
public BigDecimal getInitQuantity()
Returns the initial holding quantity at the start of the day.- Returns:
- initial quantity
-
-