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。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stockId": "<stockId>",
"market": "<market>",
"action": "<action>",
"shares": "<shares>",
"price": "<price>",
"tradeDate": "<tradeDate>"
},
"name": "add_trade"
}
}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 | 備註(選填) |