use crate::client::AkShareClient;
use crate::error::Result;
use crate::types::MacroDataPoint;
use super::shared::fetch_em_indicator;
const REPORT: &str = "RPT_ECONOMICVALUE_AUSTRALIA";
impl AkShareClient {
pub async fn australia_retail_rate_monthly(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00152903", "Australia Retail Monthly").await
}
pub async fn australia_trade(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00152793", "Australia Trade").await
}
pub async fn australia_unemployment_rate(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00101141", "Australia Unemployment Rate").await
}
pub async fn australia_ppi_quarterly(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00152722", "Australia PPI Quarterly").await
}
pub async fn australia_cpi_quarterly(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00101104", "Australia CPI Quarterly").await
}
pub async fn australia_cpi_yearly(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00101093", "Australia CPI Yearly").await
}
pub async fn australia_bank_rate(&self) -> Result<Vec<MacroDataPoint>> {
fetch_em_indicator(self, REPORT, "EMG00342255", "Australia Bank Rate").await
}
}
impl AkShareClient {
pub async fn macro_australia_bank_rate(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_bank_rate().await
}
pub async fn macro_australia_cpi_quarterly(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_cpi_quarterly().await
}
pub async fn macro_australia_cpi_yearly(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_cpi_yearly().await
}
pub async fn macro_australia_ppi_quarterly(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_ppi_quarterly().await
}
pub async fn macro_australia_retail_rate_monthly(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_retail_rate_monthly().await
}
pub async fn macro_australia_trade(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_trade().await
}
pub async fn macro_australia_unemployment_rate(&self) -> Result<Vec<MacroDataPoint>> {
self.australia_unemployment_rate().await
}
}