N. C. Lucien · Software Engineer
Download CV

2025 · Team · Internal

OmniTrader

LLM-backed trading agents that score market and social signals before execution, behind a NestJS control plane.

Lead EngineerBoardingWorkMay 2025nowPython · TypeScript · NestJS · gRPC · PostgreSQL · Prisma · Kysely · Redis · RabbitMQ · Prometheus · Docker

01

Mission

A trading product where configurable LLM-backed agents score market and social signals (Twitter and Telegram feeds over gRPC) before anything executes. The interesting part is not the trade; it is deciding, with an audit trail, whether to trade at all.

For whom: a Primus Cloud Solutions product. Constraints: every agent run must be attributable and costed, metrics must be first-class, and the Python agents and TypeScript services must share one contract.

02

Manifest

Bill of materials
LayerChoiceVersionWhy
agentsPython agent serviceConfigurable LLM-backed agents scoring market and social signals.
servicesNestJS central serviceAuth, realtime eventing, cost accounting, REST and gRPC.
servicesgRPC + protobufOne contract across Python and TypeScript.
dataPostgreSQL + Prisma + KyselyRuns, scores, and costs with typed queries.
infraPrometheus + RabbitMQ + DockerMetrics first, durable queues, one compose to run it.
03

Decisions

  • A Python agent service, a NestJS central service. Python where the models and signal libraries live; NestJS for auth, realtime eventing, cost accounting, and the REST and gRPC APIs.

  • gRPC between them. One protobuf contract, generated on both sides.

  • Prometheus metrics from day one. Agent latency, token spend, and signal counts are dashboards, not log greps.

  • Cost accounting per agent run. Every model call is attributed to an agent, a strategy, and a user.

04

Impact

Signal feeds
Twitter, Telegram

Still boarding: the agent service, control plane, and metrics are in place; execution is gated until the signal scoring proves itself on paper. Team of four.

05

What broke

Not in production long enough to have a proper incident. The first thing I would fix: agent cost accounting is computed from the model response after the fact, so a runaway strategy can spend a whole budget in one loop before the cap applies. Pre-flight budget reservation per run is the next change.

06

Ship log

  1. Started at Primus Cloud Solutions
  2. Now: boarding, execution gated