cURL
curl --request POST \ --url https://api-testnet.context.markets/v2/markets/{id}/simulate \ --header 'Content-Type: application/json' \ --data ' { "side": "yes", "amount": 123, "amountType": "usd" } '
{ "marketId": "<string>", "side": "yes", "amount": 123, "amountType": "usd", "estimatedContracts": 123, "estimatedAvgPrice": 123, "estimatedSlippage": 123 }
Simulates a trade and returns estimated execution details. This is a read-only operation.
Market ID (hash) or slug
Trade simulation parameters
yes
no
usd
contracts
Simulation results