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": [...]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | ||
| xml_content | Yes | ||
| asset_category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |