jgtml

📡 Trading Intent Capture API

This document proposes a structured HTTP interface for recording trader observations and generating .jgtml-spec packages.

NOTICE

Overview

Traders narrate their market analysis across multiple instruments and timeframes. The API maintains session state so that an LLM can transform these observations into a specification. This design supports real-time voice or text input and allows a stateless LLM to recall the full context.

Note from William: The flow below is still evolving. The sequential, multi-timeframe rhythm of an actual trading session may require further refinement. Treat this specification as a draft for future tightening.

Endpoints

POST /intent/initiate

Start a new intent session.

POST /intent/observe

Send a raw observation string.

GET /intent/state

Retrieve current session information.

POST /intent/label

Annotate or correct an element.

POST /intent/confirm

Finalize the .jgtml-spec generation.

GET /intent/history

Retrieve past specifications or narrative echoes.

Requirements

This API is intended to integrate with the broader jgtagentic ecosystem and enable recursive narrative capture from trader to specification.