Expand description
Order types for the trading domain model.
Re-exports§
pub use crate::orders::any::LimitOrderAny;pub use crate::orders::any::OrderAny;pub use crate::orders::any::PassiveOrderAny;pub use crate::orders::any::StopOrderAny;pub use crate::orders::builder::OrderTestBuilder;pub use crate::orders::limit::LimitOrder;pub use crate::orders::limit_if_touched::LimitIfTouchedOrder;pub use crate::orders::list::OrderList;pub use crate::orders::market::MarketOrder;pub use crate::orders::market_if_touched::MarketIfTouchedOrder;pub use crate::orders::market_to_limit::MarketToLimitOrder;pub use crate::orders::stop_limit::StopLimitOrder;pub use crate::orders::stop_market::StopMarketOrder;pub use crate::orders::trailing_stop_limit::TrailingStopLimitOrder;pub use crate::orders::trailing_stop_market::TrailingStopMarketOrder;
Modules§
- any
- builder
- default
- limit
- limit_
if_ touched - list
- market
- market_
if_ touched - market_
to_ limit - stop_
limit - stop_
market - stubs
- trailing_
stop_ limit - trailing_
stop_ market
Structs§
Enums§
Constants§
- CANCELLABLE_
ORDER_ STATUSES - Order statuses that are safe for cancellation queries.
- LIMIT_
ORDER_ TYPES - Order types that have limit prices.
- LOCAL_
ACTIVE_ ORDER_ STATUSES - Order statuses for locally active orders (pre-submission to venue).
- STOP_
ORDER_ TYPES - Order types that have stop/trigger prices.
Traits§
Functions§
- cancellable_
order_ statuses_ set - Returns a cached
AHashSetof cancellable order statuses for O(1) lookups. - str_
indexmap_ to_ ustr - Converts an IndexMap with
Stringkeys and values toUstrkeys and values. - ustr_
indexmap_ to_ str - Converts an IndexMap with
Ustrkeys and values toStringkeys and values.