# Tradier

> Read Tradier accounts, watchlists, stock quotes and option chains.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/tradier

## Actions

### Get a watchlist

Get a watchlist.

**Inputs**

- Watchlist ID (`watchlist_id`, text, required): Watchlist id.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "watchlist": {}
  }
}
```

### Get account balances

Get account balances.

**Inputs**

- Account (`account_id`, text, required): Account id.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "balances": {}
  }
}
```

### Get an account order

Get an account order.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Order ID (`order_id`, text, required): Order id.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "order": {}
  }
}
```

### Get an option chain

Get an option chain.

**Inputs**

- Symbol (`symbol`, text, required): Symbol.
- Expiration (`expiration`, date, required): Expiration.
- Greeks (`greeks`, true/false): Greeks.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "options": {
      "option": [
        {}
      ]
    }
  }
}
```

### Get historical prices

Get historical prices.

**Inputs**

- Symbol (`symbol`, text, required): Symbol.
- Interval (`interval`, text): Interval. One of: `daily`, `weekly`, `monthly`.
- Start (`start`, date): Start.
- End (`end`, date): End.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "history": {
      "day": [
        {}
      ]
    }
  }
}
```

### Get market quotes

Get market quotes.

**Inputs**

- Symbols (`symbols`, list, required): Symbols.
- Greeks (`greeks`, true/false): Greeks.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "quotes": {
      "quote": {}
    }
  }
}
```

### Get the market calendar

Get the market calendar.

**Inputs**

- Month (`month`, number): Month. From 1 to 12.
- Year (`year`, number): Year. At least 1.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "calendar": {}
  }
}
```

### Get the market clock

Get the market clock.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "clock": {
      "state": "example",
      "timestamp": 1
    }
  }
}
```

### Get time and sales

Get time and sales.

**Inputs**

- Symbol (`symbol`, text, required): Symbol.
- Interval (`interval`, text): Interval. One of: `tick`, `1min`, `5min`, `15min`.
- Start (`start`, date and time): Start.
- End (`end`, date and time): End.
- Session filter (`session_filter`, text): Session filter. One of: `all`, `open`.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

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

### Get your Tradier profile

Get your Tradier profile.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "profile": {
      "account": [
        {
          "account_number": "example",
          "classification": "example"
        }
      ]
    }
  }
}
```

### List account history

List account history.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Start (`start`, date): Start.
- End (`end`, date): End.
- Type (`type`, text): Type. One of: `trade`, `option`, `dividend`, `ach`, `wire`, `fee`, `tax`, `journal`, `check`, `transfer`, `adjustment`, `interest`.
- Page (`page`, number): Page. At least 1.
- Limit (`limit`, number): Limit. At least 1.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "history": {}
  }
}
```

### List account orders

List account orders.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Include tags (`include_tags`, true/false): Include tags.
- Page (`page`, number): Page. At least 1.
- Limit (`limit`, number): Limit. At least 1.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "orders": {}
  }
}
```

### List account positions

List account positions.

**Inputs**

- Account (`account_id`, text, required): Account id.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "positions": {}
  }
}
```

### List closed-position gains and losses

List closed-position gains and losses.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Start (`start`, date): Start.
- End (`end`, date): End.
- Page (`page`, number): Page. At least 1.
- Limit (`limit`, number): Limit. At least 1.
- Sort by (`sort_by`, text): Sort by. One of: `openDate`, `closeDate`.
- Sort (`sort`, text): Sort. One of: `asc`, `desc`.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "gainloss": {}
  }
}
```

### List option expirations

List option expirations.

**Inputs**

- Symbol (`symbol`, text, required): Symbol.
- Include all roots (`include_all_roots`, true/false): Include all roots.
- Strikes (`strikes`, true/false): Strikes.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "expirations": {
      "date": [
        "example"
      ]
    }
  }
}
```

### List option strike prices

List option strike prices.

**Inputs**

- Symbol (`symbol`, text, required): Symbol.
- Expiration (`expiration`, date, required): Expiration.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "strikes": {
      "strike": [
        1
      ]
    }
  }
}
```

### List watchlists

List watchlists.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "watchlists": {}
  }
}
```

### Look up a market symbol

Look up a market symbol.

**Inputs**

- Q (`q`, text, required): Enter a ticker symbol.
- Exchanges (`exchanges`, text): Exchanges.
- Types (`types`, text): Types.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "securities": {}
  }
}
```

### Look up listed option symbols

Look up listed option symbols.

**Inputs**

- Underlying (`underlying`, text, required): Underlying.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

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

### Search market symbols

Search market symbols.

**Inputs**

- Q (`q`, text, required): Enter a name or symbol to search.
- Indexes (`indexes`, true/false): Indexes.

**Outputs**

- `data` (object): The response from Tradier.

**Example output**

```json
{
  "data": {
    "securities": {}
  }
}
```
