validate_order_quantity
Ensure orders comply with Bybit trading rules by validating and formatting order quantities based on category, symbol, and target amount for accurate trade execution.
Instructions
Validate order quantity against Bybit trading rules and get properly formatted quantity
Input Schema
Name | Required | Description | Default |
---|---|---|---|
category | Yes | Category (spot, linear, inverse, etc.) | |
currentPrice | No | Current price (optional, will fetch if not provided) | |
symbol | Yes | Symbol (e.g., BTCUSDT) | |
targetAmount | Yes | Target amount in quote currency (e.g., 80 for $80 worth) |