TaiwanQuant's Newsletter

TaiwanQuant's Newsletter

Realistic Backtester for Perpetual Futures (Part 1/2) (With Code)

A guide to writing a realistic market simulator for Crypto perpetual futures.

TaiwanQuant's avatar
TaiwanQuant
Jul 29, 2023
∙ Paid

Table of Contents

Part 1:

  • Introduction

  • Simulator/backtester architecture

  • Preparing the data

  • Simulating a single market

  • Simulating market orders

Part 2:

  • Simulating trading costs

  • Simulating funding

  • Simulating many markets

  • Finish

  • Subscriber materials (source code)

Introduction

In the last article, we looked at how markets work and at simulating them in theory.

Today we w…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 TaiwanQuant · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture