Read the details of one round
POST/v2/a8r_provider.Round/Details
Call this endpoint to read the details of one round. Prediction Markets returns the event, the market, the selection, the money values and the state of that round.
The round_id is the same value that Prediction Markets sends in Round/BetWin and Round/Rollback.
Call this endpoint after each wallet request from Prediction Markets, and after you answer that request. Do not call it from inside your handler. Prediction Markets calls Round/BetWin to perform the debit. When you receive that request, the round is pending. Prediction Markets changes the state after you answer 200. From inside your handler you read pending and store incorrect data.
The endpoint answers for a round in each state. There is no "not ready" condition.
Required headers:
X-REQUEST-SIGN— HMAC-SHA256 hex signature of the raw request body
Request
Responses
- 200
- 400
- 403
- 500
The round exists.
Prediction Markets cannot read the request, or no round has that identifier. The meta.api_code field separates the two: 400 for a request that is not valid, 404 for a round that does not exist.
The signature is not correct. The X-REQUEST-SIGN header is missing, or it does not match the signature of the raw request body.
Prediction Markets cannot read the round. Try the request again.