AutoShares API
  • What is AutoShares?
  • API Documentation
    • Quick Start Guide
    • API Overview
    • Authentication
      • Authenticate with AutoShares SSO/Auth0
      • Triggering authentication with /login
      • For logout scenario
    • Onboarding Users
      • Account Setup
        • Syntax
        • Add Account To User
        • Add Account To User By Username
        • Get All Accounts Of A User
        • Get All Users Of An Account
        • Get Account Info
        • Update Alias Account For Current User
        • Remove Account From User
        • Get User's Trading Settings
        • Get User's Exchanges
      • Access Agreements
    • Account Balances and Buying Power
      • Get Balance Information For A User
      • Get Account's Balance Info
      • Get Historical Account Value
    • Order Processing and Trading
      • Place Order
        • Syntax
      • Verify Order Placement
        • Syntax
      • Verify Order Replacement
        • Syntax
      • Replace Order
        • Syntax
      • Cancel an Order
        • Syntax
      • Get Order's Info
        • Syntax
      • Get Filtered Orders
        • Syntax
      • Validate Order by ID
      • Positions
        • Get User's Positions
          • Syntax
        • Get User's Positions in a Security
          • Syntax
        • Get Market Value of all Security Groups
      • Managing Transactions
        • Get Transactions
          • Syntax
    • Streaming Data and Quotes
      • Streaming API Endpoints
        • Get Streamers' Info
        • Recover a Streamer Session
      • Quotes
      • Orders
      • Positions
      • Watchlists
      • Account Balances
      • User Balance
      • Securities
        • Get Equity Info by Internal ID
          • Syntax
        • Get Equity Info by Ticker
          • Syntax
        • Get Equity Info by Mask
          • Syntax
        • Get Filtered Equities
          • Syntax
        • Get Option Info by Internal ID
          • Syntax
        • Get Option Info by Ticker
          • Syntax
        • Get Options Expiration Dates
          • Syntax
        • Get an Option Chain
        • Get Filtered Options
          • Syntax
        • Get Company Logo By Symbol
    • Historical Chart Data
      • Get Comparison Chart Data
        • Syntax
      • Get Candles and Indicators for a Security
        • Syntax
      • Get Chart Data in the Excel Format
        • Syntax
    • Price Alerts
      • Create Price Alert
        • Syntax
      • Delete Price Alert
        • Syntax
      • Get Specific Alert
        • Syntax
      • Get User's Price Alerts
        • Syntax
      • Modify Price Alert
        • Syntax
    • Watchlists
      • Add Security to Watchlist by ID
        • Syntax
      • Add Security to Watchlist by Ticker
        • Syntax
      • Create New Watchlist
        • Syntax
      • Delete Watchlist
        • Syntax
      • Get Specific Watchlist
        • Syntax
      • Get User's Watchlists
        • Syntax
      • Remove Security From Watchlist by ID
        • Syntax
      • Remove Security from Watchlist by Ticker
        • Syntax
      • Rename Watchlist
        • Syntax
      • News
        • Get News for a Security
        • Get Corporate Actions for a Security
    • [Webhooks and SDKs]
    • Wires, ACH, and Account Transfers
      • ACH Setup
        • Create A New ACH Relationship
        • Get an ACH Relationship
        • Modify an ACH Relationship
      • Deposit / Withdraw Funds
        • Deposit / Withdraw Funds via ACH
      • Get a Transfer's Info
        • Get an ACH Transfer's Info
        • Get All Transfers
    • Terms and Definitions
      • Part I
      • Part II
      • Part III
Powered by GitBook
On this page
  • Quick Start Guide
  • Introduction to the APIs
  • Getting Started with the API
  • Signup for AutoShares Developer Portal
  • Request AutoShares Connection Keys
  • Authentication
  • Sign Required Access Agreements
  • The Flow
  • Authorization Codes
  • Access Tokens
  • Refresh Tokens
  • New Account Onboarding
  • User Accounts
  • New to AutoShares API? Read how the registration process works.
  1. API Documentation

Quick Start Guide

Quick Start Guide

AutoShares cloud-based API infrastructure helps fintech developers launch the next generation of financial services, trading platforms, and apps.

We have made the APIs as easy as possible to work with. There are some essential concepts to understand having to do with a trading flow, but the calls themselves are very straightforward.

Introduction to the APIs

AutoShares is an all-in-one front-to-back-office solution consisting of several components: web trader, mobile trading applications for iOS and Android, OMS with a middle and back office, and a suite of APIs for Stock, ETF, and Options Trading.

AutoShares can be used as a whole turn-key trading suite, or certain components can be utilized separately including: single or multiple API endpoints, web trader, mobile applications, or brokerage back office with OMS.

