# Marketstack

> Read historical and intraday prices, dividends, splits and exchange data.

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

## Actions

### Get a real-time stock price

Read the latest real-time price for a stock. Availability depends on your plan.

**Inputs**

- Ticker (`ticker`, text, required): Stock ticker symbol, e.g. AAPL.
- Exchange (`exchange`, text): Exchange MIC code, e.g. XNAS, XLON. Use it when a ticker is listed on more than one exchange.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "country": "example",
        "currency": "example",
        "exchange_code": "example",
        "exchange_name": "example",
        "price": "example",
        "ticker": "example",
        "trade_last": "example"
      }
    ]
  }
}
```

### Get a stock exchange

Read the details for a stock exchange by its market identifier code.

**Inputs**

- Mic (`mic`, text, required): Market Identifier Code (MIC) of the stock exchange.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "acronym": "example",
        "city": "example",
        "comments": "example",
        "country": "example",
        "country_code": "example",
        "date_creation": "example",
        "date_expiry": "example",
        "date_last_update": "example",
        "date_last_validation": "example",
        "exchange_lei": "example",
        "exchange_status": "example",
        "legal_entity_name": "example",
        "market_category_code": "example",
        "mic": "example",
        "name": "example",
        "operating_mic": "example",
        "oprt_sgmt": "example",
        "website": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### Get daily prices for a date

Read stock prices for a particular trading date.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Exchange (`exchange`, text): Filter results by stock exchange, identified by its MIC. Example: XNAS
- Sort (`sort`, text): Sort order of the results by date. One of: `DESC`, `ASC`, `desc`, `asc`.
- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.
- Date (`date`, date, required): The trading date to look up.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "adj_close": 1,
        "adj_high": 1,
        "adj_low": 1,
        "adj_open": 1,
        "adj_volume": 1,
        "asset_type": "example",
        "close": 1,
        "date": "example",
        "dividend": 1,
        "exchange": "example",
        "exchange_code": "example",
        "high": 1,
        "low": 1,
        "name": "example",
        "open": 1,
        "price_currency": "example",
        "split_factor": 1,
        "symbol": "example",
        "volume": 1
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### Get intraday prices for a date

Read prices within a selected trading day. This uses a plan with intraday access.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Exchange (`exchange`, text): Filter results by stock exchange, identified by its MIC. Example: XNAS
- Interval (`interval`, text): Intraday data interval. Available values: 1min, 5min, 10min, 15min, 30min, 1hour, 3hour, 6hour, 12hour, 24hour. Default: 1hour. One of: `1min`, `5min`, `10min`, `15min`, `30min`, `1hour`, `3hour`, `6hour`, `12hour`, `24hour`.
- After Hours (`after_hours`, true/false): Include after-hours data in intraday results.
- Sort (`sort`, text): Sort order of the results by date. One of: `DESC`, `ASC`, `desc`, `asc`.
- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.
- Date (`date`, date, required): The trading date to look up.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "ask_price": 1,
        "ask_size": 1,
        "bid_price": 1,
        "bid_size": 1,
        "close": 1,
        "date": "example",
        "exchange": "example",
        "high": 1,
        "last": 1,
        "last_size": 1,
        "low": 1,
        "marketstack_last": 1,
        "mid": 1,
        "open": 1,
        "symbol": "example",
        "volume": 1
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### Get latest end-of-day prices

Read the most recent daily prices for one or more symbols.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### Get latest intraday prices

Read the latest intraday prices. This uses a plan with intraday access.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### Get ticker information

Read the company and exchange details for a stock ticker.

**Inputs**

- Ticker (`ticker`, text, required): The ticker symbol, such as AAPL.

**Outputs**

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

**Example output**

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

### List currencies

Read the currency reference data.

**Inputs**

- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List dividends

Read historical dividend records for the selected symbols.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Start Date (`start_date`, date): The first trading date to include.
- End Date (`end_date`, date): The last trading date to include.
- Sort (`sort`, text): The order of the returned observations. One of: `ASC`, `DESC`.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List end-of-day prices

Read historical daily stock prices for one or more symbols.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Start Date (`start_date`, date): The first trading date to include.
- End Date (`end_date`, date): The last trading date to include.
- Sort (`sort`, text): The order of the returned observations. One of: `ASC`, `DESC`.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "close": 1,
        "date": "example",
        "exchange": "example",
        "high": 1,
        "low": 1,
        "open": 1,
        "symbol": "example",
        "volume": 1
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List ETF holdings

Read the reported holdings of an exchange-traded fund.

**Inputs**

- Date From (`date_from`, date): Filter results from a specific start date. [Format: YYYY-MM-DD]
- Date To (`date_to`, date): Filter results up to a specific end date. [Format: YYYY-MM-DD]
- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.
- Ticker (`ticker`, text, required): ETF ticker symbol.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "basics": {
      "cik": "example",
      "file_number": "example",
      "fund_name": "example",
      "reg_lei": "example"
    },
    "output": {
      "attributes": {
        "date_report_period": "example",
        "end_report_period": "example",
        "final_filing": true,
        "isin": "example",
        "series_id": "example",
        "series_lei": "example",
        "series_name": "example",
        "ticker": "example"
      },
      "holdings": [
        {
          "investment_security": {
            "asset_category": {},
            "balance": {},
            "cash_collateral": {},
            "currency": {},
            "cusip": {},
            "fair_value_level": {},
            "invested_country": {},
            "isin": {},
            "issuer_category": {},
            "lei": {},
            "loan_by_fund": {},
            "name": {},
            "non_cash_collateral": {},
            "payoff_profile": {},
            "percent_value": {},
            "restricted_sec": {},
            "title": {},
            "units": {},
            "value_usd": {}
          }
        }
      ],
      "signature": {
        "date_signed": "example",
        "name_of_applicant": "example",
        "signature": "example",
        "signer_name": "example",
        "title": "example"
      }
    }
  }
}
```

