Skip to main content

ListSharpMoneyFlowsParams

Struct ListSharpMoneyFlowsParams 

Source
#[non_exhaustive]
pub struct ListSharpMoneyFlowsParams { pub timeframe: Option<Timeframe>, pub limit: Option<i64>, pub cursor: Option<String>, pub category: Option<String>, pub platform: Option<Platform>, pub min_grade: Option<Grade>, pub direction: Option<Direction>, pub condition_id: Option<String>, pub event_slug: Option<String>, pub if_none_match: Option<String>, }
Expand description

Optional parameters for Client::list_sharp_money_flows (GET /api/v1/markets/sharp-money-flows).

Start from Default::default() and set what you need, through the field or the chainable setter of the same name.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§timeframe: Option<Timeframe>

Lookback window for grade-filtered whale flow aggregation.

§limit: Option<i64>

Page size. Out-of-range values are clamped to 1..100.

§cursor: Option<String>

Opaque cursor from previous response’s next_cursor. Encodes the first-page as_of timestamp, normalized effective filters, ranking and aggregate collection revisions, plus the last row’s absolute net flow and condition_id. A changed filter or collection returns cursor_expired; request the first page again.

§category: Option<String>

Filter by market category (case-insensitive). A canonical bucket name (e.g. Basketball) matches every provider member that folds into it (NBA, WNBA, NCAAB); a raw provider value also resolves to its bucket. Sports and esports only (#27306): a category outside them returns 400 bad_request with param category and names the accepted buckets.

§platform: Option<Platform>

Filter by source platform. all is a request-side no-op.

§min_grade: Option<Grade>

Minimum latest trader grade included in the flow. Default B means S/A/B only; unranked traders are excluded.

§direction: Option<Direction>

Optional post-aggregate flow direction filter.

§condition_id: Option<String>

Only this market’s flow: an exact raw provider condition_id. Cannot be combined with event_slug (400). An unknown market returns an empty list.

§event_slug: Option<String>

Only the markets of one game: every market of the game behind this event slug, the moneyline, spreads, totals and props, as GET /api/v1/games/{event_slug}/trades reads them, ranked as the unfiltered list ranks. Matched case-insensitively; cannot be combined with condition_id (400). An unknown slug answers 404 not_found with error.param event_slug.

§if_none_match: Option<String>

Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.

Sent as the If-None-Match header.

Implementations§

Source§

impl ListSharpMoneyFlowsParams

Source

pub fn timeframe(self, value: Timeframe) -> Self

Sets timeframe.

Source

pub fn limit(self, value: i64) -> Self

Sets limit.

Source

pub fn cursor(self, value: impl Into<String>) -> Self

Sets cursor.

Source

pub fn category(self, value: impl Into<String>) -> Self

Sets category.

Source

pub fn platform(self, value: Platform) -> Self

Sets platform.

Source

pub fn min_grade(self, value: Grade) -> Self

Sets min_grade.

Source

pub fn direction(self, value: Direction) -> Self

Sets direction.

Source

pub fn condition_id(self, value: impl Into<String>) -> Self

Sets condition_id.

Source

pub fn event_slug(self, value: impl Into<String>) -> Self

Sets event_slug.

Source

pub fn if_none_match(self, value: impl Into<String>) -> Self

Sets If-None-Match.

Trait Implementations§

Source§

impl Clone for ListSharpMoneyFlowsParams

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CursorParams for ListSharpMoneyFlowsParams

Source§

fn set_cursor(&mut self, cursor: Option<String>)

Set the cursor the next request starts from.
Source§

impl Debug for ListSharpMoneyFlowsParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListSharpMoneyFlowsParams

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ListSharpMoneyFlowsParams

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ListSharpMoneyFlowsParams

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more