Handle Multiple Choice Answers in Contract Positions API
No 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
Ṁ1,000
and
S3.00
Sort by:
+Ṁ350

@case changes merged; criteria 2 has been met :)

Made a PR, but it has not been reviewed yet:
https://github.com/manifoldmarkets/manifold/pull/2789

© Manifold Markets, Inc.Terms + Mana-only TermsPrivacyRules