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
- Reproduce the real entry and affected platform.
- Trace
entry -> selection -> quote -> review -> execution -> history/status.
- Identify the first owner whose state or contract is wrong; inspect adjacent
consumers before editing.
- Preserve the trade identity across async boundaries, make the smallest
owner-correct change, and verify the same user path.
Find The Owner
| Task |
Start here |
Read next |
| Swap selection, quote, review, or send |
Swap state/actions, view hooks, background service |
Architecture, Code map |
| Wallet, Send, Earn, Buy, or Market handoff |
Source params, then settled Swap state |
Architecture |
| Bridge, Limit, Stock, privacy, or provider work |
Capability, payload, and lifecycle adapter |
Provider contracts |
| Cold start, default asset, tab, or first-frame issue |
Route seed, persisted display state, readiness |
Architecture |
| Pending, history, status, restart, or repair |
Persistent owner and status source |
Provider contracts |
| Receive-only filtering |
Receive and AssetSelector before any Swap handoff |
Code 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.
1---2name: 1k-trade-swap-market3description: 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.4---56# Trade / Swap / Market78Use this skill as a map to the owning code and contract. Let current code,9payloads, and runtime behavior decide implementation details.1011## Quick Start12131. Reproduce the real entry and affected platform.142. Trace `entry -> selection -> quote -> review -> execution -> history/status`.153. Identify the first owner whose state or contract is wrong; inspect adjacent16 consumers before editing.174. Preserve the trade identity across async boundaries, make the smallest18 owner-correct change, and verify the same user path.1920## Find The Owner2122| Task | Start here | Read next |23| --- | --- | --- |24| Swap selection, quote, review, or send | Swap state/actions, view hooks, background service | [Architecture](references/app-architecture.md), [Code map](references/code-map.md) |25| Wallet, Send, Earn, Buy, or Market handoff | Source params, then settled Swap state | [Architecture](references/app-architecture.md) |26| Bridge, Limit, Stock, privacy, or provider work | Capability, payload, and lifecycle adapter | [Provider contracts](references/provider-contracts.md) |27| Cold start, default asset, tab, or first-frame issue | Route seed, persisted display state, readiness | [Architecture](references/app-architecture.md) |28| Pending, history, status, restart, or repair | Persistent owner and status source | [Provider contracts](references/provider-contracts.md) |29| Receive-only filtering | Receive and AssetSelector before any Swap handoff | [Code map](references/code-map.md) |3031## Load Detail As Needed3233- [Architecture](references/app-architecture.md) explains the execution spine,34 handoff ownership, runtime boundaries, and cold-start model.35- [Code map](references/code-map.md) gives stable directories and useful search36 anchors.37- [Provider contracts](references/provider-contracts.md) covers channels whose38 quote, settlement, or persistence semantics differ from an ordinary swap.39- [Validation](references/validation.md) helps choose focused tests and runtime40 evidence for the changed layer.4142## Finish4344State the entry, first wrong owner, and identities that matter. Run nearby tests45and the repository-required checks, then prove the affected route and payload on46the owning platform. Report any runtime or provider evidence you could not get.4748Related skills: `$1k-perps-module`, `$1k-tradingview-communication`,49`$1k-state-management`, `$1k-cross-platform`, `$1k-defi-module-integration`.