financial-api 0.2.0

Rust client for the official Tonghuashun Financial Data REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::endpoints;
use crate::{Client, Error, FundDiagnosticsData, FundType, Response, Thscode};

impl Client {
    /// Fetch fund diagnostic dimensions.
    pub async fn fund_diagnostics_detail(
        &self,
        fund_type: FundType,
        thscode: &Thscode,
    ) -> Result<Response<FundDiagnosticsData>, Error> {
        self.fund_detail(endpoints::FUND_DIAGNOSTICS, fund_type, thscode)
            .await
    }
}