Skip to main content

Module api_types

Module api_types 

Source
Expand description

Serde types for Questrade REST API request and response bodies.

Structs§

Account
A Questrade brokerage account.
AccountBalances
Current and start-of-day balances for a Questrade account.
AccountsResponse
Response wrapper for GET /v1/accounts.
ActivitiesResponse
Response wrapper for GET /v1/accounts/:id/activities.
ActivityItem
A single account activity (execution, dividend, deposit, etc.).
Candle
A single OHLCV price bar.
CandleResponse
Response wrapper for GET /v1/markets/candles/:id.
ChainPerRoot
Option contracts for a single root symbol within an expiry.
ChainPerStrike
Call and put symbol IDs at a single strike price.
CombinedBalance
Combined balance across all currencies, expressed in a single currency.
Execution
A single trade execution (fill-level detail) from Questrade.
ExecutionsResponse
Response wrapper for GET /v1/accounts/:id/executions.
MarketInfo
Metadata for a single market / exchange returned by GET /v1/markets.
MarketSnapshot
Real-time open/closed status for a market.
MarketsResponse
Response wrapper for GET /v1/markets.
OptionChainResponse
Response wrapper for GET /v1/symbols/:id/options.
OptionExpiry
Option contracts grouped by expiry date.
OptionQuote
Real-time quote and Greeks for a single option contract.
OptionQuoteRequest
Request body for POST /v1/markets/quotes/options.
OptionQuoteResponse
Response from POST /v1/markets/quotes/options.
OrderItem
A single order from the Questrade orders endpoint.
OrdersResponse
Response wrapper for GET /v1/accounts/:id/orders.
PerCurrencyBalance
Balance snapshot for a single currency.
PositionItem
A single open position in a Questrade account.
PositionsResponse
Response wrapper for GET /v1/accounts/:id/positions.
Quote
Real-time level 1 quote for an equity symbol.
QuoteResponse
Response wrapper for GET /v1/markets/quotes/:id.
ServerTimeResponse
Response wrapper for GET /v1/time.
StrategyLeg
A single leg in a multi-leg option strategy variant.
StrategyQuote
Combined quote and Greeks for a multi-leg option strategy.
StrategyQuoteRequest
Request body for POST /v1/markets/quotes/strategies.
StrategyQuotesResponse
Response from POST /v1/markets/quotes/strategies.
StrategyVariantRequest
A strategy variant to quote, containing one or more legs.
SymbolDetail
Full symbol details returned by GET /v1/symbols/:id.
SymbolDetailResponse
Response wrapper for GET /v1/symbols/:id.
SymbolResult
A single result from a symbol search.
SymbolSearchResponse
Response wrapper for GET /v1/symbols/search.

Enums§

OrderStateFilter
Filter for order state when querying GET /v1/accounts/:id/orders.