crypto-trading-systems
БесплатноБез исполняемых скриптовНе проверенEngineer crypto systems: your own token or blockchain, a crypto exchange like Binance (matching engine, ledger, wallets, KYC), or an AI trading bot…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Crypto & Trading Systems Engineering
Reply in the user's language. Build testnet and paper-trading first; real money and mainnet only by the user's own explicit action.
Hard rules for Claude
- Never place live trades, move funds, deploy to mainnet, or handle private keys / seed phrases / exchange API secrets in chat or code. Keys go in env vars or a secrets manager the user controls.
- Not personal investment advice: build and test tools; the user decides what to trade. Say you are not a financial or legal advisor when it matters.
- Never build scams, rug-pull mechanics, hidden mint/blacklist backdoors, wash trading, or market manipulation features.
A. Your own coin
Decide first:
- Token on an existing chain (ERC-20 on Ethereum/L2, SPL on Solana, BEP-20). Days of work. Right for 99% of cases.
- New chain (Cosmos SDK, Substrate/Polkadot SDK, OP Stack/Arbitrum Orbit rollup, or a Bitcoin fork). Months, needs validators, security and a community. Only with a strong reason.
Token workflow: OpenZeppelin audited contracts (never hand-roll ERC-20) -> Foundry or Hardhat -> unit tests + fuzz tests -> static analysis (Slither) -> testnet (e.g. Sepolia) -> independent audit -> mainnet by the user. Document tokenomics: supply, mint/burn rights, vesting, who holds admin keys (prefer multisig + timelock, or renounced). Check DeFi pitfalls: reentrancy (checks-effects-interactions), oracle manipulation, decimals mismatch across chains, integer math, unchecked external calls.
B. An exchange (like Binance)
Components, built as separate services:
- Accounts & auth: signup, 2FA (TOTP/WebAuthn), device/session management, anti-phishing code.
- KYC/AML & sanctions: identity verification vendor, transaction monitoring, sanctions screening. Mandatory almost everywhere.
- Ledger: double-entry, integer minor units (never floats), immutable entries, every balance change has a reason and an idempotency key; reconcile against chain and bank daily.
- Matching engine: price-time priority, one single-threaded deterministic engine per market, in-memory order book, event-sourced (replayable log), order types (limit, market, stop, post-only, IOC/FOK), self-trade prevention. Benchmark latency and throughput.
- Wallet service: deposit address generation, chain watchers with confirmation thresholds, hot/warm/cold split (most funds cold), multisig or MPC, withdrawal limits, address whitelists, manual review for large withdrawals, HSM for keys.
- Market data: WebSocket depth and trades, REST API, rate limits, API keys with scopes.
- Risk & admin: circuit breakers, fee engine, admin panel with four-eyes approval, full audit log.
- Trust: proof of reserves (Merkle tree of liabilities), penetration tests, bug bounty. Start with an MVP on testnets with paper balances. Legal: operating an exchange needs licences in most countries (e.g. VASP/MSB, MiCA in the EU); the user must get a lawyer before handling real customers' money.
C. A smart trading bot
Pipeline: market data -> features/signals -> risk -> execution -> monitoring.
- Data and execution via the exchange's official API or CCXT; store candles and trades locally.
- Backtesting without lying to yourself: no look-ahead (use only data available at decision time), include fees, spread and slippage, avoid survivorship bias, split train / validation / out-of-sample, walk-forward testing, compare against buy-and-hold. Report max drawdown, Sharpe/Sortino, win rate, exposure, number of trades. Be suspicious of great results.
- "AI" signals: start with simple, explainable rules; ML only with strict out-of-sample validation; markets change (regime shift), so retrain and monitor.
- Risk: position sizing (fixed fraction), stop-losses, max daily loss and max drawdown kill switch, no leverage until proven, one-click stop.
- Rollout: backtest -> paper trading for weeks -> tiny real size -> scale slowly. The user runs live mode themselves.
- Security: API keys with trade-only permission (withdrawals disabled), IP whitelist, keys in env/secret store, logs without secrets, alerts (Telegram/email) on errors and fills.
- State plainly that most trading bots lose money after fees and that past performance does not predict future results.
Verified tooling
Runnable: python3 tools/backtest.py --selftest. 10/10 backtest properties verified, including the two that matter most: execution happens on the bar after the signal, so an always-long position exactly equals buy-and-hold and look-ahead profit is impossible; and across twenty random walks the trend strategy wins about half the time with a return spread above 50 points, which is why a single good-looking backtest proves nothing. Costs and slippage are charged, drawdown is measured, and walk-forward reports every fold rather than an average. No exchange, no API keys, no live orders.
Установить crypto-trading-systems в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл crypto-trading-systems?
Engineer crypto systems: your own token or blockchain, a crypto exchange like Binance (matching engine, ledger, wallets, KYC), or an AI trading bot (backtesting, risk, execution). Use for token, coin, smart contract, exchange, trading bot, backtest.
Как установить скилл crypto-trading-systems?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл crypto-trading-systems запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic