Class OkCoinPosition
java.lang.Object
org.knowm.xchange.okcoin.dto.trade.OkCoinPosition
Instances of this class represent all holdings related to a specific contract, e.g. `this_week`.
If you have 2 open positions for this week then all fields (buy/sell) will be fully populated. If
you have multiple contracts open (`this_week`, `next_week`, ..) then each contract will be its
own instance.
-
Constructor Summary
ConstructorsConstructorDescriptionOkCoinPosition
(long orderId, int status, String symbol, String type, BigDecimal rate, BigDecimal buyAmount, BigDecimal buyAmountAvailable, BigDecimal buyProfitReal, BigDecimal buyPriceAvg, BigDecimal sellAmount, BigDecimal sellAmountAvailable, BigDecimal sellProfitReal, BigDecimal sellPriceAvg, Date createDate) -
Method Summary
-
Constructor Details
-
OkCoinPosition
public OkCoinPosition(long orderId, int status, String symbol, String type, BigDecimal rate, BigDecimal buyAmount, BigDecimal buyAmountAvailable, BigDecimal buyProfitReal, BigDecimal buyPriceAvg, BigDecimal sellAmount, BigDecimal sellAmountAvailable, BigDecimal sellProfitReal, BigDecimal sellPriceAvg, Date createDate)
-
-
Method Details