Model sports events and market rules and persist trade price history

This commit is contained in:
2026-12-03 03:30:07 +08:00
parent ca45f83038
commit 9708d701c2
9 changed files with 386 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
{"op": "event", "id": "event-1", "event": "cup-a-b", "title": "A 对 B", "sport": "soccer", "competition": "模拟杯赛", "home": "A", "away": "B", "scheduled_at_ms": 1800000000000}
{"op": "list", "id": "create-full-2-1", "market": "full-2-1", "rules": "主队得 2 球且客队得 1 球时 YES。 以模拟赛事官方终场报告为准,常规时间含对应补时,排除加时及点球大战。延期等待完赛;取消或无法按约定取得结果时作废,两侧各兑付 50 分。", "listing": {"event": "cup-a-b", "question": "终场比分是否为 2:1?", "yes_label": "2:1", "no_label": "其他比分", "terms": {"period": "match", "proposition": {"kind": "correct_score", "home": 2, "away": 1}}, "source": "模拟赛事官方报告", "resolver": "赛事裁决员", "rules_version": 1}}
{"op": "list", "id": "create-half-1-0", "market": "half-1-0", "rules": "按上半场结束时比分,包含上半场补时。 以模拟赛事官方终场报告为准,常规时间含对应补时,排除加时及点球大战。延期等待完赛;取消或无法按约定取得结果时作废,两侧各兑付 50 分。", "listing": {"event": "cup-a-b", "question": "半场比分是否为 1:0?", "yes_label": "1:0", "no_label": "其他比分", "terms": {"period": "first_half", "proposition": {"kind": "correct_score", "home": 1, "away": 0}}, "source": "模拟赛事官方报告", "resolver": "赛事裁决员", "rules_version": 1}}
{"op": "list", "id": "create-over-25", "market": "over-25", "rules": "总进球至少 3 个时 YES,否则 NO。 以模拟赛事官方终场报告为准,常规时间含对应补时,排除加时及点球大战。延期等待完赛;取消或无法按约定取得结果时作废,两侧各兑付 50 分。", "listing": {"event": "cup-a-b", "question": "两队总进球是否超过 2.5?", "yes_label": "Over 2.5", "no_label": "Under 2.5", "terms": {"period": "match", "proposition": {"kind": "total_goals", "over_half_units": 5}}, "source": "模拟赛事官方报告", "resolver": "赛事裁决员", "rules_version": 1}}
{"op": "list", "id": "create-first-home", "market": "first-home", "rules": "按官方事件顺序;若全场无进球则 NO,乌龙球归记分受益方。 以模拟赛事官方终场报告为准,常规时间含对应补时,排除加时及点球大战。延期等待完赛;取消或无法按约定取得结果时作废,两侧各兑付 50 分。", "listing": {"event": "cup-a-b", "question": "主队是否先进球?", "yes_label": "主队先进球", "no_label": "客队先进球或无进球", "terms": {"period": "match", "proposition": {"kind": "first_goal", "selection": "home"}}, "source": "模拟赛事官方报告", "resolver": "赛事裁决员", "rules_version": 1}}
{"op": "list", "id": "create-first-ten", "market": "first-ten", "rules": "按比赛钟左闭右开区间 [0,600) 秒,09:59 的有效进球计入,10:00 排除,VAR 取消的进球排除。 以模拟赛事官方终场报告为准,常规时间含对应补时,排除加时及点球大战。延期等待完赛;取消或无法按约定取得结果时作废,两侧各兑付 50 分。", "listing": {"event": "cup-a-b", "question": "前 10 分钟有进球吗?", "yes_label": "有进球", "no_label": "无进球", "terms": {"period": "match", "proposition": {"kind": "goal_window", "start_seconds": 0, "end_seconds": 600}}, "source": "模拟赛事官方报告", "resolver": "赛事裁决员", "rules_version": 1}}
{"op": "list", "id": "create-home-minus", "market": "home-minus", "rules": "主队净胜至少两球时 YES。 以模拟赛事官方终场报告为准,常规时间含对应补时,排除加时及点球大战。延期等待完赛;取消或无法按约定取得结果时作废,两侧各兑付 50 分。", "listing": {"event": "cup-a-b", "question": "主队让 1.5 球是否取胜?", "yes_label": "主 -1.5", "no_label": "客 +1.5", "terms": {"period": "match", "proposition": {"kind": "handicap", "team": "home", "line_half_units": -3}}, "source": "模拟赛事官方报告", "resolver": "赛事裁决员", "rules_version": 1}}
{"op": "catalog", "event": "cup-a-b"}