Open prediction-market position
open_pm_positionOpen a binary prediction-market position using virtual funds. Quote first and confirm to place a stake of at least 10 mUSD in paper trading.
Instructions
Open a mock prediction-market position (binary outcomes only). Requires the trade:pm scope. Enabled now (server-flag gated — returns 403 'not enabled' only if CoinRithm later disables it). idempotencyKey is REQUIRED. stakeMusd >= 10. Quote first and CONFIRM with the user. Paper trading only — virtual funds (50,000 mUSD). Not financial advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Prediction-market source slug, e.g. kalshi or polymarket. | |
| slug | Yes | Prediction-market event slug. | |
| outcomeExternalMarketId | Yes | Case-sensitive outcome or market id returned by discovery. | |
| stakeMusd | Yes | mUSD stake (>= 10). | |
| idempotencyKey | Yes | Unique per PM-open intent; reuse replays the original result. | |
| agentTrace | No | Optional private trace metadata stored in the caller's ledger. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| httpStatus | Yes | HTTP status returned by CoinRithm, or 0 for network errors. | |
| ok | Yes | True when CoinRithm returned a successful 2xx response. | |
| ledgerEventId | No | Private AgentActionEvent id returned by /api/agent/*, when present. | |
| ledgerStatus | No | Ledger write status header returned by CoinRithm, when present. | |
| body | No | Parsed CoinRithm response body, or raw text when the response is not JSON. |