pub struct AccountClient { /* private fields */ }Implementations§
Source§impl AccountClient
impl AccountClient
pub fn new( base_url: String, api_key: SensitiveString, api_secret: SensitiveString, ) -> Self
Source§impl AccountClient
impl AccountClient
Sourcepub async fn account_information(
&self,
params: GetAccountInformationParams,
) -> Result<Response<AccountInformation>, Error>
pub async fn account_information( &self, params: GetAccountInformationParams, ) -> Result<Response<AccountInformation>, Error>
Get current account information.
Sourcepub async fn query_order(
&self,
params: QueryOrderParams,
) -> Result<Response<Order>, Error>
pub async fn query_order( &self, params: QueryOrderParams, ) -> Result<Response<Order>, Error>
Check an order’s status. Notes: Either orderId or origClientOrderId must be sent. If both orderId and origClientOrderId are provided, the orderId is searched first, then the origClientOrderId from that result is checked against that order. If both conditions are not met the request will be rejected. For some historical orders cummulativeQuoteQty will be < 0, meaning the data is not available at this time.
Auto Trait Implementations§
impl Freeze for AccountClient
impl !RefUnwindSafe for AccountClient
impl !Send for AccountClient
impl !Sync for AccountClient
impl Unpin for AccountClient
impl !UnwindSafe 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