pub struct Client {
pub auth: Auth,
pub account_type: AccountType,
}
Fields§
§auth: Auth
§account_type: AccountType
Implementations§
Source§impl Client
impl Client
pub fn new(access: String, secret: String, account_type: AccountType) -> Client
pub fn get_account(&self) -> Account
pub fn get_all_orders(&self) -> Vec<Order>
pub fn place_order(&self, _order: Order) -> Order
pub fn get_order(&self, id: Uuid) -> Order
pub fn replace_order(&self, _order: Order) -> Order
pub fn cancel_order(&self, id: Uuid)
pub fn cancel_all_orders(&self)
pub fn get_open_positions(&self) -> Vec<Position>
pub fn get_open_position(&self, symbol: String) -> Position
pub fn close_all_positions(&self)
pub fn close_position(&self, symbol: String)
pub fn get_clock(&self) -> Clock
pub fn get_calender(&self) -> Vec<Calendar>
pub fn get_assets(&self) -> Vec<Asset>
pub fn get_asset(&self, symbol: String) -> Asset
pub fn get_account_configuration(&self) -> AccountConfiguration
pub fn update_account_configuration( &self, account: AccountConfiguration, ) -> AccountConfiguration
pub fn get_bar(&self, bar_request: BarRequest) -> HashMap<String, Vec<Bar>>
pub fn get_last_trade(&self, symbol: String) -> LastStockTrade
pub fn get_last_quote(&self, symbol: String) -> LastQuote
pub fn get_url(&self) -> String
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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