Serve priced open interest for active unarchived market listings
This commit is contained in:
@@ -43,6 +43,19 @@ pub(crate) fn apply(
|
||||
}
|
||||
Ok(receipt)
|
||||
}
|
||||
Command::SetMarketVisibility {
|
||||
market,
|
||||
active,
|
||||
archived,
|
||||
} => {
|
||||
identifier(&market)?;
|
||||
tx.execute(
|
||||
"INSERT INTO market_visibility(market,active,archived) VALUES(?,?,?)
|
||||
ON CONFLICT(market) DO UPDATE SET active=excluded.active,archived=excluded.archived",
|
||||
params![market,active,archived],
|
||||
)?;
|
||||
Ok(json!({"market":market,"active":active,"archived":archived}))
|
||||
}
|
||||
Command::TickSizeChange(change) => change.apply(tx, request_id),
|
||||
Command::Event(event) => event.save(tx),
|
||||
Command::RescheduleSports {
|
||||
|
||||
Reference in New Issue
Block a user