주식 랭킹 조회
toss_get_rankingsRetrieves top 100 stock rankings by market (KR/US), duration, and ranking type, such as gainers, losers, trading volume, or trading amount, so you can compare market performance.
Instructions
주식 랭킹 조회. 지정한 시장(marketCountry) · 기간(duration) · 기준(type)의 주식 랭킹을 조회합니다. 상위 100위까지 제공합니다.
TOP_GAINERS/TOP_LOSERS는duration=realtime을 지원하지 않습니다 (400unsupported-ranking-duration).tradingVolume/tradingAmount의 집계 기준은type이 결정합니다 —TOSS_SECURITIES_*는 토스증권 체결 기준, 그 외(MARKET_*/TOP_*)는 시장 전체 기준.price.basePrice는TOP_GAINERS/TOP_LOSERS만duration시작 시점 기준가이며, 나머지 타입은duration과 무관하게 항상 전일 기준가입니다.price.changeRate도 같은 의미를 따릅니다 (기간 등락률 vs 전일 대비 등락률).응답 항목 수는
count보다 적을 수 있습니다 (시세 조회에 실패한 종목은 제외).랭킹이 집계되지 않은 조합은 에러가 아닌 빈
rankings배열로 응답하며, 이때rankedAt은 null 입니다.
Rate Limits Group: RANKING
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| count | No | ||
| duration | Yes | ||
| marketCountry | Yes | ||
| excludeInvestmentCaution | No |