pub struct ListHolders { /* private fields */ }Expand description
Request builder for getting top holders
Implementations§
Source§impl ListHolders
impl ListHolders
Sourcepub fn limit(self, limit: u32) -> Self
pub fn limit(self, limit: u32) -> Self
Set maximum number of results per market (1-500, default: 20).
Verified live on 2026-08-03: omitting the parameter yields 20 rows, and
limit=500 succeeds. Values above the ceiling are clamped, not
rejected — limit=5000 returns HTTP 200 with the response silently
truncated to 500 rows per token, so a caller cannot tell from the status
code that it asked for more than it got.
This is a behavior change. Until at least 2026-07-25 the venue returned
HTTP 400 {"error":"max holders limit of 500 exceeded"} for limit=501.
limit=0 is a trap: the venue answers with a bare null body rather
than [], which fails to deserialize into Vec<MarketHolders> and so
surfaces as an error rather than an empty list.
The value is not range-checked here — it is passed through to the venue.
Sourcepub fn min_balance(self, min_balance: u32) -> Self
pub fn min_balance(self, min_balance: u32) -> Self
Set minimum balance filter (0-999999, default: 1)
Sourcepub async fn send(self) -> Result<Vec<MarketHolders>, DataApiError>
pub async fn send(self) -> Result<Vec<MarketHolders>, DataApiError>
Execute the request