pub struct RithmicModifyOrder {
pub id: String,
pub exchange: String,
pub symbol: String,
pub qty: i32,
pub price: f64,
pub price_type: PriceType,
}Expand description
Modify an existing order’s price, quantity, or type.
§Example
ⓘ
use rithmic_rs::{RithmicModifyOrder, ModifyPriceType};
let modification = RithmicModifyOrder {
id: "123456".to_string(), // basket_id from order notification
symbol: "ESM5".to_string(),
exchange: "CME".to_string(),
qty: 2,
price: 5005.0,
price_type: ModifyPriceType::Limit,
};
handle.modify_order(modification).await?;Fields§
§id: StringThe basket_id from the order notification
exchange: StringExchange code
symbol: StringTrading symbol
qty: i32New quantity
price: f64New price
price_type: PriceTypeOrder type
Trait Implementations§
Source§impl Clone for RithmicModifyOrder
impl Clone for RithmicModifyOrder
Source§fn clone(&self) -> RithmicModifyOrder
fn clone(&self) -> RithmicModifyOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RithmicModifyOrder
impl RefUnwindSafe for RithmicModifyOrder
impl Send for RithmicModifyOrder
impl Sync for RithmicModifyOrder
impl Unpin for RithmicModifyOrder
impl UnwindSafe for RithmicModifyOrder
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