stacks_market_quote_buy
Calculates the LMSR cost in micro-STX to buy a specified number of YES or NO shares in a Stacks Market prediction market, so you can preview the purchase before trading.
Instructions
Get an LMSR buy price quote for YES or NO shares on a Stacks Market prediction market.
Returns the cost in micro-STX to buy the requested number of shares. Side: 0 = YES, 1 = NO.
Note: Stacks Market is only available on mainnet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | 0 = YES shares, 1 = NO shares | |
| shares | Yes | Number of shares to price (integer, smallest unit) | |
| market_id | Yes | Market ID (epoch ms timestamp) |