pub struct CommonOrderParams<'a> {
pub category: &'a str,
pub symbol: &'a str,
pub side: OrderSide,
pub order_type: OrderType,
pub quantity: Decimal,
pub price: Option<Decimal>,
pub time_in_force: Option<TimeInForce>,
pub client_order_id: Option<&'a str>,
}Expand description
Common order parameters for Bybit order creation
Fields§
§category: &'a strProduct category: “spot”, “linear”, “inverse”, “option”
symbol: &'a strTrading symbol (e.g., “BTCUSDT”)
side: OrderSideOrder side: Buy or Sell
order_type: OrderTypeOrder type: Market, Limit, etc.
quantity: DecimalOrder quantity
price: Option<Decimal>Limit price (required for limit orders)
time_in_force: Option<TimeInForce>Time in force: GTC, IOC, FOK, etc.
client_order_id: Option<&'a str>Client-provided order ID
Trait Implementations§
Source§impl<'a> Clone for CommonOrderParams<'a>
impl<'a> Clone for CommonOrderParams<'a>
Source§fn clone(&self) -> CommonOrderParams<'a>
fn clone(&self) -> CommonOrderParams<'a>
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<'a> Freeze for CommonOrderParams<'a>
impl<'a> RefUnwindSafe for CommonOrderParams<'a>
impl<'a> Send for CommonOrderParams<'a>
impl<'a> Sync for CommonOrderParams<'a>
impl<'a> Unpin for CommonOrderParams<'a>
impl<'a> UnwindSafe for CommonOrderParams<'a>
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