pub enum MockExchangeRequestKind {
FetchAccountSnapshot {
response_tx: Sender<UnindexedAccountSnapshot>,
},
FetchBalances {
assets: Vec<AssetNameExchange>,
response_tx: Sender<Vec<AssetBalance<AssetNameExchange>>>,
},
FetchOrdersOpen {
instruments: Vec<InstrumentNameExchange>,
response_tx: Sender<Vec<Order<ExchangeId, InstrumentNameExchange, Open>>>,
},
FetchTrades {
response_tx: Sender<Vec<Trade<AssetNameExchange, InstrumentNameExchange>>>,
time_since: DateTime<Utc>,
},
CancelOrder {
response_tx: Sender<UnindexedOrderResponseCancel>,
request: OrderRequestCancel<ExchangeId, InstrumentNameExchange>,
},
OpenOrder {
response_tx: Sender<Order<ExchangeId, InstrumentNameExchange, UnindexedOrderState>>,
request: OrderRequestOpen<ExchangeId, InstrumentNameExchange>,
market_prices: MarketPrices,
},
}Variants§
FetchAccountSnapshot
Fields
§
response_tx: Sender<UnindexedAccountSnapshot>FetchBalances
FetchOrdersOpen
Fields
§
instruments: Vec<InstrumentNameExchange>§
response_tx: Sender<Vec<Order<ExchangeId, InstrumentNameExchange, Open>>>FetchTrades
Fields
§
response_tx: Sender<Vec<Trade<AssetNameExchange, InstrumentNameExchange>>>CancelOrder
Fields
§
response_tx: Sender<UnindexedOrderResponseCancel>§
request: OrderRequestCancel<ExchangeId, InstrumentNameExchange>OpenOrder
Fields
§
response_tx: Sender<Order<ExchangeId, InstrumentNameExchange, UnindexedOrderState>>§
request: OrderRequestOpen<ExchangeId, InstrumentNameExchange>§
market_prices: MarketPricesTrait Implementations§
Auto Trait Implementations§
impl Freeze for MockExchangeRequestKind
impl !RefUnwindSafe for MockExchangeRequestKind
impl Send for MockExchangeRequestKind
impl Sync for MockExchangeRequestKind
impl Unpin for MockExchangeRequestKind
impl UnsafeUnpin for MockExchangeRequestKind
impl !UnwindSafe for MockExchangeRequestKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more