use crate::endpoints;
use crate::{
Client, Error, FundBalanceSheetsData, FundFinancialIndicatorsData, FundIncomeStatementsData,
FundType, Response, Thscode, ValidationError,
};
impl Client {
#[doc = concat!(
"```no_run\n",
include_str!("../../examples/fund_financials_indicators.rs"),
"\n```"
)]
pub async fn fund_financials_indicators(
&self,
fund_type: FundType,
thscode: impl TryInto<Thscode, Error: Into<ValidationError>>,
) -> Result<Response<FundFinancialIndicatorsData>, Error> {
self.fund_detail(endpoints::FUND_INDICATORS, fund_type, thscode)
.await
}
#[doc = concat!(
"```no_run\n",
include_str!("../../examples/fund_financials_income_statements.rs"),
"\n```"
)]
pub async fn fund_financials_income_statements(
&self,
fund_type: FundType,
thscode: impl TryInto<Thscode, Error: Into<ValidationError>>,
) -> Result<Response<FundIncomeStatementsData>, Error> {
self.fund_detail(endpoints::FUND_INCOME_STATEMENTS, fund_type, thscode)
.await
}
#[doc = concat!(
"```no_run\n",
include_str!("../../examples/fund_financials_balance_sheets.rs"),
"\n```"
)]
pub async fn fund_financials_balance_sheets(
&self,
fund_type: FundType,
thscode: impl TryInto<Thscode, Error: Into<ValidationError>>,
) -> Result<Response<FundBalanceSheetsData>, Error> {
self.fund_detail(endpoints::FUND_BALANCE_SHEETS, fund_type, thscode)
.await
}
}