repowisejarrodwatts/jev-trader

Architecture of jarrodwatts/jev-trader

jarrodwatts/jev-trader is 46 source files holding 305 symbols across 4 modules, written mainly in TypeScript, Dockerfile. The largest module is web, with 13 files, and 14 files are entry points into the dependency graph.

How jev-trader fits together

Copy .env.example to .env, install dependencies with bun install, and start it with bun run start. The loop in src/trader.ts makes each block's decision, and src/market.ts builds the batchUpdate that cancels resting orders and places the new one. src/server.ts serves a snapshot, a history of block events, and an SSE stream that feeds the dashboard. Without a PRIVATE_KEY it runs as a dry run with simulated fills.

Largest modules

  • web: 13 files and 1,102 lines of code
  • scripts: 11 files and 313 lines of code
  • src: 9 files and 996 lines of code
  • root: 2 files and 8 lines of code

Languages

By file count: TypeScript 34 files, Dockerfile 1 file.

Documentation

Repowise documents jev-trader in 55 pages generated from the source, 9 of them written explanations of the repository and its modules. Module guides include:

  • root: Application Root Entry
  • scripts: Bench and Probe Tooling
  • src: Trading Core Application

More on jev-trader: summary and FAQ, codebase overview, code health.