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

> openapi.fcontext.com から提供される認証済み市場データエンドポイント

Financial Context は、認証済みかつ従量制の読み取り専用 US 市場データアクセスを提供します。クォート、ローソク足、企業データ、ニュース、カレンダー、スクリーナー、関連分析には `/api/market-data/*` 配下のサポート済みパスを使用します。

## Base URL

```text theme={null}
https://openapi.fcontext.com
```

このリファレンスの各エンドポイントは `https://openapi.fcontext.com/api/market-data` をルートとし、symbol または market フィルターが必要な場合は `.US` シンボルまたは `US` market を使用します。

## 認証

アカウント設定の Financial Context 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 クライアントは、市場データアクセス権を持つ bearer token を使用できます。

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

## パス形式

`/api/market-data` プレフィックスの後に、サポート済みの読み取り専用 `GET` エンドポイントを指定します。たとえば、リアルタイムクォートには `https://openapi.fcontext.com/api/market-data/quote`、ニュースには `https://openapi.fcontext.com/api/market-data/content/news`、企業概要には `https://openapi.fcontext.com/api/market-data/fundamental/company` を使用します。API リファレンスには現在のエンドポイント範囲が一覧表示されます。

フィルター、日付範囲、ページネーション、エンドポイント固有のオプションにはクエリ文字列を使用します。

## 制限とエラー

すべての市場データリクエストは Financial Context のデータリクエストとして計量されます。

| ステータス | 意味                              |
| ----- | ------------------------------- |
| `400` | パスまたはクエリパラメータが無効                |
| `401` | Financial Context 認証情報がない、または無効 |
| `402` | プランまたはデータリクエスト枠が必要              |
| `403` | 認証情報に市場データエンドポイントへのアクセス権がない     |
| `405` | メソッドがサポートされていないため `GET` を使用     |

完全なエンドポイント一覧とパラメータの詳細は API Reference セクションを参照してください。
