Skip to login Skip to main content
  • 1-855-880-2559
  • Open 24/7

Ally Invest API Documentation

Build your application to connect to our investment platform and the 250,000 traders connected to it.


This short example will show you how to authorize your own account against the API and make requests. Note that we aren't following a full OAuth flow here because as a developer you already have access to your own access token and secret.

// Use the OAuth module
var oauth = require('oauth');
// Setup key/secret for authentication and API endpoint URL
var configuration = {
    api_url: "",
    consumer_key: "0cc175b9c0f1b6a831c399e269772661",
    consumer_secret: "ff2513194e75315625628304c9eb66e8",
    access_token: "150a96573adf12b21dab621e85497e6e",
    access_secret: "5c7b57d450a71d378a5eda991f809e56"
// Setup the OAuth Consumer
var tradeking_consumer = new oauth.OAuth(


// Make a request to the API endpoint
// Manually update the access token/secret as parameters. Typically this would be done through an OAuth callback when
// authenticating other users.

tradeking_consumer.get(configuration.api_url+'/accounts.json', configuration.access_token, configuration.access_secret,
    function(error, data, response) {
        // Parse the JSON data
        account_data = JSON.parse(data);
        // Display the response


Any mention of actual symbols are to be used for coding purposes only and do not imply a recommendation or solicitation to buy or sell a particular security or to engage in any particular investment strategy.

At the time of publication and in the preceding month, Ally Invest did not have ownership greater than 1% in any stocks mentioned here and does not have any other actual, material conflict of interest known at the time of publication.

Ally Invest did not receive compensation from a public offering or from investment banking services related to any companies mentioned here within the past 12 months, or expects to receive any in the next 3 months. Ally Invest did not engage in market making in the securities mentioned here.

Ally Invest Securities' background can be found at FINRA's BrokerCheck . Options involve risk and are not suitable for all investors.

Review the Characteristics and Risks of Standardized Options brochure before you begin trading options. Options investors may lose the entire amount of their investment in a relatively short period of time.