Use for OneKey Perps/Hyperliquid development/review: views/Perp, ServiceHyperLiquid, 永续合约, 订单簿, orderbook, TWAP, scale, Chase, Relay/Unifold deposits, signing, charts or layouts. Excludes generic Swap/Market.
69
86%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Medium
Suggest reviewing before use
Use this guide to find the code and contracts relevant to the task. Start with the matching topic below; add another reference when the investigation crosses that boundary.
Paths describe the current implementation, not the only valid edit locations. Confirm them in the working branch. Older branches may have different providers or transports; follow their code without adding features or upgrading dependencies merely to match this guide.
| Task | Read first | Starting owner |
|---|---|---|
| Copy, spacing, table rows, resize, scroll, keyboard | Layout and interaction | Perps component or layout |
| Submit, cancel, close, TP/SL, TWAP, scale, Chase, execution price | Orders | Hyperliquid actions and exchange service |
| L2/BBO, switching, reconnect, stale quotes, tick performance | Market data | Subscription service, context, orderbook |
| Positions, PnL, balances, account mode, funding | Account state | Account services and scoped hooks |
| Enable trading, lock/unlock, agent credentials, signing | Session and signing | Trading guards, account service, wallet proxy |
| Perps deposit, pending delivery, withdrawal routing | Deposits | Select Relay or Unifold at the entry hook |
| Perps K-line, chart lines, chart messages, chart recovery | TradingView | PerpCandles and TradingViewPerpsV2 |
Generic Swap/Relay work belongs with $1k-trade-swap-market; generic chart bridge work with $1k-tradingview-communication. Use this skill when the actual surface is OneKey Perps, including its spot mode.
For cross-layer or runtime questions, use ownership map. For SDK/API uncertainty or dependency changes, use source index. For review or choosing evidence, use validation recipes. For Perps analytics/埋点 changes, use $1k-analytics. Load related state, performance or cross-platform skills when their specialist guidance is needed.
Report the result and relevant evidence. In reviews, identify concrete code consequences; a preferred pattern or an unrelated unrun scenario is not itself a blocker. Note material validation gaps without inventing additional approval or CI requirements.
356c24e
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.