pub struct MemberService { /* private fields */ }Expand description
Member service for accessing member ranking data.
Implementations§
Source§impl MemberService
impl MemberService
Sourcepub async fn get_daily_ranking(
&self,
req: &DailyRankingRequest,
opts: Option<RequestOptions>,
) -> Result<DailyRankingResponse>
pub async fn get_daily_ranking( &self, req: &DailyRankingRequest, opts: Option<RequestOptions>, ) -> Result<DailyRankingResponse>
Get daily trading ranking.
Returns volume, buy position, and sell position rankings for a contract on a specific date.
§Arguments
req- Request with variety_id, contract_id, trade_date, and trade_typeopts- Optional request options
Sourcepub async fn get_phase_ranking(
&self,
req: &PhaseRankingRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<PhaseRanking>>
pub async fn get_phase_ranking( &self, req: &PhaseRankingRequest, opts: Option<RequestOptions>, ) -> Result<Vec<PhaseRanking>>
Get phase (period) trading ranking.
Returns member rankings for a date range.
§Arguments
req- Request with variety, start_month, end_month, and trade_typeopts- Optional request options
Trait Implementations§
Source§impl Clone for MemberService
impl Clone for MemberService
Source§fn clone(&self) -> MemberService
fn clone(&self) -> MemberService
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for MemberService
impl !RefUnwindSafe for MemberService
impl Send for MemberService
impl Sync for MemberService
impl Unpin for MemberService
impl !UnwindSafe for MemberService
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