Enum nash_protocol::protocol::subscriptions::SubscriptionResponse [−][src]
pub enum SubscriptionResponse {
Orderbook(SubscribeOrderbookResponse),
Ticker(SubscribeTickerResponse),
Trades(TradesResponse),
AccountTrades(AccountTradesResponse),
AccountOrders(AccountOrdersResponse),
AccountBalances(AccountBalancesResponse),
}Expand description
Wrapper for incoming subscription data supported on Nash. Required only for current version of openlimits subscription logic
Variants
Orderbook(SubscribeOrderbookResponse)Tuple Fields of Orderbook
Ticker(SubscribeTickerResponse)Tuple Fields of Ticker
Trades(TradesResponse)Tuple Fields of Trades
AccountTrades(AccountTradesResponse)Tuple Fields of AccountTrades
AccountOrders(AccountOrdersResponse)Tuple Fields of AccountOrders
AccountBalances(AccountBalancesResponse)Tuple Fields of AccountBalances
Trait Implementations
type Error = OpenLimitsError
type Error = OpenLimitsError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionResponse
impl Send for SubscriptionResponse
impl Sync for SubscriptionResponse
impl Unpin for SubscriptionResponse
impl UnwindSafe for SubscriptionResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more