Rest operations

  1. What is the Questrade API? The Questrade API allows you to create custom applications or use tools from third party vendors to place orders, view account information, and analyze market data across all accounts, while keeping personal information secure.
    The Questrade API is free for anyone to use. However, any client using your application to place trades at Questrade must pay the same commission fees that they would pay if they were using a Questrade trading platform.
  2. What API does Questrade use? Questrade uses a REST API, for access to read and write Questrade data and OAuth 2.0 as a security protocol.
    The REST API allows you to:
    • Retrieve account data including balances and positions for the past 16 months
    • Access level 1 quotes
    • Place stock and option orders on U.S. and Canadian exchanges
    The REST web service can be integrated into your custom solutions and allows for the delivery of your data in JSON format.
    OAuth 2.0, an open standard for authorization, allows you to:
    • Connect clients to applications on the Questrade trading platforms. Questrade?s OAuth implementation requires account holders grant permission to the authorized API client application. Any OAuth library can be used to make requests against the Questrade API.
    • Send authorized requests to the Questrade API. Questrade only allows API requests via HTTPS (TLS) and refuses connections when accessed via HTTP. The required HTTP method (GET, POST etc.) must be defined.
    OAuth 2.0 uses an access token (a string credential) for security. You?ll receive an access token and a refresh token at the same time. The access token expires in 30 minutes and the refresh token expires in three days. If the access code expires, you must use the refresh token to gain access. You may only use the refresh token one time.
    To activate the API centre, see the next FAQ.
  3. How do I get started with the Questrade API? To start using Questrade?s API, you must have an account in good standing with Questrade. To open an account, fill out the easy online application at https://start.questrade.com.

    Once you open your account, you need to activate the API centre. To learn how, see https://www.questrade.com/api/documentation/getting-started.