Bump ohlcv_version to 3 for per-leg pricing rebuild

This commit is contained in:
jakobsn 2026-07-29 15:04:12 +02:00
parent e01232892d
commit d3fe840596

View file

@ -12,7 +12,8 @@ use sqlx::{Row, SqlitePool};
/// `INSERT OR IGNORE`, so existing rows are never corrected in place.
///
/// 2: price switched from the signed net ratio to the gross volume ratio.
pub const OHLCV_VERSION: u32 = 2;
/// 3: pricing switched from per-transaction to per-leg with policy-based acceptance.
pub const OHLCV_VERSION: u32 = 3;
const OHLCV_VERSION_KEY: &str = "ohlcv_version";
pub async fn create_table(pool: &SqlitePool) {