pub struct LotSizeFilter {
pub base_precision: Option<f64>,
pub quote_precision: Option<f64>,
pub max_mkt_order_qty: Option<f64>,
pub min_order_qty: f64,
pub max_order_qty: f64,
pub min_order_amt: Option<f64>,
pub max_order_amt: Option<f64>,
pub qty_step: Option<f64>,
pub post_only_max_order_qty: Option<f64>,
pub min_notional_value: Option<f64>,
}Expand description
Lot size constraints for an instrument.
Defines the allowable order quantity ranges and increments. Bots must use these to place valid orders in perpetual futures.
Fields§
§base_precision: Option<f64>The base asset precision (optional).
The precision for the base asset quantity (e.g., "0.001" for BTC). Bots should use this to format order quantities correctly.
quote_precision: Option<f64>The quote asset precision (optional).
The precision for the quote asset amount. Useful for calculating order values in USDT for linear perpetuals.
max_mkt_order_qty: Option<f64>The maximum market order quantity (optional).
The largest quantity allowed for market orders. Bots should check this to avoid oversized market orders, which could be rejected or cause slippage.
min_order_qty: f64The minimum order quantity.
The smallest quantity allowed for orders. Bots must ensure order sizes are at least this value to avoid rejections.
max_order_qty: f64The maximum order quantity.
The largest quantity allowed for orders. Bots should cap order sizes to this value to comply with Bybit’s rules.
min_order_amt: Option<f64>The minimum order amount (optional).
The smallest order value in the quote asset (e.g., USDT). Bots should verify order values meet this threshold.
max_order_amt: Option<f64>The maximum order amount (optional).
The largest order value in the quote asset. Bots should ensure order values are below this to avoid rejections.
qty_step: Option<f64>The quantity step size (optional).
The increment for order quantities. Bots must round order sizes to this step to comply with Bybit’s rules.
post_only_max_order_qty: Option<f64>The maximum post-only order quantity (optional).
The largest quantity for post-only orders. Bots using post-only orders (maker-only) should respect this limit.
min_notional_value: Option<f64>The minimum notional value (optional).
The smallest notional value (price × quantity) for orders. Bots should verify orders meet this to avoid rejections.
Trait Implementations§
Source§impl Clone for LotSizeFilter
impl Clone for LotSizeFilter
Source§fn clone(&self) -> LotSizeFilter
fn clone(&self) -> LotSizeFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more