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
15
16
use crate::endpoints;
use crate::{Client, CompanyId, Error, FundCompanyData, Response};

impl Client {
    /// Fetch fund company details.
    pub async fn fund_companies_detail(
        &self,
        company_id: &CompanyId,
    ) -> Result<Response<FundCompanyData>, Error> {
        self.get(
            endpoints::FUND_COMPANY_DETAIL,
            &[("company_id", company_id.as_str())],
        )
        .await
    }
}