query_excel
Filter stocks from saved Excel snapshots using conditions like PER, PBR, and drawdown. Query local files directly for results.
Instructions
엑셀쿼리 — 저장된 Excel 스냅샷에서 조건에 맞는 종목을 즉시 필터링.
scan_to_excel로 만든 파일을 조회할 때 사용. HTTP 호출 없이 로컬 파일에서 필터링하므로 매우 빠릅니다. 같은 파일에 여러 조건을 번갈아 쿼리 가능.
필터 형식 (두 가지 다 지원): 간단: {"per_max": 10, "pbr_max": 1.5, "drawdown_pct_max": -30} 상세: {"per": {"max": 10, "min": 0}, "drawdown_pct": {"max": -30}}
Args: file_path: scan_to_excel로 만든 파일 경로 filters: 필터 조건 (컬럼명_max / 컬럼명_min 형식) sort_by: 정렬 기준 컬럼 (예: "market_cap", "drawdown_pct") descending: 내림차순 여부 (기본 True) limit: 반환 최대 개수 (기본 30)
Returns: 필터링된 종목 리스트 (마크다운 테이블)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| filters | No | ||
| sort_by | No | ||
| descending | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |