Struct stellar_client::resources::TradeAggregation [−][src]
pub struct TradeAggregation { /* fields omitted */ }The aggregation of trades for a specifc base/counter pair of assets over a given time period.
Methods
impl TradeAggregation[src]
impl TradeAggregationpub fn started_at(&self) -> DateTime<Utc>[src]
pub fn started_at(&self) -> DateTime<Utc>The beginning of this time segment
pub fn count(&self) -> u64[src]
pub fn count(&self) -> u64The number of trades during this period
pub fn base_volume(&self) -> Amount[src]
pub fn base_volume(&self) -> AmountThe amount of base traded across the segment
pub fn counter_volume(&self) -> Amount[src]
pub fn counter_volume(&self) -> AmountThe amount of counter traded across the segment
pub fn average(&self) -> Amount[src]
pub fn average(&self) -> AmountThe weighted average price of counter in terms of base.
pub fn high(&self) -> Amount[src]
pub fn high(&self) -> AmountThe highest price for this segment
pub fn low(&self) -> Amount[src]
pub fn low(&self) -> AmountThe lowest price for this segment
pub fn open(&self) -> Amount[src]
pub fn open(&self) -> AmountThe opening price for this segment
pub fn close(&self) -> Amount[src]
pub fn close(&self) -> AmountThe closing price for this segment
Trait Implementations
impl Clone for TradeAggregation[src]
impl Clone for TradeAggregationfn clone(&self) -> TradeAggregation[src]
fn clone(&self) -> TradeAggregationReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for TradeAggregation[src]
impl Debug for TradeAggregationAuto Trait Implementations
impl Send for TradeAggregation
impl Send for TradeAggregationimpl Sync for TradeAggregation
impl Sync for TradeAggregation