TradeStation

App · 13 actions

Read TradeStation brokerage accounts, orders, positions, prices, and options data.

Actions

ActionWhat it does
Get account balancesGet account balances.
Get historical price barsGet historical price bars.
Get latest quotesGet latest quotes.
Get start-of-day balancesGet start-of-day balances.
Get symbol informationGet symbol information.
List brokerage accountsList brokerage accounts.
List cryptocurrency pairsList cryptocurrency pairs.
List historical ordersList historical orders.
List option expiration datesList option expiration dates.
List option spread typesList option spread types.
List option strike pricesList option strike prices.
List ordersList orders.
List positionsList positions.

Get account balances

Get account balances.

Inputs

AccountsaccountstextRequired
List of valid Account IDs for the authenticated user in comma separated format; for example `"61999124,68910124"`. 1 to 25 Account IDs can be specified, comma separated. Recommended batch size is 10.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Balances": [],
    "Errors": []
  }
}

Get historical price bars

Get historical price bars.

Inputs

SymbolsymboltextRequired
The valid symbol string.
Intervalintervaltext
Default: `1`. Interval that each bar will consist of - for minute bars, the number of minutes aggregated in a single bar. For bar units other than minute, value must be `1`. For unit `Minute` the max allowed `Interval` is 1440.
Unitunittext
Default: `Daily`. The unit of time for each bar interval. Valid values are: `Minute, Daily, Weekly, Monthly`.
Barsbackbarsbacktext
Default: `1`. Number of bars back to fetch (or retrieve). There is no limit on daily, weekly, or monthly bars. This parameter is mutually exclusive with `firstdate`
Firstdatefirstdatedate and time
Does not have a default value. The first date formatted as `YYYY-MM-DD`,`2020-04-20T18:00:00Z`. This parameter is mutually exclusive with `barsback`.
Lastdatelastdatedate and time
Defaults to current timestamp. The last date formatted as `YYYY-MM-DD`,`2020-04-20T18:00:00Z`. This parameter is mutually exclusive with `startdate` and should be used instead of that parameter, since `startdate` is now deprecated.
Sessiontemplatesessiontemplatetext
Applies to Intraday bars only (not used for Daily, Weekly and Monthly bars). United States (US) stock market session templates, that extend bars returned to include those outside of the regular trading session. Only applies to U.S. equities and U.S.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Bars": []
  }
}

Get latest quotes

Get latest quotes.

Inputs

SymbolssymbolstextRequired
List of valid symbols in comma separated format; for example `"MSFT,BTCUSD"`. No more than 100 symbols per request.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Errors": [],
    "Quotes": []
  }
}

Get start-of-day balances

Get start-of-day balances.

Inputs

AccountsaccountstextRequired
List of valid Account IDs for the authenticated user in comma separated format; for example `"61999124,68910124"`. 1 to 25 Account IDs can be specified, comma separated. Recommended batch size is 10.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "BODBalances": [],
    "Errors": []
  }
}

Get symbol information

Get symbol information.

Inputs

SymbolssymbolstextRequired
List of valid symbols in comma separated format; for example `"MSFT,BTCUSD"`, no more than 50 symbols per request.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Errors": [],
    "Symbols": []
  }
}

List brokerage accounts

List brokerage accounts.

Inputs

None.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Accounts": []
  }
}

List cryptocurrency pairs

List cryptocurrency pairs.

Inputs

None.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "SymbolNames": []
  }
}

List historical orders

List historical orders.

Inputs

AccountsaccountstextRequired
List of valid Account IDs for the authenticated user in comma separated format; for example `"61999124,68910124"`. 1 to 25 Account IDs can be specified, comma separated. Recommended batch size is 10.
SincesincedateRequired
Historical orders since date. For example `"2026-01-13","01-13-2026","2026/01/13","01/13/2026"`. Limited to 730 days prior to the current date. Note: Although this endpoint allows historical orders to be requested for up to two years, the simulated (
Statusstatustext
Filter orders by status. Multiple statuses can be specified, comma separated. Valid values are Open, Filled, Cancelled (or Canceled), Rejected.
Symbolsymboltext
Filter orders by symbol. Multiple symbols can be specified, comma separated. For example `"MSFT,AAPL,GOOG,AAPL 251031C270"`.
Page sizepage_sizenumber
The number of requests returned per page when paginating responses. If not provided, results will not be paginated and a maximum of 600 orders is returned.From 1 to 600.
Next tokennext_tokentext
An encrypted token with a lifetime of 1 hour for use with paginated order responses. This is returned with paginated results, and used in only the subsequent request which will return a new nextToken until there are fewer returned orders than the req

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Errors": [],
    "NextToken": "example",
    "Orders": []
  }
}

List option expiration dates

List option expiration dates.

Inputs

UnderlyingunderlyingtextRequired
The symbol for the underlying security on which the option contracts are based. The underlying symbol must be an equity or index.
Strike pricestrike_pricenumber
Strike price. If provided, only expirations for that strike price will be returned.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Expirations": []
  }
}

List option spread types

List option spread types.

Inputs

None.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "SpreadTypes": []
  }
}

List option strike prices

List option strike prices.

Inputs

UnderlyingunderlyingtextRequired
The symbol for the underlying security on which the option contracts are based. The underlying symbol must be an equity or index.
Spread typespread_typetext
The name of the spread type to get the strikes for. This value can be obtained from the [Get Option Spread Types](#operation/GetOptionSpreadTypes) endpoint.
Strike intervalstrike_intervalnumber
Specifies the desired interval between the strike prices in a spread. It must be greater than or equal to 1. A value of 1 uses consecutive strikes; a value of 2 skips one between strikes; and so on.
Expirationexpirationdate
Date on which the option contract expires; must be a valid expiration date. Defaults to the next contract expiration date.
Expiration2expiration2date
Second contract expiration date required for Calendar and Diagonal spreads.

Outputs

dataobject
Response.
Example output
{
  "data": {
    "SpreadType": "example",
    "Strikes": []
  }
}

List orders

List orders.

Inputs

AccountsaccountstextRequired
List of valid Account IDs for the authenticated user in comma separated format; for example `"61999124,68910124"`. 1 to 25 Account IDs can be specified, comma separated. Recommended batch size is 10.
Statusstatustext
Filter orders by status. Multiple statuses can be specified, comma separated. Valid values are Open, Filled, Cancelled (or Canceled), Rejected.
Symbolsymboltext
Filter orders by symbol. Multiple symbols can be specified, comma separated. For example `"MSFT,AAPL,GOOG,AAPL 251031C270"`.
Page sizepage_sizenumber
The number of requests returned per page when paginating responses. If not provided, results will not be paginated and a maximum of 600 orders is returned.From 1 to 600.
Next tokennext_tokentext
An encrypted token with a lifetime of 1 hour for use with paginated order responses. This is returned with paginated results, and used in only the subsequent request which will return a new nextToken until there are fewer returned orders than the req

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Errors": [],
    "NextToken": "example",
    "Orders": []
  }
}

List positions

List positions.

Inputs

AccountsaccountstextRequired
List of valid Account IDs for the authenticated user in comma separated format; for example `"61999124,68910124"`. 1 to 25 Account IDs can be specified, comma separated. Recommended batch size is 10.
Symbolsymboltext
List of valid symbols in comma separated format; for example `MSFT,MSFT *,AAPL`. You can use an * as wildcard to make more complex filters. Examples of the wildcard being used: * Get all options for MSFT: symbol=`MSFT *` * Get MSFT and all its option

Outputs

dataobject
Response.
Example output
{
  "data": {
    "Errors": [],
    "Positions": []
  }
}

On this page