Skip to content
Back to skills

Crypto Size

ASecurity

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

Pro shows the line behind each finding and how to fix it

Scanned November 24, 2026

npx -y skills add byttrade/bytx-skills --skill crypto-size --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crypto Size?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crypto Size
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/byttrade-crypto-size/badge)](https://www.skillsdirectory.com/skills/byttrade-crypto-size)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.