add_trade
Add a trade record (buy or sell) to a stock position. Specify stock ID, market, action, shares, price, and trade date.
Instructions
新增一筆交易記錄到持倉(買入或賣出),執行前會請使用者確認。必填:stockId、market、action(buy/sell)、shares、price、tradeDate。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stockId | Yes | 股票代號,例如 2330 | |
| market | Yes | TW 或 US | |
| action | Yes | buy 或 sell | |
| shares | Yes | 股數(台股為整數張數×1000) | |
| price | Yes | 成交價格 | |
| tradeDate | Yes | 交易日期 YYYY-MM-DD | |
| note | No | 備註(選填) |