Skip to content
System One

zadescoxp/Jev-Trades

A Next.js dashboard that streams one-minute crypto candles from Yahoo Finance and applies TypeSafe decisions to a simulated paper-trading portfolio, gated by a confidence threshold per risk profile. No live broker or order API is connected.

Jev Trades making a paper trade
Image from github.com

zadescoxp/Jev-Trades on GitHub

Stars
30
Forks
5
Language
Python
License
Apache-2.0
Last push
18 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

    from schema import Questions

LOG_PATH = Path(__file__).with_name("agent_log.jsonl")
TYPESAFE_URL = "https://api.typesafe.ai/v1/systemone"
load_dotenv(Path(__file__).with_name(".env"))
if os.getenv("TYPESAFE_AI_API_KEY") and not os.getenv("TYPESAFE_API_KEY"):
    os.environ["TYPESAFE_API_KEY"] = os.environ["TYPESAFE_AI_API_KEY"]


class PaperTrader:
    def __init__(self, capital: float = 100_000.0, max_wallet_position_pct: float = 0.75, risk_appetite: str = "balanced") -> None:
        self.lock = threading.RLock()
        self.starting_cash = capital
        self.max_wallet_position_pct = max(0.01, min(max_wallet_position_pct, 1.0))
        self.risk_appetite = risk_appetite

View in pipeline/paper_trader.py

Open on GitHub

More like this

Use cases this is tagged with