Clarify reserved negative-risk outcomes without reissuing positions

This commit is contained in:
2026-12-03 04:46:11 +08:00
parent b2b7fc4610
commit 99028f9073
14 changed files with 292 additions and 13 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ WITH reserved AS (
WHEN 'MERGEABLE' THEN pairs>0
END
)
SELECT market,outcome,size,available,reserved,row_status,payout_per_share,pairs,free_pairs,sort_key,n.group_id
FROM filtered LEFT JOIN neg_risk_members n USING(market)
SELECT market,outcome,size,available,reserved,row_status,payout_per_share,pairs,free_pairs,sort_key,n.group_id,a.role,a.name
FROM filtered LEFT JOIN neg_risk_members n USING(market) LEFT JOIN augmented_outcomes a USING(market)
WHERE ?4 IS NULL OR (sort_key,market,outcome)>(?4,?5,?6)
ORDER BY sort_key,market,outcome LIMIT ?7