pub struct KLine {}Expand description
K 线数据点
Fields§
§time: String所属 K 线时间(字符串表示,如 "2026-04-21 09:30:00")
is_blank: bool是否为空白 K 线(该时间点无成交)
high_price: f64最高价
open_price: f64开盘价
low_price: f64最低价
close_price: f64收盘价
last_close_price: f64昨收价
volume: i64成交量(股 / 手 / 合约数,视产品而定)
turnover: f64成交额
turnover_rate: f64换手率(百分比)
pe: f64市盈率
change_rate: f64涨跌幅(百分比,含正负)
timestamp: f64Unix 秒时间戳(用于排序 / 对齐 tz)
Implementations§
Source§impl KLine
impl KLine
pub fn from_proto(k: &KLine) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KLine
impl RefUnwindSafe for KLine
impl Send for KLine
impl Sync for KLine
impl Unpin for KLine
impl UnsafeUnpin for KLine
impl UnwindSafe for KLine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more