longbridge max-qty
Estimate the maximum quantity you can buy or sell given your current account balance, at a specified price.
Basic Usage
bash
longbridge max-qty TSLA.US --side buy --price 340.00| Field | Value |
|----------------|---------|
| Symbol | TSLA.US |
| Cash Max Qty | 0 |
| Margin Max Qty | 896 |Examples
Max buy quantity at a price
bash
longbridge max-qty TSLA.US --side buy --price 340.00
# Output as JSON for scripting
longbridge max-qty TSLA.US --side buy --price 340.00 --format jsonReturns the maximum number of shares you can purchase at the given price, broken down by cash and margin buying power.
Max sell quantity
bash
longbridge max-qty TSLA.US --side sellReturns the maximum number of shares you can sell, based on your current holdings.
Requirements
OAuth trade or account permission is required to query maximum order quantities. See Trade Permissions for setup details.