Validate market tick sizes and encode precise limit order amounts

This commit is contained in:
2026-12-03 06:34:52 +08:00
parent 00660d890c
commit 2269752b9e
14 changed files with 246 additions and 20 deletions
+5
View File
@@ -260,3 +260,8 @@ CREATE TABLE IF NOT EXISTS market_minimum_sizes (
market TEXT PRIMARY KEY REFERENCES markets(id),
microshares INTEGER NOT NULL CHECK(microshares BETWEEN 1 AND 1000000000000000)
);
CREATE TABLE IF NOT EXISTS market_tick_sizes (
market TEXT PRIMARY KEY REFERENCES markets(id),
step_micros INTEGER NOT NULL CHECK(step_micros IN (100000,10000,5000,2500,1000,100))
);