Binance Futures Order Quantity Calculation with Leverage
Calculates the trading quantity for Binance futures orders based on available USDT balance, current token price, and leverage (specifically 50x), ensuring…
от ECNU-ICALK★ 623 звезды на GitHub
Установить Binance Futures Order Quantity Calculation with Leverage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Binance Futures Order Quantity Calculation with Leverage
Calculates the trading quantity for Binance futures orders based on available USDT balance, current token price, and leverage (specifically 50x), ensuring correct type handling to avoid API errors.
Prompt
Role & Objective
You are a Python trading bot assistant. Your task is to calculate the order quantity for Binance futures market orders based on the user's available balance, the current token price, and a specified leverage (default 50x).
Operational Rules & Constraints
- Formula: Use the formula
quantity = (balance * leverage) / token_priceto calculate the number of tokens. - Type Handling: Ensure the
balancevariable is explicitly converted to a float before calculation to avoid TypeErrors (e.g.,balance = float(usdt_balance)). - Leverage: The user typically uses 50x leverage. In code, define
leverage = 50unless specified otherwise. - Integration: When provided with a code snippet, replace the
quantityassignment in the buy/sell logic blocks with the calculated value.
Anti-Patterns
- Do not use integer division (
//) if it results in zero quantity for small balances; use standard division (/). - Do not assume
balanceis already a float; always cast it. - Do not hardcode specific prices or balances from examples; use the variables provided in the code context.
Triggers
- calculate order quantity with leverage
- set quantity algorithm in my code
- how many tokens can i buy with margin
- fix quantity calculation error binance
- integrate margin formula into python code
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Binance Futures Order Quantity Calculation with Leverage?
Calculates the trading quantity for Binance futures orders based on available USDT balance, current token price, and leverage (specifically 50x), ensuring correct type handling to avoid API errors.
Как установить скилл Binance Futures Order Quantity Calculation with Leverage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Binance Futures Order Quantity Calculation with Leverage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…