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 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§fn schema(&self) -> Result<Schema>
fn schema(&self) -> Result<Schema>
Source§fn encode_record_batch(
&self,
items: &[Arc<dyn CustomDataTrait>],
) -> Result<RecordBatch>
fn encode_record_batch( &self, items: &[Arc<dyn CustomDataTrait>], ) -> Result<RecordBatch>
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§impl Debug for HyperliquidTwapSliceFill
impl Debug for HyperliquidTwapSliceFill
Source§impl DecodeDataFromRecordBatch for HyperliquidTwapSliceFill
impl DecodeDataFromRecordBatch for HyperliquidTwapSliceFill
Source§fn decode_data_batch(
_metadata: &HashMap<String, String>,
record_batch: RecordBatch,
) -> Result<Vec<Data>, EncodingError>
fn decode_data_batch( _metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Data>, EncodingError>
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§fn encode_batch(
metadata: &HashMap<String, String>,
data: &[Self],
) -> Result<RecordBatch, ArrowError>
fn encode_batch( metadata: &HashMap<String, String>, data: &[Self], ) -> Result<RecordBatch, ArrowError>
RecordBatch using the provided metadata. Read moreSource§impl From<HyperliquidTwapSliceFill> for Data
impl From<HyperliquidTwapSliceFill> for Data
Source§fn from(value: HyperliquidTwapSliceFill) -> Self
fn from(value: HyperliquidTwapSliceFill) -> Self
Source§impl HasTsInit for HyperliquidTwapSliceFill
impl HasTsInit for HyperliquidTwapSliceFill
Source§impl PartialEq for HyperliquidTwapSliceFill
impl PartialEq for HyperliquidTwapSliceFill
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 T
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>,
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 more