Package com.knowm.xchange.serum.core
Class Market
java.lang.Object
com.knowm.xchange.serum.core.Market
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
final MarketStat
final MarketOptions
final PublicKey
final int
-
Constructor Summary
ConstructorDescriptionMarket
(MarketStat decoded, int baseMintDecimals, int quoteMintDecimals, MarketOptions options, PublicKey programId) -
Method Summary
Modifier and TypeMethodDescriptiondouble
baseSizeLotsToNumber
(BigDecimal size, int decimalPlaces) double
divideBNToNumber
(BigDecimal numerator, BigDecimal denominator) extractPrice
(byte[] orderId) double
double
maskn
(BigInteger num, int mask) double
priceLotsToNumber
(BigDecimal price) priceNumberToLots
(BigInteger price, int decimalPlaces)
-
Field Details
-
decoded
-
baseMintDecimals
public final int baseMintDecimals -
quoteMintDecimals
public final int quoteMintDecimals -
options
-
programId
-
-
Constructor Details
-
Market
public Market(MarketStat decoded, int baseMintDecimals, int quoteMintDecimals, MarketOptions options, PublicKey programId)
-
-
Method Details
-
maskn
-
getMinOrderSize
public double getMinOrderSize() -
getTickSize
public double getTickSize() -
baseSizeLotsToNumber
-
priceLotsToNumber
-
divideBNToNumber
-
baseSplTokenMultiplier
-
quoteSplTokenMultiplier
-
baseSizeLotsToNumber
-
priceNumberToLots
-
extractPrice
-