Struct PerpetualMarketCreateEventV2
pub struct PerpetualMarketCreateEventV2 {
pub id: u32,
pub clob_pair_id: u32,
pub ticker: String,
pub market_id: u32,
pub status: i32,
pub quantum_conversion_exponent: i32,
pub atomic_resolution: i32,
pub subticks_per_tick: u32,
pub step_base_quantums: u64,
pub liquidity_tier: u32,
pub market_type: i32,
}Expand description
PerpetualMarketCreateEventV2 message contains all the information about a new Perpetual Market on the dYdX chain. Deprecated. Use PerpetualMarketCreateEventV3 for the most up to date message
Fields§
§id: u32Unique Perpetual id. Defined in perpetuals.perpetual
clob_pair_id: u32Unique clob pair Id associated with this perpetual market Defined in clob.clob_pair
ticker: StringThe name of the Perpetual (e.g. BTC-USD).
Defined in perpetuals.perpetual
market_id: u32Unique id of market param associated with this perpetual market. Defined in perpetuals.perpetual
status: i32Status of the CLOB
quantum_conversion_exponent: i3210^Exponent gives the number of QuoteQuantums traded per BaseQuantum
per Subtick.
Defined in clob.clob_pair
atomic_resolution: i32The exponent for converting an atomic amount (size = 1)
to a full coin. For example, if AtomicResolution = -8
then a PerpetualPosition with size = 1e8 is equivalent to
a position size of one full coin.
Defined in perpetuals.perpetual
subticks_per_tick: u32Defines the tick size of the orderbook by defining how many subticks
are in one tick. That is, the subticks of any valid order must be a
multiple of this value. Generally this value should start >= 100to
allow room for decreasing it.
Defined in clob.clob_pair
step_base_quantums: u64Minimum increment in the size of orders on the CLOB, in base quantums. Defined in clob.clob_pair
liquidity_tier: u32The liquidity_tier that this perpetual is associated with. Defined in perpetuals.perpetual
market_type: i32Market type of the perpetual.
Implementations§
§impl PerpetualMarketCreateEventV2
impl PerpetualMarketCreateEventV2
pub fn status(&self) -> ClobPairStatus
pub fn status(&self) -> ClobPairStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
pub fn set_status(&mut self, value: ClobPairStatus)
pub fn set_status(&mut self, value: ClobPairStatus)
Sets status to the provided enum value.
pub fn market_type(&self) -> PerpetualMarketType
pub fn market_type(&self) -> PerpetualMarketType
Returns the enum value of market_type, or the default if the field is set to an invalid enum value.
pub fn set_market_type(&mut self, value: PerpetualMarketType)
pub fn set_market_type(&mut self, value: PerpetualMarketType)
Sets market_type to the provided enum value.
Trait Implementations§
§impl Clone for PerpetualMarketCreateEventV2
impl Clone for PerpetualMarketCreateEventV2
§fn clone(&self) -> PerpetualMarketCreateEventV2
fn clone(&self) -> PerpetualMarketCreateEventV2
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for PerpetualMarketCreateEventV2
impl Debug for PerpetualMarketCreateEventV2
§impl Default for PerpetualMarketCreateEventV2
impl Default for PerpetualMarketCreateEventV2
§fn default() -> PerpetualMarketCreateEventV2
fn default() -> PerpetualMarketCreateEventV2
§impl Message for PerpetualMarketCreateEventV2
impl Message for PerpetualMarketCreateEventV2
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.§impl Name for PerpetualMarketCreateEventV2
impl Name for PerpetualMarketCreateEventV2
§const NAME: &'static str = "PerpetualMarketCreateEventV2"
const NAME: &'static str = "PerpetualMarketCreateEventV2"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.§const PACKAGE: &'static str = "dydxprotocol.indexer.events"
const PACKAGE: &'static str = "dydxprotocol.indexer.events"
., e.g. google.protobuf.§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.§impl PartialEq for PerpetualMarketCreateEventV2
impl PartialEq for PerpetualMarketCreateEventV2
impl StructuralPartialEq for PerpetualMarketCreateEventV2
Auto Trait Implementations§
impl Freeze for PerpetualMarketCreateEventV2
impl RefUnwindSafe for PerpetualMarketCreateEventV2
impl Send for PerpetualMarketCreateEventV2
impl Sync for PerpetualMarketCreateEventV2
impl Unpin for PerpetualMarketCreateEventV2
impl UnwindSafe for PerpetualMarketCreateEventV2
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].