Estimate Max Purchase Quantity
estimate_max_purchase_quantityCalculate the maximum buy or sell quantity for a security given order type, side, and optional limit price. Assists in order sizing.
Instructions
Estimate maximum buy/sell quantity for a symbol
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. |