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
  • Overview
  • Get Historical Account Value
  1. API Documentation
  2. Account Balances and Buying Power

Get Historical Account Value

Overview

The endpoint allows you to retrieve the historical values of a particular trading account over the specified period.

The start and end date are represented in the following format "2022-07-28T09:04:43.3512813Z". It is an ISO 8601 timestamp representing a date and time in Coordinated Universal Time (UTC).

Get Historical Account Value

GET baseURL/v{version}/accounts/{accountId}/history

Path Parameters

Name
Type
Description

apiVersion*

The version of API. By default, set it to 1.0.

accountId*

integer

Internal AutoShares ID of the trading account.

Query Parameters

Name
Type
Description

startDate *

date-time

The start date of the target period.

endDate*

date-time

The end date of the target period.

step*

integer

Set 1 as a default step.

Headers

Name
Type
Description

Authorization*

String

This is the authorization token from the token request. The value of this header must have the following format: Bearer BQ898r9fefi (Bearer + 1 space + the token).

[
  {
    "Date": "2023-06-15T00:00:00Z",
    "Value": 100000
  },
  {
    "Date": "2023-06-16T00:00:00Z",
    "Value": 100000
  },
  {
    "Date": "2023-06-20T00:00:00Z",
    "Value": 99989
  },
  {
    "Date": "2023-06-21T00:00:00Z",
    "Value": 99933.6
  },
  {
    "Date": "2023-06-22T00:00:00Z",
    "Value": 100025.5
  },
  {
    "Date": "2023-06-23T00:00:00Z",
    "Value": 99975.4
  },
  {
    "Date": "2023-06-27T00:00:00Z",
    "Value": 99984.7
  },
  {
    "Date": "2023-06-28T00:00:00Z",
    "Value": 100009.4
  },
  {
    "Date": "2023-06-29T00:00:00Z",
    "Value": 100004.8
  },
  {
    "Date": "2023-06-30T00:00:00Z",
    "Value": 100103.5
  },
  {
    "Date": "2023-07-03T00:00:00Z",
    "Value": 100062.9
  },
  {
    "Date": "2023-07-05T00:00:00Z",
    "Value": 100053.2
  },
  {
    "Date": "2023-07-06T00:00:00Z",
    "Value": 100089.2
  },
  {
    "Date": "2023-07-07T00:00:00Z",
    "Value": 100037.4
  },
  {
    "Date": "2023-07-10T00:00:00Z",
    "Value": 99962.8
  },
  {
    "Date": "2023-07-11T00:00:00Z",
    "Value": 99963.9
  },
  {
    "Date": "2023-07-12T00:00:00Z",
    "Value": 100028.1
  },
  {
    "Date": "2023-07-13T00:00:00Z",
    "Value": 100090.4
  },
  {
    "Date": "2023-07-14T00:00:00Z",
    "Value": 100117.7
  },
  {
    "Date": "2023-07-17T00:00:00Z",
    "Value": 100155.6
  },
  {
    "Date": "2023-07-18T00:00:00Z",
    "Value": 100290.6
  },
  {
    "Date": "2023-07-19T00:00:00Z",
    "Value": 100260.2
  },
  {
    "Date": "2023-07-20T00:00:00Z",
    "Value": 100158.4
  },
  {
    "Date": "2023-07-21T00:00:00Z",
    "Value": 100115.5
  },
  {
    "Date": "2023-07-24T00:00:00Z",
    "Value": 100137
  },
  {
    "Date": "2023-07-25T00:00:00Z",
    "Value": 100204.4
  },
  {
    "Date": "2023-07-26T00:00:00Z",
    "Value": 100081.1
  },
  {
    "Date": "2023-07-27T00:00:00Z",
    "Value": 99997.8
  },
  {
    "Date": "2023-07-28T00:00:00Z",
    "Value": 100072.7
  }
]
PreviousGet Account's Balance InfoNextOrder Processing and Trading

Last updated 1 year ago