pub struct Fill {Show 18 fields
pub coin: String,
pub px: Dec,
pub sz: Dec,
pub side: Side,
pub time: u64,
pub start_position: Dec,
pub dir: String,
pub closed_pnl: Dec,
pub hash: String,
pub oid: u64,
pub crossed: bool,
pub fee: Dec,
pub tid: u64,
pub cloid: Option<String>,
pub fee_token: String,
pub builder_fee: Option<Dec>,
pub liquidation: Option<FillLiquidation>,
pub twap_id: Option<u64>,
}Expand description
One fill. fee is everything the fill cost, a builder’s share included, in fee_token:
USDC, or on a spot buy the token bought.
Fields§
§coin: StringBTC, xyz:XYZ100, @107, #14730.
px: Dec§sz: Dec§side: SideThe account’s side.
time: u64Milliseconds.
start_position: DecThe account’s position in the coin before this fill, signed.
dir: StringFor display: Open Long, Close Short, Buy, Spot Dust Conversion, Settlement…
closed_pnl: Dec§hash: StringThe L1 transaction hash; all zeros for a TWAP slice.
oid: u64§crossed: boolTook liquidity.
fee: DecNegative is a rebate. Includes builder_fee.
tid: u64§cloid: Option<String>The order’s client id as written (0x and 32 hex digits), kept as a string so a fill reads
whatever its order was tagged with.
fee_token: String§builder_fee: Option<Dec>What the order’s builder took; the venue leaves it out when nothing.
liquidation: Option<FillLiquidation>Only on a fill that was part of a liquidation.
twap_id: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fill
impl<'de> Deserialize<'de> for Fill
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Fill
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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
Mutably borrows from an owned value. Read more
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.