financial-api 0.1.2

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

impl Client {
    /// Fetch the service's recent A-share trading-day sequence.
    pub async fn calendar_trading_days(&self) -> Result<Response<TradingDaysData>, Error> {
        self.get(endpoints::TRADING_DAYS, &[] as &[(&str, &str)])
            .await
    }
}