screen_by_flow
Filter top traded stocks by trade value or volume, requiring consecutive foreign and institutional net buying days. Returns only matching stocks by combining ranking with flow data.
Instructions
수급스크리닝 — 거래대금/거래량 상위 N개 중 외국인·기관이 최근 며칠 연속 순매수한 종목만 추립니다.
"거래대금 상위 중 외국인·기관 동반 매수", "이틀 연속 수급 들어온 종목" 같은 스크리닝 전용. 랭킹+수급을 서버에서 join해 매치 종목만 반환 → 토큰·시간 절감.
Args: top_n: 상위 후보 수 (기본 100, 최대 500). 클수록 정확하나 느림(500≈20~50초) market: "KOSPI"/"KOSDAQ"/"ALL" (기본 ALL) foreign_days: 최근 N일 모두 외국인 순매수여야 매치 (0=미적용) inst_days: 최근 N일 모두 기관 순매수여야 매치 (0=미적용) exclude_etf: ETF/ETN 제외 (기본 True) sort_by: "trade_value"(거래대금, 기본)/"volume"(거래량)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| market | No | ALL | |
| foreign_days | No | ||
| inst_days | No | ||
| exclude_etf | No | ||
| sort_by | No | trade_value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |