pub struct GetLastTradesByCurrencyParams {
pub currency: DeribitCurrency,
pub kind: Option<DeribitProductType>,
pub start_id: Option<String>,
pub end_id: Option<String>,
pub count: Option<u32>,
pub include_old: Option<bool>,
pub sorting: Option<String>,
}Expand description
Query parameters for /public/get_last_trades_by_currency endpoint.
Mirrors the per-instrument variant but selects trades by currency and (optionally) product kind. Required to backfill combo trades, which are not accessible via the instrument-scoped endpoint.
Fields§
§currency: DeribitCurrencyCurrency to query.
kind: Option<DeribitProductType>Optional product kind filter (e.g., option_combo, future_combo).
start_id: Option<String>First trade ID (inclusive) of the range to fetch.
end_id: Option<String>Last trade ID (inclusive) of the range to fetch.
count: Option<u32>Maximum number of trades to return (default 10, max 1000).
include_old: Option<bool>Whether to include expired-instrument trades.
sorting: Option<String>Direction of results sorting: asc, desc, or default.
Implementations§
Source§impl GetLastTradesByCurrencyParams
impl GetLastTradesByCurrencyParams
Sourcepub fn builder() -> GetLastTradesByCurrencyParamsBuilder
pub fn builder() -> GetLastTradesByCurrencyParamsBuilder
Creates a new builder for GetLastTradesByCurrencyParams.
Sourcepub fn new(currency: DeribitCurrency) -> Self
pub fn new(currency: DeribitCurrency) -> Self
Creates parameters for a specific currency.
Sourcepub fn with_kind(currency: DeribitCurrency, kind: DeribitProductType) -> Self
pub fn with_kind(currency: DeribitCurrency, kind: DeribitProductType) -> Self
Creates parameters for a specific currency and product kind.
Trait Implementations§
Source§impl Clone for GetLastTradesByCurrencyParams
impl Clone for GetLastTradesByCurrencyParams
Source§fn clone(&self) -> GetLastTradesByCurrencyParams
fn clone(&self) -> GetLastTradesByCurrencyParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for GetLastTradesByCurrencyParams
impl<'de> Deserialize<'de> for GetLastTradesByCurrencyParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for GetLastTradesByCurrencyParams
impl RefUnwindSafe for GetLastTradesByCurrencyParams
impl Send for GetLastTradesByCurrencyParams
impl Sync for GetLastTradesByCurrencyParams
impl Unpin for GetLastTradesByCurrencyParams
impl UnsafeUnpin for GetLastTradesByCurrencyParams
impl UnwindSafe for GetLastTradesByCurrencyParams
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more