okx-trading
Installation
SKILL.md
OKX Provider Broker Skill
Use this workflow when editing src/providers/okx/*.
1. Load only needed references
- For SDK usage patterns and method names, read
references/okx-sdk-usage.md. - For error-to-action mapping, read
references/okx-error-map.md. - For full source context, consult
.trae/okx-api-llm.txtonly for missing details.
2. Keep architecture compatibility
- Preserve compatibility with
src/providers/types.ts(BrokerProvider,MarketDataProvider,OptionsProvider). - Put OKX-specific expanded APIs behind OKX provider interfaces (for example
OkxTradingProvider) while keeping generic provider methods working. - Ensure
src/providers/broker-factory.tscan return OKX providers without adapter breakage.
3. Enforce auth and signing rules
- Require all three credentials: API key, secret, passphrase.
Related skills