longbridge max-qty
根據當前帳戶餘額和指定價格,估算最大可買入或賣出數量。
基本用法
bash
longbridge max-qty TSLA.US --side buy --price 340.00| Field | Value |
|----------------|---------|
| Symbol | TSLA.US |
| Cash Max Qty | 0 |
| Margin Max Qty | 896 |示例
查詢指定價格下的最大買入數量
bash
longbridge max-qty TSLA.US --side buy --price 340.00
# JSON 輸出,適合腳本使用
longbridge max-qty TSLA.US --side buy --price 340.00 --format json返回按給定價格可買入的最大股數,分別按現金和融資購買力拆分顯示。
查詢最大賣出數量
bash
longbridge max-qty TSLA.US --side sell根據當前持倉返回最大可賣出股數。
權限要求
查詢最大可委託數量需要 OAuth 交易或帳戶權限。詳見 交易權限 設定說明。