← All Recipes
Bazantic // Recipe
GroupBet: Rank markets and place a trade
groupbet-rank-markets-and-place-a-trade
Discover the best open GroupBet market in your groups, get a quote, and execute a buy trade for YES or NO shares. Ranks markets by spread, competitiveness, bet count, or volume. Requires Privy wallet integration to sign and broadcast the Solana transaction on-chain.
Recipe inputs
Complete fields before a run.
Buy YES shares (bullish) or NO shares (bearish). Leave empty to only view the top market without trading.
Number of shares to buy, expressed as a base-unit string (e.g., '1000' for 1000 shares). Only required if side is specified.
Your Privy decentralized identifier in the format did:privy:...
How to rank open markets: spread (widest bid-ask), competitive (most balanced), bets (most active), or volume (highest trading volume).