TradeStation
App · 13 actions
Read TradeStation brokerage accounts, orders, positions, prices, and options data.
Actions
| Action | What it does |
|---|---|
| Get account balances | Get account balances. |
| Get historical price bars | Get historical price bars. |
| Get latest quotes | Get latest quotes. |
| Get start-of-day balances | Get start-of-day balances. |
| Get symbol information | Get symbol information. |
| List brokerage accounts | List brokerage accounts. |
| List cryptocurrency pairs | List cryptocurrency pairs. |
| List historical orders | List historical orders. |
| List option expiration dates | List option expiration dates. |
| List option spread types | List option spread types. |
| List option strike prices | List option strike prices. |
| List orders | List orders. |
| List positions | List positions. |
Get account balances
Get account balances.
Inputs
- Accounts
accountstextRequired - 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
- Symbol
symboltextRequired - The valid symbol string.
- Interval
intervaltext - 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.
- Unit
unittext - Default: `Daily`. The unit of time for each bar interval. Valid values are: `Minute, Daily, Weekly, Monthly`.
- Barsback
barsbacktext - 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`
- Firstdate
firstdatedate 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`.
- Lastdate
lastdatedate 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.
- Sessiontemplate
sessiontemplatetext - 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
- Symbols
symbolstextRequired - 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
- Accounts
accountstextRequired - 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
- Symbols
symbolstextRequired - 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
- Accounts
accountstextRequired - 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.
- Since
sincedateRequired - 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 (
- Status
statustext - Filter orders by status. Multiple statuses can be specified, comma separated. Valid values are Open, Filled, Cancelled (or Canceled), Rejected.
- Symbol
symboltext - Filter orders by symbol. Multiple symbols can be specified, comma separated. For example `"MSFT,AAPL,GOOG,AAPL 251031C270"`.
- Page size
page_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 token
next_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
- Underlying
underlyingtextRequired - The symbol for the underlying security on which the option contracts are based. The underlying symbol must be an equity or index.
- Strike price
strike_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
- Underlying
underlyingtextRequired - The symbol for the underlying security on which the option contracts are based. The underlying symbol must be an equity or index.
- Spread type
spread_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 interval
strike_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.
- Expiration
expirationdate - Date on which the option contract expires; must be a valid expiration date. Defaults to the next contract expiration date.
- Expiration2
expiration2date - Second contract expiration date required for Calendar and Diagonal spreads.
Outputs
dataobject- Response.
Example output
{
"data": {
"SpreadType": "example",
"Strikes": []
}
}List orders
List orders.
Inputs
- Accounts
accountstextRequired - 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.
- Status
statustext - Filter orders by status. Multiple statuses can be specified, comma separated. Valid values are Open, Filled, Cancelled (or Canceled), Rejected.
- Symbol
symboltext - Filter orders by symbol. Multiple symbols can be specified, comma separated. For example `"MSFT,AAPL,GOOG,AAPL 251031C270"`.
- Page size
page_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 token
next_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
- Accounts
accountstextRequired - 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.
- Symbol
symboltext - 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": []
}
}