Open
Conversation
Place up to 50 limit orders atomically on Hyperliquid via OnchainOS Agentic Wallet — grid, staged DCA, or staged take-profit from one natural-language intent and one EIP-712 signature. - depends on hyperliquid-plugin ^0.3.9 (order-batch atomic API) - every batch is user-confirmed; no autonomous trading - every example uses --strategy-id hl-grid-batch for attribution
The strategy attribution path depends on `onchainos wallet report-plugin-info`, which only exists in onchainos >= 2.5.0. With an older CLI, hyperliquid-plugin emits "Warning: report-plugin-info failed: unrecognized subcommand 'report-plugin-info'" for every order in the batch and none of them are credited on the leaderboard even though they settle on Hyperliquid. The impact is amplified here: for a 50-order batch, this is the difference between 50 attributed counts and 0. Adds a preflight gate that probes `report-plugin-info --help` and falls back to `onchainos upgrade` so the AI agent never silently drops attribution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin Submission
Plugin name: hl-grid-batch
Version: 1.0.0
Type: new-plugin
Checklist
okx-,official-,plugin-store-)nameanddescriptionplugin-store lintpasses locally — Cargo not available in dev environment, relying on CI lint. File-size, frontmatter, schema, and--strategy-idcoverage manually verified.What does this plugin do?
Turns one natural-language trading plan into an atomic batch of up to 50 limit orders on Hyperliquid. The AI agent parses the user's intent — uniform
grid, stageddca, or stagedstaged-exitladder — generates the order array, shows the full ladder, and on explicit user confirmation submits the batch throughhyperliquid order-batchwith one EIP-712 signature.Per
hyperliquid-pluginv0.3.9 semantics, every order in the batch that produces an oid (filled or resting) generates its ownreport-plugin-infocall under--strategy-id hl-grid-batch, so each level on the ladder is individually attributed for the Plugin Store leaderboard.Which onchainos commands does it use?
Read-only:
onchainos wallet statusThrough
hyperliquid-plugin(declared asdependent_plugin):hyperliquid prices(read, for mid-price reference)hyperliquid positions(read, required forstaged-exitmode validation)hyperliquid quickstart(read, for withdrawable balance)hyperliquid register(one-time setup)hyperliquid order-batch— write, always with--strategy-id hl-grid-batchand user--confirmSecurity Considerations
standard. Each batch is composed, previewed, and explicitly user-confirmed before submission. No background loop, no auto-replenishment, no autonomous re-gridding.order-batchAPI limit).dca, position-existence + size check forstaged-exit, total entry margin ≤ withdrawable.reduce_only: trueenforced on every entry ofstaged-exitmode to prevent accidentally opening a new opposing position.Testing
trading-strategyplugins in this repo.--orders-jsonmatcheshyperliquid-pluginv0.3.9order-batchspec exactly (coin,side,size,type,price,tif,reduce_only).dependent_plugin: hyperliquid-plugin ^0.3.9resolves against the currentregistry.json.Notes
This plugin and the companion
hl-instant-order(separate PR) are submissions for the Plugin Store Season 1 Developer Challenge (Apr 23 – May 7, 2026).