Parsing market position data #71
-
Below is an example market position data when running
I understand that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @bryantanjw
Example: User risks $100 backing "OutcomeA" at a price of 2 in a 3 outcome market.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for clearing that up! I'm trying to calculate and display a user's PnL for a market. Is there a way to query historical I saw, in the
|
Beta Was this translation helpful? Give feedback.
Hey @bryantanjw
outcomeMaxExposure
- this is the maximum amount of stake risked by the user for a given marketmarketOutcomeSums
- user's total market position for each outcome, i.e. how much they will profit or risk if the individual market outcomes are a win or lossoffset
- amount which will be deducted from winnings during settlement, or stake refunded during bet cancellation. A non zero offset means you have used your market position to place bets without risking any more stake (this one is a bit confusing and we should have better documentation for)outcomePositions
- this should be a mapping of market outcome title -> market outcome sum, but it doesn't seem to be populating in your…