How parikshithrg/pg-terminal works
PG-terminal is a private, read-only market terminal served locally. The principal workflow is an owner opening the web interface, supplying a Kite request token, and having the server exchange it for a daily access token and verify the profile; the Seasonality workflow stores validated completed candles and fetches only newer sessions on later loads. The excerpts establish SQLite storage and candle validation, while most server and interface internals were not sampled, so those links are limited to README evidence or marked unverified.
Main entry points: server.py Local server · index.html Web interface · eod_store.py Validated candle store · styles.css Shared styles
Components 9
Terminal interface
- Web interface
dist/index.html - Shared styles
dist/styles.css - Reference universes
dist/reference-universes.js
Local runtime
- Local server
server.py - Kite API
Market data
- Seasonality candles
server.py - Validated candle store
eod_store.py - SQLite database
Other components
- Terminal owner
Connections 8
- Terminal owner → Web interface: opens
README.md - Web interface → Local server: served by
README.md - Terminal owner → Local server: submits token
README.md - Local server → Kite API: exchanges token
README.md - Local server → Kite API: verifies profile
README.md - Local server → Validated candle store: uses storage
- Validated candle store → SQLite database: reads and writes
eod_store.py - Web interface → Shared styles: loads styles
README.md