StreamingPriceField

Enum StreamingPriceField 

Source
pub enum StreamingPriceField {
Show 83 variants MidOpen, High, Low, BidQuoteId, AskQuoteId, BidPrice1, BidPrice2, BidPrice3, BidPrice4, BidPrice5, AskPrice1, AskPrice2, AskPrice3, AskPrice4, AskPrice5, BidSize1, BidSize2, BidSize3, BidSize4, BidSize5, AskSize1, AskSize2, AskSize3, AskSize4, AskSize5, Currency0, Currency1, C1BidSize1, C1BidSize2, C1BidSize3, C1BidSize4, C1BidSize5, C1AskSize1, C1AskSize2, C1AskSize3, C1AskSize4, C1AskSize5, Currency2, C2BidSize1, C2BidSize2, C2BidSize3, C2BidSize4, C2BidSize5, C2AskSize1, C2AskSize2, C2AskSize3, C2AskSize4, C2AskSize5, Currency3, C3BidSize1, C3BidSize2, C3BidSize3, C3BidSize4, C3BidSize5, C3AskSize1, C3AskSize2, C3AskSize3, C3AskSize4, C3AskSize5, Currency4, C4BidSize1, C4BidSize2, C4BidSize3, C4BidSize4, C4BidSize5, C4AskSize1, C4AskSize2, C4AskSize3, C4AskSize4, C4AskSize5, Currency5, C5BidSize1, C5BidSize2, C5BidSize3, C5BidSize4, C5BidSize5, C5AskSize1, C5AskSize2, C5AskSize3, C5AskSize4, C5AskSize5, Timestamp, DlgFlag,
}
Expand description

Streaming price fields available for price subscriptions.

These fields represent the various price data points that can be subscribed to in the IG Markets streaming API for price updates.

Variants§

§

MidOpen

Mid open price

§

High

High price

§

Low

Low price

§

BidQuoteId

Bid quote ID

§

AskQuoteId

Ask quote ID

§

BidPrice1

Bid price level 1

§

BidPrice2

Bid price level 2

§

BidPrice3

Bid price level 3

§

BidPrice4

Bid price level 4

§

BidPrice5

Bid price level 5

§

AskPrice1

Ask price level 1

§

AskPrice2

Ask price level 2

§

AskPrice3

Ask price level 3

§

AskPrice4

Ask price level 4

§

AskPrice5

Ask price level 5

§

BidSize1

Bid size level 1

§

BidSize2

Bid size level 2

§

BidSize3

Bid size level 3

§

BidSize4

Bid size level 4

§

BidSize5

Bid size level 5

§

AskSize1

Ask size level 1

§

AskSize2

Ask size level 2

§

AskSize3

Ask size level 3

§

AskSize4

Ask size level 4

§

AskSize5

Ask size level 5

§

Currency0

Currency 0

§

Currency1

Currency 1

§

C1BidSize1

Currency 1 bid size level 1

§

C1BidSize2

Currency 1 bid size level 2

§

C1BidSize3

Currency 1 bid size level 3

§

C1BidSize4

Currency 1 bid size level 4

§

C1BidSize5

Currency 1 bid size level 5

§

C1AskSize1

Currency 1 ask size level 1

§

C1AskSize2

Currency 1 ask size level 2

§

C1AskSize3

Currency 1 ask size level 3

§

C1AskSize4

Currency 1 ask size level 4

§

C1AskSize5

Currency 1 ask size level 5

§

Currency2

Currency 2

§

C2BidSize1

Currency 2 bid size level 1

§

C2BidSize2

Currency 2 bid size level 2

§

C2BidSize3

Currency 2 bid size level 3

§

C2BidSize4

Currency 2 bid size level 4

§

C2BidSize5

Currency 2 bid size level 5

§

C2AskSize1

Currency 2 ask size level 1

§

C2AskSize2

Currency 2 ask size level 2

§

C2AskSize3

Currency 2 ask size level 3

§

C2AskSize4

Currency 2 ask size level 4

§

C2AskSize5

Currency 2 ask size level 5

§

Currency3

Currency 3

§

C3BidSize1

Currency 3 bid size level 1

§

C3BidSize2

Currency 3 bid size level 2

§

C3BidSize3

Currency 3 bid size level 3

§

C3BidSize4

Currency 3 bid size level 4

§

C3BidSize5

Currency 3 bid size level 5

§

C3AskSize1

Currency 3 ask size level 1

§

C3AskSize2

Currency 3 ask size level 2

§

C3AskSize3

Currency 3 ask size level 3

§

C3AskSize4

Currency 3 ask size level 4

§

C3AskSize5

Currency 3 ask size level 5

§

Currency4

Currency 4

§

C4BidSize1

Currency 4 bid size level 1

§

C4BidSize2

Currency 4 bid size level 2

§

C4BidSize3

Currency 4 bid size level 3

§

C4BidSize4

Currency 4 bid size level 4

§

C4BidSize5

Currency 4 bid size level 5

§

C4AskSize1

Currency 4 ask size level 1

§

C4AskSize2

Currency 4 ask size level 2

§

C4AskSize3

Currency 4 ask size level 3

§

C4AskSize4

Currency 4 ask size level 4

§

C4AskSize5

Currency 4 ask size level 5

§

Currency5

Currency 5

§

C5BidSize1

Currency 5 bid size level 1

§

C5BidSize2

Currency 5 bid size level 2

§

C5BidSize3

Currency 5 bid size level 3

§

C5BidSize4

Currency 5 bid size level 4

§

C5BidSize5

Currency 5 bid size level 5

§

C5AskSize1

Currency 5 ask size level 1

§

C5AskSize2

Currency 5 ask size level 2

§

C5AskSize3

Currency 5 ask size level 3

§

C5AskSize4

Currency 5 ask size level 4

§

C5AskSize5

Currency 5 ask size level 5

§

Timestamp

Timestamp of the price update

§

DlgFlag

Dealing flag

Trait Implementations§

Source§

impl Clone for StreamingPriceField

Source§

fn clone(&self) -> StreamingPriceField

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StreamingPriceField

Source§

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

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

impl Default for StreamingPriceField

Source§

fn default() -> StreamingPriceField

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

impl<'de> Deserialize<'de> for StreamingPriceField

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for StreamingPriceField

Source§

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

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

impl Hash for StreamingPriceField

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for StreamingPriceField

Source§

fn eq(&self, other: &StreamingPriceField) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for StreamingPriceField

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for StreamingPriceField

Source§

impl StructuralPartialEq for StreamingPriceField

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

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

Source§

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
Source§

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
§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T> ToString for T
where T: Display + ?Sized,

§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,