Serve side-specific execution quotes over the public market HTTP API
This commit is contained in:
@@ -60,3 +60,15 @@ POST http://127.0.0.1:9002/midpoints
|
||||
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")
|
||||
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)
|
||||
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
|
||||
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"}]
|
||||
|
||||
Reference in New Issue
Block a user