이 페이지는 기계 번역되었습니다. 영어 버전이 원본이며 더 정확하거나 최신일 수 있습니다. 영어로 보기

예시

자주 묻는 질문에 바로 쓸 수 있는 쿼리입니다. 하나를 복사해 티커나 이벤트 유형을 바꾸고 보내세요. 마지막 섹션에는 흔한 실수와 정확한 오류 메시지가 있습니다.


예시 사용 방법

각 예시는 쿼리와 POST /v3/articles/search의 본문을 보여 줍니다. 보고 싶은 블록은 include에 추가하세요. 같은 쿼리 문자열은 WebSocket 구독이나 Webhook에서도 작동하며, 차이점은 쿼리 문법에 설명되어 있습니다.

오른쪽 요청은 이벤트 섹션의 "티커의 부정적 실적" 예시를 모든 클라이언트에서 실행합니다.

Request

POST
/v3/articles/search
curl -X POST 'https://api.finlight.me/v3/articles/search' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY' \
  -d '{
    "query": "{eventType:earnings AND eventDirection:negative AND ticker:AMD}",
    "include": ["companies", "events"]
  }'

기업

기업에 관한 기사

ticker:NVDA
{ "query": "ticker:NVDA", "include": ["companies"] }

NVIDIA가 태깅된 기업 중 하나인 기사와 일치합니다.

기업이 주요 대상인 경우

{ticker:NVDA AND role:subject}
{ "query": "{ticker:NVDA AND role:subject}", "include": ["companies"] }

NVIDIA 자신이 subject 역할인 기사와 일치합니다. 중괄호가 없으면 태깅된 어느 기업이든 subject일 수 있습니다.

기업이 기사의 중심인 경우

{ticker:NVDA AND relevance:>=0.8}
{ "query": "{ticker:NVDA AND relevance:>=0.8}", "include": ["companies"] }

NVIDIA를 언급만 하는 기사가 아니라 주로 NVIDIA를 다루는 기사와 일치합니다.

이 기업 하나만 다루는 경우

ticker:NVDA AND companyCount:1
{ "query": "ticker:NVDA AND companyCount:1" }

NVIDIA가 유일하게 태깅된 기업인 기사와 일치합니다. 시장 종합 기사를 걸러 냅니다.

한 기사에 두 기업

ticker:AAPL AND ticker:NVDA
{ "query": "ticker:AAPL AND ticker:NVDA", "include": ["companies"] }

Apple과 NVIDIA를 모두 태깅한 기사와 일치합니다.


이벤트

모든 M&A 이벤트

eventType:mna
{ "query": "eventType:mna", "include": ["events"] }

M&A 이벤트가 하나 이상 있는 기사와 일치합니다.

대형 거래만

{eventType:mna AND eventImportance:>=high}
{ "query": "{eventType:mna AND eventImportance:>=high}", "include": ["events"] }

중요도가 high 또는 critical인 M&A 이벤트가 있는 기사와 일치합니다.

기업이 거래 대상인 경우

{ticker:INSM AND role:target AND eventType:mna}
{ "query": "{ticker:INSM AND role:target AND eventType:mna}", "include": ["companies", "events"] }

Insmed가 target으로 태깅되고 Insmed에 관한 M&A 이벤트가 있는 기사와 일치합니다. 대상 기업을 가리지 않으려면 role:target AND eventType:mna라고 쓰세요.

티커의 부정적 실적

{eventType:earnings AND eventDirection:negative AND ticker:AMD}
{ "query": "{eventType:earnings AND eventDirection:negative AND ticker:AMD}", "include": ["events"] }

AMD에 관한 부정적 실적 이벤트가 있는 기사와 일치합니다.

포트폴리오의 중요한 뉴스

{eventType:(earnings guidance) AND eventImportance:>=high AND ticker:(NVDA OR AMD OR INTC)}
{
  "query": "{eventType:(earnings guidance) AND eventImportance:>=high AND ticker:(NVDA OR AMD OR INTC)}",
  "include": ["events"]
}

NVIDIA, AMD, Intel에 관한 중요도 high 또는 critical의 실적 또는 가이던스 이벤트가 있는 기사와 일치합니다.

