atstake_place_bid
Escrow sBTC in a resting bid to buy shares of a market side below par, locking funds until a counterparty matches or you cancel an unfilled bid.
Instructions
Escrow sBTC in a resting bid to buy one side below par.
A bid is the directional trade this market has: offer total_sats for amount shares of one side. Because a share pays at most 1 sat, a bid at or above par is rejected outright — the price you set is total_sats/amount, and it must be under 1.
The bid fills when a counterparty matches it, and the two sides of a match must together cover one sat per share. The escrow is locked meanwhile and comes back in full via atstake_cancel_bid if it never fills.
One resting bid per side at a time. Spends real sBTC and meters against the wallet's sats rail. Requires an unlocked wallet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Which side: "yes"/"bonded" (pays if the coins entered a PoX-5 bond) or "no"/"idle" (pays if they did not). | |
| amount | Yes | Shares wanted. | |
| total_sats | Yes | sBTC escrowed for the whole bid. Must be less than `amount` — the implied price per share is total_sats/amount. |