Documentation

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

GET accounts/:id/positions

Retrieves positions in a specified account.

Request parameters
ParameterTypeDescription
id
String
Account number.
Can occur in the 'location' header only.
Response properties
PropertyTypeDescription
positions
Complex
List of account records.
Position
Complex
 
symbol
String
Position symbol.
symbolId
Integer
Internal symbol identifier.
openQuantity
Double
Position quantity remaining open.
closedQuantity
Double
Portion of the position that was closed today.
currentMarketValue
Double
Market value of the position (quantity x price).
currentPrice
Double
Current price of the position symbol.
averageEntryPrice
Double
Average price paid for all executions constituting the position.
closedPnL
Double
Realized profit/loss on this position.
openPnL
Double
Unrealized profit/loss on this position.
totalCost
Double
Total cost of the position.
isRealTime
Boolean
Designates whether real-time quote was used to compute PnL.
isUnderReorg
Boolean
Designates whether a symbol is currently undergoing a reorg.

Sample request

 
GET https://api01.iq.questrade.com/v1/accounts/26598145/positions
   

Sample 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

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
Start a free trial

Try out the features of your application in a simulated environment without affecting your real positions.

Get Started
See All