Struct barter_data::event::MarketIter
source · Expand description
Convenient new type containing a collection of Market<Event>s.
Tuple Fields§
§0: Vec<Result<Market<Event>, DataError>>Trait Implementations§
source§impl<Event: Debug> Debug for MarketIter<Event>
impl<Event: Debug> Debug for MarketIter<Event>
source§impl From<(ExchangeId, Instrument, BinanceLiquidation)> for MarketIter<Liquidation>
impl From<(ExchangeId, Instrument, BinanceLiquidation)> for MarketIter<Liquidation>
source§fn from(
(exchange_id, instrument, liquidation): (ExchangeId, Instrument, BinanceLiquidation)
) -> Self
fn from(
(exchange_id, instrument, liquidation): (ExchangeId, Instrument, BinanceLiquidation)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BinanceOrderBookL1)> for MarketIter<OrderBookL1>
impl From<(ExchangeId, Instrument, BinanceOrderBookL1)> for MarketIter<OrderBookL1>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, BinanceOrderBookL1)
) -> Self
fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, BinanceOrderBookL1)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BinanceTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BinanceTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BinanceTrade)
) -> Self
fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BinanceTrade)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitfinexMessage)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitfinexMessage)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, BitfinexMessage)
) -> Self
fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, BitfinexMessage)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitfinexTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitfinexTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BitfinexTrade)
) -> Self
fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BitfinexTrade)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, CoinbaseTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, CoinbaseTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, CoinbaseTrade)
) -> Self
fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, CoinbaseTrade)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, GateioMessage<GateioSpotTradeInner>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, GateioMessage<GateioSpotTradeInner>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, GateioSpotTrade)
) -> Self
fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, GateioSpotTrade)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, GateioMessage<Vec<GateioFuturesTradeInner, Global>>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, GateioMessage<Vec<GateioFuturesTradeInner, Global>>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, GateioFuturesTrades)
) -> Self
fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, GateioFuturesTrades)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, KrakenMessage)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, KrakenMessage)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, KrakenMessage)
) -> Self
fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, KrakenMessage)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, KrakenTrades)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, KrakenTrades)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, KrakenTrades)
) -> Self
fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, KrakenTrades)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, OkxMessage<OkxTrade>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, OkxMessage<OkxTrade>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, OkxTrades)
) -> Self
fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, OkxTrades)
) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, OrderBook)> for MarketIter<OrderBook>
impl From<(ExchangeId, Instrument, OrderBook)> for MarketIter<OrderBook>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, OrderBook)
) -> Self
fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, OrderBook)
) -> Self
Converts to this type from the input type.