Match public CLOB side prices and batch responses to observed books

This commit is contained in:
2026-12-03 15:02:41 +08:00
parent 4262b7adaa
commit 6e1cfb4e22
6 changed files with 101 additions and 85 deletions
+2 -2
View File
@@ -61,10 +61,10 @@ Content-Type: application/json
[{"token_id":"eb:YES:mid-example"},{"token_id":"eb:NO:mid-example"}]
### Read the best ask to buy YES in the midpoint.jsonl fixture ("0.09")
### Read the resting YES bid in the midpoint.jsonl fixture ("0.08")
GET http://127.0.0.1:9002/price?token_id=eb%3AYES%3Amid-example&side=BUY
### Read BUY and SELL for the same outcome (0.09 and 0.08)
### Query-only batch GET returns 400 Invalid payload
GET http://127.0.0.1:9002/prices?token_ids=eb%3AYES%3Amid-example%2Ceb%3AYES%3Amid-example&sides=BUY%2CSELL
### Include both outcomes with a JSON body