一键全平
platform_flat_all【持仓与执行】一键全平(写操作,需确认):默认 dryRun=true 只预演;确认执行须显式 dryRun=false。可按凭证/交易对/市场类型限定,marketType=spot 时清现货余额。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "platform_flat_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | 仅预演(默认 true) | |
| symbol | No | 交易对(可选) | |
| marketType | No | swap/spot(可选) | |
| credentialId | No | 凭证 ID(可选,缺省全部) |