pub struct HyperliquidTwapSliceFill {Show 18 fields
pub user: String,
pub twap_id: u64,
pub coin: String,
pub instrument_id: Option<InstrumentId>,
pub price: Decimal,
pub size: Decimal,
pub side: OrderSide,
pub hash: String,
pub oid: u64,
pub tid: u64,
pub crossed: bool,
pub fee: Decimal,
pub fee_token: String,
pub dir: String,
pub closed_pnl: Decimal,
pub is_snapshot: bool,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
}Expand description
One slice fill from the Hyperliquid userTwapSliceFills WebSocket channel.
Opt-in custom data (not part of default user execution subscriptions).
Fields§
§user: StringUser address from the subscription envelope.
twap_id: u64Venue TWAP order identifier.
coin: StringRaw Hyperliquid coin symbol from the fill.
instrument_id: Option<InstrumentId>Resolved Nautilus instrument ID when the coin is known in cache.
price: DecimalFill price.
size: DecimalFill size.
side: OrderSideFill side.
hash: StringL1 transaction hash.
oid: u64Venue order id for the slice.
tid: u64Venue trade id.
crossed: boolWhether the fill crossed the spread (taker).
fee: DecimalFee amount (negative means rebate).
fee_token: StringToken the fee was paid in.
dir: StringFrontend display direction string from the venue.
closed_pnl: DecimalClosed PnL for the fill.
is_snapshot: boolWhether this event belongs to a venue snapshot batch.
ts_event: UnixNanosUNIX timestamp (nanoseconds) when the fill occurred.
ts_init: UnixNanosUNIX timestamp (nanoseconds) when the instance was initialized.
Implementations§
Source§impl HyperliquidTwapSliceFill
impl HyperliquidTwapSliceFill
Sourcepub fn new(
user: String,
twap_id: u64,
coin: String,
instrument_id: Option<InstrumentId>,
price: Decimal,
size: Decimal,
side: OrderSide,
hash: String,
oid: u64,
tid: u64,
crossed: bool,
fee: Decimal,
fee_token: String,
dir: String,
closed_pnl: Decimal,
is_snapshot: bool,
ts_event: UnixNanos,
ts_init: UnixNanos,
) -> Self
pub fn new( user: String, twap_id: u64, coin: String, instrument_id: Option<InstrumentId>, price: Decimal, size: Decimal, side: OrderSide, hash: String, oid: u64, tid: u64, crossed: bool, fee: Decimal, fee_token: String, dir: String, closed_pnl: Decimal, is_snapshot: bool, ts_event: UnixNanos, ts_init: UnixNanos, ) -> Self
Constructor from all fields. Use from Rust; Python init forwards to this.
Trait Implementations§
Source§impl ArrowSchemaProvider for HyperliquidTwapSliceFill
impl ArrowSchemaProvider for HyperliquidTwapSliceFill
Source§impl CatalogPathPrefix for HyperliquidTwapSliceFill
impl CatalogPathPrefix for HyperliquidTwapSliceFill
Source§fn path_prefix() -> &'static str
fn path_prefix() -> &'static str
Source§impl Clone for HyperliquidTwapSliceFill
impl Clone for HyperliquidTwapSliceFill
Source§fn clone(&self) -> HyperliquidTwapSliceFill
fn clone(&self) -> HyperliquidTwapSliceFill
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CustomDataSerialize for HyperliquidTwapSliceFill
impl CustomDataSerialize for HyperliquidTwapSliceFill
Source§impl CustomDataTrait for HyperliquidTwapSliceFill
impl CustomDataTrait for HyperliquidTwapSliceFill
Source§fn type_name_static() -> &'static str
fn type_name_static() -> &'static str
"type" field).Source§fn eq_arc(&self, other: &dyn CustomDataTrait) -> bool
fn eq_arc(&self, other: &dyn CustomDataTrait) -> bool
Source§fn from_json(value: Value) -> Result<Arc<dyn CustomDataTrait>>
fn from_json(value: Value) -> Result<Arc<dyn CustomDataTrait>>
Source§fn to_pyobject(&self, py: Python<'_>) -> PyResult<Py<PyAny>>
fn to_pyobject(&self, py: Python<'_>) -> PyResult<Py<PyAny>>
Source§impl Debug for HyperliquidTwapSliceFill
impl Debug for HyperliquidTwapSliceFill
Source§impl DecodeDataFromRecordBatch for HyperliquidTwapSliceFill
impl DecodeDataFromRecordBatch for HyperliquidTwapSliceFill
impl DerefToPyAny for HyperliquidTwapSliceFill
Source§impl<'de> Deserialize<'de> for HyperliquidTwapSliceFill
impl<'de> Deserialize<'de> for HyperliquidTwapSliceFill
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 HyperliquidTwapSliceFill
impl Display for HyperliquidTwapSliceFill
Source§impl EncodeToRecordBatch for HyperliquidTwapSliceFill
impl EncodeToRecordBatch for HyperliquidTwapSliceFill
Source§impl From<HyperliquidTwapSliceFill> for Data
impl From<HyperliquidTwapSliceFill> for Data
Source§fn from(value: HyperliquidTwapSliceFill) -> Self
fn from(value: HyperliquidTwapSliceFill) -> Self
Source§impl<'a, 'py> FromPyObject<'a, 'py> for HyperliquidTwapSliceFillwhere
Self: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for HyperliquidTwapSliceFillwhere
Self: Clone,
Source§impl HasTsInit for HyperliquidTwapSliceFill
impl HasTsInit for HyperliquidTwapSliceFill
Source§impl<'py> IntoPyObject<'py> for HyperliquidTwapSliceFill
impl<'py> IntoPyObject<'py> for HyperliquidTwapSliceFill
Source§type Target = HyperliquidTwapSliceFill
type Target = HyperliquidTwapSliceFill
Source§type Output = Bound<'py, <HyperliquidTwapSliceFill as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <HyperliquidTwapSliceFill 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 HyperliquidTwapSliceFill
impl PartialEq for HyperliquidTwapSliceFill
Source§impl PyClass for HyperliquidTwapSliceFill
impl PyClass for HyperliquidTwapSliceFill
Source§impl PyClassImpl for HyperliquidTwapSliceFill
impl PyClassImpl for HyperliquidTwapSliceFill
Source§const MODULE: Option<&str> = ::core::option::Option::None
const MODULE: Option<&str> = ::core::option::Option::None
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§const RAW_DOC: &'static CStr = /// One slice fill from the Hyperliquid `userTwapSliceFills` WebSocket channel.
///
/// Opt-in custom data (not part of default user execution subscriptions).
const RAW_DOC: &'static CStr = /// One slice fill from the Hyperliquid `userTwapSliceFills` WebSocket channel. /// /// Opt-in custom data (not part of default user execution subscriptions).
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<HyperliquidTwapSliceFill as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<HyperliquidTwapSliceFill>
type Layout = <<HyperliquidTwapSliceFill as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<HyperliquidTwapSliceFill>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
type Inventory = Pyo3MethodsInventoryForHyperliquidTwapSliceFill
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<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyClassNewTextSignature for HyperliquidTwapSliceFill
impl PyClassNewTextSignature for HyperliquidTwapSliceFill
const TEXT_SIGNATURE: &'static str = "(user, twap_id, coin, instrument_id, price, size, side, hash, oid, tid, crossed, fee, fee_token, dir, closed_pnl, is_snapshot, ts_event, ts_init)"
Source§impl PyStubType for HyperliquidTwapSliceFill
impl PyStubType for HyperliquidTwapSliceFill
Source§fn type_output() -> TypeInfo
fn type_output() -> TypeInfo
§fn type_input() -> TypeInfo
fn type_input() -> TypeInfo
Source§impl PyTypeInfo for HyperliquidTwapSliceFill
impl PyTypeInfo for HyperliquidTwapSliceFill
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
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 HyperliquidTwapSliceFill
impl Serialize for HyperliquidTwapSliceFill
impl StructuralPartialEq for HyperliquidTwapSliceFill
Auto Trait Implementations§
impl Freeze for HyperliquidTwapSliceFill
impl RefUnwindSafe for HyperliquidTwapSliceFill
impl Send for HyperliquidTwapSliceFill
impl Sync for HyperliquidTwapSliceFill
impl Unpin for HyperliquidTwapSliceFill
impl UnsafeUnpin for HyperliquidTwapSliceFill
impl UnwindSafe for HyperliquidTwapSliceFill
Blanket Implementations§
impl<T> Allocation 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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<'py, T> FromPyObjectOwned<'py> for Twhere
T: for<'a> FromPyObject<'a, 'py>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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<'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 more§impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
impl<'py, T> IntoPyObjectNautilusExt<'py> for Twhere
T: IntoPyObjectExt<'py>,
§fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>where
Self: IntoPyObject<'py, Error = !>,
fn into_py_any_unwrap(self, py: Python<'py>) -> Py<PyAny>where
Self: IntoPyObject<'py, Error = !>,
self into a [Py<PyAny>] when the underlying conversion is infallible.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§fn type_check(object: &Bound<'_, PyAny>) -> bool
fn type_check(object: &Bound<'_, PyAny>) -> bool
§fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
fn classinfo_object(py: Python<'_>) -> Bound<'_, PyAny>
isinstance and issubclass function. Read more