# TradeStation

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

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/tradestation

## Actions

### Get account balances

Get account balances.

**Inputs**

- Accounts (`accounts`, text, required): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Balances": [],
    "Errors": []
  }
}
```

### Get historical price bars

Get historical price bars.

**Inputs**

- Symbol (`symbol`, text, required): The valid symbol string.
- Interval (`interval`, text): 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 (`unit`, text): Default: `Daily`. The unit of time for each bar interval. Valid values are: `Minute, Daily, Weekly, Monthly`.
- Barsback (`barsback`, text): 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 (`firstdate`, date 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 (`lastdate`, date 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 (`sessiontemplate`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Bars": []
  }
}
```

### Get latest quotes

Get latest quotes.

**Inputs**

- Symbols (`symbols`, text, required): List of valid symbols in comma separated format; for example `"MSFT,BTCUSD"`. No more than 100 symbols per request.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Errors": [],
    "Quotes": []
  }
}
```

### Get start-of-day balances

Get start-of-day balances.

**Inputs**

- Accounts (`accounts`, text, required): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "BODBalances": [],
    "Errors": []
  }
}
```

### Get symbol information

Get symbol information.

**Inputs**

- Symbols (`symbols`, text, required): List of valid symbols in comma separated format; for example `"MSFT,BTCUSD"`, no more than 50 symbols per request.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Errors": [],
    "Symbols": []
  }
}
```

### List brokerage accounts

List brokerage accounts.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Accounts": []
  }
}
```

### List cryptocurrency pairs

List cryptocurrency pairs.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "SymbolNames": []
  }
}
```

### List historical orders

List historical orders.

**Inputs**

- Accounts (`accounts`, text, required): 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 (`since`, date, required): 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 (`status`, text): Filter orders by status. Multiple statuses can be specified, comma separated. Valid values are Open, Filled, Cancelled (or Canceled), Rejected.
- Symbol (`symbol`, text): Filter orders by symbol. Multiple symbols can be specified, comma separated. For example `"MSFT,AAPL,GOOG,AAPL 251031C270"`.
- Page size (`page_size`, number): 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_token`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Errors": [],
    "NextToken": "example",
    "Orders": []
  }
}
```

### List option expiration dates

List option expiration dates.

**Inputs**

- Underlying (`underlying`, text, required): 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_price`, number): Strike price. If provided, only expirations for that strike price will be returned.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Expirations": []
  }
}
```

### List option spread types

List option spread types.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "SpreadTypes": []
  }
}
```

### List option strike prices

List option strike prices.

**Inputs**

- Underlying (`underlying`, text, required): 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_type`, text): 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_interval`, number): 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 (`expiration`, date): Date on which the option contract expires; must be a valid expiration date. Defaults to the next contract expiration date.
- Expiration2 (`expiration2`, date): Second contract expiration date required for Calendar and Diagonal spreads.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "SpreadType": "example",
    "Strikes": []
  }
}
```

### List orders

List orders.

**Inputs**

- Accounts (`accounts`, text, required): 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 (`status`, text): Filter orders by status. Multiple statuses can be specified, comma separated. Valid values are Open, Filled, Cancelled (or Canceled), Rejected.
- Symbol (`symbol`, text): Filter orders by symbol. Multiple symbols can be specified, comma separated. For example `"MSFT,AAPL,GOOG,AAPL 251031C270"`.
- Page size (`page_size`, number): 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_token`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Errors": [],
    "NextToken": "example",
    "Orders": []
  }
}
```

### List positions

List positions.

**Inputs**

- Accounts (`accounts`, text, required): 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 (`symbol`, text): 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**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "Errors": [],
    "Positions": []
  }
}
```
