calculate_position_size
Fee-aware position size
Calculate position quantity and notional for a linear crypto futures trade from user-specified account balance, risk percentage, entry and stop. Includes separate entry/stop fees and optional target profit and net R. Direction is derived. Use when asked how much to buy or sell for a specified risk budget. Ask for missing prices or risk preference; do not invent them. Does not calculate liquidation, leverage, inverse contracts, exchange lot rounding, signals, or execute orders.
feesstopPrice必填entryPrice必填riskPercent必填targetPricequoteCurrencyaccountBalance必填instrumentType