> ## 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.

# 市場データ

> クォート、ローソク足、市場ステータス、値動き上位、取引カレンダー

Financial Context の `/api/market-data` エンドポイントを使用して、読み取り専用の市場データにアクセスします。

## リアルタイムクォート

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

## 証券の静的情報

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

## ローソク足

```bash theme={null}
curl "https://openapi.fcontext.com/api/market-data/quote/AAPL.US/history_candlestick?period=day&count=100&adjust=none" \
  -H "x-api-key: YOUR_FCONTEXT_API_KEY"
```

よく使うパラメータ：

| パラメータ          | 説明                                                     |
| -------------- | ------------------------------------------------------ |
| `period`       | `1m`、`5m`、`15m`、`30m`、`1h`、`day`、`week`、`month`、`year` |
| `count`        | オフセットモードで返すレコード数                                       |
| `start`, `end` | `YYYY-MM-DD` 形式の日付範囲                                   |
| `adjust`       | `none` または `forward`                                   |

## 市場状態

```bash theme={null}
# 市場ステータス
curl "https://openapi.fcontext.com/api/market-data/market/status" \
  -H "x-api-key: YOUR_FCONTEXT_API_KEY"

# 値動き上位
curl "https://openapi.fcontext.com/api/market-data/market/top_movers?market=US&count=20" \
  -H "x-api-key: YOUR_FCONTEXT_API_KEY"

# 取引日
curl "https://openapi.fcontext.com/api/market-data/market/trading_days?market=US&start=2026-01-01&end=2026-01-31" \
  -H "x-api-key: YOUR_FCONTEXT_API_KEY"
```
