Docs/リファレンス/企業比較/時系列データの取得
GET/v1/timeseriesプラン · Developer

時系列データの取得

1つの指標の時系列データを1社以上について返します。

チャート描画に適した形式:企業ごとに{fiscal_year, value}の配列を返します。

クエリパラメータ · 4

任意のフィルターと修飾子。URLエンコードした ?key=value で渡します。

codesstring必須

カンマ区切りのEDINETコードまたは証券コード(最大10件)

metricstring任意

財務指標。ランキング: revenue, net_income, operating_income, ordinary_income, total_assets, total_equity, total_liabilities, gross_profit, current_assets, current_liabilities, eps, bps, roe, roa, operating_margin, net_margin, gross_margin, equity_ratio, debt_to_equity, current_ratio, interest_coverage, health_score。時系列: revenue, net_income, operating_income, ordinary_income, total_assets, total_equity, eps, bps, dividends_per_share, operating_cf, investing_cf, financing_cf, roe, pe_ratio, num_employees, cost_of_sales, gross_profit, sga, depreciation, rnd_expenses, current_assets, noncurrent_assets, ppe, intangible_assets, inventories, current_liabilities, noncurrent_liabilities, retained_earnings, capex, treasury_stock, goodwill, interest_expense, investment_securities

default revenue
yearsinteger任意

取得する決算年数

default 10
split_adjustedboolean任意

株式分割調整済みの値を使用。falseで未調整の生データを返却。

default true

リクエストヘッダー · 1

認証ヘッダー。

Authorizationstring必須

本番用のAPIキー。次の形式で渡します: Bearer ax_live_…

返り値 · 200

標準の { data, meta } エンベロープ。 data は TimeseriesResultOut 型の配列です。

エンベロープ

dataTimeseriesResultOut[]

結果オブジェクトの配列。

metaMeta

ページネーションとリクエストメタデータ。request_iddata_as_ofontology_version を含みます。

ontology_version 2.1.0replay meta.as_of · ?as_of=<token>

TimeseriesResultOut

companyCompanyOut

企業情報。

metricstring

チャートする指標(例: 'revenue'、'roe')。

pointsTimeseriesPoint[]

決算年度順の時系列データポイント。

エラー

標準のHTTPステータスコードに加え、{ error: { code, message } } エンベロープ内で型付きの error.code を返します。

すべてのエンドポイントは共通の型付きエラーエンベロープ({ error: { code, message } })を返します。 全コードの一覧はエラーリファレンスを参照してください。