pub struct Candle {
pub bid: QuoteCurrency,
pub ask: QuoteCurrency,
pub low: QuoteCurrency,
pub high: QuoteCurrency,
}
Expand description
A new candle has been created.
Here we can use the high
and low
prices to see if our simulated resting orders
have been executed over the last period as a proxy in absence of actual Trade
flow.
Fields§
§bid: QuoteCurrency
The best bid at the time of candle creation
ask: QuoteCurrency
The best ask at the time of candle creation
low: QuoteCurrency
The low price of the candle
high: QuoteCurrency
The high price of the candle
Trait Implementations§
source§impl<Q, UserOrderId> MarketUpdate<Q, UserOrderId> for Candle
impl<Q, UserOrderId> MarketUpdate<Q, UserOrderId> for Candle
source§fn limit_order_filled(
&self,
order: &LimitOrder<Q, UserOrderId, Pending<Q>>,
) -> Option<Q>
fn limit_order_filled( &self, order: &LimitOrder<Q, UserOrderId, Pending<Q>>, ) -> Option<Q>
Checks if this market update triggered a specific limit order,
and if so, then how much.
source§fn validate_market_update(&self, price_filter: &PriceFilter) -> Result<()>
fn validate_market_update(&self, price_filter: &PriceFilter) -> Result<()>
Checks if the market update satisfies the
PriceFilter
.source§fn update_market_state(&self, market_state: &mut MarketState)
fn update_market_state(&self, market_state: &mut MarketState)
Update the
MarketState
with new information.source§impl PartialEq for Candle
impl PartialEq for Candle
impl Copy for Candle
impl Eq for Candle
impl StructuralPartialEq for Candle
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnwindSafe for Candle
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