ashareport
v0.1.0A-share stock data: history, realtime, news, statements and metrics.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_hist_data
Get historical stock data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
adjust | string | Price adjustment mode, such as qfq (forward), hfq (backward), or none. |
end_date | string | End date of the history range, as YYYY-MM-DD. |
fallback | boolean | When true, fall back to another source if the chosen source fails. |
indicators_list | array | Technical indicators to compute alongside the bars, such as SMA or RSI. |
interval | string | Bar interval unit, such as day, week, or month. |
interval_multiplier | number | Interval multiplier, for example 5 with interval minute gives 5-minute bars. |
recent_n | number | Return only the most recent N bars. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
start_date | string | Start date of the history range, as YYYY-MM-DD. |
get_realtime_data
Get real-time stock data.
| Parameter | Type | Description |
|---|---|---|
fallback | boolean | When true, fall back to another source if the chosen source fails. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
symbol | string | Stock ticker symbol, for example AAPL; omit to get the whole market snapshot. |
get_news_data
Get stock news data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
fallback | boolean | When true, fall back to another source if the chosen source fails. |
recent_n | number | Return only the most recent N records. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
get_balance_sheet
Get balance sheet data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
fallback | boolean | When true, fall back to another source if the chosen source fails. |
recent_n | number | Return only the most recent N records. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
get_income_statement
Get income statement data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
fallback | boolean | When true, fall back to another source if the chosen source fails. |
recent_n | number | Return only the most recent N records. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
get_cash_flow
Get cash flow data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
fallback | boolean | When true, fall back to another source if the chosen source fails. |
recent_n | number | Return only the most recent N records. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
get_inner_trade_data
Get insider / inner trade data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
get_financial_metrics
Get financial metrics data.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock ticker symbol, for example AAPL. |
fallback | boolean | When true, fall back to another source if the chosen source fails. |
recent_n | number | Return only the most recent N records. |
source | string | Data source to query, such as yahoo, sina, or eastmoney. |
get_time_info
Get current time with ISO format, timestamp, and the last trading day.