pub struct Order { /* private fields */ }Expand description
A OrderBuilder should be used to create a Order with custom configuration.
Implementations§
Source§impl Order
A OrderBuilder should be used to create a Order with custom configuration.
impl Order
A OrderBuilder should be used to create a Order with custom configuration.
Sourcepub fn market_builder(
side: OrderSide,
product_id: &str,
size_or_funds: SizeOrFunds,
) -> impl SharedOptions
pub fn market_builder( side: OrderSide, product_id: &str, size_or_funds: SizeOrFunds, ) -> impl SharedOptions
returns a OrderBuilder with requiered market-order parameters, equivalent OrderBuilder::market
Sourcepub fn limit_builder(
side: OrderSide,
product_id: &str,
price: f64,
size: f64,
) -> impl LimitOptions + SharedOptions
pub fn limit_builder( side: OrderSide, product_id: &str, price: f64, size: f64, ) -> impl LimitOptions + SharedOptions
returns a OrderBuilder with requiered limit-order parameters, equivalent OrderBuilder::limit
Sourcepub fn stop_builder(
side: OrderSide,
product_id: &str,
price: f64,
size: f64,
stop_price: f64,
stop: OrderStop,
) -> impl SharedOptions
pub fn stop_builder( side: OrderSide, product_id: &str, price: f64, size: f64, stop_price: f64, stop: OrderStop, ) -> impl SharedOptions
returns a OrderBuilder with requiered stop-order parameters, equivalent OrderBuilder::stop
Trait Implementations§
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> 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