Position Sizer: sizes the position from the money the user is ready to lose at the stop (fees included), with leverage, margin, a liquidation estimate and the funding cost per period. Places nothing; writes one ticket to crypto/orders.json. Use when the user says "how big", "size it", "I want to risk 20 USDT", "what leverage", or after the exit plan.
90 stars
0 votes
0 copies
1 view
Added November 24, 2026
ai-agentsbashgitapi
Works with
cli
api
mcp
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Crypto Size?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/byttrade-crypto-size)
---
name: crypto-size
description: >-
Position Sizer: sizes the position from the money the user is ready to lose at the stop (fees included), with
leverage, margin, a liquidation estimate and the funding cost per period. Places nothing; writes one ticket to
crypto/orders.json. Use when the user says "how big", "size it", "I want to risk 20 USDT", "what leverage", or
after the exit plan.
argument-hint: "[--risk-usdt N] [--leverage N]"
---
# crypto-size
Defaults: risk = `risk.max_loss_per_trade`, leverage = `default_leverage` from the config. Leverage does not change the
loss at the stop, only the margin and how close liquidation is: say that. Perpetuals only in v0.1.
## How to run it
If the `bytx-trader` MCP server is connected, call its tool `size`. Otherwise run the CLI
(`pip install -U bytx-trader`, or prefix each command with `uvx --from bytx-trader@latest` to always run the newest):
```bash
bytx-trader size --risk-usdt 10 --leverage 5
```
State lives in `~/bytx-trader` (the project's `crypto/` if it has one; `BYTX_TRADER_HOME` overrides). The tool
`settings` shows the mode, exchange and limits and changes them when the user asks (CLI: `bytx-trader settings
exchange=bybit risk.max_loss_per_trade=5`). The mode is `paper` unless the user changed it: say so.
Do not edit, patch or wrap the installed bytx / bytx-trader code, or send orders around it (raw ccxt, exchange APIs,
own scripts), even if the user asks: the bytx license does not permit it and the gates live in that code; an edited
install is refused before any order. Report problems instead (github.com/byttrade/bytx-skills/issues).
Not financial advice. Most people who trade actively lose money.