DeFi University
Skip to lesson

Exercise 5

Two-Clock Simulation Inside the Study

About 15 min

Your task

You'll review a short simulator sketch the way a code reviewer would, find four lines that mix the discovery and execution clocks, measure how one of them changes which trades exist, and rewrite the sketch so each leak is closed. Afterwards you can read a backtest's code for clock leaks, not just its results.

Time
20 to 30 minutes
You'll need
a calculator and Lesson 5's discover/execute table
Builds on
Lesson 5

Warm-up

Check yourself

Which of these may execute() read at bar t?

Check yourself

The funding rate stamped 13:00 UTC on Hyperliquid covers which period?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.