Skip to content
Pezhman’s Gallery
فا

Trading agent & evaluation

Royin

A team-built Wallex trading-agent prototype with simulation, risk limits and decision review.

Pezhman Karim Sarmadi’s roleTeam development
Chart candles and a signal line printed on a dark grid

A model proposes. Risk rules decide what can run.

Royin connects an asset, timestamp and market evidence to each decision. The repository also records the team’s Wallex-specific recognition at the hackathon.

Research and risk

Structured forecasts with independent limits

  • Before an order

    Size positions using volatility and liquidity and check fees, quantity steps and resale viability.

Orders and evaluation

Simulate, reconcile and replay

  1. Survive interruption

    Track locked funds, partial fills and uncertain order states. Persist position and model-budget state across restarts.

  2. Measure outcomes

    Monitor equity, drawdown and model use, then replay a recorded run against a baseline.

Product views

Monitoring
Monitoring

Documented monitoring dashboard.

Open in gallery
Drawdown
Drawdown

Drawdown and portfolio monitoring view.

Open in gallery

Architecture and tools

What happens between a forecast and an order

  1. Capture market context

    Market inputs and timestamps are validated before they are passed to the model.

  2. Check the proposal

    The host applies its own risk and state checks to the model’s structured proposal.

  3. Keep a decision trail

    Executed and blocked decisions are logged. The featured chart compares drawdown on demonstration data.

Agent and broker

Structured model output, broker adapters and persisted state.

  • Python
  • Pydantic AI
  • SQLite
  • Wallex API

Monitoring

An RTL dashboard reads decision and ledger records.

  • HTML
  • CSS
  • JavaScript
  • SVG

Project links