Preserve both Gamma outcome ID families and identify position operations

This commit is contained in:
2026-12-03 14:18:41 +08:00
parent bf3ab7895d
commit 8b98b3dbfc
8 changed files with 263 additions and 64 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ mod tests {
fn stable_distinct_book_differentiates_the_two_price_conventions() {
let gamma: Value =
serde_json::from_str(include_str!("../fixtures/gamma-559651.json")).unwrap();
let tokens = books::poly_assets(&gamma).unwrap();
let tokens = crate::catalog::Market::parse(&gamma).unwrap().assets;
assert_ne!(tokens[0], gamma["positionIds"][0].as_str().unwrap());
let level = |p: &Value| json!({"price":p.to_string(),"size":"1"});
// Synthetic CLOB responses at the two prices observed on Gamma.