Struct UpbitFeeder

Source
pub struct UpbitFeeder { /* private fields */ }
Expand description

Upbit exchange feeder implementation

Implementations§

Source§

impl UpbitFeeder

Source

pub fn new() -> Self

Create a new Upbit feeder

Trait Implementations§

Source§

impl Debug for UpbitFeeder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UpbitFeeder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Feeder for UpbitFeeder

Source§

type DepthMessage = OrderbookMessage

Raw message type from the exchange for depth/orderbook
Source§

type TradeMessage = TradeMessage

Raw message type from the exchange for trades
Source§

fn start_feed_depth<'life0, 'async_trait>( &'life0 self, instrument_id: InstrumentId, depth_rx: Receiver<Self::DepthMessage>, _options: Option<FeederOptions>, ) -> Pin<Box<dyn Future<Output = Result<Receiver<OrderBookSnapshot>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start processing and normalizing orderbook depth data Processes raw depth messages into standardized order book depth format
Source§

fn stop_feed_depth<'life0, 'life1, 'async_trait>( &'life0 self, instrument_id: &'life1 InstrumentId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Stop processing orderbook depth data for a specific instrument
Source§

fn start_feed_trades<'life0, 'async_trait>( &'life0 self, instrument_id: InstrumentId, trade_rx: Receiver<Self::TradeMessage>, _options: Option<FeederOptions>, ) -> Pin<Box<dyn Future<Output = Result<Receiver<MarketTrade>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start processing and normalizing trade data Processes raw trade messages into standardized trade format
Source§

fn stop_feed_trades<'life0, 'life1, 'async_trait>( &'life0 self, instrument_id: &'life1 InstrumentId, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Stop processing trade data for a specific instrument
Source§

fn start_feed_bars<'life0, 'async_trait>( &'life0 self, instrument_id: InstrumentId, bar_type: BarType, trade_rx: Receiver<MarketTrade>, _options: Option<FeederOptions>, ) -> Pin<Box<dyn Future<Output = Result<Receiver<Bar>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start generating bars from trade data Aggregates trade data into OHLCV bars of the specified type
Source§

fn stop_feed_bars<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, instrument_id: &'life1 InstrumentId, bar_type: &'life2 BarType, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Stop generating bars for a specific instrument and bar type
Source§

fn get_shared_orderbook<'life0, 'life1, 'async_trait>( &'life0 self, instrument_id: &'life1 InstrumentId, ) -> Pin<Box<dyn Future<Output = Result<SharedSimdOrderBook>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get a real-time shared orderbook for a specific instrument Returns a thread-safe shared orderbook that’s kept up-to-date
Source§

fn get_bar_cache<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, instrument_id: &'life1 InstrumentId, bar_type: &'life2 BarType, max_bars: usize, ) -> Pin<Box<dyn Future<Output = Result<Arc<RwLock<BarCache>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get a bar cache for a specific instrument and bar type Returns a bar cache with recent bar data
Source§

fn get_stats<'life0, 'life1, 'async_trait>( &'life0 self, instrument_id: &'life1 InstrumentId, ) -> Pin<Box<dyn Future<Output = Result<FeedStats>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get feed statistics for a specific instrument
Source§

fn reset_stats<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reset all feed statistics

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,