pub struct UserApi { /* private fields */ }Expand description
User namespace for user-related operations
Implementations§
Source§impl UserApi
impl UserApi
Sourcepub fn list_positions(&self) -> ListPositions
pub fn list_positions(&self) -> ListPositions
List positions for this user
Sourcepub fn positions_value(&self) -> GetPositionValue
pub fn positions_value(&self) -> GetPositionValue
Get total value of this user’s positions
Sourcepub fn closed_positions(&self) -> ListClosedPositions
pub fn closed_positions(&self) -> ListClosedPositions
List closed positions for this user
Sourcepub fn trades(&self) -> ListUserTrades
pub fn trades(&self) -> ListUserTrades
List trades for this user
Sourcepub fn activity(&self) -> ListActivity
pub fn activity(&self) -> ListActivity
List activity for this user
Sourcepub async fn traded(&self) -> Result<UserTraded, DataApiError>
pub async fn traded(&self) -> Result<UserTraded, DataApiError>
Get total markets traded by this user
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserApi
impl !RefUnwindSafe for UserApi
impl Send for UserApi
impl Sync for UserApi
impl Unpin for UserApi
impl !UnwindSafe for UserApi
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