Skip to main content

financial_api/fund/
profile.rs

1use crate::endpoints;
2use crate::{Client, Error, FundProfileData, FundType, Response, Thscode, ValidationError};
3
4impl Client {
5    /// 获取基金基本资料。
6    ///
7    /// # 示例
8    #[doc = concat!(
9        "```no_run\n",
10        include_str!("../../examples/fund_profile_detail.rs"),
11        "\n```"
12    )]
13    pub async fn fund_profile_detail(
14        &self,
15        fund_type: FundType,
16        thscode: impl TryInto<Thscode, Error: Into<ValidationError>>,
17    ) -> Result<Response<FundProfileData>, Error> {
18        self.fund_detail(endpoints::FUND_PROFILE, fund_type, thscode)
19            .await
20    }
21}