jquants-cli-usage
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseJ-Quants CLI 使用スキル
J-Quants CLI Usage Guide
Role & Decision Flow
Role & Decision Flow
jquants コマンドを構築するときは、以下の順序で判断する:
- データ種別を決める — 株式(eq)・市場(mkt)・デリバティブ(deriv)・財務(fins)・指数(idx)
- プラン制限を確認する — ユーザーのプランで利用可能か確認する(下記「Subscription Plans & API Availability」参照)。プランが不明な場合は、コマンドを提示しつつ必要プランを明記する
- フィールド名を確認する — で絞り込む前に
-fで正確な名前を調べる(推測しない)jquants schema <endpoint> - 個別API vs バルクを選ぶ — 「全銘柄」「1ヶ月以上」「大量」のいずれかに該当 → バルク(references/commands-bulk.md 参照)。個別APIを大量に繰り返すとレートリミットに抵触するため(下記 Rate Limits 参照)。Free プランは CSV/バルク不可(を除く)
mkt calendar - コマンドを組み立てる — グローバルオプション(,
--output,--save)をサブコマンドの前に置く-f - パイプを考慮する — パイプ先がある場合は を省略するだけで自動的に CSV が流れる
--output
When building jquants commands, make judgments in the following order:
- Determine data type — Equities (eq), Market (mkt), Derivatives (deriv), Finance (fins), Index (idx)
- Check plan restrictions — Confirm whether it is available under the user's plan (refer to "Subscription Plans & API Availability" below). If the plan is unknown, present the command and clearly state the required plan
- Check field names — Before filtering with , check the exact name with
-f(do not guess)jquants schema <endpoint> - Choose between individual API and bulk — If it falls into any of "all tickers", "over 1 month", "large volume" → Use bulk (refer to references/commands-bulk.md). Repeated calls to individual APIs in large quantities will hit rate limits (refer to Rate Limits below). Free plan does not support CSV/bulk download (except )
mkt calendar - Assemble the command — Place global options (,
--output,--save) before subcommands-f - Consider pipes — If there is a pipe destination, just omit and CSV will be streamed automatically
--output
Prerequisites
Prerequisites
推奨: でブラウザログイン(API キーを自動取得・保存)
jquants loginsh
jquants login # ブラウザが開き、Cognito OAuth2 PKCE でログイン
# → ~/.config/jquants/credentials.json に API キーを自動保存フォールバック: 環境変数で直接指定
sh
export JQUANTS_API_KEY="your-api-key"Recommended: Log in via browser with (API key is automatically obtained and saved)
jquants loginsh
jquants login # Browser opens, log in with Cognito OAuth2 PKCE
# → API key is automatically saved to ~/.config/jquants/credentials.jsonFallback: Specify directly via environment variables
sh
export JQUANTS_API_KEY="your-api-key"または .env ファイルに記載
Or write it in the .env file
**認証優先順位:** `~/.config/jquants/credentials.json` の api_key → `JQUANTS_API_KEY` 環境変数 → エラー(`jquants login` を促す)
> **`jquants schema` は認証不要。**ログイン前でもフィールド名の確認に使える。
**Authentication priority:** api_key in `~/.config/jquants/credentials.json` → `JQUANTS_API_KEY` environment variable → Error (prompt to run `jquants login`)
> **`jquants schema` does not require authentication.** It can be used to check field names even before logging in.Command Syntax Rules
Command Syntax Rules
グローバルオプション (, , ) はサブコマンドの前に置く:
--output--save-fsh
undefinedGlobal options (, , ) must be placed before subcommands:
--output--save-fsh
undefined✅ 正しい
✅ Correct
jquants --output csv --save out.csv eq daily --code 86970
jquants --output csv --save out.csv eq daily --code 86970
❌ 誤り(サブコマンド後は無効)
❌ Incorrect (invalid after subcommand)
jquants eq daily --code 86970 --output csv
> **なぜ:** clap の設計上、サブコマンド以降のフラグはサブコマンド自身のオプションとして解析される。サブコマンドの後に置くと「不明なフラグ」エラーになる。
**パイプ時の自動CSV切替:**
stdout が TTY でない場合(パイプ先がある場合)、`--output table`(デフォルト)は自動的にCSV形式で出力される。
```shjquants eq daily --code 86970 --output csv
> **Reason:** Due to clap's design, flags after a subcommand are parsed as options of the subcommand itself. Placing them after the subcommand will cause an "unknown flag" error.
**Automatic CSV switching when piping:**
When stdout is not a TTY (when there is a pipe destination), the default `--output table` will automatically output in CSV format.
```shパイプすると自動でCSVが流れる
Automatically streams CSV when piped
jquants eq daily --code 86970 | head -5
jquants eq daily --code 86970 | head -5
明示的にJSONをパイプしたい場合は指定が必要
Explicit specification is required if you want to pipe JSON
jquants --output json eq daily --code 86970 | jq '.[] | .AdjustmentClose'
**フィールド選択 (`--fields` / `-f`) でカラムを絞り込む:**
```shjquants --output json eq daily --code 86970 | jq '.[] | .AdjustmentClose'
**Filter columns with field selection (`--fields` / `-f`):**
```sh日付・コード・調整済終値だけを取得
Get only date, code, adjusted close price
jquants -f Date,Code,AdjustmentClose eq daily --code 86970
jquants -f Date,Code,AdjustmentClose eq daily --code 86970
不正なフィールド名を指定するとエラーで利用可能フィールド一覧が表示される
If an invalid field name is specified, an error will be displayed with a list of available fields
undefinedundefinedSchema-First: フィールド名の確認
Schema-First: Check field names
--fieldsjquants schema <endpoint>sh
jquants schema # 全エンドポイント一覧(キー・説明・フィールド数)
jquants schema eq.daily # eq.daily の全フィールド(名前・型・説明)
jquants --output json schema # JSON 形式で出力エンドポイントキーは 形式(例: , , )。
カテゴリ.コマンドeq.dailyfins.summarymkt.short-ratio手順:
- でフィールド一覧を取得
jquants schema eq.daily - 必要なフィールド名をコピーして に指定
-f - 不正なフィールド名はエラーで拒否される(利用可能フィールド一覧が表示される)
Before filtering columns with , confirm the exact field name with . Do not guess field names (most are PascalCase, but there may be inconsistencies).
--fieldsjquants schema <endpoint>sh
jquants schema # List of all endpoints (key, description, number of fields)
jquants schema eq.daily # All fields of eq.daily (name, type, description)
jquants --output json schema # Output in JSON formatEndpoint keys are in the format (e.g. , , ).
category.commandeq.dailyfins.summarymkt.short-ratioSteps:
- Get the list of fields with
jquants schema eq.daily - Copy the required field names and specify them with
-f - Invalid field names will be rejected with an error (list of available fields will be displayed)
Quick Reference
Quick Reference
認証 & ユーティリティ
Authentication & Utilities
| やりたいこと | コマンド |
|---|---|
| ログイン(初回セットアップ) | |
| ログアウト | |
| API フィールド一覧を確認 | |
| 特定エンドポイントのフィールド詳細 | |
| What you want to do | Command |
|---|---|
| Log in (first time setup) | |
| Log out | |
| Check API field list | |
| Field details for specific endpoint | |
株式データ(eq)
Equities Data (eq)
| やりたいこと | コマンド | 更新時刻 |
|---|---|---|
| 全銘柄マスタ | | 日次 17:30頃 |
| 株価四本値 | | 日次 16:30頃 |
| 前場四本値 | | 日次 12:00頃 |
| 分足データ | | 日次 16:30頃 |
| 投資部門別売買状況 | | 週次(木) 18:00頃 |
| 決算発表予定日 | | 不定期 19:00頃 |
| 株価ティック | | 日次 16:30頃 |
| What you want to do | Command | Update Time |
|---|---|---|
| All ticker master | | Around 17:30 daily |
| Stock price OHLCV | | Around 16:30 daily |
| Morning session OHLCV | | Around 12:00 daily |
| Minute bar data | | Around 16:30 daily |
| Trading status by investor sector | | Weekly (Thursday) around 18:00 |
| Earnings announcement scheduled date | | Irregular around 19:00 |
| Stock price tick data | | Around 16:30 daily |
市場データ(mkt)
Market Data (mkt)
| やりたいこと | コマンド | 更新時刻 |
|---|---|---|
| 売買内訳 | | 日次 18:00頃 |
| 日々公表信用残 | | 日次 16:30頃 |
| 信用週末残高 | | 週次(火) 16:30頃 |
| 取引カレンダー | | 不定期 |
| 業種別空売り比率 | | 日次 16:30頃 |
| 空売り残高報告 | | 日次 17:30頃 |
| What you want to do | Command | Update Time |
|---|---|---|
| Trading breakdown | | Around 18:00 daily |
| Daily published margin balance | | Around 16:30 daily |
| Weekend margin balance | | Weekly (Tuesday) around 16:30 |
| Trading calendar | | Irregular |
| Short selling ratio by industry | | Around 16:30 daily |
| Short selling balance report | | Around 17:30 daily |
デリバティブ(deriv)
Derivatives (deriv)
| やりたいこと | コマンド | 更新時刻 |
|---|---|---|
| 先物四本値 | | 日次 27:00頃 |
| オプション四本値 | | 日次 27:00頃 |
| 日経225オプション | | 日次 27:00頃 |
| What you want to do | Command | Update Time |
|---|---|---|
| Futures OHLCV | | Around 27:00 daily |
| Options OHLCV | | Around 27:00 daily |
| Nikkei 225 options | | Around 27:00 daily |
財務データ(fins)
Financial Data (fins)
| やりたいこと | コマンド | 更新時刻 |
|---|---|---|
| 財務諸表 | | 日次 18:00頃(速報) / 24:30頃(確報) |
| 配当金情報 | | 日次 12〜19時頃 |
| 財務情報サマリー | | 日次 18:00頃(速報) / 24:30頃(確報) |
| What you want to do | Command | Update Time |
|---|---|---|
| Financial statements | | Around 18:00 daily (flash) / around 24:30 (final) |
| Dividend information | | Around 12:00~19:00 daily |
| Financial information summary | | Around 18:00 daily (flash) / around 24:30 (final) |
指数データ(idx)
Index Data (idx)
| やりたいこと | コマンド | 更新時刻 |
|---|---|---|
| TOPIX指数四本値 | | 日次 16:30頃 |
| 指数四本値 | | 日次 16:30頃 |
| What you want to do | Command | Update Time |
|---|---|---|
| TOPIX index OHLCV | | Around 16:30 daily |
| Index OHLCV | | Around 16:30 daily |
Category Reference Files
Category Reference Files
各カテゴリの詳細なコマンド構文・フラグ・例はリファレンスファイルに記載されている。Quick Reference の情報で十分な場合はリファレンスを読む必要はない。
以下の場合にリファレンスを参照する:
| カテゴリ | リファレンス | 参照すべき場面 |
|---|---|---|
| eq | references/commands-eq.md | 銘柄コード・日付・期間フィルタ、 |
| mkt | references/commands-mkt.md | |
| deriv | references/commands-deriv.md | |
| fins | references/commands-fins.md | |
| idx | references/commands-idx.md | 指数コード指定・TOPIX |
| bulk | references/commands-bulk.md | バルクDLの判断基準・ワークフロー・エンドポイント一覧 |
| plans | references/plans.md | プラン別 API 可否・取得可能期間・アドオン情報 |
| schedule | references/data-update-schedule.md | データの鮮度判断・更新タイミングの詳細・シナリオ別の判断例が必要なとき |
Detailed command syntax, flags and examples for each category are described in the reference files. If the information in Quick Reference is sufficient, you do not need to read the references.
Refer to the references in the following cases:
| Category | Reference | Scenarios to refer |
|---|---|---|
| eq | references/commands-eq.md | Ticker code/date/period filters, special behavior of |
| mkt | references/commands-mkt.md | Special flags such as |
| deriv | references/commands-deriv.md | Usage of |
| fins | references/commands-fins.md | FS field of |
| idx | references/commands-idx.md | Index code specification, TOPIX |
| bulk | references/commands-bulk.md | Judgment criteria, workflow, endpoint list for bulk download |
| plans | references/plans.md | API availability, obtainable period, add-on information by plan |
| schedule | references/data-update-schedule.md | When you need data freshness judgment, detailed update timing, scenario-based judgment examples |
Output, Fields, and Save
Output, Fields, and Save
sh
undefinedsh
undefined出力形式: table(デフォルト)、json、csv、parquet
Output formats: table (default), json, csv, parquet
jquants --output json eq master
jquants --output csv eq master
jquants --output parquet --save master.parquet eq master # Parquet は --save 必須
jquants --output json eq master
jquants --output csv eq master
jquants --output parquet --save master.parquet eq master # --save is required for Parquet
ファイル保存(--save は --output table と併用不可)
Save file (--save cannot be used with --output table)
jquants --output csv --save master.csv eq master
jquants --output json --save daily.json eq daily --code 86970
jquants --output csv --save master.csv eq master
jquants --output json --save daily.json eq daily --code 86970
フィールド選択: -f でカラムを絞り込み(全形式で有効)
Field selection: filter columns with -f (valid for all formats)
jquants -f Date,Code,AdjustmentClose eq daily --code 86970
jquants --output csv -f Date,Code,AdjustmentClose --save daily.csv eq daily --code 86970
jquants -f Date,Code,AdjustmentClose eq daily --code 86970
jquants --output csv -f Date,Code,AdjustmentClose --save daily.csv eq daily --code 86970
パイプでデータを加工
Process data with pipes
jquants eq daily --code 86970 | head -5 # 自動CSV
jquants --output json eq daily --code 86970 | jq '.[0]' # JSON明示
undefinedjquants eq daily --code 86970 | head -5 # Automatic CSV
jquants --output json eq daily --code 86970 | jq '.[0]' # Explicit JSON
undefinedWorkflow Recipes
Workflow Recipes
特定銘柄の株価トレンド分析
Stock price trend analysis for specific ticker
sh
undefinedsh
undefined1. 銘柄コードを確認
1. Confirm ticker code
jquants eq master --code 72030
jquants eq master --code 72030
2. フィールド名を確認
2. Confirm field names
jquants schema eq.daily
jquants schema eq.daily
3. 過去3ヶ月の日次データを CSV で保存
3. Save daily data for the past 3 months as CSV
jquants --output csv --save toyota.csv
-f Date,AdjustmentClose,Volume
eq daily --code 72030 --from 2026-01-01 --to 2026-03-31
-f Date,AdjustmentClose,Volume
eq daily --code 72030 --from 2026-01-01 --to 2026-03-31
undefinedjquants --output csv --save toyota.csv
-f Date,AdjustmentClose,Volume
eq daily --code 72030 --from 2026-01-01 --to 2026-03-31
-f Date,AdjustmentClose,Volume
eq daily --code 72030 --from 2026-01-01 --to 2026-03-31
undefined全銘柄の月次データ取得(バルク)
Obtain monthly data for all tickers (bulk)
sh
undefinedsh
undefined個別APIでループしない。全銘柄は bulk を使う。
Do not loop with individual APIs. Use bulk for all tickers.
jquants bulk get --endpoint /equities/bars/daily --date 2026-03 --download
jquants bulk get --endpoint /equities/bars/daily --date 2026-03 --download
解凍して CSV として利用
Decompress and use as CSV
gunzip *.gz
undefinedgunzip *.gz
undefined財務情報の取得
Obtain financial information
sh
undefinedsh
undefined配当情報(期間指定)
Dividend information (period specified)
jquants --output csv --save div.csv fins dividend --from 2026-01-01 --to 2026-03-31
jquants --output csv --save div.csv fins dividend --from 2026-01-01 --to 2026-03-31
財務サマリー(銘柄指定、JSON推奨)
Financial summary (ticker specified, JSON recommended)
jquants --output json fins summary --code 86970
jquants --output json fins summary --code 86970
財務諸表の完全データ(FS フィールドは JSON 必須)
Complete financial statement data (JSON required for FS field)
jquants --output json fins details --code 86970
undefinedjquants --output json fins details --code 86970
undefinedSpecial Behaviors
Special Behaviors
eq trades はバルク API を内部的に使用する
eq trades uses bulk API internally
eq tradeseq/equities/trades- フラグは使用不可
--code - 形式の月指定が可能(個別 API の
--date YYYY-MMとは異なる)YYYY-MM-DD - フラグでファイルをカレントディレクトリに保存する
--download
sh
jquants eq trades --date 2025-12 # URL取得のみ
jquants eq trades --date 2025-12 --download # ファイルダウンロードUnlike other commands, internally calls the bulk API of . Therefore:
eqeq trades/equities/trades- flag is not available
--code - Month specification in format is supported (different from
--date YYYY-MMfor individual APIs)YYYY-MM-DD - Save files to current directory with flag
--download
sh
jquants eq trades --date 2025-12 # Get URL only
jquants eq trades --date 2025-12 --download # Download filefins details の FS フィールド
FS field of fins details
fins details"N items"--output jsonThe FS (Financial Statement) field of is a nested JSON object. It is abbreviated as in table view. Use to get complete data.
fins details"N items"--output jsonderiv の --contract-flag
--contract-flag of deriv
--contract-flag 1deriv futuresderiv options--contract-flag 1deriv futuresderiv optionsRate Limits
Rate Limits
J-Quants API はプランごとに1分あたりのリクエスト上限が設定されている。上限を意識してコマンドを設計することで、不要な遮断を避けられる。
J-Quants API has a request limit per minute for each plan. Design commands with the limit in mind to avoid unnecessary blocking.
プラン別上限(リクエスト/分)
Limit by plan (requests/minute)
| プラン | 上限 |
|---|---|
| Free | 5 |
| Light | 60 |
| Standard | 120 |
| Premium | 500 |
| Plan | Limit |
|---|---|
| Free | 5 |
| Light | 60 |
| Standard | 120 |
| Premium | 500 |
アドオン別上限(プランとは独立して適用)
Limit by add-on (applied independently of the plan)
| アドオン | 上限 |
|---|---|
| 株価 分足・ティック | 60 |
| Add-on | Limit |
|---|---|
| Stock minute bar/tick data | 60 |
制限超過時の挙動
Behavior when limit is exceeded
- HTTP が返される
429 Too Many Requests - 大幅超過が続くと約5分間アクセスが完全遮断される(即時リトライは逆効果)
- HTTP is returned
429 Too Many Requests - If the limit is significantly exceeded continuously, access will be completely blocked for about 5 minutes (immediate retry is counterproductive)
回避のポイント
Avoidance tips
- 全銘柄 × 全日付の個別ループは使わない — で1リクエスト・全銘柄を一括取得する
bulk get - 429 を受けたら即時リトライしない — しばらく待機(数十秒〜数分)してから再試行する
- クエリパラメータで絞り込む — 不要なフィールドや日付範囲を減らし、1リクエストで必要なデータを取り切る
- Do not use individual loops for all tickers × all dates — Use to get all tickers in one request
bulk get - Do not retry immediately after receiving 429 — Wait for a while (tens of seconds to minutes) before retrying
- Filter with query parameters — Reduce unnecessary fields and date ranges, get all required data in one request
Subscription Plans & API Availability
Subscription Plans & API Availability
各 API はプランによってアクセス可否と取得可能期間が異なる。コマンドを提案する前にプランの制限を確認する。プランが不明な場合は、コマンドを提示しつつ必要プランを明記する。
Accessibility and obtainable data period of each API vary by plan. Check plan restrictions before proposing commands. If the plan is unknown, present the command and clearly state the required plan.
最低必要プラン早見表
Quick reference of minimum required plan
| 最低必要プラン | CLI コマンド |
|---|---|
| Free | |
| Light | |
| Standard | |
| Premium | |
| Add-on | |
プラン階層: Free < Light < Standard < Premium(上位プランは下位の全 API を含む)
Free プランの制限: CSV/バルクダウンロード不可(を除く)。API アクセスのみ。データは「12週間前〜2年12週間前」のウィンドウに限定(最新12週と2年超の過去データは取得不可)。mkt calendar
詳細な取得可能期間・データ範囲は references/plans.md を参照。
| Minimum required plan | CLI command |
|---|---|
| Free | |
| Light | |
| Standard | |
| Premium | |
| Add-on | |
Plan hierarchy: Free < Light < Standard < Premium (higher plans include all APIs of lower plans)
Free plan restrictions: CSV/bulk download is not supported (except). Only API access is allowed. Data is limited to the window "12 weeks ago to 2 years and 12 weeks ago" (latest 12 weeks and historical data older than 2 years cannot be obtained).mkt calendar
Refer to references/plans.md for detailed obtainable periods and data ranges.
Data Freshness(更新タイミング)
Data Freshness (Update Timing)
J-Quants API のデータは市場イベント後に順次更新される。現在時刻と更新時刻の関係によって取得できるデータの鮮度が変わる。
J-Quants API data is updated sequentially after market events. The freshness of obtainable data changes depending on the relationship between current time and update time.
時間帯別更新サマリー(JST)
Update summary by time zone (JST)
| 更新時刻目安 | 反映されるデータ |
|---|---|
| 〜12:00 | 前場四本値( |
| 〜16:30 | 株価四本値・分足・ティック・指数・空売り比率・信用残(日次)が当日分に更新 |
| 〜17:30 | 銘柄マスタ・空売り残高報告が更新 |
| 〜18:00 | 売買内訳・投資部門別(週次)・財務情報(速報)が更新 |
| 〜19:00 | 決算発表予定日が更新(不定期・JPX連動) |
| 〜24:30 | 財務情報(確報)・財務諸表(確報)が更新 |
| 〜27:00 | デリバティブ(先物・オプション)が当日分に更新(27:00 = 翌日3:00 AM) |
| Estimated update time | Reflected data |
|---|---|
| ~12:00 | Morning session OHLCV ( |
| ~16:30 | Stock price OHLCV, minute bars, tick data, indices, short selling ratios, daily margin balances updated for the current day |
| ~17:30 | Ticker master, short selling balance report updated |
| ~18:00 | Trading breakdown, investor sector data (weekly), financial information (flash) updated |
| ~19:00 | Earnings announcement scheduled date updated (irregular, linked to JPX) |
| ~24:30 | Financial information (final), financial statements (final) updated |
| ~27:00 | Derivatives (futures, options) updated for the current day (27:00 = 3:00 AM next day) |
エージェント判断の指針
Guidelines for agent judgment
- 更新時刻前に当日データを聞かれた場合: 「○○:○○頃に当日分が反映されます。現時点では前営業日のデータが最新です」と伝える
- 週次データ(信用週末残高・投資部門別): 信用残は火曜16:30、投資部門別は木曜18:00が更新目安。それ以外の曜日は前週分が最新
- デリバティブは27:00(翌日3:00 AM)更新: 翌営業日の早朝にならないと前日分が揃わない
- 「データが古い」と言われたとき: 更新時刻・週次サイクル・休祝日・プランの期間制限を順に確認する
詳細な判断フローとシナリオ例は references/data-update-schedule.md を参照。
- When asked for current day data before the update time: Inform the user that "The current day's data will be reflected around XX:XX. At present, the latest data is from the previous business day."
- Weekly data (weekend margin balance, investor sector data): Margin balance is updated around 16:30 on Tuesday, investor sector data around 18:00 on Thursday. For other days of the week, the latest data is from the previous week.
- Derivatives are updated at 27:00 (3:00 AM next day): The previous day's data will not be available until early morning of the next business day.
- When the user says "data is outdated": Check update time, weekly cycle, holidays, plan period restrictions in order.
Refer to references/data-update-schedule.md for detailed judgment flow and scenario examples.
Common Pitfalls
Common Pitfalls
| 誤り | 正しい書き方 | なぜ |
|---|---|---|
| | clap がサブコマンド後のフラグをサブコマンドのオプションとして解析するため |
| | table 形式は |
| | short-ratio は銘柄ではなく33業種分類でフィルタする API 設計のため |
| | 公表日と計算日は別概念。 |
| | 月指定は bulk 系のみ対応。個別 API は日単位 |
全銘柄ループで | | API rate limit 回避 & 効率。1ファイルで全銘柄取得可能 |
| | Parquet はストリーミング出力できないため、ファイル保存が必須 |
| | API フィールド名は PascalCase。大文字小文字を区別する |
| | FS フィールドはネストされた JSON オブジェクト。テーブル表示では要約される |
| 429 を受けてすぐリトライする | 数十秒〜数分待機してから再試行する | 大幅超過が続くと約5分間遮断される。即時リトライは遮断を長引かせる |
Free プランで | 個別 API( | Free プランは CSV/バルクダウンロード非対応( |
Light プランで | Standard プランが必要である旨を伝える | Standard 以上が必要な API。プランとコマンドの対応は references/plans.md を参照 |
16:00に | 「16:30頃に当日分が反映されます。現時点では前営業日のデータです」と伝える | 株価四本値は16:30頃に当日分が更新される。更新前は前営業日のデータが最新 |
月曜朝に | 前々週金曜時点のデータ。火曜16:30以降に前週金曜分が反映されると伝える | 信用週末残高は第2営業日(通常火曜)16:30頃に更新される週次データ |
| Mistake | Correct writing | Reason |
|---|---|---|
| | clap parses flags after the subcommand as options of the subcommand itself |
| | Table format does not support |
| | short-ratio API is designed to filter by 33 industry classification, not by ticker |
| Use | Announcement date and calculation date are separate concepts. |
| | Month specification is only supported for bulk APIs. Individual APIs use daily units |
Repeatedly run | | Avoid API rate limit & improve efficiency. All tickers can be obtained in one file |
| | Parquet does not support streaming output, so file saving is required |
| | API field names are PascalCase and case-sensitive |
FS becomes | Use | FS field is a nested JSON object, which is summarized in table view |
| Retry immediately after receiving 429 | Wait for tens of seconds to minutes before retrying | Continuous excessive exceeding will result in about 5 minutes of blocking. Immediate retry prolongs the blocking period |
Use | Use individual APIs ( | Free plan does not support CSV/bulk download (except |
Use | Inform the user that Standard plan is required | These APIs require Standard or higher plan. Refer to references/plans.md for plan and command correspondence |
Assume that the "today's stock price" obtained with | Inform the user that "The current day's data will be reflected around 16:30. At present, the latest data is from the previous business day." | Stock price OHLCV is updated for the current day around 16:30. Before update, the latest data is from the previous business day |
Assume that the | Inform the user that it is data as of Friday of the week before last. The data for last Friday will be reflected after 16:30 on Tuesday | Weekend margin balance is weekly data updated around 16:30 on the 2nd business day (usually Tuesday) |