Young man smiling

Documentation

The Questrade API allows developers to create their own fully featured trading and analytical applications through their brokerage account.

Enumerations

Currency

The following table specifies all supported currency codes.

TypeDescription
USDUS dollar.
CADCanadian dollar.

Listing Exchange

The following table specifies all supported listing exchanges.

TypeDescription
TSXToronto Stock Exchange.
TSXVToronto Venture Exchange.
CNSXCanadian National Stock Exchange.
MXMontreal Exchange.
NASDAQNASDAQ.
NYSENew York Stock Exchange.
NYSEAMNYSE AMERICAN
ARCANYSE Arca.
OPRAOption Reporting Authority.
PinkSheetsPink Sheets.
OTCBBOTC Bulletin Board.

Account Type

The following table specifies all supported user account types.

TypeDescription
CashCash account.
MarginMargin account.
TFSATax Free Savings Account.
RRSPRegistered Retirement Savings Plan.
FHSAFirst Home Savings Account.
SRRSPSpousal RRSP.
LRRSPLocked-In RRSP.
LIRALocked-In Retirement Account.
LIFLife Income Fund.
RIFRetirement Income Fund.
SRIFSpousal RIF.
LRIFLocked-In RIF.
RRIFRegistered RIF.
PRIFPrescribed RIF.
RESPIndividual Registered Education Savings Plan.
FRESPFamily RESP.

Client Account Type

The following table specifies all supported account client types.

TypeDescription
IndividualAccount held by an individual.
JointAccount held jointly by several individuals (e.g., spouses).
Informal TrustNon-individual account held by an informal trust.
CorporationNon-individual account held by a corporation.
Formal TrustNon-individual account held by a formal trust.
PartnershipNon-individual account held by a partnership.
Sole ProprietorshipNon-individual account held by a sole proprietorship.
FamilyAccount held by a family.
Joint and Informal TrustNon-individual account held by a joint and informal trust.
InstitutionNon-individual account held by an institution.

Account Status

The following table specifies all supported account status values.

Type
Active
Suspended (Closed)
Suspended (View Only)
Liquidate Only
Closed

Tick Type

The following table specifies all supported market data tick types.

TypeDescription
UpDesignates an uptick.
DownDesignates a downtick.
EqualDesignates a tick that took place at the same price as a previous one.

Option Type

The following table specifies all supported option types.

TypeDescription
CallCall option.
PutPut option.

Option Duration Type

The following table specifies all supported option duration types.

TypeDescription
WeeklyWeekly expiry cycle.
MonthlyMonthly expiry cycle.
QuarterlyQuarterly expiry cycle.
LEAPLong-term Equity Appreciation contracts.

Option Exercise Type

The following table specifies all supported option exercise types.

TypeDescription
AmericanAmerican option.
EuropeanEuropean option.

Security Type

The following table specifies all supported security types.

TypeDescription
StockCommon and preferred equities, ETFs, ETNs, units, ADRs, etc.
OptionEquity and index options.
BondDebentures, notes, bonds, both corporate and government.
RightEquity or bond rights and warrants.
GoldPhysical gold (coins, wafers, bars).
MutualFundCanadian or US mutual funds.
IndexStock indices (e.g., Dow Jones).

Order State Filter Type

The following table specifies all supported order state filter types.

TypeDescription
AllIncludes all orders, regardless of their state.
OpenIncludes only orders that are still open.
ClosedIncludes only orders that are already closed.

Order Action

The following table specifies all supported order side values.

TypeDescription
BuyDesignates an order to purchase a security.
SellDesignates an order to dispose a security.

Order Side

The following table specifies all supported client order side values.

TypeDescription
BuyBuy
SellSell
ShortSell short.
CovCover the short.
BTOBuy-To-Open.
STCSell-To-Close.
STOSell-To-Open.
BTCBuy-To-Close.

Order Type

The following table specifies all supported order types.

Type
Market
Limit
Stop
StopLimit
TrailStopInPercentage
TrailStopInDollar
TrailStopLimitInPercentage
TrailStopLimitInDollar
LimitOnOpen
LimitOnClose

Order Time-In-Force

The following table specifies all supported order Time-In-Force instructions.

Type
Day
GoodTillCanceled
GoodTillExtendedDay
GoodTillDate
ImmediateOrCancel
FillOrKill

Order State

The following table specifies all supported order states.

Type
Failed
Pending
Accepted
Rejected
CancelPending
Canceled
PartialCanceled
Partial
Executed
ReplacePending
Replaced
Stopped
Suspended
Expired
Queued
Triggered
Activated
PendingRiskReview
ContingentOrder

Historical Data Granularity

The following table specifies all supported order execution status values.

TypeDescription
OneMinuteOne candlestick per 1 minute.
TwoMinutesOne candlestick per 2 minutes.
ThreeMinutesOne candlestick per 3 minutes.
FourMinutesOne candlestick per 4 minutes.
FiveMinutesOne candlestick per 5 minutes.
TenMinutesOne candlestick per 10 minutes.
FifteenMinutesOne candlestick per 15 minutes.
TwentyMinutesOne candlestick per 20 minutes.
HalfHourOne candlestick per 30 minutes.
OneHourOne candlestick per 1 hour.
TwoHoursOne candlestick per 2 hours.
FourHoursOne candlestick per 4 hours.
OneDayOne candlestick per 1 day.
OneWeekOne candlestick per 1 week.
OneMonthOne candlestick per 1 month.
OneYearOne candlestick per 1 year.

Order Class

The following table specifies all supported bracket order components.

TypeDescription
PrimaryPrimary order
LimitProfit exit order
StopLossLoss exit order

Strategy Types

The following types of strategies are supported for multi-leg strategy orders

TypeDescription
CoveredCallCovered Call
MarriedPutsMarried Put
VerticalCallSpreadVertical Call
VerticalPutSpreadVertical Put
CalendarCallSpreadCalendar Call
CalendarPutSpreadCalendar Put
DiagonalCallSpreadDiagonal Call
DiagonalPutSpreadDiagonal Put
CollarCollar
StraddleStraddle
StrangleStrangle
ButterflyCallButterfly Call
ButterflyPutButterfly Put
IronButterflyIron Butterfly
CondorCallCondor
CustomCustom, or user defined

Already a Questrade client?

Create your first application using your Questrade account.

Integrate your application with Questrade API

Support

Report an issue

Have questions about Questrade's API? Tell us how we can help, send us an email.

Get Started

Request a feature

We want your ideas on how we can improve our API. If you have a suggestion for a minor tweak, a major overhaul, or something brand new, please share it with us.

Get Started
See All