둘 중 하나의 질문

{ticker:NVDA AND role:target} OR {ticker:AMD AND eventType:rating_action AND eventDirection:negative}
{
  "query": "{ticker:NVDA AND role:target} OR {ticker:AMD AND eventType:rating_action AND eventDirection:negative}",
  "include": ["companies", "events"]
}

NVIDIA가 인수 대상이거나 AMD가 부정적인 등급 조정(rating action)을 받는 기사와 일치합니다. 평면 요청 필터는 항상 AND로 결합되므로 이를 표현할 수 없습니다.

기업에 관한 법률 이벤트 없음

ticker:NVDA AND NOT {ticker:NVDA AND eventType:legal}
{ "query": "ticker:NVDA AND NOT {ticker:NVDA AND eventType:legal}" }

NVIDIA에 관한 법률 이벤트가 없는 NVIDIA 기사와 일치합니다.

이벤트가 전혀 없는 기사

ticker:NVDA AND NOT eventType:*
{ "query": "ticker:NVDA AND NOT eventType:*" }

칼럼처럼 이벤트를 찾지 못한 NVIDIA 기사와 일치합니다.


소스와 소스 유형

보도자료만

ticker:NVDA AND sourceType:press_release
{ "query": "ticker:NVDA AND sourceType:press_release" }

NVIDIA에 관한 기업 발표와 일치합니다. 평면 요청 필드 "sourceTypes": ["press_release"]도 같은 일을 합니다. 소스 유형을 참조하세요.

애그리게이터 제외

eventType:mna -sourceType:aggregator
{ "query": "eventType:mna -sourceType:aggregator", "include": ["events"] }

애그리게이터에서 오지 않은 M&A 뉴스와 일치합니다. 유형이 없는 소스의 기사는 남습니다.

특정 날짜 이후 통신사의 거래 뉴스

sourceType:newswire AND eventType:mna AND publishedAt:>=2026-11-17
{ "query": "sourceType:newswire AND eventType:mna AND publishedAt:>=2026-11-17", "include": ["events"] }

2026년 11월 17일 또는 그 이후에 발행된 통신사의 M&A 뉴스와 일치합니다.

소스 하나

ticker:TSLA AND source:www.reuters.com
{ "query": "ticker:TSLA AND source:www.reuters.com" }

Tesla에 관한 Reuters 기사와 일치합니다. 같은 요청에 요청 필드 sources를 함께 보내지 마세요.


스크리닝

한 섹터의 거래

{eventType:mna AND sector:Technology}
{ "query": "{eventType:mna AND sector:Technology}", "include": ["events"] }

기술 기업이 관련된 M&A 이벤트와 일치합니다.

NASDAQ 상장 기업의 거래

{eventType:mna AND exchange:XNAS}
{ "query": "{eventType:mna AND exchange:XNAS}", "include": ["events"] }

주 상장이 NASDAQ인 기업이 관련된 M&A 이벤트와 일치합니다.

독일 기업이 관련된 거래

{eventType:mna AND companyCountry:DE}
{ "query": "{eventType:mna AND companyCountry:DE}", "include": ["events"] }

독일에 소재한 기업이 관련된 M&A 이벤트와 일치합니다. 독일에 관한 기사에는 대신 country:DE를 쓰세요.

벤더 표기의 한국 상장 종목

ticker:000660.KS OR ticker:KRX:005930
{ "query": "ticker:000660.KS OR ticker:KRX:005930", "include": ["companies"] }

한국거래소의 SK하이닉스 또는 삼성전자에 관한 기사와 일치합니다. 티커 및 거래소를 참조하세요.

거래소 기준 실적

{eventType:earnings AND exchange:KOSDAQ}
{ "query": "{eventType:earnings AND exchange:KOSDAQ}", "include": ["events"] }

한국거래소 상장 기업이 관련된 실적 이벤트와 일치합니다. KOSDAQ은 별칭이며 변환됩니다.


텍스트와 감성

미국 기사의 구문

"interest rate cut" AND country:US -sourceType:blog
{ "query": "\"interest rate cut\" AND country:US -sourceType:blog" }

블로그를 제외하고 정확한 구문이 들어간 미국 관련 기사와 일치합니다. JSON에서는 구문의 따옴표를 이스케이프하세요.

기업에 관한 부정적 뉴스

ticker:TSLA AND sentiment:negative
{ "query": "ticker:TSLA AND sentiment:negative" }

전체 감성이 부정적인 Tesla 기사와 일치합니다.


흔한 오류

REST v3가 errors[].issue에 반환하는 메시지입니다. 따로 적지 않았다면 errors[].field는 badQuery입니다. 보강 WebSocket과 원시 WebSocket에서는 같은 메시지가 코드 SEARCH_FAILED의 connection.error 프레임으로 옵니다. 메시지는 바뀔 수 있습니다. 텍스트가 아니라 code와 field로 분기하세요.

알 수 없는 필드 또는 자유 텍스트의 콜론

Breaking:Apple
Unknown field "Breaking". Allowed fields: category, companyCount, companyCountry, ... To search for the literal text, quote it: "Breaking:Apple".

해결: 텍스트를 따옴표로 감싸거나("Breaking: Apple") 필드 이름을 고치세요. WebSocket과 Webhook은 이 오류를 알리지 않고 텍스트를 검색합니다.

알 수 없는 값

sourceType:wire
Unknown value "wire" for field "sourceType". Allowed values: newswire, press_release, financial_media, general_media, aggregator, blog, government

값은 대소문자를 구분하므로 role:Target도 같은 방식으로 실패합니다:

Unknown value "Target" for field "role". Allowed values: acquirer, target, seller, defendant, subject, counterparty, supplier, customer, competitor, mentioned

비교에서 알 수 없는 중요도

{eventType:mna AND eventImportance:>=huge}
Unknown value "huge" for field "eventImportance". Allowed values: low, medium, high, critical

순서가 없는 필드의 비교

source:>reuters.com
Field "source" cannot be compared with ">" — comparisons are only defined for publishedAt, companyCount, eventCount, relevance, eventImportance, eventConfidence

숫자 필드에 텍스트

relevance:>=high
Field "relevance" expects a number, got "high"

날짜 필드에 텍스트

publishedAt:>=yesterday
Field "publishedAt" expects a date such as 2026-11-01 or 2026-11-01T10:00:00Z, got "yesterday"

publishedAt:*도 같은 방식으로 실패합니다.

연산자로 끝나는 쿼리

Tesla AND
Unexpected end of input

공백만 있는 쿼리는 Query is empty로 응답합니다. 쿼리 없이 검색하려면 query를 빼세요.

공유 기업이 없는 그룹

{role:subject AND eventType:mna}
The correlation group {role, eventType} has no common path: its fields live on different objects (company vs. event) and it carries no identity field to correlate them. Either add an identity (ticker, isin or companyId) to the group, or write the conditions as separate groups if the correlation does not matter.

해결: {ticker:NVDA AND role:subject AND eventType:mna} 또는 {role:subject} AND {eventType:mna}.

한 그룹 안에서 기업과 이벤트 사이의 OR

{ticker:NVDA AND (role:subject OR eventType:mna)}
The condition on role, eventType inside a correlation group spans company and event — split it into separate groups

해결: {ticker:NVDA AND role:subject} OR {ticker:NVDA AND eventType:mna}.

그룹 안의 기사 필드

{country:US AND ticker:NVDA}
Field "country" is an article-level field and cannot take part in a correlation group {…} — a group describes one company or one event. Write it outside the group instead.

해결: country:US AND {ticker:NVDA} 또는 그냥 country:US AND ticker:NVDA.

그룹 안의 자유 텍스트

{ticker:NVDA AND merger}
A correlation group {…} may only contain field conditions — free text belongs outside the group

해결: merger AND {ticker:NVDA}.

닫는 중괄호 누락

{ticker:NVDA AND role:subject
Unclosed correlation group — a "{" needs a matching "}"

부정된 조건만 있음

-ticker:TSLA

errors[].field는 positiveTermRequired입니다:

Query must include at least one non-negative keyword or phrase

해결: 긍정 조건을 추가하세요. 예: electric vehicles -ticker:TSLA.