Skip to main content

Module monitor

Module monitor 

Source
Expand description

§Live Token Monitor

This module implements a real-time terminal UI for monitoring token metrics. It displays live-updating charts for price, volume, transactions, and liquidity.

§Usage

From interactive mode:

scope> monitor USDC
scope> mon 0x1234...

§Features

  • Real-time price chart with sliding window
  • Volume bar chart
  • Buy/sell ratio gauge
  • Key metrics panel (price, liquidity, market cap, 24h volume)
  • Keyboard controls: Q=quit, R=refresh, P=pause

Structs§

DataPoint
A data point with timestamp, value, and whether it’s real (from API) or synthetic.
MonitorApp
Main monitor application.
MonitorState
State for the live token monitor.
OhlcCandle
OHLC (Open-High-Low-Close) candlestick data for a time period.

Enums§

ChartMode
Chart display mode.
TimePeriod
Time period for chart display (limited to 24 hours of data retention).

Functions§

run
Entry point for the monitor command from interactive mode.