Hyperliquid Python bot's $25 order cap blocked every $25 test order
A developer tested an AI-generated Python starter for the Hyperliquid trading API, which was meant to place small testnet orders capped at $25. The live run on October 25 showed that reads, price rounding and the testnet-only guard worked as intended. However, the cap blocked all 892 test orders of $25 across testnet and mainnet. The cause was that size rounding pushed each order's notional value slightly above $25, and the check compared that figure directly to the cap. The rebuilt version separates the requested amount from the order's own notional value, allowing for one size step of rounding. The article notes this was one of four problems found, and the author says the prompt has been revised accordingly.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in