New Customer Offer: Pay 0% interest for up to six months on $5K USD when you join Questrade with code 0MARGIN. Open a new margin account.

Documentation

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

POST accounts/:id/orders/impact

Allows to calculate the impact that a given order will have on the account without placing it.

Request parameters

ParameteridTypeStringDescriptionAccount number against which order is being submitted.
ParameterorderIdTypeIntegerDescriptionOptional – Order Id of order to be replace estimated.
ParametersymbolIdTypeIntegerDescriptionInternal symbol identifier.
ParameterquantityTypeIntegerDescriptionOrder quantity.
ParametericebergQuantityTypeIntegerDescriptionIceberg instruction quantity.
ParameterlimitPriceTypeDoubleDescriptionLimit price.
ParameterstopPriceTypeDoubleDescriptionStop price.
ParameterisAllOrNoneTypeBooleanDescriptionIdentifies whether All-or-None instruction is enabled.
ParameterisAnonymousTypeBooleanDescriptionIdentifies whether Anonymous instruction is enabled.
ParameterorderTypeTypeEnumerationDescriptionOrder type (e.g., "Market"). See Order Type section for all allowed values.
ParameteractionTypeEnumerationDescriptionOrder side (e.g., "Buy"). See Order Action section for all allowed values.
ParameterprimaryRouteTypeEnumerationDescriptionPrimary order route (e.g., "AUTO").
ParametersecondaryRouteTypeEnumerationDescriptionSecondary order route (e.g., "NYSE").

Response properties

PropertiesestimatedCommissionsTypeDoubleDescriptionEstimate of commissions to be charged on the order.
PropertiesbuyingPowerEffectTypeDoubleDescriptionEstimate of change in buying power from the order.
PropertiesbuyingPowerResultTypeDoubleDescriptionEstimate of buying power in which order will result.
PropertiesmaintExcessEffectTypeDoubleDescriptionEstimate of change in maintenance excess from the order.
PropertiesmaintExcessResultTypeDoubleDescriptionEstimate of maintenance excess in which the order will result.
PropertiessideTypeEnumerationDescriptionClient view of the order side (e.g., "Buy-To-Open").
PropertiestradeValueCalculationTypeStringDescriptionEstimate of the order execution value.
PropertiespriceTypeDoubleDescriptionEstimated average fill price.

Sample request

HTTP
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

JSON
{
	  "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

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