[][src]Struct skyblock_rs::objects::bazaar::Historic

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: Stringtimestamp: i64market_demand: f32

Number of active items

market_supply: f32

Number of active items

buy_coins: f32

Volume of coins transacted via buy orders

buy_volume: f32

Volume of items transacted via buy orders

instant_buys: f32

Volume of items via instant buys

sell_coins: f32

Volume of coins transacted via sell orders

sell_volume: f32

Volume of items transacted via sell orders

instant_sells: f32

Volume of items via instant sells

Implementations

impl Historic[src]

pub fn recent_instant_buy_price(&self) -> f32[src]

Calculate the instant buy price by recent sales

pub fn recent_instant_sell_price(&self) -> f32[src]

Calculate the instant sell price by recent purchases

Trait Implementations

impl Clone for Historic[src]

impl Debug for Historic[src]

impl<'de> Deserialize<'de> for Historic[src]

impl PartialEq<Historic> for Historic[src]

impl Serialize for Historic[src]

impl StructuralPartialEq for Historic[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.