Serve the CLOB price history protocol with minute-based fidelity

This commit is contained in:
2026-12-03 10:18:43 +08:00
parent 74749bfdb8
commit fe69e31929
10 changed files with 201 additions and 1 deletions
+6
View File
@@ -72,3 +72,9 @@ POST http://127.0.0.1:9002/prices
Content-Type: application/json
[{"token_id":"eb:YES:mid-example","side":"BUY"},{"token_id":"eb:NO:mid-example","side":"BUY"}]
### CLOB SDK time series: asset ID, trailing hour, ten-minute fidelity
GET http://127.0.0.1:9002/prices-history?market=eb%3AYES%3Ademo&interval=1h&fidelity=10
### Explicit Unix-second window (the seeded exchange regression has fills at 121, 149 and 245)
GET http://127.0.0.1:9002/prices-history?market=eb%3AYES%3Ae&startTs=120&endTs=245&fidelity=1