Crate betfair_stream_api

Source
Expand description

Stream API client for Betfair

Re-exports§

pub use cache::market_subscriber::MarketSubscriber;
pub use cache::order_subscriber::OrderSubscriber;
pub use cache::primitives::MarketBookCache;
pub use cache::primitives::OrderBookCache;
pub use betfair_stream_types as types;
pub use tokio_util;

Modules§

cache
Contains all the types that are necessary to properly build a local cache representation of the market

Structs§

StreamAPIClientCodec
Defines the encoding and decoding of Betfair stream api data structures using tokio
StreamApi
Represents the streaming API connection.
StreamApiBuilder
Builder for creating a StreamApi instance.

Enums§

CacheEnabledMessages
Represents messages that have caching enabled.
CodecError
Errors that can arise while decoding or encoding betfair stream api data
ExternalUpdates
Represents external updates received from the data feed.
HeartbeatStrategy
Represents the strategy for sending heartbeat messages.
MetadataUpdates
Represents various metadata updates related to the connection state.
StreamError
Errors that can occur in the stream processing module. Represents errors that can occur in the stream processing module.

Traits§

BetfairProviderExt
Extension to connect to the betfair stream
StreamExt
An extension trait for Streams that provides a variety of convenient combinator functions.