Expose paginated token price history through the public HTTP service

This commit is contained in:
2026-12-03 08:12:01 +08:00
parent 2ef0784ddc
commit 9b25fdc424
11 changed files with 292 additions and 2 deletions
+6
View File
@@ -9,3 +9,9 @@ Content-Type: application/json
### Unknown token
GET http://127.0.0.1:9002/book?token_id=eb%3AYES%3Amissing
### History for one outcome in the last hour
GET http://127.0.0.1:9002/v2/prices-history?token_id=eb%3AYES%3Ademo&interval=1h&bucket_seconds=60&limit=1
### Replace the cursor placeholder with pagination.next_cursor from the previous response
GET http://127.0.0.1:9002/v2/prices-history?token_id=eb%3AYES%3Ademo&cursor={{next_cursor}}