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.
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) |