pub struct RankingsApi { /* private fields */ }Expand description
Rankings namespace — GET /volume and GET /profit on
lb-api.polymarket.com.
This is a different service from
DataApi::leaderboard, which calls
/v1/leaderboard on the main Data API host and returns a different shape.
This one ranks traders by all-time or windowed volume and profit.
§Stability
This host is not covered by any published Polymarket OpenAPI spec. It
was verified live, but carries no documented compatibility guarantee —
treat it as more likely to change without notice than the rest of this
crate. The base URL is configurable via
DataApiBuilder::rankings_base_url.
Implementations§
Source§impl RankingsApi
impl RankingsApi
Sourcepub fn volume(&self) -> RankingRequest
pub fn volume(&self) -> RankingRequest
Rank traders by traded volume (GET /volume).
Sourcepub fn profit(&self) -> RankingRequest
pub fn profit(&self) -> RankingRequest
Rank traders by realized profit (GET /profit).
Trait Implementations§
Source§impl Clone for RankingsApi
impl Clone for RankingsApi
Source§fn clone(&self) -> RankingsApi
fn clone(&self) -> RankingsApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RankingsApi
impl !UnwindSafe for RankingsApi
impl Freeze for RankingsApi
impl Send for RankingsApi
impl Sync for RankingsApi
impl Unpin for RankingsApi
impl UnsafeUnpin for RankingsApi
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