kestrel.markets
Version:
A typed, token-efficient language + runtime for agentic trading: agents author bounded plans, the runtime fires them at the tick. CLI + typed library + MCP server.
23 lines (22 loc) • 1.41 kB
text/typescript
/**
* # adapters — the edges (broker, market-data feed, lake)
*
* Charter: the platform's outer seams, where implementations vary but the interface does
* not. **Broker execution** is BYO-broker — the client's own plans through the client's
* own account via a broker adapter or broker MCP; Kestrel never holds custody. The
* **market-data feed** is the live tick/quote source, colocated with the runtime. The
* **lake** is chDB over object storage (R2/GCS), native in TS/Bun — read-only history
* for Grade and sim. Modes **sim | paper | live** are one code path through the Session;
* only the gate adapter behind this seam differs, which is what makes honest grading
* structural rather than a promise.
*
* (Phase 1: broker + feed are charter only. The **lake** accessor is implemented under
* `./lake/` — chDB over object storage with a local hot cache — and imported directly from
* `src/adapters/lake/index.ts` by Grade/sim. The barrel stays charter-only by design; see
* `tests/smoke.test.ts`.)
*
* NOTE: this barrel exports nothing on purpose — the empty barrel is intentional documentation, not an
* oversight. Broker + feed are charter-only (no code yet), and the lake accessor is imported directly from
* `src/adapters/lake/index.ts` rather than re-exported here, so there is deliberately no public surface to
* re-export. Do not "fix" this by adding exports.
*/