[−][src]Struct alpaca_client::client::Client
Fields
auth: Auth
account_type: AccountType
Implementations
impl Client
[src]
pub fn new(access: String, secret: String, account_type: AccountType) -> Client
[src]
pub fn get_account(&self) -> Account
[src]
pub fn get_all_orders(&self) -> Vec<Order>
[src]
pub fn place_order(&self, _order: Order) -> Order
[src]
pub fn get_order(&self, id: Uuid) -> Order
[src]
pub fn replace_order(&self, _order: Order) -> Order
[src]
pub fn cancel_order(&self, id: Uuid)
[src]
pub fn cancel_all_orders(&self)
[src]
pub fn get_open_positions(&self) -> Vec<Position>
[src]
pub fn get_open_position(&self, symbol: String) -> Position
[src]
pub fn close_all_positions(&self)
[src]
pub fn close_position(&self, symbol: String)
[src]
pub fn get_clock(&self) -> Clock
[src]
pub fn get_calender(&self) -> Vec<Calendar>
[src]
pub fn get_assets(&self) -> Vec<Asset>
[src]
pub fn get_asset(&self, symbol: String) -> Asset
[src]
pub fn get_account_configuration(&self) -> AccountConfiguration
[src]
pub fn update_account_configuration(
&self,
account: AccountConfiguration
) -> AccountConfiguration
[src]
&self,
account: AccountConfiguration
) -> AccountConfiguration
pub fn get_bar(&self, bar_request: BarRequest) -> HashMap<String, Vec<Bar>>
[src]
pub fn get_last_trade(&self, symbol: String) -> LastStockTrade
[src]
pub fn get_last_quote(&self, symbol: String) -> LastQuote
[src]
pub fn get_url(&self) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl Sync for Client
[src]
impl Unpin for Client
[src]
impl UnwindSafe for Client
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,