financial_api/fund/
financials.rs1use crate::endpoints;
2use crate::{
3 Client, Error, FundBalanceSheetsData, FundFinancialIndicatorsData, FundIncomeStatementsData,
4 FundType, Response, Thscode,
5};
6
7impl Client {
8 pub async fn fund_financials_indicators(
10 &self,
11 fund_type: FundType,
12 thscode: &Thscode,
13 ) -> Result<Response<FundFinancialIndicatorsData>, Error> {
14 self.fund_detail(endpoints::FUND_INDICATORS, fund_type, thscode)
15 .await
16 }
17
18 pub async fn fund_financials_income_statements(
20 &self,
21 fund_type: FundType,
22 thscode: &Thscode,
23 ) -> Result<Response<FundIncomeStatementsData>, Error> {
24 self.fund_detail(endpoints::FUND_INCOME_STATEMENTS, fund_type, thscode)
25 .await
26 }
27
28 pub async fn fund_financials_balance_sheets(
30 &self,
31 fund_type: FundType,
32 thscode: &Thscode,
33 ) -> Result<Response<FundBalanceSheetsData>, Error> {
34 self.fund_detail(endpoints::FUND_BALANCE_SHEETS, fund_type, thscode)
35 .await
36 }
37}