use crate::client::AkShareClient;
use crate::error::{Error, Result};
impl AkShareClient {
pub async fn bond_cb_profile(&self, symbol: &str) -> Result<serde_json::Value> {
let url = format!("https://money.finance.sina.com.cn/bond/info/{symbol}.html");
let resp = crate::util::send_and_check(self.get(&url)).await?;
let _text = resp.text().await.map_err(Error::from)?;
Err(Error::decode(format!(
"sina bond profile requires HTML parsing; raw data available at {url}"
)))
}
pub async fn bond_cb_summary(&self, symbol: &str) -> Result<serde_json::Value> {
let url = format!("https://money.finance.sina.com.cn/bond/quotes/{symbol}.html");
let resp = crate::util::send_and_check(self.get(&url)).await?;
let _text = resp.text().await.map_err(Error::from)?;
Err(Error::decode(format!(
"sina bond summary requires HTML parsing; raw data available at {url}"
)))
}
}