Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Financial Datasets Get Historical Stock Prices

APIドキュメント
https://api.sandbase.ai/v1/api/financial-datasets/prices

Get Historical Stock Prices from Financial Datasets. Returns the official Financial Datasets API response unchanged.

料金
$0.02USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 0 件 · 任意 6 件

プレイグラウンド

入力
Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.
The end date for the price data (format: YYYY-MM-DD). Provider reference (supplier schema): `{"format":"date","type":"string"}`.
The time interval for the price data. Provider reference (supplier schema): `{"enum":["day","week","month","year"],"type":"string"}`.
interval_multiplier
The start date for the price data (format: YYYY-MM-DD). Provider reference (supplier schema): `{"format":"date","type":"string"}`.
The stock ticker symbol (e.g. AAPL, MSFT).
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Financial Datasets Get Historical Stock Prices API

Returns historical price bars for one stock ticker as a list of open, high, low, close and volume values. It needs a ticker, and you can set interval, interval_multiplier, start_date and end_date to choose the range and bar size.

Use cases

  • Plot a daily candlestick chart for AAPL over a chosen date range.
  • Compute daily returns or moving averages from the close values.
  • Backtest a trading rule against historical open, high, low and close data.
  • Check trading volume on specific days to spot unusual activity.

Request

curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/prices" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ticker": "AAPL", "interval": "day", "interval_multiplier": "1", "start_date": "2026-10-01", "end_date": "2026-10-10"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
cursorstringNoOpaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify
end_datestringNoThe end date for the price data (format: YYYY-MM-DD). Provider reference (supplier schema): {"format":"date","type":"string"}.
intervalstringNoThe time interval for the price data. Provider reference (supplier schema): {"enum":["day","week","month","year"],"type":"string"}.
interval_multiplierstringNointerval_multiplier
start_datestringNoThe start date for the price data (format: YYYY-MM-DD). Provider reference (supplier schema): {"format":"date","type":"string"}.
tickerstringNoThe stock ticker symbol (e.g. AAPL, MSFT).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "prices": [
    {
      "close": 330.32,
      "high": 332.48,
      "low": 325.81,
      "open": 330.0,
      "ticker": "AAPL",
      "time": "2026-10-01",
      "volume": 36306346
    }
  ],
  "ticker": "AAPL"
}

Response fields

FieldMeaning
pricesList of price bars, one per interval in the requested date range.
prices[].timeDate of the bar in YYYY-MM-DD format.
prices[].open / prices[].closePrice at the start and at the end of the bar.
prices[].high / prices[].lowHighest and lowest price reached during the bar.
prices[].volumeNumber of shares traded during the bar.
prices[].ticker / tickerTicker symbol the prices belong to.

Notes

  • Use YYYY-MM-DD for start_date and end_date. The interval parameter accepts day, week, month or year.
  • Weekend dates are absent from the daily response. The sample jumps from 2026-10-02 to 2026-10-05.
  • To page through a long result, pass the cursor from next_page_url as cursor. When you send cursor, all other parameters are ignored.
  • For the latest price only, call Financial Datasets Get Stock Price Snapshot.

Pricing

$0.02 per successful call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Financial Datasets$0.02 / 回JSON
Financial Datasets$0.02 / 回JSON
Financial Datasets$0.02 / 回JSON
Financial Datasets$0.02 / 回JSON
Financial Datasets$0.02 / 回JSON
Financial Datasets$0.02 / 回JSON

質問

FAQ

Financial Datasets Get Historical Stock Prices API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/financial-datasets/prices に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Financial Datasets Get Historical Stock Prices API の料金はいくらですか?

1回あたり $0.02、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Financial Datasets Get Historical Stock Prices API はどのパラメータを受け付けますか?

必須パラメータはありません。 任意: cursor (string), end_date (string), interval (string), interval_multiplier (string), start_date (string) と ticker (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Financial Datasets Get Historical Stock Prices API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Financial Datasets の開発者アカウントまたは API key は必要ですか?

いいえ。Financial Datasets Get Historical Stock Prices は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Financial Datasets の API アクセスを別途申請する必要はありません。