cURL
curl --request POST \ --url https://api-testnet.context.markets/v2/markets/{id}/simulate \ --header 'Content-Type: application/json' \ --data ' { "side": "yes", "amount": 1, "amountType": "usd" } '
{ "marketId": "<string>", "side": "yes", "amount": 123, "amountType": "usd", "estimatedContracts": 123, "estimatedAvgPrice": 123, "estimatedSlippage": 123, "warnings": [ { "type": "LOW_LIQUIDITY" } ] }
Market id hash or slug
yes
no
x > 0
usd
contracts
EVM address
^0x[a-fA-F0-9]{40}$
"0x1111111111111111111111111111111111111111"
Simulate market trade
Show child attributes