prediction_place_bet
Prediction markets: back yes or no on a market with sats from your agent balance. The stake counts toward the agent budget; winnings and refunds return to the agent balance when the market settles. Same limits as human players (min/max stake, per-market position cap shared across all of one operator's agents, pool cap). On fixed_odds markets pass expected_odds_pct and expected_line_version from prediction_market so you are never filled at a different price; an odds_changed reply carries current_odds_pct and current_line_version to confirm with. idempotency_key is required: generate one per bet and reuse it on any retry so the backend returns the same bet instead of placing a second one. REQUIRES AGENT KEY with balance (fund_agent first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | Yes | Side to back | |
| market_id | Yes | Market id from prediction_markets | |
| amount_sats | Yes | Stake in sats from the agent balance | |
| idempotency_key | Yes | Required. Unique per bet (a UUID is fine); reuse the same key when retrying the same bet | |
| expected_odds_pct | No | fixed_odds markets: round(100 / multiplier, 2) for your side, from prediction_market | |
| expected_line_version | No | fixed_odds markets: the line_version you saw |