pub struct BybitAmendOrderRequest {Show 13 fields
pub category: BybitCategory,
pub symbol: String,
pub order_id: Option<String>,
pub order_link_id: Option<String>,
pub qty: Option<Decimal>,
pub price: Option<Decimal>,
pub take_profit: Option<Decimal>,
pub stop_loss: Option<Decimal>,
pub tp_trigger_by: Option<String>,
pub sl_trigger_by: Option<String>,
pub trigger_price: Option<Decimal>,
pub tp_limit_price: Option<Decimal>,
pub sl_limit_price: Option<Decimal>,
}Expand description
Order amendment request
Fields§
§category: BybitCategoryBybit product category (spot, linear, inverse, options)
symbol: StringTrading symbol (e.g., “BTCUSDT”)
order_id: Option<String>Bybit order ID (either order_id or order_link_id must be provided)
order_link_id: Option<String>Client-provided order link ID (either order_id or order_link_id must be provided)
qty: Option<Decimal>New order quantity
price: Option<Decimal>New order price
take_profit: Option<Decimal>New take profit price
stop_loss: Option<Decimal>New stop loss price
tp_trigger_by: Option<String>Take profit trigger price type (LastPrice, MarkPrice, IndexPrice)
sl_trigger_by: Option<String>Stop loss trigger price type (LastPrice, MarkPrice, IndexPrice)
trigger_price: Option<Decimal>New trigger price for conditional orders
tp_limit_price: Option<Decimal>New take profit limit price for TP limit orders
sl_limit_price: Option<Decimal>New stop loss limit price for SL limit orders
Trait Implementations§
Source§impl Clone for BybitAmendOrderRequest
impl Clone for BybitAmendOrderRequest
Source§fn clone(&self) -> BybitAmendOrderRequest
fn clone(&self) -> BybitAmendOrderRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BybitAmendOrderRequest
impl RefUnwindSafe for BybitAmendOrderRequest
impl Send for BybitAmendOrderRequest
impl Sync for BybitAmendOrderRequest
impl Unpin for BybitAmendOrderRequest
impl UnwindSafe for BybitAmendOrderRequest
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