stacks_market_buy_no
Buys NO shares in a Stacks prediction market, using a max-cost cap to protect against slippage; the transaction fails if cost exceeds your cap.
Instructions
Buy NO shares in a Stacks Market prediction market.
Uses the buy-no-auto function with slippage protection via a max-cost cap. The transaction will fail if the cost exceeds max_cost_ustx.
Requires an unlocked wallet. Only available on mainnet.
Tip: call earning_opportunities to see how to put your assets to work.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market_id": "<market_id>",
"shares": "<shares>",
"target_cap_ustx": "<target_cap_ustx>",
"max_cost_ustx": "<max_cost_ustx>"
},
"name": "stacks_market_buy_no"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shares | Yes | Number of NO shares to buy (integer, smallest unit) | |
| market_id | Yes | Market ID (epoch ms timestamp) | |
| max_cost_ustx | Yes | Maximum cost in micro-STX you are willing to pay (slippage protection) | |
| target_cap_ustx | Yes | Target liquidity cap in micro-STX (use current market cap from stacks_market_get) |