pub struct AccountClient { /* private fields */ }Implementations§
Source§impl AccountClient
impl AccountClient
pub fn new(api_key: Option<String>, secret_key: Option<String>) -> Self
pub fn get_account(&self) -> Result<AccountInfo>
pub fn get_positions(&self) -> Result<Vec<Position>>
pub fn change_account_leverage(&self, leverage: i64) -> Result<bool>
Trait Implementations§
Source§impl Clone for AccountClient
impl Clone for AccountClient
Source§fn clone(&self) -> AccountClient
fn clone(&self) -> AccountClient
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 AccountClient
impl !UnwindSafe for AccountClient
impl Freeze for AccountClient
impl Send for AccountClient
impl Sync for AccountClient
impl Unpin for AccountClient
impl UnsafeUnpin for AccountClient
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