Stock
資料類型
BalanceSheet
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
year |
int
|
Year of the balance sheet data. |
quarter |
int
|
Quarter of the balance sheet data. |
asset |
str
|
Total assets. |
capital |
str
|
Total capital. |
equity |
str
|
Total equity. |
liabilities |
str
|
Total liabilities. |
Example
CashFlowStatement
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
year |
int
|
Year of the cash flow statement data. |
quarter |
int
|
Quarter of the cash flow data. |
operating_ncf |
str
|
Operating net cash flow. |
investing_ncf |
str
|
Investing net cash flow. |
financing_ncf |
str
|
Financing net cash flow. |
change_of_cash |
str
|
Change of cash. |
period_start_cash |
str
|
Cash at the start of the period. |
period_end_cash |
str
|
Cash at the end of the period. |
Example
FinancialRatio
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
year |
int
|
Year of the financial ratio data. |
quarter |
int
|
Quarter of the financial ratio data. |
gross_profit_margin |
str
|
Gross profit margin. |
operating_profit_margin |
str
|
Operating profit margin. |
pre_tax_net_profit_margin |
str
|
Pre-tax net profit margin. |
net_profit_margin |
str
|
Net profit margin. |
Example
IncomeStatement
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
year |
int
|
Year of the income statement data. |
quarter |
int
|
Quarter of the income statement data. |
revenue |
str
|
Total revenue. |
gross_profit |
str
|
Gross profit. |
operating_income |
str
|
Operating income. |
pre_tax_income |
str
|
Pre-tax income. |
net_income |
str
|
Net income. |
Example
Revenue
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
year |
int
|
Year of the revenue data. |
month |
int
|
Month of the revenue data. |
symbol |
str
|
Stock symbol. |
revenue |
str
|
Revenue amount. |
revenue_last_month |
str
|
Revenue of the previous month. |
revenue_last_year_month |
str
|
Revenue of the same month last year. |
revenue_mom |
str
|
Month-over-month revenue change. |
revenue_yoy |
str
|
Year-over-year revenue change. |
cum_revenue |
str
|
Cumulative revenue. |
cum_revenue_last_year_month |
str
|
Cumulative revenue of the same month last year. |
cum_revenue_yoy |
str
|
Year-over-year cumulative revenue change. |
Example
{
'year': 2024,
'month': 2,
'symbol': '2330',
'revenue': '181648270.00',
'revenue_last_month': '215785127.00',
'revenue_last_year_month': '163174097.00',
'revenue_mom': '-15.82',
'revenue_yoy': '11.32',
'cum_revenue': '397433397.00',
'cum_revenue_last_year_month': '363224641.00',
'cum_revenue_yoy': '9.42'
}
StockCompany
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
chinese_name |
str
|
Chinese name of the company. |
chairman |
str
|
Name of the chairman. |
president |
str
|
Name of the president. |
capital |
str
|
Total capital. |
listed_date |
str
|
Date when the stock was listed. |
company_url |
str
|
URL of the company's website. |
industry |
str
|
Industry to which the company belongs. |
market_category |
str
|
Market category of the stock. |
Example
StockDividend
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
period |
str
|
Dividend period. |
announce_date |
str
|
Date of the dividend announcement. |
cash_dividend_amount |
str
|
Amount of cash dividend. |
cash_ex_dividend_date |
str
|
Ex-dividend date for cash dividends. |
cash_dividend_receive_date |
str
|
Date on which cash dividend is received. |
stock_dividend_amount |
str
|
Amount of stock dividend. |
stock_ex_dividend_date |
str | None
|
Ex-dividend date for stock dividends; can be None if not applicable. |
Example
StockInstitutionTradeSummary
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
date |
str
|
Date of the margin balance data. |
symbol |
str
|
Stock symbol. |
foreign_dealer_net |
int
|
Net buy/sell amount by foreign dealers. |
proprietary_net |
int
|
Net buy/sell amount by proprietary firms. |
security_investment_trust_net |
int
|
Net buy/sell amount by security investment trusts. |
sum_of_net |
int
|
Total net buy/sell amount. |
Example
StockMarginBalance
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
date |
str
|
Date of the margin balance data. |
symbol |
str
|
Stock symbol. |
margin_buy |
int
|
Total amount of margin buying. |
margin_sell |
int
|
Total amount of margin selling. |
margin_cash_repayment |
int
|
Cash repayment amount for margin accounts. |
today_margin_balance |
int
|
Current margin balance for the day. |
margin_limit_for_next_day |
int
|
Margin limit available for the next trading day. |
short_sale_buy |
int
|
Total amount of short sale buying. |
short_sale_sell |
int
|
Total amount of short sale selling. |
short_sale_stock_repayment |
int
|
Number of stocks repaid in short sales. |
today_short_sale_balance |
int
|
Current balance of short sales for the day. |
short_sale_limit_for_next_day |
int
|
Limit on short sales for the next trading day. |
short_sale_and_margin_offset |
int
|
Offset combining short sales and margin balances. |
Example
{
"date": "2024-08-08",
"symbol": "2330",
"margin_buy": 1579,
"margin_sell": 1148,
"margin_cash_repayment": 68,
"today_margin_balance": 32304,
"margin_limit_for_next_day": 6483407,
"short_sale_buy": 157,
"short_sale_sell": 56,
"short_sale_stock_repayment": 1,
"today_short_sale_balance": 433,
"short_sale_limit_for_next_day": 6483407,
"short_sale_and_margin_offset": 19
}
StockPrice
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
date |
str
|
Date of the stock price data. |
symbol |
str
|
Stock symbol. |
open |
str
|
Opening price. |
high |
str
|
Highest price. |
low |
str
|
Lowest price. |
close |
str
|
Closing price. |
volume |
str
|
Trading volume. |
values |
str
|
Additional trade values. |
Example
StockProfile
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
symbol |
str
|
Stock symbol. |
name |
str
|
Name of the stock. |
capital |
str
|
Total capital. |
listed_date |
str
|
Date when the stock was listed. |
industry |
str
|
Industry to which the stock belongs. |
marker_category |
str
|
Marker category for the stock. |
Example
ValuationMeasurement
Bases: JsonDict
Attributes:
Name | Type | Description |
---|---|---|
date |
str
|
Date of the valuation measurement. |
symbol |
str
|
Stock symbol. |
pe |
str
|
Price-to-earnings ratio. |
pb |
str
|
Price-to-book ratio. |
yield_rate |
str
|
Dividend yield rate. |
financial_report_year |
int
|
Year of the financial report. |
financial_report_quarter |
int
|
Quarter of the financial report. |
dividend_belongs_year |
int
|
Year to which the dividend belongs. |