Saltar al contenido
Jev | typesafeAPI & Playground
…

Use Cases / trading-signal

Paper trading stance

A trading loop that asks a chat model what to do next gets a paragraph, then someone still has to parse buy or sell out of it.

Try a related template free on this host — 5 anonymous real-API runs with no signup — then ship the same schema with a prepaid jv_live_ key. See is Jev free? and playground.

Why Jev

Public Jev trader demos keep the model on a stance: given spread, last prints, and an inventory cap you computed, return buy, sell, or hold plus a conviction score. The exchange, the order type, and the size stay in the strategy. This page is that judgment shape, not a brokerage.

How to define the decision

State is numbers and flags you computed, not a prompt to go make money. Choice is buy, sell, or hold. Score is how decisive the stance is. If conviction is weak, your code holds.

When to use Jev

  • Labeling a state your strategy already calculated, on paper
  • Forcing a hold when inventory is at a cap you put in the state
  • Logging a typed stance next to your backtest row

When not to use Jev

  • Placing, canceling, or sizing real orders
  • Predicting prices or promising returns
  • Replacing risk limits written in code

Failure modes and human fallback

  • Upstream or network errors: retry with backoff; do not invent a decision.
  • Low confidence: route to a human queue or safer default — never auto-act on money/destructive tools.
  • Schema drift: keep a golden fixture set in CI so label changes fail the build before production.
  • Not financial advice. This host does not connect to an exchange and does not accept order flow.
  • Paper labels can be wrong. Do not wire them to live capital from this sample.
  • Inventory caps and kill switches belong in your strategy, not in the model.

API example

Same prepaid jv_live_ balance as tools. Output tokens are free on this host's metering model.

curl
curl https://jevtypesafe.org/api/v1/decide \
  -H "Authorization: Bearer jv_live_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"state":"Paper book. Spread 8 bps versus a 3 bps median. Last three prints hit the bid. Inventory is already at the strategy maximum long.","questions":{"stance":{"type":"choice","instructions":"What paper stance fits this state without exceeding the inventory cap?","criteria":{"buy":"add long exposure","sell":"reduce long exposure","hold":"do nothing"}},"conviction":{"type":"score","instructions":"How decisive is that stance?","criteria":["weak","moderate","strong"]}}}'

FAQ

Can I trade through this API?
No. The call returns a paper label. It does not send orders. Prepaid packs pay for the judgment only.
Is a buy label a recommendation?
No. It is the option that scored highest on the state you supplied. It is not advice and not a prediction.

Related use cases

Ready to build?

Free anonymous tool runs, then prepaid packs and a jv_live_ key — independent host, not affiliated with TypeSafe AI.

Jev Trader Pattern | Paper Buy, Sell, or Hold