Even though AutoShares provides both the web and the mobile interfaces for executing trades and analyzing markets, some users opt to implement their own custom interfaces that suit their requirements. For this purpose, AutoShares offers a trading platform as well as extended API that can be invoked to perform various trading operations like creating users, getting quotes, and placing orders.

The trading APIs are designed to perform operations typically performed by trader's widgets: orders, trading, account values, buying powers, positions, transactions, watchlists and price alerts, and so forth. These APIs can be called from anywhere simply using your app's API key and a user's credentials.

Features include:

  • Trade equities, options (including multi-legs), and ETFs.

  • Web-based custom widgets and tabs designer - "trading browser within a web browser"

  • Market Analytics with streaming market data (LI and LII)

  • Charts, including technical indicators and drawing tools

  • Option Chains and Options Trading of Single Legged and Multi Legged Complex Options

  • Monitor orders, positions and account balances

  • Customizable Price Alerts Engine

  • Trade from any where functionality

  • Paper trading/simulated trading mode

  • Customizable layouts

  • Automation

  • Single or Multiple Endpoints

  • Custom Integration and Development

Getting Started with the API

Signup for AutoShares Developer Portal

When you are ready to start developing, follow the steps below.

Request AutoShares Connection Keys

To begin working with the API, you'll first need to register for AutoShares Connection Keys.

After you submit the developer registration form, AutoShares will set up your developer environment and provide connection keys within 1-2 business days. We will generate two sets of API keys for you—a publishable client-side key and a secret server-side key—for testing connections and live connections.

After you receive your connection keys, you can move forward with authentication.

Authentication

We use Auth0's 2.0 protocol for authentication and authorization. Publicly we support the Authorization Code flow (server-side application). OAuth 2.0 is a simple protocol and a developer can integrate with AutoShares’ Auth0 2.0 endpoints easily, especially using client libraries.

Every call to AutoShares API must include an API secret key. To start working with the API and your keys, you need to activate your account.

Authentication will only work after you receive your connection keys.

Sign Required Access Agreements

All users on the system must sign required access agreements to stream data. This GET endpoint enables you to fetch the list of all outstanding agreements that must be signed by the user.

The Flow

In its most basic form, you will register your application with AutoShares, redirect a browser to a URL, parse a token from the responding redirect, and send the token to whichever AutoSharesAPI you wish to access.

Authorization Codes

Authorization codes are short-lived (they expire in 10 minutes). A code is provided after an investor authorizes your application for access to their account. These codes are exchanged for access tokens which can be used to make API requests.

Access Tokens

Access tokens (or Bearer tokens) are provided after a successful authorization code exchange. These tokens expire every 24 hours – no questions asked. Once a token expires you’ll need to exchange another authorization code to receive another access token.

Refresh Tokens

Once refresh tokens are enabled for your application, you will receive the refresh token alongside every access token. You can exchange a refresh token for a new access token. Refresh tokens do not expire.

New Account Onboarding

Applicants must follow the workflow determined by the AutoShares implementation team. Otherwise, you may initiate account signup using the following instructions with our online application (currently available for developer use only).

User Accounts

This API endpoint enables you to bind a new or an existing trading account to an existing user.

New to AutoShares API? Read how the registration process works.

Upon signing up, you get an email like the one below

Dear <aspiring developer>,

When you are ready to begin developing, you must register for a development connection key. Upon approval, your developer environment will be set up and you'll receive credentials within 1-2 business days.

Once you register for Developer Access Token and Key

You will receive an email with auth0 login and password reset upon signup.

These are the credentials you must use to access the API gateway for further development.

If you are integrating to present a login page to the authentication platform, the following page details the process using auth0(existing authentication platform). Note that your login page needs to be redirected to this login module. This is to enable single signon and you must be familiar with how authentication platforms and single signon works before you go further. We highly recommend reading the resources below before attempting to do that.

PreviousWhat is AutoShares?NextAPI Overview

Last updated 1 year ago

For an overview of AutoShares Comprehensive Brokerage and Technology Solutions:

or to the AutoShares Developer Portal and review the API documentation.

Read more here:

Access to your AutoShares API is now ready for you to review the API documentation. API Documentation:

1.

2.

3.

Go here
Sign-up
Sign-in
Register for Connection Keys
Authenticate with AutoShares SSO/Auth0
https://documentation.autoshares.dev/api-documentation/authentication
https://documentation.autoshares.dev/api-documentation/authentication/authenticate-with-autoshares-sso-auth0
https://documentation.autoshares.dev/api-documentation/authentication/triggering-authentication-with-login
https://documentation.autoshares.dev