[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116838":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":15,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},116838,"bytx-skills","byttrade\u002Fbytx-skills","byttrade","Crypto trading skills for AI assistants on bytx: MCP server + CLI + Claude skills. Paper by default, never without your yes.","https:\u002F\u002Fbyttrade.com",null,"Python",90,24,1,0,44.19,"Other",false,"main",true,[],"2026-11-23 20:05:47","2026-11-23 19:53:11","# bytx-skills — crypto trading skills for AI assistants\n\n**English** | [Русский](docs\u002FREADME.ru.md)\n\nEight steps for one crypto trade, from \"what's moving\" to the order: scan the perps, read funding and open interest,\ntime the entry, plan the exit, replay the rest of the session 10,000 times, size the position from the money you\nare ready to lose, check it against your limits, and send it — paper by default, never without your yes.\n\nWorks with **any AI assistant that supports MCP — for example, Claude**. The logic is a Python package with an MCP\nserver and a CLI on the [bytx](https:\u002F\u002Fpypi.org\u002Fproject\u002Fbytx\u002F) exchange library; for Claude there are also skills\n(`\u002Fcrypto-scanner` …) on top.\n\nPaper trading runs on the exchange's live order book with virtual money: no keys, no signup.\n\n## Install\n\nYou need [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) (`brew install uv` or `curl -LsSf https:\u002F\u002Fastral.sh\u002Fuv\u002Finstall.sh | sh`).\n\n**Any MCP client** (Claude Desktop, Claude Code, Cursor, …): add the server to the client's MCP config —\ntemplates in [`mcp-configs\u002F`](mcp-configs\u002F):\n\n```json\n{ \"mcpServers\": { \"bytx-trader\": {\n    \"command\": \"uvx\",\n    \"args\": [\"--refresh-package\", \"bytx\", \"--refresh-package\", \"bytx-trader\",\n             \"--from\", \"bytx-trader@latest\", \"bytx-trader-mcp\"] } } }\n```\n\nRestart the assistant and talk to it: \"scan the crypto market\", \"switch to Bybit, 5 dollars risk per trade\",\n\"plan a long on ETH with a stop at 1.5 ATR\", \"what are my positions\". Or start from the server's `trade_pipeline`\nprompt. Symbols can be written any way (`BTC`, `btcusdt`, `BTC\u002FUSDT`). Set the `confirm` tool to ask you every\ntime. Without uv: `pip install bytx-trader` and `\"command\": \"bytx-trader-mcp\"`. Claude Desktop says the server\nfailed to start? It may not see `uvx`: put the full path from `which uvx` in `\"command\"`.\n\n**Claude only, on top of that:**\n\n```\n\u002Fplugin marketplace add byttrade\u002Fbytx-skills\n\u002Fplugin install bytx-trader@bytx-skills\n```\n\nor copy the folders: `cp -r bytx-skills\u002Fcrypto-* ~\u002F.claude\u002Fskills\u002F` (or your project's `.claude\u002Fskills\u002F`).\n\n| | any MCP client | Claude only |\n|---|---|---|\n| all eight steps, paper and demo | MCP tools | |\n| risk gate and one-time confirm token | in the server | |\n| the trade as a script | `trade_pipeline` prompt | skills |\n| `\u002Fcrypto-*` commands, triggers by phrase, plugin install | | ✓ |\n\n## The steps\n\n| step | MCP tool \u002F CLI | what it does |\n|---|---|---|\n| `crypto-scanner` | `scan` | Top perps by 24h volume: breakout of the session's opening range, RSI extremes. |\n| `crypto-derivs` | `derivs` | Funding now and 7-day average, open interest change, perp\u002Fspot basis, crowded-side flags. |\n| `crypto-entry` | `entry_check` | Waiting \u002F triggered \u002F expired, on closed bars only. |\n| `crypto-exit` | `exit_plan` | Stop (range-mid, range, ATR, price), target in R, flat-by time. |\n| `crypto-timemachine` | `timemachine` | 10,000 replays of the rest of the session from the coin's own bars + the same rule on every past session. |\n| `crypto-size` | `size` | Size from risk with fees, margin, liquidation estimate, funding cost. Places nothing. |\n| `crypto-risk` | `risk_check` | PASS \u002F BLOCK against your limits. |\n| `crypto-broker` | `execute`, `confirm`, `flatten`, `positions`, `reconcile` | The only step that sends anything. |\n| | `settings` | Mode, exchange, account, limits, session — shown, and changed when you ask. |\n\nCrypto trades 24\u002F7, so the \"session\" is yours: `session.start` (00:00 UTC by default), `range_minutes`,\n`entry_until`, `flat_by` — ask the assistant to change them, or `bytx-trader settings session.start=13:30`. Everything\nlands in `~\u002Fbytx-trader` (a project's own `crypto\u002F` folder if it has one; `BYTX_TRADER_HOME` overrides) and each step\nreads what the last one wrote.\n\n## An example: BTC on Binance, November 18 2026, real candles\n\n1. **scan** at 01:05 UTC: BTC broke its first-hour range (64,673.5–64,976.3) to the downside; the 01:00 bar closed at\n   64,588.5, 0.131 % below.\n2. **entry_check**: triggered, short.\n3. **exit_plan** `--stop range-mid --target-r 2`: stop 64,824.9 (0.366 % away), target 64,115.7, flat by 23:55 UTC.\n4. **timemachine**: 10,000 replays from the last 30 sessions (seed 19): target first 37.6 %, stop first 62.4 %. The same\n   rule on those 30 sessions: fired 30 times, 9 targets, 21 stops. Expectancy before fees +0.13R simulated, −0.10R\n   historical. Verdict: close to a coin flip — that is the point of looking before you risk a dollar.\n5. **size** with 10 USDT at risk, 5x: ≈0.033 BTC, ≈2,131 USDT notional, margin ≈426, loss at the stop ≈9.94 USDT with fees.\n6. **risk_check**: PASS.\n7. **execute** shows the ticket and returns a one-time token; you answer yes; **confirm** sends it to the paper account.\n\n`tests\u002F` reproduce these numbers offline from the candles in `tests\u002Ffixtures\u002F`.\n\n## Modes and the gates\n\n| mode | how | keys |\n|---|---|---|\n| **paper** (default) | live order book, virtual balance `account_usdt`, real taker fees | none |\n| **demo** | \"switch to demo\" (`settings`): the exchange's demo\u002Ftestnet | `BYTX_API_KEY`, `BYTX_SECRET` (`BYTX_PASSWORD` for OKX, KuCoin, Bitget; `BYTX_WALLET_ADDRESS`, `BYTX_PRIVATE_KEY` for Hyperliquid) in the server's environment |\n| **real** | not sent by this package: real orders go through the hosted [BYTtrade](https:\u002F\u002Fbyttrade.com) MCP | kept by BYTtrade |\n\nEvery order, in every mode, passes three gates, enforced in the code:\n\n1. the risk check passed **this exact ticket** today (fingerprint);\n2. `execute` sends nothing — it returns the ticket and a one-time token (5 min); `confirm` takes the token and **your\n   reply word for word**, and anything but a plain yes cancels; the risk check runs again;\n3. your client's own approval prompt for `confirm`.\n\nThe client order id comes from the ticket, so if the exchange times out the order is found by that id with\n`reconcile` — it is never sent twice. Getting out (`flatten`) is never blocked by daily limits.\n\n## Updates\n\nStarted with `uvx` as above, the server picks up the newest `bytx-trader` and the newest compatible `bytx` every time\nyour assistant starts it: fixes and new exchange features arrive with no action on your side. `bytx-trader` accepts\n`bytx` within one series (`>=0.2.2,\u003C0.3`), so a breaking `bytx` release never arrives on its own: it comes with a\n`bytx-trader` release that was tested against it. Installed with `pip`, the server checks PyPI once a day and tells you\nin its first answer when an update is out (`BYTX_TRADER_NO_UPDATE_CHECK=1` turns that off). Claude skills installed as\na plugin update with the marketplace (`\u002Fplugin`).\n\n## Development\n\n```bash\npip install -e \".[test]\" && pytest\n```\n\nTests are offline: real candles in `tests\u002Ffixtures\u002F`, orders on `bytx.testing` paper accounts. CI runs them on every\npush and daily against the newest `bytx`; before a `bytx` release, run them against the release candidate:\n`gh workflow run tests.yml -R byttrade\u002Fbytx-skills -f bytx=git+https:\u002F\u002Fgithub.com\u002Fbyttrade\u002Fbytx@\u003Cbranch>`.\n\n## Fine print\n\n**Not financial advice.** Most people who trade actively lose money; leverage makes it faster. A stop is a plan, not\na guarantee: gaps, slippage and auto-deleveraging can fill it far away, and liquidation can come first if leverage is\nhigh. Funding is charged every period while a position is open. The time machine is a simulation from the last few\nweeks, not a prediction. Paper trading simplifies margin and liquidation and does not watch your stop between runs.\nKeys live in environment variables, never in the chat. Orders are sent only by bytx and bytx-trader as released: an\nedited install is refused (the bytx license does not permit modified copies; `uv cache clean` restores it).\n\nMIT. Built on [bytx](https:\u002F\u002Fpypi.org\u002Fproject\u002Fbytx\u002F) (BYTtrade Source-Available License, installed from PyPI, not\ncopied here). No-code bots, backtests and trade confirmations in Telegram — at [byttrade.com](https:\u002F\u002Fbyttrade.com).\n\n\u003Csub>**All risk is yours.** bytx-skills is a tool, provided as is, without any warranty. You alone decide whether and\nhow to use it, and you alone bear every loss, missed profit or other consequence, including those caused by errors in\nthe software, the data, an exchange or an AI assistant. Test it yourself — on paper, then on an exchange demo account —\nand only once you are satisfied that it works for you, use it with real money, in amounts you can afford to lose.\nThe authors and BYTtrade are not liable for any trading results.\u003C\u002Fsub>\n",2,"2026-11-24 04:54:20","CREATED_QUERY"]