Young man smiling

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

NameTypeDescription
variants
Complex
Input array of Strategy Variants

StrategyVariantRequest

Strategy record for strategy quotes.

NameTypeDescription
variantId
Integer
Variant ID
strategy
Enumeration
Strategy type (e.g. “Custom”)
See Strategy Types section for all allowed values.
legs
Complex
Array of Strategy legs

StrategyVariantLeg

Strategy record for strategy quotes

NameTypeDescription
symbolId
Integer
Internal symbol identifier
action
Enumeration
Order side (e.g. “Buy”)
See Order Action section for all allowed values.
ratio
Integer
Numeric ration of the leg in strategy

Response properties

NameTypeDescription
variantId
Integer
Variant ID corresponding to variant in request
bidPrice
Double
Bid price
askPrice
Double
Ask price
underlying
String
Underlying name
underlyingId
Integer
Underlying ID
openPrice
Double
Open price
volatility
Double
Volatility
delta
Double
Delta
gamma
Double
Gamma
theta
Double
Theta
vega
Double
Vega
rho
Double
Rho
isRealTime
Boolean
Whether 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


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:


   {
       “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.

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
See All