Crate exc

Source
Expand description

Exc: Abstractions for exchanges.

Re-exports§

pub use util::book::SubscribeBidAskService;
pub use util::fetch_candles::FetchCandlesService;
pub use util::instrument::FetchInstrumentsService;
pub use util::instrument::SubscribeInstrumentsService;
pub use util::subscribe_tickers::SubscribeTickersService;
pub use util::trade::SubscribeTradesService;
pub use util::trading::CheckOrderService;
pub use util::trading::SubscribeOrdersService;
pub use util::trading::TradingService;
pub use util::ExcExt;
pub use exc_core as core;

Modules§

binance
Binance exchange service.
instrument
Instruments Layer.
okx
Okx exchange service.
prelude
Prelude.
retry
Retry utils.
types
Types.
util
Utils for using low-level apis (exc::core).

Structs§

AdaptLayer
Layer for creating [Adapted].
Binance
Binance.
Exc
The core service wrapper of this crate, which implements ExcService<T> if the request type of the underlying service implements Adaptor<T>.
ExcLayer
Create Exc from the given ExcService.
Okx
Okx API.

Enums§

ExchangeError
Exchange Errors.

Traits§

Adaptor
An adaptor for request.
ExcService
An alias of Service that requires the input type to be a Request, and the error type to be ExchangeError.
IntoExc
Service that can be converted into a Exc.
Request
Request and Response binding.

Type Aliases§

Result
The result type of exc.