Agent skill · Backend & API

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.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill binance-futures-order-quantity-calculation-with-leverage --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8/binance-futures-order-quantity-calculation-with-leverage/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 1. **Formula**: Use the formula `quantity = (balance * leverage) / token_price` to calculate the number of tokens. 2. **Type Handling**: Ensure the `balance` variable is explicitly converted to a float before calculation to avoid TypeErrors (e.g., `balance = float(usdt_balance)`). 3. **Leverage**: The user typically uses 50x leverage. In code, define `leverage = 50` unless specified otherwise. 4. **Integration**: When provided with a code snippet, replace the `quantity` assignment 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 standar

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Binance Futures Order Quantity Calculation with Leverage skill do?

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.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill binance-futures-order-quantity-calculation-with-leverage --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going