broker_import_statement
Import broker CSV statements, parse them into standardized trade records, and save to InvestBrain while automatically removing duplicates.
Instructions
导入券商交割单 CSV 文件,解析为标准化交易记录并入库(自动去重)。
Args:
file_path: 券商导出的交割单/对账单 CSV 文件绝对路径
broker: 券商标识,可选 htsc / citic / cms / gtja / generic;
默认 auto 自动按表头特征识别(无法确定时按 generic 处理)
Returns:
{
import_id, broker, file_name,
total_rows, imported_rows, duplicated_rows, skipped_rows,
first_date, last_date, warnings, hint
}
重复导入同一文件时返回 imported_rows=0 并提示已存在。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| broker | No | auto | |
| file_path | Yes |