Estimate Max Purchase Quantity
estimate_max_purchase_quantityEstimate the maximum buy or sell quantity for a security, returning cash and margin limits to enable informed order placement.
Instructions
Estimate maximum buy/sell quantity for a symbol. Returns {cash_max_qty, margin_max_qty} (decimal strings). Only symbol is required; side (case-insensitive Buy/Sell) defaults to Buy, order_type (case-insensitive) defaults to LO, and price is optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Security symbol, e.g. "700.HK" | |
| side | No | Buy or Sell (case-insensitive; default: Buy) | Buy |
| order_type | No | Order type, case-insensitive (default: LO): LO (Limit Order) / ELO (Enhanced Limit Order) / MO (Market Order) / AO (At-auction) / ALO (At-auction Limit Order) | LO |
| 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. |