Class 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

  • Constructor Details

    • SerumMarketDataServiceRaw

      public SerumMarketDataServiceRaw(Exchange exchange)
  • Method Details

    • getMintDecimals

      public int getMintDecimals(PublicKey mint) throws IOException
      Throws:
      IOException
    • load

      public Market load(PublicKey address, MarketOptions options, PublicKey programId) throws Exception
      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 market
      options - for request
      programId - market is running on
      Returns:
      market
      Throws:
      Exception