pub struct ListTrades { /* private fields */ }Expand description
Request builder for listing trades
Implementations§
Source§impl ListTrades
impl ListTrades
Sourcepub fn user(self, user: impl Into<String>) -> Self
pub fn user(self, user: impl Into<String>) -> Self
Filter by user address (0x-prefixed, 40 hex chars)
Sourcepub fn market(
self,
condition_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn market( self, condition_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by market condition IDs (comma-separated)
Note: Mutually exclusive with event_id
Sourcepub fn event_id(
self,
event_ids: impl IntoIterator<Item = impl ToString>,
) -> Self
pub fn event_id( self, event_ids: impl IntoIterator<Item = impl ToString>, ) -> Self
Filter by event IDs (comma-separated)
Note: Mutually exclusive with market
Sourcepub fn taker_only(self, taker_only: bool) -> Self
pub fn taker_only(self, taker_only: bool) -> Self
Filter for taker trades only (default: true)
Sourcepub fn filter_type(self, filter_type: TradeFilterType) -> Self
pub fn filter_type(self, filter_type: TradeFilterType) -> Self
Set filter type (must be paired with filter_amount)
Sourcepub fn filter_amount(self, amount: f64) -> Self
pub fn filter_amount(self, amount: f64) -> Self
Set filter amount (must be paired with filter_type)
Auto Trait Implementations§
impl Freeze for ListTrades
impl !RefUnwindSafe for ListTrades
impl Send for ListTrades
impl Sync for ListTrades
impl Unpin for ListTrades
impl UnsafeUnpin for ListTrades
impl !UnwindSafe for ListTrades
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