# LSEG Data (Refinitiv)

> Query entitled LSEG Data Platform historical prices and instrument data.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/lseg-data

## Actions

### Get a news story

Read the full story for a news headline ID.

**Inputs**

- Story ID (`story_id`, text, required): Story ID from a news headline.

**Outputs**

- `data` (object): The response from LSEG Data (Refinitiv).

**Example output**

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

### Get a search view's fields

Read the fields available in an LSEG Discovery view.

**Inputs**

- View (`view`, text, required): Choose a Discovery view. One of: `SearchAll`, `Instruments`, `EquityQuotes`.

**Outputs**

- `data` (object): The response from LSEG Data (Refinitiv).

**Example output**

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

### Get a top news package

Read the headlines in an LSEG top news package.

**Inputs**

- Top news ID (`top_news_id`, text, required): ID from List top news packages.

**Outputs**

- `data` (object): The response from LSEG Data (Refinitiv).

**Example output**

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

### Get daily price history

Get daily price history.

**Inputs**

- Ric (`ric`, text, required): Refinitiv Instrument Code, such as AAPL.O.
- Start (`start`, date and time): Start.
- End (`end`, date and time): End.
- Count (`count`, number): Count. At least 1.
- Fields (`fields`, list): Fields.
- Interval (`interval`, text): Interval. One of: `P1D`, `P1W`, `P1M`, `P3M`, `P1Y`.

**Outputs**

- `data` (list): The response from LSEG Data (Refinitiv).

**Example output**

```json
{
  "data": [
    {
      "data": [
        [
          {}
        ]
      ],
      "headers": [
        {}
      ],
      "universe": {
        "ric": "example"
      }
    }
  ]
}
```

### Get historical price events

Get historical price events.

**Inputs**

- Ric (`ric`, text, required): Refinitiv Instrument Code, such as AAPL.O.
- Start (`start`, date and time): Start.
- End (`end`, date and time): End.
- Count (`count`, number): Count. At least 1.
- Fields (`fields`, list): Fields.

**Outputs**

- `data` (list): The response from LSEG Data (Refinitiv).

**Example output**

```json
{
  "data": [
    {
      "data": [
        [
          {}
        ]
      ],
      "headers": [
        {}
      ],
      "universe": {
        "ric": "example"
      }
    }
  ]
}
```

### Get intraday price history

Get intraday price history.

**Inputs**

- Ric (`ric`, text, required): Refinitiv Instrument Code, such as AAPL.O.
- Start (`start`, date and time): Start.
- End (`end`, date and time): End.
- Count (`count`, number): Count. At least 1.
- Fields (`fields`, list): Fields.
- Interval (`interval`, text): Interval. One of: `PT1M`, `PT5M`, `PT10M`, `PT15M`, `PT30M`, `PT1H`.

**Outputs**

- `data` (list): The response from LSEG Data (Refinitiv).

**Example output**

```json
{
  "data": [
    {
      "data": [
        [
          {}
        ]
      ],
      "headers": [
        {}
      ],
      "universe": {
        "ric": "example"
      }
    }
  ]
}
```

### List top news packages

Read the LSEG top news package hierarchy.

**Inputs**: None.

**Outputs**

- `data` (object): The response from LSEG Data (Refinitiv).

**Example output**

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

### Search instruments

Find instrument codes and reference data using LSEG Discovery.

**Inputs**

- Query (`query`, text, required): Instrument name, ticker, or keyword.
- View (`view`, text): Discovery view to search. One of: `SearchAll`, `Instruments`, `EquityQuotes`.
- Filter (`filter`, text): Optional OData expression to narrow the result.
- Top (`top`, number): Maximum hits to return. From 1 to 1000.

**Outputs**

- `data` (object): The response from LSEG Data (Refinitiv).

**Example output**

```json
{
  "data": {
    "Hits": [
      {
        "DocumentTitle": "example",
        "RIC": "example"
      }
    ],
    "Total": 1
  }
}
```
