Package com.knowm.xchange.serum.core
Class Market
java.lang.Object
com.knowm.xchange.serum.core.Market
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal MarketStatfinal MarketOptionsfinal PublicKeyfinal int -
Constructor Summary
ConstructorsConstructorDescriptionMarket(MarketStat decoded, int baseMintDecimals, int quoteMintDecimals, MarketOptions options, PublicKey programId) -
Method Summary
Modifier and TypeMethodDescriptiondoublebaseSizeLotsToNumber(BigDecimal size, int decimalPlaces) doubledivideBNToNumber(BigDecimal numerator, BigDecimal denominator) extractPrice(byte[] orderId) doubledoublemaskn(BigInteger num, int mask) doublepriceLotsToNumber(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
-