SIGN-UP ENDS NOV 2: New and existing clients get up to $1,000 bonus at Questrade. New clients use code GET1000. Learn more.

(opens in a new tab)

Documentation

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

GET accounts/:id/balances

Retrieves per-currency and combined balances for a specified account.

Request parameters

Request parameters
ParameteridTypeStringDescriptionAccount number. Can occur in the 'location' header only.

Response properties

Response properties
PropertyperCurrencyBalancesTypeComplexDescriptionList of account records.
PropertyNested property, level 2. BalanceTypeComplexDescriptionSee below.
PropertycombinedBalancesTypeComplexDescriptionList of Balance records.
PropertyNested property, level 2. BalanceTypeComplexDescriptionSee below.
PropertyNested property, level 2. sodPerCurrencyBalancesTypeComplexDescriptionList of Balance records.
PropertyNested property, level 2. BalanceTypeComplexDescriptionSee below.
PropertysodCombinedBalancesTypeComplexDescriptionList of Balance records.
PropertyNested property, level 2. BalanceTypeComplexDescription
PropertyNested property, level 3. currencyTypeEnumerationDescriptionCurrency of the balance figure(e.g., "USD" or "CAD"). See Currency section for all allowed values.
PropertyNested property, level 3. cashTypeDoubleDescriptionBalance amount.
PropertyNested property, level 3. marketValueTypeDoubleDescriptionMarket value of all securities in the account in a given currency.
PropertyNested property, level 3. totalEquityTypeDoubleDescriptionEquity as a difference between cash and marketValue properties.
PropertyNested property, level 3. buyingPowerTypeDoubleDescriptionBuying power for that particular currency side of the account.
PropertyNested property, level 3. maintenanceExcessTypeDoubleDescriptionMaintenance excess for that particular side of the account.
PropertyNested property, level 3. isRealTimeTypeBooleanDescriptionWhether real-time data was used to calculate the above values.

Sample request

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

Sample JSON response

JSON
{
     "perCurrencyBalances": [
         {
              "currency": "CAD",
               "cash": 243971.7,
               "marketValue":  6017,
               "totalEquity":  249988.7,
               "buyingPower": 496367.2,
               "maintenanceExcess": 248183.6,
              "isRealTime": false
         },
         {
              "currency": "USD",
              "cash": 198259.05,
              "marketValue":  53745,
              "totalEquity":  252004.05,
              "buyingPower":  461013.3,
              "maintenanceExcess":  230506.65,
             "isRealTime": false
          }
     ],
         "combinedBalances": [
                 ...
     ],
         "sodPerCurrencyBalances": [
                 ...
     ],
        "sodCombinedBalances": [
                 ...
     ]
 }

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.

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.

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.

See All