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.

GET markets/quotes/strategies

Retrieve a calculated L1 market data quote for a single or many multi-leg strategies.

Request

Request
NamevariantsTypeComplexDescriptionInput array of Strategy Variants

StrategyVariantRequest

Strategy record for strategy quotes.

StrategyVariantRequest
NamevariantIdTypeIntegerDescriptionVariant ID
NamestrategyTypeEnumerationDescriptionStrategy type (e.g. “Custom”) See Strategy Types section for all allowed values.
NamelegsTypeComplexDescriptionArray of Strategy legs

StrategyVariantLeg

Strategy record for strategy quotes

StrategyVariantLeg
NamesymbolIdTypeIntegerDescriptionInternal symbol identifier
NameactionTypeEnumerationDescriptionOrder side (e.g. “Buy”) SeeOrder Actionsection for all allowed values.
NameratioTypeIntegerDescriptionNumeric ration of the leg in strategy

Response properties

Response properties
NamevariantIdTypeIntegerDescriptionVariant ID corresponding to variant in request
NamebidPriceTypeDoubleDescriptionBid price
NameaskPriceTypeDoubleDescriptionAsk price
NameunderlyingTypeStringDescriptionUnderlying name
NameunderlyingIdTypeIntegerDescriptionUnderlying ID
NameopenPriceTypeDoubleDescriptionOpen price
NamevolatilityTypeDoubleDescriptionVolatility
NamedeltaTypeDoubleDescriptionDelta
NamegammaTypeDoubleDescriptionGamma
NamethetaTypeDoubleDescriptionTheta
NamevegaTypeDoubleDescriptionVega
NamerhoTypeDoubleDescriptionRho
NameisRealTimeTypeBooleanDescriptionWhether or not the data is real-time

NOTES:

  • Leg quantities will be factorized. For example, if you place quantities of 10 and 1000, they will be sent as an order quantity of 10 and leg ratio quantities 1 and 100. Price uses a factorized strategy.

  • Maximum of 4 legs is allowed.

  • The variantId parameter will be echoed so you can match the quotes to the request.The variantId parameter will be echoed so you can match the quotes to the request.

Sample request

HTTP
POST https://api01.iq.questrade.com/v1/markets/quotes/strategies
 {
    "variants": [
        {
             "variantId": 1,
             "strategy": ”Custom”,
             "legs": [
                   {
                      "symbolId": 27426,
                      "ratio":  1000,
                      "action": "Buy"
                   },
                   {
                       "symbolId": 10550014,
                       "ratio":  10,
                       "action": "Sell"
                   }
                ]
          },
             ...
    ]
}

Sample response:

JSON
{
       “stategyQuotes”: [
           {
               “variantId”: 1,
               “bidPrice”: 27.2,
               “askPrice”: 27.23,
               “underlying”: ”MSFT”,
               “underlyingId”:  27426,
               “openPrice”:  null,
               “volatility”: 0,
               “delta”: 1,
               “gamma”: 0,
               “theta”: 0,
               “vega”: 0,
               “rho”: 0,
               “isRealTime”: true
           },
              ...
      ]
 }

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