Module barter_data::exchange

source ·
Expand description

Connector implementations for each exchange.

Modules

BinanceSpot & BinanceFuturesUsd Connector and StreamSelector implementations.
Bitfinex Connector and StreamSelector implementations.
Coinbase Connector and StreamSelector implementations.
GateioSpot, GateioFuturesUsd & GateioFuturesBtc Connector and StreamSelector implementations.
Kraken Connector and StreamSelector implementations.
Okx Connector and StreamSelector implementations.
Defines the generic ExchangeSub containing a market and channel combination used by an exchange Connector to build WsMessage subscription payloads.

Structs

Defines the frequency and construction function for custom WebSocket pings - used for exchanges that require additional application-level pings.

Enums

Unique identifier an exchange server Connector.

Constants

Default Duration the Connector::SubValidator will wait to receive all success responses to actioned Subscription requests.

Traits

Primary exchange abstraction. Defines how to translate Barter types into exchange specific types, as well as connecting, subscribing, and interacting with the exchange server.
Used when an exchange has servers different InstrumentKind market data on distinct servers, allowing all the Connector logic to be identical apart from what this trait provides.
Defines the MarketStream kind associated with an exchange Subscription SubKind.