Documentation
The Questrade API allows developers to create their own fully featured trading and analytical applications through their brokerage account.
REST operations
GET accounts/:id/activities
Retrieve account activities, including cash transactions, dividends, trades, etc.
Request parameters
| Name | Tipe | Default | Description |
|---|---|---|---|
| Nameid | TypeString | Default | DescriptionThe account number |
| NamestartTime | TypeDateTime | Default | DescriptionThe start time of the interval to retrieve orders |
| NameendTime | TypeDateTime | Default | DescriptionThe end time of the interval to retrieve orders |
Response properties
| Property | Type | Description |
|---|---|---|
| Propertyactivities | TypeArray | DescriptionArray of activity records |
| PropertyAccountActivity | TypeComplex | Description |
| PropertyNested property, level 2. tradeDate | TypeDateTime | DescriptionTrade date |
| PropertyNested property, level 2. transactionDate | TypeDateTime | DescriptionTransaction date |
| PropertyNested property, level 2. settlementDate | TypeDateTime | DescriptionSettlement date |
| PropertyNested property, level 2. action | TypeString | DescriptionActivity action |
| PropertyNested property, level 2. symbol | TypeString | DescriptionSymbol name |
| PropertyNested property, level 2. symbolId | Typeuint64 | DescriptionSymbol ID |
| PropertyNested property, level 2. description | TypeString | DescriptionDescription |
| PropertyNested property, level 2. currency | TypeEnumeration | DescriptionCurrency |
| PropertyNested property, level 2. quantity | TypeDouble | DescriptionThe quantity |
| PropertyNested property, level 2. price | TypeDouble | DescriptionThe price |
| PropertyNested property, level 2. grossAmount | TypeDouble | DescriptionGross amount |
| PropertyNested property, level 2. commission | TypeDouble | DescriptionThe commission |
| PropertyNested property, level 2. netAmount | TypeDouble | DescriptionNet Amount |
| PropertyNested property, level 2. type | TypeString | DescriptionActivity Type |
Maximum 31 days of data can be requested at a time.
Sample request
GET https://api01.iq.questrade.com/v1/accounts/26598145/activities?startTime=2011-02-01T00:00:00-05:00&endTime=2011-02-28T00:00:00-05:00&Sample response:
{
"activities": [
{
"tradeDate": "2011-02-16T00:00:00.000000-05:00",
"transactionDate": "2011-02-16T00:00:00.000000-05:00",
"settlementDate": "2011-02-16T00:00:00.000000-05:00",
"action": "",
"symbol": "",
"symbolId": 0,
"description": "INT FR 02/04 THRU02/15@ 4 3/4%BAL 205,006 AVBAL 204,966",
"currency": "USD",
"quantity": 0,
"price": 0,
"grossAmount": 0,
"commission": 0,
"netAmount": -320.08,
"type": "Interest"
},
...
]
}Already a Questrade client?
Create your first application using your Questrade account.
Integrate your application with Questrade API
Support
If you are using an api app developed by a third party, you are required to read, understand and accept the end-user license agreement for application program interface. If you are utilizing api access for an api-enabled app you built, you are required to read, understand and accept the Questrade personal application program interface ("api") license agreement ("license agreement"). This agreement can be found below. You may be bound by both agreements.


