pub struct MarketInstrumentData<InstrumentKey> {
pub key: InstrumentKey,
pub name_exchange: InstrumentNameExchange,
pub kind: MarketDataInstrumentKind,
}Fields§
§key: InstrumentKey§name_exchange: InstrumentNameExchange§kind: MarketDataInstrumentKindImplementations§
Source§impl<InstrumentKey> MarketInstrumentData<InstrumentKey>
impl<InstrumentKey> MarketInstrumentData<InstrumentKey>
Sourcepub fn hyperliquid_perp(key: InstrumentKey, perp: &PerpCoin) -> Self
pub fn hyperliquid_perp(key: InstrumentKey, perp: &PerpCoin) -> Self
A Hyperliquid perpetual, keyed by key, to subscribe to with
Hyperliquid.
Find perp with
HyperliquidMeta::perp_coin,
so the subscription names its coin as Hyperliquid spells it.
Sourcepub fn hyperliquid_spot(key: InstrumentKey, pair: &SpotPair) -> Self
pub fn hyperliquid_spot(key: InstrumentKey, pair: &SpotPair) -> Self
A Hyperliquid spot pair, keyed by key, to subscribe to with
HyperliquidSpot.
Find pair with
HyperliquidMeta::spot_pair,
so the subscription names its coin (@107) rather than its tokens.
Trait Implementations§
Source§impl<InstrumentKey> AlpacaInstrument for MarketInstrumentData<InstrumentKey>
Takes the exchange-side name as given, so it needs no per-feed shape: the caller has already
supplied Alpaca’s own symbol, and there is nothing to reconstruct.
impl<InstrumentKey> AlpacaInstrument for MarketInstrumentData<InstrumentKey>
Takes the exchange-side name as given, so it needs no per-feed shape: the caller has already supplied Alpaca’s own symbol, and there is nothing to reconstruct.
Case is still normalised, as the reconstruction path normalises it. Alpaca spells its symbols in
uppercase, and a subscribe is confirmed only once Alpaca’s answer names each requested symbol
exactly — so a lowercase name_exchange would otherwise fail the subscribe with a timeout naming
it. On a correctly spelled exchange name the call is a no-op.
Source§fn alpaca_market(&self, _shape: AlpacaSymbolShape) -> AlpacaMarket
fn alpaca_market(&self, _shape: AlpacaSymbolShape) -> AlpacaMarket
shape.Source§impl<InstrumentKey: Clone> Clone for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey: Clone> Clone for MarketInstrumentData<InstrumentKey>
Source§impl<InstrumentKey: Debug> Debug for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey: Debug> Debug for MarketInstrumentData<InstrumentKey>
Source§impl<'de, InstrumentKey> Deserialize<'de> for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Deserialize<'de>,
impl<'de, InstrumentKey> Deserialize<'de> for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<InstrumentKey> Display for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Display,
impl<InstrumentKey> Display for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Display,
impl<InstrumentKey: Eq> Eq for MarketInstrumentData<InstrumentKey>
Source§impl<ExchangeKey, AssetKey, InstrumentKey> From<&Keyed<InstrumentKey, Instrument<ExchangeKey, AssetKey>>> for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Clone,
impl<ExchangeKey, AssetKey, InstrumentKey> From<&Keyed<InstrumentKey, Instrument<ExchangeKey, AssetKey>>> for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Clone,
Source§fn from(value: &Keyed<InstrumentKey, Instrument<ExchangeKey, AssetKey>>) -> Self
fn from(value: &Keyed<InstrumentKey, Instrument<ExchangeKey, AssetKey>>) -> Self
Source§impl<InstrumentKey: Hash> Hash for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey: Hash> Hash for MarketInstrumentData<InstrumentKey>
Source§impl<InstrumentKey> HyperliquidInstrument for MarketInstrumentData<InstrumentKey>
Built from a HyperliquidMeta lookup, so name_exchange is
already the venue’s coin, whichever connector subscribes with it.
impl<InstrumentKey> HyperliquidInstrument for MarketInstrumentData<InstrumentKey>
Built from a HyperliquidMeta lookup, so name_exchange is
already the venue’s coin, whichever connector subscribes with it.
Source§fn hyperliquid_perp_market(&self) -> HyperliquidMarket
fn hyperliquid_perp_market(&self) -> HyperliquidMarket
Hyperliquid.Source§fn hyperliquid_spot_market(&self) -> HyperliquidMarket
fn hyperliquid_spot_market(&self) -> HyperliquidMarket
HyperliquidSpot.Source§impl<InstrumentKey> InstrumentData for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey> InstrumentData for MarketInstrumentData<InstrumentKey>
Source§impl<InstrumentKey> LseInstrument for MarketInstrumentData<InstrumentKey>
Takes the exchange-side name as given, so it needs no per-dataset shape: the caller has already
supplied the provider’s own symbol, and there is nothing to reconstruct.
impl<InstrumentKey> LseInstrument for MarketInstrumentData<InstrumentKey>
Takes the exchange-side name as given, so it needs no per-dataset shape: the caller has already supplied the provider’s own symbol, and there is nothing to reconstruct.
Case is still normalised, for the same reason the reconstruction path normalises it: the symbol
is the instrument-map key a tick resolves through, and the provider echoes EUR/USD on the tick
however the subscribe spelled it. A lowercase name_exchange would be confirmed, then tick
under a key the map does not hold and deliver nothing — the silent failure the reconstruction
path already avoids, and there is no reason for this path to keep it. On a correctly spelled
exchange name the call is a no-op.
Source§fn lse_market(&self, _shape: LseSymbolShape) -> LseMarket
fn lse_market(&self, _shape: LseSymbolShape) -> LseMarket
shape.Source§impl<InstrumentKey> MassiveInstrument for MarketInstrumentData<InstrumentKey>
Takes the exchange-side name as given: the caller has already supplied the cluster’s own
spelling, and there is nothing to reconstruct.
impl<InstrumentKey> MassiveInstrument for MarketInstrumentData<InstrumentKey>
Takes the exchange-side name as given: the caller has already supplied the cluster’s own spelling, and there is nothing to reconstruct.
Source§fn massive_market(&self, _symbols: MassiveSymbols) -> MassiveMarket
fn massive_market(&self, _symbols: MassiveSymbols) -> MassiveMarket
symbols.Source§impl<InstrumentKey: Ord> Ord for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey: Ord> Ord for MarketInstrumentData<InstrumentKey>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<InstrumentKey: PartialEq> PartialEq for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey: PartialEq> PartialEq for MarketInstrumentData<InstrumentKey>
Source§impl<InstrumentKey: PartialOrd> PartialOrd for MarketInstrumentData<InstrumentKey>
impl<InstrumentKey: PartialOrd> PartialOrd for MarketInstrumentData<InstrumentKey>
Source§impl<InstrumentKey> Serialize for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Serialize,
impl<InstrumentKey> Serialize for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Serialize,
impl<InstrumentKey: PartialEq> StructuralPartialEq for MarketInstrumentData<InstrumentKey>
Auto Trait Implementations§
impl<InstrumentKey> Freeze for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Freeze,
impl<InstrumentKey> RefUnwindSafe for MarketInstrumentData<InstrumentKey>where
InstrumentKey: RefUnwindSafe,
impl<InstrumentKey> Send for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Send,
impl<InstrumentKey> Sync for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Sync,
impl<InstrumentKey> Unpin for MarketInstrumentData<InstrumentKey>where
InstrumentKey: Unpin,
impl<InstrumentKey> UnsafeUnpin for MarketInstrumentData<InstrumentKey>where
InstrumentKey: UnsafeUnpin,
impl<InstrumentKey> UnwindSafe for MarketInstrumentData<InstrumentKey>where
InstrumentKey: UnwindSafe,
Blanket Implementations§
Source§impl<T> AttachedTransformer<()> for T
impl<T> AttachedTransformer<()> for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<Instrument> DynamicAlpacaInstrument for Instrumentwhere
Instrument: AlpacaInstrument,
impl<Instrument> DynamicHyperliquidInstrument for Instrumentwhere
Instrument: HyperliquidInstrument,
impl<Instrument> DynamicInstrument for Instrumentwhere
Instrument: Route,
impl<Instrument> DynamicLseInstrument for Instrumentwhere
Instrument: LseInstrument,
impl<Instrument> DynamicMassiveInstrument for Instrumentwhere
Instrument: MassiveInstrument,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.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> 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> ⓘ
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> ⓘ
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 moreimpl<T> JsonSchemaMaybe for T
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.