RUST Finance Advanced

AI Trading Decision Service

Build a trading decision service: the Jev AI model assesses the market, and your code decides whether to enter a trade.

Premium · 11h 26m · 8 ch
Practice →
AI Trading Decision Service cover

What you'll build

We will build a complete component of an algorithmic trading system in Rust—a decision service. It accepts the market state from the client—technical indicators and their short history—forms a request to the Jev AI model from them, receives probabilistic assessments for each side of the trade from it, and turns them into one decision according to a rule: open a long position, a short position, or stay out of the market.

The main principle: the model assesses, the service decides. The model does not calculate indicators or issue orders—it says how closely the market picture resembles the one described in the criteria, while the rule that turns its assessments into an action remains ordinary code: with thresholds for the sides of the trade and two brakes—one for market overheating and one for hostile volatility. Along with the data, the model receives a description of each field, while the thresholds, questions, and criteria live in the configuration with the ability to override them locally.

Learning objectives

✓Set up an HTTP service that accepts the market state and responds with a decision
✓Describe the market state with structures: the timeframe, indicator groups, and their short history
✓Ask Jev for a probabilistic assessment of each side of the trade using questions with criteria
✓Turn the model’s assessments into a decision using a rule with thresholds and brakes for overheating and hostile volatility
✓Move the thresholds, questions, and criteria into the configuration with local overrides
✓Give the model a description of each state field and test the completeness of the descriptions

Prerequisites

▸Confident knowledge of Rust syntax: structures, traits, and error handling
▸Familiarity with async in Rust and HTTP requests
▸A basic understanding of technical market indicators

Course curriculum

1 The Server Responds
—Service Skeleton
—Request Handler
—Starting the Server
—Address from Arguments
2 Decision in the Response
—Service Response
—Decision as a Type
3 Preparing to Call the Model
—Service Configuration
—Service
—Service Response or Error
—Connecting the Model Client
4 The Server Reads the Request
—Contract with the Client
—Market State in the Request
—Timeframe
—Momentum from Returns
—Trend and Range
—Volatility and Volume
—Testing Request Parsing
—State Sample
5 The Model Assesses the Market
—Question Catalog
—Judgment and Question
—Questions for the Model
—Model Client and Assessment
—Response Criteria
—Reading the Criteria
6 The Decision Grows
—Thresholds
—Long Trade
—Short Trade
—Threshold and the Opposite Side
—Market Overheating
—Overheating Safeguard
—Hostile Volatility
—Testing the Rule
7 Local Configuration
—Local Settings File
—Testing the Merge
—Testing the Catalog
8 What the Model Sees
—State Schema
—Descriptions of Trend, Range, Volatility, and Volume
—State with Facts
—Facts from the Schema
—Verification of Field Descriptions

Technologies

Rust Jev Algorithmic trading Technical indicators Probabilistic assessments Decision rule HTTP service

FAQ

Is this a video course?

No. You work through the project step by step in your browser, and the reference code for each step saves to your disk — yours to run and keep locally.

Do I need to install anything?

Only Rust. You read and build in your browser — the code is saved to a folder on your machine, and you run it with your own Rust toolchain.

Can I try it before subscribing?

Yes. Preview steps are available without a subscription so you can see the format and quality first.

What do I get with full access?

Every step unlocked, the Workbench app, a snapshot for each step, jump-to-any-step navigation, and all new playground releases.

Does it work with an AI agent like Claude or Codex?

Yes. You can work through a playground solo or alongside an AI agent.

Is there reference code?

Yes. Every step has a complete reference solution you can compare against.

Newsletter

New playgrounds in your inbox

Get an email when a new playground drops, plus the occasional engineering deep-dive. No spam, unsubscribe anytime.