Package com.knowm.xchange.serum.service
Class SerumMarketDataServiceRaw
java.lang.Object
org.knowm.xchange.service.BaseExchangeService
com.knowm.xchange.serum.SerumBaseService
com.knowm.xchange.serum.service.SerumMarketDataServiceRaw
- All Implemented Interfaces:
BaseService
- Direct Known Subclasses:
SerumMarketDataService
public class SerumMarketDataServiceRaw extends SerumBaseService
This class borrows logic heavily from the Serum foundation's codebase:
https://github.com/project-serum/serum-ts/blob/master/packages/serum/src/market.ts
-
Field Summary
Fields inherited from class com.knowm.xchange.serum.SerumBaseService
serum
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description SerumMarketDataServiceRaw(Exchange exchange)
-
Method Summary
Modifier and Type Method Description int
getMintDecimals(PublicKey mint)
Market
load(PublicKey address, MarketOptions options, PublicKey programId)
Loads a full qualified market from Serum.Methods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Constructor Details
-
SerumMarketDataServiceRaw
-
-
Method Details
-
getMintDecimals
- Throws:
IOException
-
load
Loads a full qualified market from Serum. A market is analogous to a trading pair. This is Serum's nomenclature for trading pairs.- Parameters:
address
- tied to marketoptions
- for requestprogramId
- market is running on- Returns:
- market
- Throws:
Exception
-