平仓
platform_close_position【持仓与执行】平仓(写操作,需确认):按 credentialId + symbol 平掉持仓;closeScope=full 全平,传 size 时部分平。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
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": {
"credentialId": "<credentialId>",
"symbol": "<symbol>"
},
"name": "platform_close_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 平仓数量(可选,缺省全平) | |
| symbol | Yes | 交易对(必填) | |
| closeScope | No | full=全平(可选,默认 full) | |
| marketType | No | 市场类型 swap/spot(可选) | |
| credentialId | Yes | 交易所凭证 ID(必填) |