API Reference
This section documents all public classes and functions in PyJQuants.
Quick Links
| Category | Classes & Functions |
|---|---|
| Ticker | Ticker, download(), search() |
| Index | Index |
| Market | Market |
| Models | PriceBar, Sector, MarketSegment |
Import Patterns
Standard Usage
import pyjquants as pjq
# Single ticker
ticker = pjq.Ticker("7203")
df = ticker.history("30d")
# Multiple tickers
df = pjq.download(["7203", "6758"], period="1y")
# Search
tickers = pjq.search("トヨタ")
Explicit Imports
from pyjquants import Ticker, Index, Market, download, search
from pyjquants import PriceBar, Sector, MarketSegment
All Exports
The following are available from pyjquants:
Main API (yfinance-style)
Ticker- Stock ticker with.history()methoddownload()- Download price data for multiple tickerssearch()- Search tickers by name or code
Entities
Index- Market index (TOPIX, Nikkei 225)Market- Market utilities (calendar, sectors)
Models & Enums
PriceBar- OHLCV price dataStockInfo- Stock informationSector- Industry sectorMarketSegment- TSE_PRIME, TSE_STANDARD, TSE_GROWTH, OTHER
Session & Exceptions
Session- HTTP session with authenticationPyJQuantsError- Base exceptionAuthenticationError- Auth failuresAPIError- API errorsRateLimitError- Rate limit exceededNotFoundError- Resource not foundValidationError- Validation errorsConfigurationError- Configuration errors