Bump ohlcv_version to 3 for per-leg pricing rebuild
This commit is contained in:
parent
e01232892d
commit
d3fe840596
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ use sqlx::{Row, SqlitePool};
|
||||||
/// `INSERT OR IGNORE`, so existing rows are never corrected in place.
|
/// `INSERT OR IGNORE`, so existing rows are never corrected in place.
|
||||||
///
|
///
|
||||||
/// 2: price switched from the signed net ratio to the gross volume ratio.
|
/// 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";
|
const OHLCV_VERSION_KEY: &str = "ohlcv_version";
|
||||||
|
|
||||||
pub async fn create_table(pool: &SqlitePool) {
|
pub async fn create_table(pool: &SqlitePool) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue