pub struct PoolLiquidityUpdate {Show 18 fields
pub chain: SharedChain,
pub dex: SharedDex,
pub instrument_id: InstrumentId,
pub pool_address: Address,
pub kind: PoolLiquidityUpdateType,
pub block: u64,
pub transaction_hash: String,
pub transaction_index: u32,
pub log_index: u32,
pub sender: Option<Address>,
pub owner: Address,
pub position_liquidity: Quantity,
pub amount0: Quantity,
pub amount1: Quantity,
pub tick_lower: i32,
pub tick_upper: i32,
pub timestamp: Option<UnixNanos>,
pub ts_init: Option<UnixNanos>,
}
Expand description
Represents a liquidity update event in a decentralized exchange (DEX) pool.
Fields§
§chain: SharedChain
The blockchain network where the liquidity update occurred.
dex: SharedDex
The decentralized exchange where the liquidity update was executed.
instrument_id: InstrumentId
The DEX liquidity pool instrument ID.
pool_address: Address
The blockchain address of the pool smart contract.
kind: PoolLiquidityUpdateType
The type of the pool liquidity update.
block: u64
The blockchain block number where the liquidity update occurred.
transaction_hash: String
The unique hash identifier of the blockchain transaction containing the liquidity update.
transaction_index: u32
The index position of the transaction within the block.
log_index: u32
The index position of the liquidity update event log within the transaction.
sender: Option<Address>
The blockchain address that initiated the liquidity update transaction.
owner: Address
The blockchain address that owns the liquidity position.
position_liquidity: Quantity
The amount of liquidity tokens affected in the position.
amount0: Quantity
The amount of the first token in the pool pair.
amount1: Quantity
The amount of the second token in the pool pair.
tick_lower: i32
The lower price tick boundary of the liquidity position.
tick_upper: i32
The upper price tick boundary of the liquidity position.
timestamp: Option<UnixNanos>
The timestamp of the liquidity update in Unix nanoseconds.
ts_init: Option<UnixNanos>
UNIX timestamp (nanoseconds) when the instance was created.
Implementations§
Source§impl PoolLiquidityUpdate
impl PoolLiquidityUpdate
Sourcepub const fn new(
chain: SharedChain,
dex: SharedDex,
instrument_id: InstrumentId,
pool_address: Address,
kind: PoolLiquidityUpdateType,
block: u64,
transaction_hash: String,
transaction_index: u32,
log_index: u32,
sender: Option<Address>,
owner: Address,
position_liquidity: Quantity,
amount0: Quantity,
amount1: Quantity,
tick_lower: i32,
tick_upper: i32,
timestamp: Option<UnixNanos>,
) -> Self
pub const fn new( chain: SharedChain, dex: SharedDex, instrument_id: InstrumentId, pool_address: Address, kind: PoolLiquidityUpdateType, block: u64, transaction_hash: String, transaction_index: u32, log_index: u32, sender: Option<Address>, owner: Address, position_liquidity: Quantity, amount0: Quantity, amount1: Quantity, tick_lower: i32, tick_upper: i32, timestamp: Option<UnixNanos>, ) -> Self
Creates a new PoolLiquidityUpdate
instance with the specified properties.
Trait Implementations§
Source§impl Clone for PoolLiquidityUpdate
impl Clone for PoolLiquidityUpdate
Source§fn clone(&self) -> PoolLiquidityUpdate
fn clone(&self) -> PoolLiquidityUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PoolLiquidityUpdate
impl Debug for PoolLiquidityUpdate
Source§impl<'de> Deserialize<'de> for PoolLiquidityUpdate
impl<'de> Deserialize<'de> for PoolLiquidityUpdate
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 Display for PoolLiquidityUpdate
impl Display for PoolLiquidityUpdate
Source§impl From<PoolLiquidityUpdate> for DefiData
impl From<PoolLiquidityUpdate> for DefiData
Source§fn from(value: PoolLiquidityUpdate) -> Self
fn from(value: PoolLiquidityUpdate) -> Self
Source§impl<'py> IntoPyObject<'py> for PoolLiquidityUpdate
impl<'py> IntoPyObject<'py> for PoolLiquidityUpdate
Source§type Target = PoolLiquidityUpdate
type Target = PoolLiquidityUpdate
Source§type Output = Bound<'py, <PoolLiquidityUpdate as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PoolLiquidityUpdate as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PartialEq for PoolLiquidityUpdate
impl PartialEq for PoolLiquidityUpdate
Source§impl PyClass for PoolLiquidityUpdate
impl PyClass for PoolLiquidityUpdate
Source§impl PyClassImpl for PoolLiquidityUpdate
impl PyClassImpl for PoolLiquidityUpdate
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§type ThreadChecker = SendablePyClass<PoolLiquidityUpdate>
type ThreadChecker = SendablePyClass<PoolLiquidityUpdate>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<PoolLiquidityUpdate> for PyClassImplCollector<PoolLiquidityUpdate>
impl PyClassNewTextSignature<PoolLiquidityUpdate> for PyClassImplCollector<PoolLiquidityUpdate>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a PoolLiquidityUpdate
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a PoolLiquidityUpdate
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a mut PoolLiquidityUpdate
impl<'a, 'py> PyFunctionArgument<'a, 'py, false> for &'a mut PoolLiquidityUpdate
Source§impl PyMethods<PoolLiquidityUpdate> for PyClassImplCollector<PoolLiquidityUpdate>
impl PyMethods<PoolLiquidityUpdate> for PyClassImplCollector<PoolLiquidityUpdate>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for PoolLiquidityUpdate
impl PyTypeInfo for PoolLiquidityUpdate
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type or a subclass of this type.§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type.Source§impl Serialize for PoolLiquidityUpdate
impl Serialize for PoolLiquidityUpdate
impl DerefToPyAny for PoolLiquidityUpdate
impl StructuralPartialEq for PoolLiquidityUpdate
Auto Trait Implementations§
impl Freeze for PoolLiquidityUpdate
impl RefUnwindSafe for PoolLiquidityUpdate
impl Send for PoolLiquidityUpdate
impl Sync for PoolLiquidityUpdate
impl Unpin for PoolLiquidityUpdate
impl UnwindSafe for PoolLiquidityUpdate
Blanket Implementations§
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,
§impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
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<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self
into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self
into an owned Python object, dropping type information and unbinding it
from the 'py
lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self
into a Python object. Read moreSource§impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
Source§fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>
fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
SeparatorPolicy
. Read more