Class PolygonStockPriceFinder

java.lang.Object
com.truebubo.maniflow.stock.PolygonStockPriceFinder
All Implemented Interfaces:
StockPriceFinder

@Service public class PolygonStockPriceFinder extends Object implements StockPriceFinder
Finds stock price with polygon api
  • Method Details

    • get

      public static PolygonStockPriceFinder get()
      Lazily gets stock price finder
      Returns:
      stock finder
    • find

      public Optional<StockPrice> find(String ticket)
      Finds the price of one unit of a stock
      Specified by:
      find in interface StockPriceFinder
      Parameters:
      ticket - Ticket the stock is sold under
      Returns:
      price of stock if found else empty