pub struct ADLAlertRequest<'a> {
pub symbol: Option<Cow<'a, str>>,
}Expand description
Parameters for requesting ADL (Auto-Deleveraging) alert data.
This struct defines the parameters for querying ADL alerts via the
/v5/market/adlAlert endpoint. ADL is a risk management mechanism
that automatically closes positions when the insurance pool balance
reaches certain thresholds to prevent systemic risk.
§Important Notes
- Data update frequency is every 1 minute
- Covers: USDT Perpetual, USDT Delivery, USDC Perpetual, USDC Delivery, Inverse Contracts
- The
symbolparameter is optional; if not provided, returns all symbols
Fields§
§symbol: Option<Cow<'a, str>>The trading symbol (e.g., “BTCUSDT”).
Specifies the contract to filter ADL alerts. This parameter is optional. If not provided, the endpoint returns ADL alerts for all symbols. Must be in uppercase.
Implementations§
Source§impl<'a> ADLAlertRequest<'a>
impl<'a> ADLAlertRequest<'a>
Sourcepub fn default() -> ADLAlertRequest<'a>
pub fn default() -> ADLAlertRequest<'a>
Creates a default ADLAlert request.
Returns a request with no symbol filter (returns all symbols). Suitable for getting a complete overview of ADL alerts across all symbols.
Sourcepub fn new(symbol: Option<&'a str>) -> ADLAlertRequest<'a>
pub fn new(symbol: Option<&'a str>) -> ADLAlertRequest<'a>
Constructs a new ADLAlert request with specified parameters.
Allows customization of the request parameters. Bots should use this to specify an optional symbol filter for ADL alert queries.
§Arguments
symbol- Optional symbol filter (e.g., “BTCUSDT”, “ETHUSDT”)
Sourcepub fn for_symbol(symbol: &'a str) -> ADLAlertRequest<'a>
pub fn for_symbol(symbol: &'a str) -> ADLAlertRequest<'a>
Constructs a new ADLAlert request for a specific symbol.
Convenience method for creating requests filtered by a specific symbol.
§Arguments
symbol- The symbol to filter by (e.g., “BTCUSDT”, “ETHUSDT”)
Sourcepub fn all_symbols() -> ADLAlertRequest<'a>
pub fn all_symbols() -> ADLAlertRequest<'a>
Constructs a new ADLAlert request for all symbols.
Convenience method for creating requests without symbol filtering.
Sourcepub fn with_symbol(self, symbol: &'a str) -> Self
pub fn with_symbol(self, symbol: &'a str) -> Self
Sets the symbol filter for the request.
Returns a new request with the specified symbol filter.
Sourcepub fn without_symbol(self) -> Self
pub fn without_symbol(self) -> Self
Removes the symbol filter from the request.
Returns a new request without symbol filtering.
Sourcepub fn btcusdt() -> ADLAlertRequest<'a>
pub fn btcusdt() -> ADLAlertRequest<'a>
Creates an ADLAlertRequest for BTCUSDT.
Convenience method for creating requests for BTCUSDT.
Sourcepub fn ethusdt() -> ADLAlertRequest<'a>
pub fn ethusdt() -> ADLAlertRequest<'a>
Creates an ADLAlertRequest for ETHUSDT.
Convenience method for creating requests for ETHUSDT.
Sourcepub fn solusdt() -> ADLAlertRequest<'a>
pub fn solusdt() -> ADLAlertRequest<'a>
Creates an ADLAlertRequest for SOLUSDT.
Convenience method for creating requests for SOLUSDT.
Sourcepub fn xrpusdt() -> ADLAlertRequest<'a>
pub fn xrpusdt() -> ADLAlertRequest<'a>
Creates an ADLAlertRequest for XRPUSDT.
Convenience method for creating requests for XRPUSDT.
Sourcepub fn adausdt() -> ADLAlertRequest<'a>
pub fn adausdt() -> ADLAlertRequest<'a>
Creates an ADLAlertRequest for ADAUSDT.
Convenience method for creating requests for ADAUSDT.
Trait Implementations§
Source§impl<'a> Clone for ADLAlertRequest<'a>
impl<'a> Clone for ADLAlertRequest<'a>
Source§fn clone(&self) -> ADLAlertRequest<'a>
fn clone(&self) -> ADLAlertRequest<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more