Estimate Max Purchase Quantity
estimate_max_purchase_quantityEstimate the maximum buy or sell quantity for a symbol using order type and price. Provides cash and margin limits.
Instructions
Estimate maximum buy/sell quantity for a symbol. Returns {cash_max_qty, margin_max_qty} (decimal strings). Requires symbol, side (Buy/Sell), order_type, and optionally price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Security symbol, e.g. "700.HK" | |
| side | Yes | Buy or Sell | |
| order_type | Yes | Order type: LO (Limit Order) / ELO (Enhanced Limit Order) / MO (Market Order) / AO (At-auction) / ALO (At-auction Limit Order) | |
| price | No | Limit price for limit-style orders. Omit for market orders. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_max_qty | Yes | Maximum buy/sell quantity using cash buying power. | |
| margin_max_qty | Yes | Maximum buy/sell quantity using margin buying power. |