pub struct Historic {
pub product_id: String,
pub timestamp: i64,
pub market_demand: f32,
pub market_supply: f32,
pub buy_coins: f32,
pub buy_volume: f32,
pub instant_buys: f32,
pub sell_coins: f32,
pub sell_volume: f32,
pub instant_sells: f32,
}Fields§
§product_id: String§timestamp: i64§market_demand: f32Number of active items
market_supply: f32Number of active items
buy_coins: f32Volume of coins transacted via buy orders
buy_volume: f32Volume of items transacted via buy orders
instant_buys: f32Volume of items via instant buys
sell_coins: f32Volume of coins transacted via sell orders
sell_volume: f32Volume of items transacted via sell orders
instant_sells: f32Volume of items via instant sells
Implementations§
Source§impl Historic
impl Historic
Sourcepub fn recent_instant_buy_price(&self) -> f32
pub fn recent_instant_buy_price(&self) -> f32
Calculate the instant buy price by recent sales
Sourcepub fn recent_instant_sell_price(&self) -> f32
pub fn recent_instant_sell_price(&self) -> f32
Calculate the instant sell price by recent purchases
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Historic
impl<'de> Deserialize<'de> for Historic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Historic
Auto Trait Implementations§
impl Freeze for Historic
impl RefUnwindSafe for Historic
impl Send for Historic
impl Sync for Historic
impl Unpin for Historic
impl UnsafeUnpin for Historic
impl UnwindSafe for Historic
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