pub struct Fill {
pub action: Action,
pub count: i32,
pub created_time: String,
pub is_taker: bool,
pub no_price: i64,
pub order_id: String,
pub side: Side,
pub ticker: String,
pub trade_id: String,
pub yes_price: i64,
}Expand description
A completed transaction (a ‘fill’) in the Kalshi exchange.
This struct details a single fill instance, including the action taken, the quantity, the involved prices, and the identifiers of the order and trade.
Fields§
§action: ActionThe action (buy/sell) of the fill.
count: i32The number of contracts or shares involved in the fill.
created_time: StringThe timestamp when the fill was created.
is_taker: boolIndicates if the fill was made by a taker.
no_price: i64The price of the ‘No’ option in the fill.
order_id: StringThe identifier of the associated order.
side: SideThe side (Yes/No) of the fill.
ticker: StringThe ticker of the market in which the fill occurred.
trade_id: StringThe unique identifier of the trade.
yes_price: i64The price of the ‘Yes’ option in the fill.
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
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin 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