get_potential_payout
Determine your potential payout in a prediction market by calculating your share of the total pool. Works for current holdings or when previewing a new bet.
Instructions
Calculate prediction market resolution payout: (yourShares / winningCirculatingShares) × totalPool. Two modes: (1) CURRENT: pass existing shares, usdb=0. (2) BET PREVIEW: pass total shares (existing+new), new_shares_from_bet = new shares from estimate_shares_out, usdb = bet amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | ||
| outcome | Yes | ||
| shares | Yes | Your total shares (existing for current, existing+new for preview) | |
| new_shares_from_bet | No | New shares from estimate_shares_out. Omit or 0 for current position. | |
| estimated_usdb_to_pool | No | 0 for current. Bet amount for preview. |