Reviewed code9c2e4b7a1d
async def on_alert(alert): symbol = alert.symbol size = alert.size await exchange.buy(symbol, size) await owner.text("Filled") log.info("filled", size=size)Unchecked alert sizes let the actor exceed the owner's trade limit. Ran an alert handler test with a size above the owner's limit. The actor passed that size to exchange.buy without a limit check, so the test expecting rejection failed.
