Serve single and batch spreads from committed book quotes

This commit is contained in:
2026-12-03 09:48:26 +08:00
parent 7aa3280e5b
commit d26c801888
6 changed files with 141 additions and 2 deletions
+9
View File
@@ -39,3 +39,12 @@ GET http://127.0.0.1:9002/markets-by-token/eb%3ANO%3Ademo
### Load both outcome labels and their shared trading parameters
GET http://127.0.0.1:9002/clob-markets/demo
### Read the current difference between best ask and best bid
GET http://127.0.0.1:9002/spread?token_id=eb%3AYES%3Ademo
### Read both outcome spreads in one snapshot
POST http://127.0.0.1:9002/spreads
Content-Type: application/json
[{"token_id":"eb:YES:demo"},{"token_id":"eb:NO:demo"}]