akshare 0.1.3

100% pure Rust implementation of akshare — unified access to Chinese and global financial market data APIs
Documentation
//! Fund report data from CNINFO (巨潮资讯).

use crate::client::AkShareClient;
use crate::error::{Error, Result};

impl AkShareClient {
    /// Fetch fund annual report data from CNINFO.
    pub async fn fund_report_cninfo(&self, symbol: &str) -> Result<Vec<serde_json::Value>> {
        Err(Error::decode(format!(
            "fund report for {symbol} from CNINFO requires HTML/JS parsing"
        )))
    }

    /// Fetch fund semi-annual report data from CNINFO.
    pub async fn fund_report_half_year_cninfo(
        &self,
        symbol: &str,
    ) -> Result<Vec<serde_json::Value>> {
        Err(Error::decode(format!(
            "fund semi-annual report for {symbol} from CNINFO requires HTML/JS parsing"
        )))
    }

    /// Fetch fund quarterly report data from CNINFO.
    pub async fn fund_report_quarter_cninfo(&self, symbol: &str) -> Result<Vec<serde_json::Value>> {
        Err(Error::decode(format!(
            "fund quarterly report for {symbol} from CNINFO requires HTML/JS parsing"
        )))
    }

    /// Fetch fund heavy stock holdings from CNINFO (Python: fund_report_stock_cninfo).
    pub async fn fund_report_stock_cninfo(&self, _date: &str) -> Result<Vec<serde_json::Value>> {
        // CNINFO requires JS-based authentication (mcode from py_mini_racer)
        Err(Error::decode(
            "fund_report_stock_cninfo requires JS authentication (CNINFO mcode)",
        ))
    }

    /// Fetch fund industry allocation from CNINFO (Python: fund_report_industry_allocation_cninfo).
    pub async fn fund_report_industry_allocation_cninfo(
        &self,
        _date: &str,
    ) -> Result<Vec<serde_json::Value>> {
        Err(Error::decode(
            "fund_report_industry_allocation_cninfo requires JS authentication",
        ))
    }

    /// Fetch fund asset allocation from CNINFO (Python: fund_report_asset_allocation_cninfo).
    pub async fn fund_report_asset_allocation_cninfo(&self) -> Result<Vec<serde_json::Value>> {
        Err(Error::decode(
            "fund_report_asset_allocation_cninfo requires JS authentication",
        ))
    }
}