Documentation
The Questrade API allows developers to create their own fully featured trading and analytical applications through their brokerage account.
REST operations
POST accounts/:id/orders/impact
Allows to calculate the impact that a given order will have on the account without placing it.
Request parameters
| Parameter | Type | Description |
|---|---|---|
| Parameterid | TypeString | DescriptionAccount number against which order is being submitted. |
| ParameterorderId | TypeInteger | DescriptionOptional – Order Id of order to be replace estimated. |
| ParametersymbolId | TypeInteger | DescriptionInternal symbol identifier. |
| Parameterquantity | TypeInteger | DescriptionOrder quantity. |
| ParametericebergQuantity | TypeInteger | DescriptionIceberg instruction quantity. |
| ParameterlimitPrice | TypeDouble | DescriptionLimit price. |
| ParameterstopPrice | TypeDouble | DescriptionStop price. |
| ParameterisAllOrNone | TypeBoolean | DescriptionIdentifies whether All-or-None instruction is enabled. |
| ParameterisAnonymous | TypeBoolean | DescriptionIdentifies whether Anonymous instruction is enabled. |
| ParameterorderType | TypeEnumeration | DescriptionOrder type (e.g., "Market"). See Order Type section for all allowed values. |
| Parameteraction | TypeEnumeration | DescriptionOrder side (e.g., "Buy"). See Order Action section for all allowed values. |
| ParameterprimaryRoute | TypeEnumeration | DescriptionPrimary order route (e.g., "AUTO"). |
| ParametersecondaryRoute | TypeEnumeration | DescriptionSecondary order route (e.g., "NYSE"). |
Response properties
| Properties | Type | Description |
|---|---|---|
| PropertiesestimatedCommissions | TypeDouble | DescriptionEstimate of commissions to be charged on the order. |
| PropertiesbuyingPowerEffect | TypeDouble | DescriptionEstimate of change in buying power from the order. |
| PropertiesbuyingPowerResult | TypeDouble | DescriptionEstimate of buying power in which order will result. |
| PropertiesmaintExcessEffect | TypeDouble | DescriptionEstimate of change in maintenance excess from the order. |
| PropertiesmaintExcessResult | TypeDouble | DescriptionEstimate of maintenance excess in which the order will result. |
| Propertiesside | TypeEnumeration | DescriptionClient view of the order side (e.g., "Buy-To-Open"). |
| PropertiestradeValueCalculation | TypeString | DescriptionEstimate of the order execution value. |
| Propertiesprice | TypeDouble | DescriptionEstimated average fill price. |
Sample request
POST https://api01.iq.questrade.com/v1/accounts/26598145/orders/impact
{
"symbolId":8049 ,
"quantity": 10 ,
"orderType": "Market",
"timeInForce": "Day",
"action":"Buy",
"primaryRoute":"AUTO",
"secondaryRoute": "AUTO",
"accountNumber": "XXXXXXXX",
"isAllOrNone": false,
"isAnonymous": false,
"isLimitOffsetInDollar": false
}Sample JSON response
{
"estimatedCommissions": 4.9675 ,
"buyingPowerEffect": -235.475 ,
"buyingPowerResult": 1999764.525,
"maintExcessEffect": -117.7375,
"maintExcessResult": 999882.2625,
"side": "Buy",
"tradeValueCalculation": "5 x 75.18 = 375.90 CAD",
"price": 102.51
}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.


