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, FundProfileData, FundType, Response, Thscode};

impl Client {
    /// Fetch fund basic profile details.
    pub async fn fund_profile_detail(
        &self,
        fund_type: FundType,
        thscode: &Thscode,
    ) -> Result<Response<FundProfileData>, Error> {
        self.fund_detail(endpoints::FUND_PROFILE, fund_type, thscode)
            .await
    }
}