pub struct ListComboPositions { /* private fields */ }Expand description
Request builder for listing combo positions.
Implementations§
Source§impl ListComboPositions
impl ListComboPositions
Sourcepub fn status(self, statuses: impl IntoIterator<Item = ComboStatus>) -> Self
pub fn status(self, statuses: impl IntoIterator<Item = ComboStatus>) -> Self
Filter by one or more resolution statuses.
Omit for the default listing (open positions plus resolved positions
with a recorded resolution). ComboStatus::Unknown is dropped, since
the upstream API has no matching value to filter on.
Sourcepub fn market_id(self, ids: impl IntoIterator<Item = impl ToString>) -> Self
pub fn market_id(self, ids: impl IntoIterator<Item = impl ToString>) -> Self
Filter by combo condition ID(s) (0x + 62 hex).
Sourcepub fn offset(self, offset: u32) -> Self
pub fn offset(self, offset: u32) -> Self
Set the pagination offset (0-100000, default: 0).
Ignored when cursor is set.
Sourcepub fn updated_after(self, timestamp: i64) -> Self
pub fn updated_after(self, timestamp: i64) -> Self
Incremental-sync watermark (epoch seconds, inclusive): return only rows
whose updated_at is at or after this time.
Positions mutate on resolution and redemption, so this catches changes a
creation-time filter cannot. Pair with
ComboSort::UpdatedAsc.
Sourcepub fn updated_before(self, timestamp: i64) -> Self
pub fn updated_before(self, timestamp: i64) -> Self
Optional upper bound (epoch seconds, inclusive) for updated_at.
Clamped to the safety lag; must be greater than or equal to
updated_after.
Sourcepub async fn send(self) -> Result<CombosResponse, DataApiError>
pub async fn send(self) -> Result<CombosResponse, DataApiError>
Execute the request.