Handle Multiple Choice Answers in Contract Positions API
Ṁ350 / 350
bounty left

Describe the change you would like:

Right now there is no easy way to get the positions for each answer in Multiple Choice markets via the API.

Positions for userId only returns 1 ContractMetric for this multiple choice Market (which should return 3, one for each answer): https://manifold.markets/api/v0/market/4tncJqAz3fcqkk5usxYV/positions?userId=yBWmGAkVl1YzMHN6831nYQdTKJO2

Approval Criteria:

Either:

  1. Change the market/id/positions api to return ContractMetrics for each answer.

  2. Extend the existing market/id/positions api to return ContractMetrics for specific answers via a answerId param if we are worried about breaking the base positions response for existing clients.

Submit a solution:

Add a comment below with a link to proof of the change (Github PR, Loom, etc..) to be awarded the bounty.

Get Ṁ200 play money

More related questions