Match public midpoint and spread across all four book shapes

This commit is contained in:
2026-12-03 16:02:32 +08:00
parent 6e1cfb4e22
commit 9cc3921e3c
8 changed files with 145 additions and 41 deletions
+2 -2
View File
@@ -52,10 +52,10 @@ Content-Type: application/json
### Load midpoint.jsonl into the same database first. Expected mid is "0.085".
GET http://127.0.0.1:9002/midpoint?token_id=eb%3AYES%3Amid-example
### Midpoints for YES and NO are "0.085" and "0.915".
### A query-only batch GET returns 400 Invalid payload.
GET http://127.0.0.1:9002/midpoints?token_ids=eb%3AYES%3Amid-example%2Ceb%3ANO%3Amid-example
### Same query with a JSON body
### Batch POST returns YES "0.085" and NO "0.915".
POST http://127.0.0.1:9002/midpoints
Content-Type: application/json