Repository navigation
v0.1.0
J-Quants API V2 Client - Initial Release
J-Quants API V2 対応の Python クライアントライブラリの最初のリリースです。
✨ Features
ClientV2
- APIキー認証 (
x-api-keyヘッダー) - 環境変数
JQUANTS_API_KEYまたはjquants-api.tomlから設定読み込み - V2ネイティブカラム名をそのまま使用(変換なし)
Standard エンドポイント(12件)
| カテゴリ | メソッド |
|---|---|
| Equities | get_listed_info(), get_prices_daily_quotes(), get_fins_announcement() |
| Markets | get_markets_trading_calendar(), get_markets_weekly_margin_interest(), get_markets_short_selling(), get_markets_short_selling_positions(), get_markets_daily_margin_interest() |
| Indices | get_indices(), get_indices_topix() |
| Financials | get_fins_summary() |
| Derivatives | get_options_225_daily() |
日付範囲取得ヘルパー
get_price_range(),get_summary_range(),get_options_225_daily_range()- 並列取得対応(
max_workersで制御)
レートリミット対応
- Leaky Bucket (Pacer) 方式による整流化
- 429エラー時の自動リトライ(デフォルト5分10秒待機)
- プラン別レート設定(
rate_limitパラメータ)
📦 Installation
pip install git+https://github.com/apokamo/jquants-api-client-python.git@v0.1.0🚀 Quick Start
from jquants import ClientV2
client = ClientV2(api_key="your-api-key")
df = client.get_prices_daily_quotes(code="7203")
print(df[["Date", "Code", "O", "H", "L", "C", "Vo"]])📋 Requirements
- Python 3.11+
🔮 Planned
- Premium エンドポイント(6件)
詳細は CHANGELOG.md を参照してください。