Order

Struct Order 

Source
pub struct Order {
Show 36 fields pub order_id: String, pub user_id: Option<String>, pub ticker: String, pub status: OrderStatus, pub yes_price: Option<i32>, pub no_price: Option<i32>, pub count: Option<i32>, pub created_time: Option<String>, pub last_update_time: Option<String>, pub expiration_time: Option<String>, pub fill_count: Option<i32>, pub initial_count: Option<i32>, pub remaining_count: Option<i32>, pub queue_position: Option<i32>, pub taker_fill_count: Option<i32>, pub place_count: Option<i32>, pub decrease_count: Option<i32>, pub maker_fill_count: Option<i32>, pub fcc_cancel_count: Option<i32>, pub close_cancel_count: Option<i32>, pub taker_fees: Option<i32>, pub taker_fees_dollars: Option<String>, pub taker_fill_cost: Option<i32>, pub taker_fill_cost_dollars: Option<String>, pub maker_fees: Option<i32>, pub maker_fees_dollars: Option<String>, pub maker_fill_cost: Option<i32>, pub maker_fill_cost_dollars: Option<String>, pub yes_price_dollars: Option<String>, pub no_price_dollars: Option<String>, pub action: Action, pub side: Side, pub type: String, pub client_order_id: String, pub order_group_id: Option<String>, pub self_trade_prevention_type: Option<String>,
}
Expand description

Represents an order in the Kalshi exchange.

This struct details an individual order, including its identification, status, prices, and various metrics related to its lifecycle.

Fields§

§order_id: String

Unique identifier for the order.

§user_id: Option<String>

Identifier of the user who placed the order. Optional.

§ticker: String

Ticker of the market associated with the order.

§status: OrderStatus

Current status of the order (e.g., resting, executed).

§yes_price: Option<i32>

Price of the ‘Yes’ option in the order (cents). Optional for some responses.

§no_price: Option<i32>

Price of the ‘No’ option in the order (cents). Optional for some responses.

§count: Option<i32>

Count of contracts in the order. Optional for some responses.

§created_time: Option<String>

Timestamp when the order was created. Optional.

§last_update_time: Option<String>

Last update time of the order. Optional.

§expiration_time: Option<String>

Expiration time of the order. Optional (often null).

§fill_count: Option<i32>

Total fills (Kalshi now reports a single fill_count).

§initial_count: Option<i32>

Initial order size.

§remaining_count: Option<i32>

Remaining count of the order. Optional.

§queue_position: Option<i32>

Position of the order in the queue. Optional.

§taker_fill_count: Option<i32>§place_count: Option<i32>§decrease_count: Option<i32>§maker_fill_count: Option<i32>§fcc_cancel_count: Option<i32>§close_cancel_count: Option<i32>§taker_fees: Option<i32>

Fees incurred as a taker (cents).

§taker_fees_dollars: Option<String>

Taker fees in dollars (string, sometimes null).

§taker_fill_cost: Option<i32>

Total cost of taker fills (cents).

§taker_fill_cost_dollars: Option<String>

Taker fill cost in dollars (string).

§maker_fees: Option<i32>

Maker fees (cents).

§maker_fees_dollars: Option<String>

Maker fees in dollars (string, sometimes null).

§maker_fill_cost: Option<i32>

Total cost of maker fills (cents).

§maker_fill_cost_dollars: Option<String>

Maker fill cost in dollars (string).

§yes_price_dollars: Option<String>§no_price_dollars: Option<String>§action: Action§side: Side§type: String

Type of the order (e.g., “limit”).

§client_order_id: String

Client-side identifier for the order.

§order_group_id: Option<String>

Group identifier for the order (now nullable).

§self_trade_prevention_type: Option<String>

Self-trade prevention type (nullable).

Trait Implementations§

Source§

impl Debug for Order

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Order

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Order

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Order

§

impl RefUnwindSafe for Order

§

impl Send for Order

§

impl Sync for Order

§

impl Unpin for Order

§

impl UnwindSafe for Order

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,