Dry-run a trade — returns the same quote + feasibility verdict as /trade/prepare but without the signable intent
problee_simulate_tradeDry-run a trade using the same feasibility and quote pipeline as prepare, without returning signable calldata.
Examples: Dry-run the same body used for prepare
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | `side` = which OUTCOME (0-indexed: 0=outcome1,1=outcome2,2=outcome3), NOT buy/sell. Buy/sell is the direction field (`type`/`tradeType`/`action`/`direction`). | |
| amount | No | Exact-input size. BUY: collateral spent. SELL: outcome tokens sold. Outcome tokens carry the market collateral's own denomination — one outcome token redeems for one collateral unit — so every outcome-token quantity uses that single unit: positions.outcome1Shares/outcome2Shares/outcome3Shares, SELL amount, 409 available/requested, and outcomeTokensOut/minOutcomeTokensOut. It is also the unit the signed intent carries, so nothing is converted between the wire, the engine and the calldata. Omit when using closePercent or targetCollateralOut. | |
| chainId | No | ||
| tradeType | Yes | Trade DIRECTION (buy/sell). Note: this same concept is named `kind` (0=buy/1=sell int) on /orderbook/* and `side`/`action`/`tradeType`/`type`/`direction` on other trade endpoints — see skill.md field-map. | |
| slippageBps | No | ||
| closePercent | No | SELL only. Percent (1–100) of the wallet’s current position in `side` to sell; 100 closes it fully. Server sizes from the live on-chain balance. Mutually exclusive with amount and targetCollateralOut. | |
| marketAddress | Yes | ||
| walletAddress | No | Wallet that would sign the intent for the trade being simulated. | |
| targetCollateralOut | No | SELL only. Size the sell so its net proceeds reach ~this much collateral (wei); server sizes from the live balance. Mutually exclusive with amount and closePercent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |