> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fcontext.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 외부 클라이언트

> 도구, CLI, agent에서 Financial Context 시장 데이터 사용하기

Financial Context의 외부 시장 데이터 API는 계정 단위로 계량되는 시세와 회사 데이터 접근이 필요한 도구를 위해 설계되었습니다.

## API Key 클라이언트

서버 간 통합에는 API key를 사용하세요.

```bash theme={null}
curl "https://openapi.fcontext.com/api/market-data/quote?symbols=AAPL.US" \
  -H "x-api-key: YOUR_FCONTEXT_API_KEY"
```

## OAuth 클라이언트

CLI, MCP, agent 통합은 OAuth bearer token을 사용할 수 있습니다.

```bash theme={null}
curl "https://openapi.fcontext.com/api/market-data/content/news?symbol=AAPL.US" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

OAuth 자격 증명에는 `market_data` scope가 포함되어야 합니다.

## 일반 GET 엔드포인트

지원되는 읽기 전용 US 시장 데이터 `GET` 엔드포인트는 `/api/market-data` 뒤에 데이터 경로를 붙여 접근할 수 있습니다.

```bash theme={null}
curl "https://openapi.fcontext.com/api/market-data/market/top_movers?market=US&count=10" \
  -H "x-api-key: YOUR_FCONTEXT_API_KEY"
```

요청은 Financial Context 데이터 요청으로 과금되며 사용량 보고서에 표시됩니다.
