CtrlK
BlogDocsLog inGet started
Tessl Logo

1k-trade-swap-market

Navigate OneKey App Swap, Bridge, Limit, and Stock/Market flows. Use for token selection, quotes, review/build/send, providers, cold start, and history/status; use the Perps skill for Hyperliquid.

71

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Trade / Swap / Market

Use this skill as a map to the owning code and contract. Let current code, payloads, and runtime behavior decide implementation details.

Quick Start

  1. Reproduce the real entry and affected platform.
  2. Trace entry -> selection -> quote -> review -> execution -> history/status.
  3. Identify the first owner whose state or contract is wrong; inspect adjacent consumers before editing.
  4. Preserve the trade identity across async boundaries, make the smallest owner-correct change, and verify the same user path.

Find The Owner

TaskStart hereRead next
Swap selection, quote, review, or sendSwap state/actions, view hooks, background serviceArchitecture, Code map
Wallet, Send, Earn, Buy, or Market handoffSource params, then settled Swap stateArchitecture
Bridge, Limit, Stock, privacy, or provider workCapability, payload, and lifecycle adapterProvider contracts
Cold start, default asset, tab, or first-frame issueRoute seed, persisted display state, readinessArchitecture
Pending, history, status, restart, or repairPersistent owner and status sourceProvider contracts
Receive-only filteringReceive and AssetSelector before any Swap handoffCode map

Load Detail As Needed

  • Architecture explains the execution spine, handoff ownership, runtime boundaries, and cold-start model.
  • Code map gives stable directories and useful search anchors.
  • Provider contracts covers channels whose quote, settlement, or persistence semantics differ from an ordinary swap.
  • Validation helps choose focused tests and runtime evidence for the changed layer.

Finish

State the entry, first wrong owner, and identities that matter. Run nearby tests and the repository-required checks, then prove the affected route and payload on the owning platform. Report any runtime or provider evidence you could not get.

Related skills: $1k-perps-module, $1k-tradingview-communication, $1k-state-management, $1k-cross-platform, $1k-defi-module-integration.

Repository
OneKeyHQ/app-monorepo
Last updated
First committed

Is this your skill?

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.