# 과거 주가 데이터 조회

**API:** Data API

**Endpoint:** `GET /v1/beta/financial/prices`

**Tags:** Financial Data

한 종목의 과거 OHLCV 봉입니다. `ticker`, `interval`, `start_date`, `end_date` 네 가지가 모두 선택자이며 최근 기간 바로가기는 없습니다. `interval`은 day, week, month, year 중 하나입니다. 각 봉에는 `open`, `close`, `high`, `low`, `volume`, `time`이 있고 `prices` 배열에 에코된 `ticker`와 함께 담깁니다. 차트를 그리거나 알려진 기간의 변동을 측정할 때 사용하세요. 최신 가격만 필요하면 `get_financial_prices_snapshot`을 사용하세요.

### 가격 참고

- 과금 기준: 성공한 요청당 고정 원가 기준.
- 참고 요청 추정치: USD 0.02.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.

참고용 메타데이터일 뿐이며, 계정 견적이나 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `end_date` | query | no | string |  |
| `interval` | query | no | string |  |
| `interval_multiplier` | query | no | string |  |
| `start_date` | query | no | string |  |
| `ticker` | query | no | string |  |

## Responses

### 200 — 가격 데이터 응답

Headers:
- `X-Request-Id` (string) — Felo 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: `ResponseE40Feb4D3D6B_PricesResponse` (`#/components/schemas/ResponseE40Feb4D3D6B_PricesResponse`)

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**application/json**

Schema:

```json
{}
```

## Schema definitions

### ResponseE40Feb4D3D6B_Price

`#/components/schemas/ResponseE40Feb4D3D6B_Price`

```json
{
  "type": "object",
  "properties": {
    "open": {
      "type": "number",
      "description": "주어진 기간 동안 티커의 시가입니다."
    },
    "close": {
      "type": "number",
      "description": "주어진 기간 동안 티커의 종가입니다."
    },
    "high": {
      "type": "number",
      "description": "주어진 기간 동안 티커의 고가입니다."
    },
    "low": {
      "type": "number",
      "description": "주어진 기간 동안 티커의 저가입니다."
    },
    "volume": {
      "type": [
        "integer",
        "null"
      ],
      "description": "주어진 기간 동안 티커의 거래량입니다."
    },
    "time": {
      "type": "string",
      "description": "UTC 기준 가격의 사람이 읽을 수 있는 시간 형식입니다."
    }
  }
}
```

### ResponseE40Feb4D3D6B_PricesResponse

`#/components/schemas/ResponseE40Feb4D3D6B_PricesResponse`

```json
{
  "type": "object",
  "properties": {
    "ticker": {
      "type": "string",
      "description": "티커 심볼입니다."
    },
    "prices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ResponseE40Feb4D3D6B_Price"
      }
    },
    "next_page_url": {
      "type": "string",
      "description": "다음 결과 페이지의 절대 URL입니다. 남은 결과가 있을 때만 표시되며, 그대로 요청해 계속 진행합니다. 각 페이지에는 최대 100개의 레코드가 있습니다."
    }
  }
}
```
