Struct questrade::Questrade [−][src]
pub struct Questrade { /* fields omitted */ }
Expand description
Questrade client
Implementations
Creates a new API instance with the specified client
Creates a new API instance with the specified auth info.
Creates a new API instance with the specified auth info.
Authenticates using the supplied token.
Retrieves the current authentication info (if set).
List all accounts associated with the authenticated user.
Retrieve account activities, including cash transactions, dividends, trades, etc.
Search for account orders.
Parameters:
- start_time
optional start of time range. Defaults to start of today, 12:00am
- end_time
optional end of time range. Defaults to end of today, 11:59pm
- state_filter
optionally filters order states
pub async fn account_order(
&self,
account_number: &str,
order_id: u32
) -> Result<Option<AccountOrder>, Box<dyn Error>>
pub async fn account_order(
&self,
account_number: &str,
order_id: u32
) -> Result<Option<AccountOrder>, Box<dyn Error>>
Retrieve details for an order with a specific id
Retrieves executions for a specific account.
Parameters:
- start_time
optional start of time range. Defaults to start of today, 12:00am
- end_time
optional end of time range. Defaults to end of today, 11:59pm
pub async fn account_balance(
&self,
account_number: &str
) -> Result<AccountBalances, Box<dyn Error>>
pub async fn account_balance(
&self,
account_number: &str
) -> Result<AccountBalances, Box<dyn Error>>
Retrieves per-currency and combined balances for a specified account.
pub async fn account_positions(
&self,
account_number: &str
) -> Result<Vec<AccountPosition>, Box<dyn Error>>
pub async fn account_positions(
&self,
account_number: &str
) -> Result<Vec<AccountPosition>, Box<dyn Error>>
Retrieves positions in a specified account.
Retrieves a single Level 1 market data quote for one or more symbols.
IMPORTANT NOTE: Questrade user needs to be subscribed to a real-time data package, to receive market quotes in real-time, otherwise call to get quote is considered snap quote and limit per market can be quickly reached. Without real-time data package, once limit is reached, the response will return delayed data. (Please check “delay” parameter in response always)
pub async fn symbol_search(
&self,
prefix: &str,
offset: u32
) -> Result<Vec<SearchEquitySymbol>, Box<dyn Error>>
pub async fn symbol_search(
&self,
prefix: &str,
offset: u32
) -> Result<Vec<SearchEquitySymbol>, Box<dyn Error>>
Searches for the specified symbol.
params
prefix
Prefix of a symbol or any word in the description.offset
Offset in number of records from the beginning of a result set.
Auto Trait Implementations
impl !RefUnwindSafe for Questrade
impl !UnwindSafe for Questrade
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more