pub struct OrderPriceLimitRequest<'a> {
pub category: Option<Category>,
pub symbol: Cow<'a, str>,
}Expand description
Parameters for requesting order price limits.
This struct defines the parameters for querying order price limits via Bybit’s /v5/market/price-limit endpoint.
Order price limits define the highest bid price (buyLmt) and lowest ask price (sellLmt) for a given symbol.
Fields§
§category: Option<Category>The product category (e.g., Spot, Linear, Inverse).
Specifies the type of instrument for the price limit data.
Valid values: spot, linear, inverse.
If not specified, defaults to linear.
symbol: Cow<'a, str>The trading pair symbol (e.g., “BTCUSDT”).
Identifies the specific instrument for which to retrieve price limits. Must be uppercase (e.g., “BTCUSDT”, not “btcusdt”).
Implementations§
Source§impl<'a> OrderPriceLimitRequest<'a>
impl<'a> OrderPriceLimitRequest<'a>
Sourcepub fn default() -> OrderPriceLimitRequest<'a>
pub fn default() -> OrderPriceLimitRequest<'a>
Creates a default order price limit request for BTCUSDT.
Returns an OrderPriceLimitRequest with symbol set to "BTCUSDT" and no category specified.
This will default to linear category when sent to the API.
Sourcepub fn new(
category: Option<Category>,
symbol: &'a str,
) -> OrderPriceLimitRequest<'a>
pub fn new( category: Option<Category>, symbol: &'a str, ) -> OrderPriceLimitRequest<'a>
Constructs a new order price limit request with specified parameters.
§Arguments
category- Optional product category (spot, linear, inverse)symbol- The trading pair symbol (e.g., “BTCUSDT”)
Sourcepub fn linear(symbol: &'a str) -> OrderPriceLimitRequest<'a>
pub fn linear(symbol: &'a str) -> OrderPriceLimitRequest<'a>
Constructs a new order price limit request for linear perpetual contracts.
§Arguments
symbol- The trading pair symbol (e.g., “BTCUSDT”)
Sourcepub fn inverse(symbol: &'a str) -> OrderPriceLimitRequest<'a>
pub fn inverse(symbol: &'a str) -> OrderPriceLimitRequest<'a>
Constructs a new order price limit request for inverse perpetual contracts.
§Arguments
symbol- The trading pair symbol (e.g., “BTCUSD”)
Sourcepub fn spot(symbol: &'a str) -> OrderPriceLimitRequest<'a>
pub fn spot(symbol: &'a str) -> OrderPriceLimitRequest<'a>
Constructs a new order price limit request for spot trading.
§Arguments
symbol- The trading pair symbol (e.g., “BTCUSDT”)
Trait Implementations§
Source§impl<'a> Clone for OrderPriceLimitRequest<'a>
impl<'a> Clone for OrderPriceLimitRequest<'a>
Source§fn clone(&self) -> OrderPriceLimitRequest<'a>
fn clone(&self) -> OrderPriceLimitRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more