添加持仓记录
portfolio_addAdd a holding record to a simulated portfolio to track profit and loss.
Instructions
在模拟盘中添加一笔持仓记录,用于后续跟踪盈亏
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": {
"symbol": "<symbol>",
"price": "<price>",
"volume": "<volume>"
},
"name": "portfolio_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | 买入价格 | |
| market | No | 股票市场,仅支持: sh(上证), sz(深证), hk(港股), us(美股), 不支持加密货币 | sh |
| symbol | Yes | 股票或币种代码 | |
| volume | Yes | 买入数量 |