flex_parse_positions
Extract open positions from a Flex XML report, optionally filtering by symbol or asset category, and get a JSON with count and positions.
Instructions
Extract open position records from a Flex XML report.
Args: xml_content: Raw Flex XML string. symbol: Filter by ticker symbol (case-insensitive, optional). asset_category: Filter by asset category e.g. STK, OPT, FUT (optional).
Returns JSON: {"count": N, "positions": [...]}
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": {
"xml_content": "<xml_content>"
},
"name": "flex_parse_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | ||
| xml_content | Yes | ||
| asset_category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |