[][src]Struct alpaca_client::client::Client

pub struct Client {
    pub auth: Auth,
    pub account_type: AccountType,
}

Fields

auth: Authaccount_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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,