validate_order_quantity
Ensures order quantity complies with Bybit trading rules by validating and formatting input based on category, symbol, and target amount. Fetches current price if not provided to ensure accuracy.
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) |