### List exchange-traded funds

Find exchange-traded funds and filter by ticker or observation date.

**Inputs**

- Date From (`date_from`, date): Filter results from a specific start date. [Format: YYYY-MM-DD]
- Date To (`date_to`, date): Filter results up to a specific end date. [Format: YYYY-MM-DD]
- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.
- Ticker (`ticker`, text): ETF ticker symbol.
- Status (`status`, text): Filter by ETF status.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "ticker": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List exchanges

Search the trading exchanges covered by Marketstack.

**Inputs**

- Search (`search`, text): Part of the exchange name.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List government bonds

Read the government bond markets covered by Marketstack.

**Inputs**

- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.
- Country (`country`, text): Filter bonds by country.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "country": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List intraday prices

Read historical prices within the trading day. This uses a plan with intraday access.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Interval (`interval`, text): Time between observations. One of: `1min`, `5min`, `10min`, `15min`, `30min`, `1hour`, `3hour`, `6hour`, `12hour`, `24hour`.
- Start Date (`start_date`, date): The first trading date to include.
- End Date (`end_date`, date): The last trading date to include.
- Sort (`sort`, text): The order of the returned observations. One of: `ASC`, `DESC`.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List market indices

Read the market indices tracked by Marketstack.

**Inputs**

- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "benchmark": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List stock splits

Read historical split records for the selected symbols.

**Inputs**

- Symbols (`symbols`, list, required): One or more ticker symbols, such as AAPL or MSFT.
- Start Date (`start_date`, date): The first trading date to include.
- End Date (`end_date`, date): The last trading date to include.
- Sort (`sort`, text): The order of the returned observations. One of: `ASC`, `DESC`.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List tickers

Search the stock symbols covered by Marketstack.

**Inputs**

- Search (`search`, text): Part of the ticker or company name.
- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List tickers for an exchange

Read the stock symbols traded on a selected exchange.

**Inputs**

- Mic (`mic`, text, required): Market Identifier Code (MIC) of the stock exchange.
- Search (`search`, text): Use this parameter to get autocomplete suggestions by specifying a search term.
- Limit (`limit`, number): Specify a limit of results to return. Default value is 100. From 1 to 1000.
- Offset (`offset`, number): Specify an offset for pagination. Default offset value is 0. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "acronym": "example",
      "city": "example",
      "comments": "example",
      "country": "example",
      "country_code": "example",
      "date_creation": "example",
      "date_expiry": "example",
      "date_last_update": "example",
      "date_last_validation": "example",
      "exchange_lei": "example",
      "exchange_status": "example",
      "legal_entity_name": "example",
      "market_category_code": "example",
      "mic": "example",
      "name": "example",
      "operating_mic": "example",
      "oprt_sgmt": "example",
      "tickers": [
        {
          "has_eod": {},
          "has_intraday": {},
          "name": {},
          "symbol": {}
        }
      ],
      "website": "example"
    },
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```

### List time zones

Read the time zone reference data.

**Inputs**

- Limit (`limit`, number): How many results to return. From 1 to 1000.
- Offset (`offset`, number): How many records to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ],
    "pagination": {
      "count": 1,
      "limit": 1,
      "offset": 1,
      "total": 1
    }
  }
}
```
