market.prices(), not here. Size a trade with quoteTrade.
pool requires { market, outcomeIndex }. That is how the SDK finds the market’s OutcomeAmm.
Prefer quoteTrade.spotPrice / priceAboveNinetyNineCents for trade gates. state tells you whether the AMM has pool shares (totalSupply > 0).