Trait barter_data::Subscription[][src]

pub trait Subscription {
    fn new(stream_name: String, ticker_pair: String) -> Self;

    fn as_text(&self) -> Result<String, ClientError>
    where
        Self: Serialize
, { ... } }
Expand description

Utilised to subscribe to an exchange’s WebSocketStream via a ConnectionHandler (eg/ Trade stream).

Required methods

Constructs a new Subscription implementation.

Provided methods

Serializes the Subscription in a String data format.

Implementors