use crate::client::AkShareClient;
use crate::error::Result;
use crate::types::MacroDataPoint;
use super::shared::fetch_em_indicator;
const REPORT: &str = "RPT_ECONOMICVALUE_HK";
impl AkShareClient {
pub async fn hk_cpi(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG01336996", "HK CPI").await
}
pub async fn hk_cpi_ratio(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00059282", "HK CPI Ratio").await
}
pub async fn hk_unemployment_rate(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00059647", "HK Unemployment Rate").await
}
pub async fn hk_gdp(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG01337008", "HK GDP").await
}
pub async fn hk_gdp_ratio(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG01337009", "HK GDP Ratio").await
}
pub async fn hk_building_volume(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00158055", "HK Building Volume").await
}
pub async fn hk_building_amount(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00158066", "HK Building Amount").await
}
pub async fn hk_trade_diff_ratio(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00157898", "HK Trade Diff Ratio").await
}
pub async fn hk_ppi(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00157818", "HK PPI").await
}
}
impl AkShareClient {
pub async fn macro_china_hk_building_amount(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_building_amount().await
}
pub async fn macro_china_hk_building_volume(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_building_volume().await
}
pub async fn macro_china_hk_cpi(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_cpi().await
}
pub async fn macro_china_hk_cpi_ratio(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_cpi_ratio().await
}
pub async fn macro_china_hk_ppi(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_ppi().await
}
pub async fn macro_china_hk_trade_diff_ratio(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_trade_diff_ratio().await
}
pub async fn macro_china_hk_gbp(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_gdp().await
}
pub async fn macro_china_hk_gbp_ratio(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_gdp_ratio().await
}
pub async fn macro_china_hk_rate_of_unemployment(&self) -> Result<Vec<MacroDataPoint>> {
self.hk_unemployment_rate().await
}
}