matching-engine 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- matching_engine-0.2.1/.claude/launch.json +11 -0
- matching_engine-0.2.1/.github/workflows/pages.yml +34 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/CHANGELOG.md +11 -1
- {matching_engine-0.2.0 → matching_engine-0.2.1}/PKG-INFO +3 -1
- {matching_engine-0.2.0 → matching_engine-0.2.1}/README.md +2 -0
- matching_engine-0.2.1/landing/index.html +519 -0
- matching_engine-0.2.1/landing/scene.js +256 -0
- matching_engine-0.2.1/landing/vendor/three/three.module.js +53044 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/pyproject.toml +1 -1
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/__init__.py +1 -1
- {matching_engine-0.2.0 → matching_engine-0.2.1}/uv.lock +1 -1
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.dockerignore +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.gitattributes +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.github/dependabot.yml +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.github/workflows/ci.yml +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.github/workflows/release.yml +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.gitignore +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/.python-version +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/CONTRIBUTING.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/Dockerfile +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/LICENSE +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/Makefile +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/SECURITY.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/bench/_common.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/bench/bench_engine.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/bench/bench_gateway.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/bench/bench_recovery.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/docker-compose.yml +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/docs/adr/0001-single-threaded-engine-per-market.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/docs/adr/0002-wal-format-and-fsync-policy.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/docs/adr/0003-integer-ticks-and-lots.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/docs/adr/0004-python-first-with-a-rust-path.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/docs/adr/0005-stop-orders-and-amend.md +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/requirements.txt +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/__main__.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/book.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/cli.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/domain.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/engine.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/events.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/gateway/__init__.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/gateway/app.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/gateway/config.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/gateway/marketdata.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/gateway/schemas.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/gateway/worker.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/journal.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/market.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/py.typed +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/sequencer.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/snapshot.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/wal.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/src/matching_engine/workload.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/conftest.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/crash_writer.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/cancel_after_partial_fill.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/cancel_rejections.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/fok_reject_then_fill.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/ioc_partial_then_cancel.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/market_order_partial_then_cancel.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/partial_fill_rests_remainder.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/post_only_reject_and_rest.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/stp_cancel_both.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/stp_cancel_maker.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/stp_cancel_taker.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/sweep_levels_with_price_improvement.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/time_priority_at_one_price.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/golden/validation_rejects.json +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/helpers.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_book.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_cli.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_crash.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_domain.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_gateway.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_golden.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_market.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_marketdata.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_matching.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_properties.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_protections.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_recovery.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_replace.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_sequencer.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_stop_orders.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_time_in_force.py +0 -0
- {matching_engine-0.2.0 → matching_engine-0.2.1}/tests/test_wal.py +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Publishes landing/ as a static site on GitHub Pages.
|
|
2
|
+
name: Pages
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
paths:
|
|
8
|
+
- "landing/**"
|
|
9
|
+
- ".github/workflows/pages.yml"
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: pages
|
|
14
|
+
cancel-in-progress: false
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
pages: write
|
|
19
|
+
id-token: write
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
deploy:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
environment:
|
|
25
|
+
name: github-pages
|
|
26
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
- uses: actions/configure-pages@v5
|
|
30
|
+
- uses: actions/upload-pages-artifact@v3
|
|
31
|
+
with:
|
|
32
|
+
path: landing
|
|
33
|
+
- id: deployment
|
|
34
|
+
uses: actions/deploy-pages@v4
|
|
@@ -8,6 +8,15 @@ cannot read the previous release's files is a major version.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.2.1] — 2026-11-30
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- A static landing page, published via GitHub Pages at
|
|
16
|
+
<https://ctrlaltdevelop.github.io/matching-engine/>, with a Three.js
|
|
17
|
+
visualization of the order book and a tour of the architecture, order
|
|
18
|
+
types, benchmarks and tests.
|
|
19
|
+
|
|
11
20
|
## [0.2.0] — 2026-11-26
|
|
12
21
|
|
|
13
22
|
### Added
|
|
@@ -75,7 +84,8 @@ cannot read the previous release's files is a major version.
|
|
|
75
84
|
- Golden, property-based, replay, crash (killed subprocess) and gateway tests;
|
|
76
85
|
engine, recovery and end-to-end benchmarks.
|
|
77
86
|
|
|
78
|
-
[Unreleased]: https://github.com/CtrlAltDevelop/matching-engine/compare/v0.2.
|
|
87
|
+
[Unreleased]: https://github.com/CtrlAltDevelop/matching-engine/compare/v0.2.1...HEAD
|
|
88
|
+
[0.2.1]: https://github.com/CtrlAltDevelop/matching-engine/compare/v0.2.0...v0.2.1
|
|
79
89
|
[0.2.0]: https://github.com/CtrlAltDevelop/matching-engine/compare/v0.1.1...v0.2.0
|
|
80
90
|
[0.1.1]: https://github.com/CtrlAltDevelop/matching-engine/compare/v0.1.0...v0.1.1
|
|
81
91
|
[0.1.0]: https://github.com/CtrlAltDevelop/matching-engine/releases/tag/v0.1.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: matching-engine
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: A deterministic price-time priority matching engine with a checksummed write-ahead log, snapshots and a FastAPI gateway.
|
|
5
5
|
Project-URL: Homepage, https://github.com/CtrlAltDevelop/matching-engine
|
|
6
6
|
Project-URL: Source, https://github.com/CtrlAltDevelop/matching-engine
|
|
@@ -45,6 +45,8 @@ A price-time priority order book that matches deterministically, survives a
|
|
|
45
45
|
crash with every acknowledged order intact, and publishes measured numbers
|
|
46
46
|
rather than claimed ones.
|
|
47
47
|
|
|
48
|
+
**[Landing page →](https://ctrlaltdevelop.github.io/matching-engine/)**
|
|
49
|
+
|
|
48
50
|
- **Deterministic:** no clock or randomness inside the engine. The same log
|
|
49
51
|
always rebuilds the same book, down to queue position, checked by a state
|
|
50
52
|
hash.
|
|
@@ -14,6 +14,8 @@ A price-time priority order book that matches deterministically, survives a
|
|
|
14
14
|
crash with every acknowledged order intact, and publishes measured numbers
|
|
15
15
|
rather than claimed ones.
|
|
16
16
|
|
|
17
|
+
**[Landing page →](https://ctrlaltdevelop.github.io/matching-engine/)**
|
|
18
|
+
|
|
17
19
|
- **Deterministic:** no clock or randomness inside the engine. The same log
|
|
18
20
|
always rebuilds the same book, down to queue position, checked by a state
|
|
19
21
|
hash.
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Matching Engine — deterministic, durable, exact</title>
|
|
7
|
+
<meta name="description" content="A price-time priority order book that matches deterministically, survives a crash with every acknowledged order intact, and publishes measured numbers rather than claimed ones." />
|
|
8
|
+
<link rel="icon" href="data:," />
|
|
9
|
+
<style>
|
|
10
|
+
:root{
|
|
11
|
+
--bg: #05070a;
|
|
12
|
+
--bg-alt: #0a0e14;
|
|
13
|
+
--panel: rgba(255,255,255,0.03);
|
|
14
|
+
--border: rgba(255,255,255,0.08);
|
|
15
|
+
--text: #e7ecf2;
|
|
16
|
+
--text-dim: #8b96a5;
|
|
17
|
+
--accent: #3ddc97;
|
|
18
|
+
--accent-2: #4f8cff;
|
|
19
|
+
--danger: #ff5d6c;
|
|
20
|
+
--mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
21
|
+
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
|
|
22
|
+
}
|
|
23
|
+
*{ box-sizing: border-box; }
|
|
24
|
+
html,body{ margin:0; padding:0; }
|
|
25
|
+
body{
|
|
26
|
+
background: var(--bg);
|
|
27
|
+
color: var(--text);
|
|
28
|
+
font-family: var(--sans);
|
|
29
|
+
line-height: 1.55;
|
|
30
|
+
overflow-x: hidden;
|
|
31
|
+
}
|
|
32
|
+
a{ color: var(--accent-2); text-decoration: none; }
|
|
33
|
+
a:hover{ text-decoration: underline; }
|
|
34
|
+
|
|
35
|
+
#hero-canvas{
|
|
36
|
+
position: fixed;
|
|
37
|
+
inset: 0;
|
|
38
|
+
z-index: 0;
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.scrim{
|
|
43
|
+
position: fixed;
|
|
44
|
+
inset: 0;
|
|
45
|
+
z-index: 1;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
background:
|
|
48
|
+
radial-gradient(ellipse 80% 50% at 50% 0%, rgba(5,7,10,0) 0%, rgba(5,7,10,0.32) 55%, rgba(5,7,10,1) 100%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
header.nav{
|
|
52
|
+
position: fixed;
|
|
53
|
+
top: 0; left: 0; right: 0;
|
|
54
|
+
z-index: 10;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
padding: 18px 28px;
|
|
59
|
+
backdrop-filter: blur(6px);
|
|
60
|
+
background: linear-gradient(to bottom, rgba(5,7,10,0.65), rgba(5,7,10,0));
|
|
61
|
+
}
|
|
62
|
+
.brand{
|
|
63
|
+
display:flex; align-items:center; gap:10px;
|
|
64
|
+
font-weight: 600; letter-spacing: 0.02em; font-size: 15px;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
.brand .dot{ width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
|
|
68
|
+
nav.links{ display:flex; gap:28px; font-size: 14px; color: var(--text-dim); }
|
|
69
|
+
nav.links a{ color: var(--text-dim); white-space: nowrap; }
|
|
70
|
+
nav.links a:hover{ color: var(--text); text-decoration:none; }
|
|
71
|
+
@media (max-width: 760px){
|
|
72
|
+
nav.links{ display:none; }
|
|
73
|
+
header.nav{ padding: 14px 18px; }
|
|
74
|
+
}
|
|
75
|
+
.nav-cta{
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
padding: 8px 14px;
|
|
78
|
+
border: 1px solid var(--border);
|
|
79
|
+
border-radius: 8px;
|
|
80
|
+
color: var(--text) !important;
|
|
81
|
+
}
|
|
82
|
+
.nav-cta:hover{ border-color: var(--accent); text-decoration:none; }
|
|
83
|
+
|
|
84
|
+
main{ position: relative; z-index: 2; }
|
|
85
|
+
|
|
86
|
+
.hero{
|
|
87
|
+
min-height: 100vh;
|
|
88
|
+
display:flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
text-align: center;
|
|
93
|
+
padding: 120px 24px 80px;
|
|
94
|
+
}
|
|
95
|
+
@media (max-width: 760px){
|
|
96
|
+
.hero{ padding: 96px 20px 60px; }
|
|
97
|
+
.stat-strip{ gap: 28px 40px; }
|
|
98
|
+
}
|
|
99
|
+
.kicker{
|
|
100
|
+
font-family: var(--mono);
|
|
101
|
+
font-size: 12.5px;
|
|
102
|
+
letter-spacing: 0.12em;
|
|
103
|
+
text-transform: uppercase;
|
|
104
|
+
color: var(--accent);
|
|
105
|
+
margin-bottom: 18px;
|
|
106
|
+
opacity: 0.9;
|
|
107
|
+
}
|
|
108
|
+
h1.title{
|
|
109
|
+
font-size: clamp(32px, 6vw, 64px);
|
|
110
|
+
font-weight: 700;
|
|
111
|
+
letter-spacing: -0.02em;
|
|
112
|
+
max-width: 920px;
|
|
113
|
+
margin: 0 0 20px;
|
|
114
|
+
background: linear-gradient(180deg, #ffffff 0%, #c9d3e0 100%);
|
|
115
|
+
-webkit-background-clip: text;
|
|
116
|
+
background-clip: text;
|
|
117
|
+
color: transparent;
|
|
118
|
+
}
|
|
119
|
+
p.subtitle{
|
|
120
|
+
font-size: clamp(15px, 2vw, 18.5px);
|
|
121
|
+
color: var(--text-dim);
|
|
122
|
+
max-width: 680px;
|
|
123
|
+
margin: 0 0 36px;
|
|
124
|
+
}
|
|
125
|
+
.cta-row{ display:flex; gap:16px; flex-wrap: wrap; justify-content:center; }
|
|
126
|
+
.btn{
|
|
127
|
+
font-family: var(--mono);
|
|
128
|
+
font-size: 14px;
|
|
129
|
+
padding: 13px 22px;
|
|
130
|
+
border-radius: 10px;
|
|
131
|
+
border: 1px solid var(--border);
|
|
132
|
+
transition: all 0.15s ease;
|
|
133
|
+
}
|
|
134
|
+
.btn-primary{
|
|
135
|
+
background: var(--accent);
|
|
136
|
+
color: #04160f !important;
|
|
137
|
+
border-color: var(--accent);
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
}
|
|
140
|
+
.btn-primary:hover{ box-shadow: 0 0 24px rgba(61,220,151,0.45); text-decoration:none; transform: translateY(-1px); }
|
|
141
|
+
.btn-ghost{ color: var(--text) !important; }
|
|
142
|
+
.btn-ghost:hover{ border-color: var(--text-dim); text-decoration:none; transform: translateY(-1px); }
|
|
143
|
+
|
|
144
|
+
.stat-strip{
|
|
145
|
+
display:flex; gap: 48px; flex-wrap: wrap; justify-content:center;
|
|
146
|
+
margin-top: 64px;
|
|
147
|
+
font-family: var(--mono);
|
|
148
|
+
}
|
|
149
|
+
.stat-strip .stat{ text-align:center; min-width: 120px; }
|
|
150
|
+
.stat-strip .stat .num{ font-size: 22px; font-weight: 700; color: var(--text); }
|
|
151
|
+
.stat-strip .stat .label{ font-size: 12px; color: var(--text-dim); margin-top: 4px; }
|
|
152
|
+
|
|
153
|
+
section{
|
|
154
|
+
max-width: 1080px;
|
|
155
|
+
margin: 0 auto;
|
|
156
|
+
padding: 110px 24px;
|
|
157
|
+
}
|
|
158
|
+
.section-head{ margin-bottom: 48px; text-align:center; }
|
|
159
|
+
.section-head .kicker{ margin-bottom: 10px; }
|
|
160
|
+
.section-head h2{ font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.01em; }
|
|
161
|
+
.section-head p{ color: var(--text-dim); max-width: 620px; margin: 0 auto; }
|
|
162
|
+
|
|
163
|
+
.grid-4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
|
|
164
|
+
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
|
|
165
|
+
@media (max-width: 860px){ .grid-4{ grid-template-columns: repeat(2,1fr); } }
|
|
166
|
+
@media (max-width: 560px){ .grid-4, .grid-2{ grid-template-columns: 1fr; } }
|
|
167
|
+
|
|
168
|
+
.card{
|
|
169
|
+
background: var(--panel);
|
|
170
|
+
border: 1px solid var(--border);
|
|
171
|
+
border-radius: 14px;
|
|
172
|
+
padding: 26px;
|
|
173
|
+
}
|
|
174
|
+
.card h3{ margin: 0 0 10px; font-size: 17px; }
|
|
175
|
+
.card p{ margin:0; color: var(--text-dim); font-size: 14.5px; }
|
|
176
|
+
.card .icon{
|
|
177
|
+
width: 34px; height:34px; border-radius:9px;
|
|
178
|
+
display:flex; align-items:center; justify-content:center;
|
|
179
|
+
background: rgba(61,220,151,0.1);
|
|
180
|
+
color: var(--accent);
|
|
181
|
+
margin-bottom: 16px;
|
|
182
|
+
font-family: var(--mono); font-weight:700;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.flow{
|
|
186
|
+
display:flex; align-items:center; justify-content:center; gap: 6px;
|
|
187
|
+
flex-wrap: wrap;
|
|
188
|
+
font-family: var(--mono); font-size: 13px;
|
|
189
|
+
color: var(--text-dim);
|
|
190
|
+
margin-top: 40px;
|
|
191
|
+
}
|
|
192
|
+
.flow .node{
|
|
193
|
+
padding: 10px 16px;
|
|
194
|
+
border: 1px solid var(--border);
|
|
195
|
+
border-radius: 9px;
|
|
196
|
+
color: var(--text);
|
|
197
|
+
background: var(--bg-alt);
|
|
198
|
+
white-space: nowrap;
|
|
199
|
+
}
|
|
200
|
+
.flow .node.on{ border-color: var(--accent); color: var(--accent); }
|
|
201
|
+
.flow .arrow{ color: var(--text-dim); }
|
|
202
|
+
|
|
203
|
+
table.spec{
|
|
204
|
+
width:100%;
|
|
205
|
+
border-collapse: collapse;
|
|
206
|
+
font-size: 14px;
|
|
207
|
+
font-family: var(--mono);
|
|
208
|
+
}
|
|
209
|
+
table.spec th, table.spec td{
|
|
210
|
+
text-align:left;
|
|
211
|
+
padding: 11px 14px;
|
|
212
|
+
border-bottom: 1px solid var(--border);
|
|
213
|
+
}
|
|
214
|
+
table.spec th{ color: var(--text-dim); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
|
|
215
|
+
table.spec td:last-child, table.spec th:last-child{ color: var(--accent); text-align:right; }
|
|
216
|
+
|
|
217
|
+
pre.code{
|
|
218
|
+
background: var(--bg-alt);
|
|
219
|
+
border: 1px solid var(--border);
|
|
220
|
+
border-radius: 12px;
|
|
221
|
+
padding: 20px 22px;
|
|
222
|
+
overflow-x: auto;
|
|
223
|
+
font-family: var(--mono);
|
|
224
|
+
font-size: 13.5px;
|
|
225
|
+
color: #c7d3e0;
|
|
226
|
+
line-height: 1.7;
|
|
227
|
+
}
|
|
228
|
+
pre.code .cmt{ color: var(--text-dim); }
|
|
229
|
+
pre.code .str{ color: var(--accent); }
|
|
230
|
+
|
|
231
|
+
.bench-row{ display:flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 14px; }
|
|
232
|
+
.bench-row:last-child{ border-bottom: none; }
|
|
233
|
+
.bench-row .v{ color: var(--accent-2); }
|
|
234
|
+
|
|
235
|
+
footer{
|
|
236
|
+
position:relative; z-index:2;
|
|
237
|
+
border-top: 1px solid var(--border);
|
|
238
|
+
padding: 40px 24px 60px;
|
|
239
|
+
text-align:center;
|
|
240
|
+
color: var(--text-dim);
|
|
241
|
+
font-size: 13px;
|
|
242
|
+
}
|
|
243
|
+
footer a{ color: var(--text-dim); }
|
|
244
|
+
footer a:hover{ color: var(--text); }
|
|
245
|
+
</style>
|
|
246
|
+
</head>
|
|
247
|
+
<body>
|
|
248
|
+
|
|
249
|
+
<canvas id="hero-canvas"></canvas>
|
|
250
|
+
<div class="scrim"></div>
|
|
251
|
+
|
|
252
|
+
<header class="nav">
|
|
253
|
+
<div class="brand"><span class="dot"></span> matching-engine</div>
|
|
254
|
+
<nav class="links">
|
|
255
|
+
<a href="#architecture">Architecture</a>
|
|
256
|
+
<a href="#orderbook">Order book</a>
|
|
257
|
+
<a href="#benchmarks">Benchmarks</a>
|
|
258
|
+
<a href="#testing">Testing</a>
|
|
259
|
+
<a href="#quickstart">Quickstart</a>
|
|
260
|
+
<a href="#roadmap">Roadmap</a>
|
|
261
|
+
</nav>
|
|
262
|
+
<a class="nav-cta" href="https://github.com/CtrlAltDevelop/matching-engine" target="_blank" rel="noopener">GitHub →</a>
|
|
263
|
+
</header>
|
|
264
|
+
|
|
265
|
+
<main>
|
|
266
|
+
<section class="hero">
|
|
267
|
+
<div class="kicker">price-time priority · python 3.12+ · mypy --strict</div>
|
|
268
|
+
<h1 class="title">A matching engine that tells you<br/>what it actually did.</h1>
|
|
269
|
+
<p class="subtitle">
|
|
270
|
+
Deterministic down to queue position. Durable through a process killed mid-write.
|
|
271
|
+
Exact in integer ticks and lots. Every number on this page was measured, not estimated.
|
|
272
|
+
</p>
|
|
273
|
+
<div class="cta-row">
|
|
274
|
+
<a class="btn btn-primary" href="#quickstart">Run it locally</a>
|
|
275
|
+
<a class="btn btn-ghost" href="https://github.com/CtrlAltDevelop/matching-engine" target="_blank" rel="noopener">View source</a>
|
|
276
|
+
</div>
|
|
277
|
+
<div class="stat-strip">
|
|
278
|
+
<div class="stat"><div class="num">~206k</div><div class="label">cmd/s sustained</div></div>
|
|
279
|
+
<div class="stat"><div class="num">3.1 µs</div><div class="label">p50 latency</div></div>
|
|
280
|
+
<div class="stat"><div class="num">O(1)</div><div class="label">add / cancel</div></div>
|
|
281
|
+
<div class="stat"><div class="num">100%</div><div class="label">acked orders survive a kill -9</div></div>
|
|
282
|
+
</div>
|
|
283
|
+
</section>
|
|
284
|
+
|
|
285
|
+
<section id="features">
|
|
286
|
+
<div class="section-head">
|
|
287
|
+
<div class="kicker">why it's built this way</div>
|
|
288
|
+
<h2>Four guarantees, not four adjectives</h2>
|
|
289
|
+
<p>Each one is backed by a specific test suite, not a claim in a README.</p>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="grid-4">
|
|
292
|
+
<div class="card">
|
|
293
|
+
<div class="icon">D</div>
|
|
294
|
+
<h3>Deterministic</h3>
|
|
295
|
+
<p>No clock or randomness inside the engine. The same log always rebuilds the same book, down to queue position, checked by a state hash.</p>
|
|
296
|
+
</div>
|
|
297
|
+
<div class="card">
|
|
298
|
+
<div class="icon">D</div>
|
|
299
|
+
<h3>Durable</h3>
|
|
300
|
+
<p>Checksummed, length-framed WAL with group commit. Torn writes are detected and cut off; corruption is refused; snapshots bound replay time.</p>
|
|
301
|
+
</div>
|
|
302
|
+
<div class="card">
|
|
303
|
+
<div class="icon">E</div>
|
|
304
|
+
<h3>Exact</h3>
|
|
305
|
+
<p>Integer ticks and lots from the gateway inwards. Decimals only on the wire, as strings — never a float near a price.</p>
|
|
306
|
+
</div>
|
|
307
|
+
<div class="card">
|
|
308
|
+
<div class="icon">T</div>
|
|
309
|
+
<h3>Tested like it fails</h3>
|
|
310
|
+
<p>Golden files, property-based invariants, replay determinism, and a real process killed mid-load — not just unit tests.</p>
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
</section>
|
|
314
|
+
|
|
315
|
+
<section id="architecture">
|
|
316
|
+
<div class="section-head">
|
|
317
|
+
<div class="kicker">architecture</div>
|
|
318
|
+
<h2>One worker per market, nothing shared</h2>
|
|
319
|
+
<p>Each market owns its own sequencer, WAL, snapshots and book. Orders are acknowledged only after they are on disk.</p>
|
|
320
|
+
</div>
|
|
321
|
+
<div class="flow">
|
|
322
|
+
<div class="node">Client</div>
|
|
323
|
+
<div class="arrow">→</div>
|
|
324
|
+
<div class="node">Gateway (FastAPI)</div>
|
|
325
|
+
<div class="arrow">→</div>
|
|
326
|
+
<div class="node on">Sequencer</div>
|
|
327
|
+
<div class="arrow">→</div>
|
|
328
|
+
<div class="node on">WAL · group commit</div>
|
|
329
|
+
<div class="arrow">→</div>
|
|
330
|
+
<div class="node">Engine</div>
|
|
331
|
+
<div class="arrow">→</div>
|
|
332
|
+
<div class="node">Events → caller + WS feed</div>
|
|
333
|
+
</div>
|
|
334
|
+
</section>
|
|
335
|
+
|
|
336
|
+
<section id="orderbook">
|
|
337
|
+
<div class="section-head">
|
|
338
|
+
<div class="kicker">order book</div>
|
|
339
|
+
<h2>Price levels in a SortedList, orders in a linked list</h2>
|
|
340
|
+
<p>Bid keys are negated prices, so on both sides <code>keys[0]</code> is the best level and "crosses the limit" is one comparison.</p>
|
|
341
|
+
</div>
|
|
342
|
+
<table class="spec">
|
|
343
|
+
<thead><tr><th>Operation</th><th>Complexity</th></tr></thead>
|
|
344
|
+
<tbody>
|
|
345
|
+
<tr><td>Add at an existing price level</td><td>O(1)</td></tr>
|
|
346
|
+
<tr><td>Add at a new price level</td><td>O(log L)</td></tr>
|
|
347
|
+
<tr><td>Cancel (level stays non-empty)</td><td>O(1)</td></tr>
|
|
348
|
+
<tr><td>Cancel (last order at its level)</td><td>O(log L)</td></tr>
|
|
349
|
+
<tr><td>Best bid / ask</td><td>O(1)</td></tr>
|
|
350
|
+
<tr><td>Fill against the head of the best level</td><td>O(1) per fill</td></tr>
|
|
351
|
+
<tr><td>L2 depth, top n levels</td><td>O(n)</td></tr>
|
|
352
|
+
<tr><td>FOK fillability check</td><td>O(levels crossed), no mutation</td></tr>
|
|
353
|
+
</tbody>
|
|
354
|
+
</table>
|
|
355
|
+
</section>
|
|
356
|
+
|
|
357
|
+
<section id="order-types">
|
|
358
|
+
<div class="section-head">
|
|
359
|
+
<div class="kicker">order types & rules</div>
|
|
360
|
+
<h2>Every command produces an ordered event list</h2>
|
|
361
|
+
<p><code>order_accepted</code>, <code>trade</code>, <code>order_cancelled</code> (reason <code>user</code>, <code>unfilled</code> or <code>self_trade</code>), <code>order_replaced</code>, <code>order_triggered</code>, <code>order_rejected</code> — each carrying the command's <code>seq</code> and <code>ts</code>.</p>
|
|
362
|
+
</div>
|
|
363
|
+
<table class="spec">
|
|
364
|
+
<thead><tr><th>Feature</th><th>Behaviour</th></tr></thead>
|
|
365
|
+
<tbody>
|
|
366
|
+
<tr><td>Limit</td><td>Matches at the resting price; the remainder rests if GTC</td></tr>
|
|
367
|
+
<tr><td>Market</td><td>Sweeps the book; must be IOC or FOK — no price to rest at</td></tr>
|
|
368
|
+
<tr><td>GTC / IOC / FOK</td><td>Rest / cancel unfilled / fill completely or reject with no trades</td></tr>
|
|
369
|
+
<tr><td>Post-only</td><td>Rejected if it would take liquidity; must be GTC</td></tr>
|
|
370
|
+
<tr><td>Self-trade prevention</td><td><code>cancel_taker</code> (default), <code>cancel_maker</code>, <code>cancel_both</code>, or <code>none</code></td></tr>
|
|
371
|
+
<tr><td>Stop / stop-limit</td><td><code>stop_price</code> parks the order off-book until the last trade price reaches it; cancellable while parked (<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/docs/adr/0005-stop-orders-and-amend.md" target="_blank" rel="noopener">ADR 5</a>)</td></tr>
|
|
372
|
+
<tr><td>Amend</td><td><code>PATCH</code> a resting order's price and remaining size; shrinking at the same price keeps queue position, anything else re-queues</td></tr>
|
|
373
|
+
<tr><td>Cancel</td><td>Owner only; cancelling a filled or unknown order is rejected</td></tr>
|
|
374
|
+
</tbody>
|
|
375
|
+
</table>
|
|
376
|
+
</section>
|
|
377
|
+
|
|
378
|
+
<section id="benchmarks">
|
|
379
|
+
<div class="section-head">
|
|
380
|
+
<div class="kicker">measured, not estimated</div>
|
|
381
|
+
<h2>Benchmarks</h2>
|
|
382
|
+
<p>Windows 11, i7-7700HQ (4c/8t laptop), 32 GB RAM, SATA SSD, CPython 3.14.7. Every figure is the median of several runs.</p>
|
|
383
|
+
</div>
|
|
384
|
+
<div class="grid-2">
|
|
385
|
+
<div class="card">
|
|
386
|
+
<h3>Engine, in-process</h3>
|
|
387
|
+
<p style="margin-bottom:14px;">1M commands · 189,443 trades · 411,172 orders resting</p>
|
|
388
|
+
<div class="bench-row"><span>Throughput</span><span class="v">185k–242k cmd/s</span></div>
|
|
389
|
+
<div class="bench-row"><span>Latency p50</span><span class="v">3.1–4.6 µs</span></div>
|
|
390
|
+
<div class="bench-row"><span>Latency p99</span><span class="v">21.5–26.6 µs</span></div>
|
|
391
|
+
<div class="bench-row"><span>Latency p99.9</span><span class="v">45.1–104.4 µs</span></div>
|
|
392
|
+
</div>
|
|
393
|
+
<div class="card">
|
|
394
|
+
<h3>End to end over HTTP</h3>
|
|
395
|
+
<p style="margin-bottom:14px;">Real uvicorn + httptools, 64 connections, 4 client processes</p>
|
|
396
|
+
<div class="bench-row"><span>fsync on · p50</span><span class="v">3.8 ms</span></div>
|
|
397
|
+
<div class="bench-row"><span>fsync off · p50</span><span class="v">1.9 ms</span></div>
|
|
398
|
+
<div class="bench-row"><span>fsync on · throughput</span><span class="v">894 orders/s</span></div>
|
|
399
|
+
<div class="bench-row"><span>fsync off · throughput</span><span class="v">1,320 orders/s</span></div>
|
|
400
|
+
</div>
|
|
401
|
+
</div>
|
|
402
|
+
</section>
|
|
403
|
+
|
|
404
|
+
<section id="testing">
|
|
405
|
+
<div class="section-head">
|
|
406
|
+
<div class="kicker">tested the way it can fail</div>
|
|
407
|
+
<h2>Not just unit tests</h2>
|
|
408
|
+
<p><code>make check</code> runs ruff, ruff format --check, mypy --strict and pytest together.</p>
|
|
409
|
+
</div>
|
|
410
|
+
<div class="grid-2">
|
|
411
|
+
<div class="card">
|
|
412
|
+
<h3>Golden & property tests</h3>
|
|
413
|
+
<p>Exact event streams for partial fills, level sweeps, time priority, IOC/FOK remainders, cancel rejections, post-only and all three STP modes. Hypothesis then throws random flows at the book and checks it is never crossed, every lot is accounted for, and no fill beats the taker's limit.</p>
|
|
414
|
+
</div>
|
|
415
|
+
<div class="card">
|
|
416
|
+
<h3>Recovery & crash tests</h3>
|
|
417
|
+
<p>The same WAL replayed twice gives the same state hash. A truncated or corrupted last record is detected and repaired. A real writer process is killed (<code>SIGKILL</code> / <code>TerminateProcess</code>) mid-load, and every acknowledged sequence number still comes back.</p>
|
|
418
|
+
</div>
|
|
419
|
+
</div>
|
|
420
|
+
</section>
|
|
421
|
+
|
|
422
|
+
<section id="quickstart">
|
|
423
|
+
<div class="section-head">
|
|
424
|
+
<div class="kicker">try it now</div>
|
|
425
|
+
<h2>Quickstart</h2>
|
|
426
|
+
<p>No account needed. One process, one port, OpenAPI docs included.</p>
|
|
427
|
+
</div>
|
|
428
|
+
<pre class="code"><span class="cmt"># install & serve</span>
|
|
429
|
+
uv sync --all-extras
|
|
430
|
+
uv run matching-engine serve <span class="cmt"># http://127.0.0.1:8000/docs</span>
|
|
431
|
+
|
|
432
|
+
<span class="cmt"># rest a sell, then take part of it with a market buy</span>
|
|
433
|
+
curl -s localhost:8000/markets/BTC-USDT/orders -H 'content-type: application/json' \
|
|
434
|
+
-d '{<span class="str">"account"</span>: 2, <span class="str">"side"</span>: <span class="str">"sell"</span>, <span class="str">"price"</span>: <span class="str">"64000.50"</span>, <span class="str">"quantity"</span>: <span class="str">"0.5"</span>}'
|
|
435
|
+
curl -s localhost:8000/markets/BTC-USDT/orders -H 'content-type: application/json' \
|
|
436
|
+
-d '{<span class="str">"account"</span>: 1, <span class="str">"side"</span>: <span class="str">"buy"</span>, <span class="str">"type"</span>: <span class="str">"market"</span>, <span class="str">"quantity"</span>: <span class="str">"0.2"</span>}'
|
|
437
|
+
|
|
438
|
+
curl -s localhost:8000/markets/BTC-USDT/depth <span class="cmt"># L2</span>
|
|
439
|
+
<span class="cmt"># live feed: ws://localhost:8000/markets/BTC-USDT/ws</span></pre>
|
|
440
|
+
<p style="text-align:center; color:var(--text-dim); font-size:14px; margin-top:28px;">
|
|
441
|
+
Or with Docker: <code>docker compose up --build</code>. State lives in the <code>engine-data</code> volume. To inspect a market's files after a crash without changing them: <code>uv run matching-engine verify data/BTC-USDT</code>.
|
|
442
|
+
</p>
|
|
443
|
+
</section>
|
|
444
|
+
|
|
445
|
+
<section id="configuration">
|
|
446
|
+
<div class="section-head">
|
|
447
|
+
<div class="kicker">configuration</div>
|
|
448
|
+
<h2>Environment variables</h2>
|
|
449
|
+
<p>Every knob that changes durability, throughput or memory behaviour, with its default.</p>
|
|
450
|
+
</div>
|
|
451
|
+
<table class="spec">
|
|
452
|
+
<thead><tr><th>Variable</th><th>Default</th><th>Meaning</th></tr></thead>
|
|
453
|
+
<tbody>
|
|
454
|
+
<tr><td><code>ME_DATA_DIR</code></td><td>data</td><td>One subdirectory per market: wal/, snapshots/</td></tr>
|
|
455
|
+
<tr><td><code>ME_MARKETS</code></td><td>BTC-USDT:0.01:0.00001, …</td><td>SYMBOL:TICK:LOT, comma-separated</td></tr>
|
|
456
|
+
<tr><td><code>ME_FSYNC</code></td><td>1</td><td>0 leaves flushing to the OS</td></tr>
|
|
457
|
+
<tr><td><code>ME_BATCH_MAX</code></td><td>512</td><td>Commands per group commit</td></tr>
|
|
458
|
+
<tr><td><code>ME_QUEUE_MAX</code></td><td>10000</td><td>Pending commands per market before 503</td></tr>
|
|
459
|
+
<tr><td><code>ME_SNAPSHOT_EVERY</code></td><td>100000</td><td>Commands between checkpoints</td></tr>
|
|
460
|
+
<tr><td><code>ME_DEPTH_LEVELS</code></td><td>20</td><td>L2 levels pushed over WebSocket</td></tr>
|
|
461
|
+
<tr><td><code>ME_SUBSCRIBER_QUEUE</code></td><td>1000</td><td>Messages buffered per subscriber before it's dropped</td></tr>
|
|
462
|
+
</tbody>
|
|
463
|
+
</table>
|
|
464
|
+
</section>
|
|
465
|
+
|
|
466
|
+
<section id="roadmap">
|
|
467
|
+
<div class="section-head">
|
|
468
|
+
<div class="kicker">what's next</div>
|
|
469
|
+
<h2>Roadmap</h2>
|
|
470
|
+
<p>The engine boundary (<code>process</code>, <code>export_state</code>, <code>restore</code>, <code>state_hash</code>) is drawn so the next step is a swap, not a rewrite.</p>
|
|
471
|
+
</div>
|
|
472
|
+
<div class="grid-2">
|
|
473
|
+
<div class="card">
|
|
474
|
+
<h3>Rust core via PyO3</h3>
|
|
475
|
+
<p>Same boundary, published numbers side by side. The golden, property and replay suites become the acceptance tests.</p>
|
|
476
|
+
</div>
|
|
477
|
+
<div class="card">
|
|
478
|
+
<h3>A process per market</h3>
|
|
479
|
+
<p>Fed over a ring buffer or shared-memory queue, so markets stop sharing one GIL.</p>
|
|
480
|
+
</div>
|
|
481
|
+
<div class="card">
|
|
482
|
+
<h3>Client order ids</h3>
|
|
483
|
+
<p>Idempotent retries after a timeout, plus stop / stop-limit orders and amend with defined priority rules.</p>
|
|
484
|
+
</div>
|
|
485
|
+
<div class="card">
|
|
486
|
+
<h3>Replication & ledger hooks</h3>
|
|
487
|
+
<p>Acknowledge once a follower has the WAL record; hold funds before sequencing and settle on trade events.</p>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
<p style="text-align:center; color:var(--text-dim); font-size:13.5px; margin-top:28px;">
|
|
491
|
+
Known today: no auth, risk checks or balances — the <code>account</code> field is trusted as sent. See
|
|
492
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/SECURITY.md" target="_blank" rel="noopener">SECURITY.md</a>.
|
|
493
|
+
</p>
|
|
494
|
+
</section>
|
|
495
|
+
</main>
|
|
496
|
+
|
|
497
|
+
<footer>
|
|
498
|
+
<div style="display:flex; gap:28px; justify-content:center; flex-wrap:wrap; margin-bottom:18px; font-family:var(--mono); font-size:12.5px;">
|
|
499
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/docs/adr/0001-single-threaded-engine-per-market.md" target="_blank" rel="noopener">ADR 1 · one engine per market</a>
|
|
500
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/docs/adr/0002-wal-format-and-fsync-policy.md" target="_blank" rel="noopener">ADR 2 · WAL & fsync</a>
|
|
501
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/docs/adr/0003-integer-ticks-and-lots.md" target="_blank" rel="noopener">ADR 3 · integer ticks</a>
|
|
502
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/docs/adr/0004-python-first-with-a-rust-path.md" target="_blank" rel="noopener">ADR 4 · Rust path</a>
|
|
503
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine/blob/main/docs/adr/0005-stop-orders-and-amend.md" target="_blank" rel="noopener">ADR 5 · stop orders & amend</a>
|
|
504
|
+
<a href="https://pypi.org/project/matching-engine/" target="_blank" rel="noopener">PyPI</a>
|
|
505
|
+
</div>
|
|
506
|
+
AGPL-3.0-only · © 2026 Mohammad Zarif ·
|
|
507
|
+
<a href="https://github.com/CtrlAltDevelop/matching-engine" target="_blank" rel="noopener">github.com/CtrlAltDevelop/matching-engine</a>
|
|
508
|
+
</footer>
|
|
509
|
+
|
|
510
|
+
<script type="importmap">
|
|
511
|
+
{
|
|
512
|
+
"imports": {
|
|
513
|
+
"three": "./vendor/three/three.module.js"
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
</script>
|
|
517
|
+
<script type="module" src="./scene.js"></script>
|
|
518
|
+
</body>
|
|
519
|
+
</html>
|