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/positions
Retrieves positions in a specified account.
Request parameters
| Parameter | Type | Description |
|---|---|---|
| Parameterid | TypeString | DescriptionAccount number. Can occur in the 'location' header only. |
Response properties
| Property | Type | Description |
|---|---|---|
| Propertypositions | TypeComplex | DescriptionList of account records. |
| PropertyNested property, level 2. Position | TypeComplex | Description |
| PropertyNested property, level 3. symbol | TypeString | DescriptionPosition symbol. |
| PropertyNested property, level 3. symbolId | TypeInteger | DescriptionInternal symbol identifier. |
| PropertyNested property, level 3. openQuantity | TypeDouble | DescriptionPosition quantity remaining open. |
| PropertyNested property, level 3. closedQuantity | TypeDouble | DescriptionPortion of the position that was closed today. |
| PropertyNested property, level 3. currentMarketValue | TypeDouble | DescriptionMarket value of the position (quantity x price). |
| PropertyNested property, level 3. currentPrice | TypeDouble | DescriptionCurrent price of the position symbol. |
| PropertyNested property, level 3. averageEntryPrice | TypeDouble | DescriptionAverage price paid for all executions constituting the position. |
| PropertyNested property, level 3. closedPnL | TypeDouble | DescriptionRealized profit/loss on this position. |
| PropertyNested property, level 3. openPnL | TypeDouble | DescriptionUnrealized profit/loss on this position. |
| PropertyNested property, level 3. totalCost | TypeDouble | DescriptionTotal cost of the position. |
| PropertyNested property, level 3. isRealTime | TypeBoolean | DescriptionDesignates whether real-time quote was used to compute PnL. |
| PropertyNested property, level 3. isUnderReorg | TypeBoolean | DescriptionDesignates whether a symbol is currently undergoing a reorg. |
Sample request
GET https://api01.iq.questrade.com/v1/accounts/26598145/positionsSample JSON response
{
"positions": [
{
"symbol": "THI.TO",
"symbolId": 38738,
"openQuantity": 100,
"currentMarketValue": 6017,
"currentPrice": 60.17,
"averageEntryPrice": 60.23,
"closedPnl": 0,
"openPnl": -6,
"totalCost": false,
"isRealTime": "Individual",
"isUnderReorg": false
}
]
}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.


