Class TradingDashboard

java.lang.Object
com.quantfinlib.trading.TradingDashboard
All Implemented Interfaces:
AutoCloseable

public final class TradingDashboard extends Object implements AutoCloseable
Zero-dependency live trading dashboard (JDK com.sun.net.httpserver): serves a self-refreshing HTML page and a JSON status endpoint with the paper-trading account (cash, equity, realized Pinvalid input: '&L', positions, rejections) and any attached latency histograms — the whole live loop, observable in a browser.
  • Constructor Details

  • Method Details

    • attachLatency

      public TradingDashboard attachLatency(String name, LatencyRecorder recorder)
      Attaches a latency histogram to the status payload (call before or after start).
    • start

      public void start()
    • port

      public int port()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable