pub struct BybitOrderRequest {Show 17 fields
pub symbol: String,
pub side: OrderSide,
pub order_type: OrderType,
pub quantity: Decimal,
pub price: Option<Decimal>,
pub time_in_force: TimeInForce,
pub category: BybitCategory,
pub order_link_id: Option<String>,
pub reduce_only: Option<bool>,
pub close_on_trigger: Option<bool>,
pub position_idx: Option<u32>,
pub take_profit: Option<Decimal>,
pub stop_loss: Option<Decimal>,
pub tp_trigger_by: Option<String>,
pub sl_trigger_by: Option<String>,
pub tp_limit_price: Option<Decimal>,
pub sl_limit_price: Option<Decimal>,
}Expand description
Bybit WebSocket order request for individual orders
Fields§
§symbol: StringTrading symbol (e.g., “BTCUSDT”)
side: OrderSideOrder side (Buy or Sell)
order_type: OrderTypeOrder type (Market, Limit, etc.)
quantity: DecimalOrder quantity
price: Option<Decimal>Order price (required for limit orders)
time_in_force: TimeInForceTime in force (GTC, IOC, FOK, etc.)
category: BybitCategoryBybit product category (spot, linear, inverse, options)
order_link_id: Option<String>Client-provided order link ID for tracking
reduce_only: Option<bool>Whether this is a reduce-only order
close_on_trigger: Option<bool>Whether to close position on trigger
position_idx: Option<u32>Position index for hedge mode (0=one-way, 1=buy-side, 2=sell-side)
take_profit: Option<Decimal>Take profit price
stop_loss: Option<Decimal>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)
tp_limit_price: Option<Decimal>Take profit limit price for TP limit orders
sl_limit_price: Option<Decimal>Stop loss limit price for SL limit orders
Trait Implementations§
Source§impl Clone for BybitOrderRequest
impl Clone for BybitOrderRequest
Source§fn clone(&self) -> BybitOrderRequest
fn clone(&self) -> BybitOrderRequest
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 BybitOrderRequest
impl RefUnwindSafe for BybitOrderRequest
impl Send for BybitOrderRequest
impl Sync for BybitOrderRequest
impl Unpin for BybitOrderRequest
impl UnwindSafe for BybitOrderRequest
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