Trait barter_data::ExchangeTransformer
source · [−]pub trait ExchangeTransformer: Transformer<MarketData> + Sized where
<Self as Transformer<MarketData>>::Input: Identifiable, {
const EXCHANGE: ExchangeTransformerId;
fn new(ids: SubscriptionIds) -> Self;
}Expand description
Trait that defines how to translate between exchange specific data structures & Barter data structures. This must be implemented when integrating a new exchange.
Required Associated Constants
Unique identifier for an ExchangeTransformer.
Required Methods
fn new(ids: SubscriptionIds) -> Self
fn new(ids: SubscriptionIds) -> Self
Construct a new ExchangeTransformer using a HashMap containing the relationship between
all active Barter Subscriptions and their associated exchange specific identifiers.