# Databento

> Inspect market data coverage, estimate historical queries, resolve symbols and track existing batch jobs.

App · 14 actions. Web page: https://docs.lodol.com/docs/integrations/databento

## Actions

### Estimate billable size

Estimate the billable size in bytes for a historical query.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.
- Symbols (`symbols`, list, required): Symbols to include in the request.
- Schema (`schema`, text, required): Market data schema. One of: `mbo`, `mbp-1`, `mbp-10`, `tbbo`, `trades`, `ohlcv-1s`, `ohlcv-1m`, `ohlcv-1h`, `ohlcv-1d`, `definition`, `statistics`, `status`.
- Start (`start`, date and time, required): Inclusive start time.
- End (`end`, date and time): Exclusive end time.
- Stype in (`stype_in`, text): Type of input symbol. One of: `raw_symbol` (Raw symbol), `instrument_id` (Instrument id), `continuous`, `parent`.
- Limit (`limit`, number): Maximum records to estimate. At least 1.

**Outputs**

- `data` (number): The response from Databento.

**Example output**

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

### Estimate historical data cost

Estimate the US dollar cost of a historical data query.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.
- Symbols (`symbols`, list, required): Symbols to include in the request.
- Schema (`schema`, text, required): Market data schema. One of: `mbo`, `mbp-1`, `mbp-10`, `tbbo`, `trades`, `ohlcv-1s`, `ohlcv-1m`, `ohlcv-1h`, `ohlcv-1d`, `definition`, `statistics`, `status`.
- Start (`start`, date and time, required): Inclusive start time.
- End (`end`, date and time): Exclusive end time.
- Stype in (`stype_in`, text): Type of input symbol. One of: `raw_symbol` (Raw symbol), `instrument_id` (Instrument id), `continuous`, `parent`.
- Limit (`limit`, number): Maximum records to estimate. At least 1.
- Mode (`mode`, text): Historical delivery mode. One of: `historical`, `historical-streaming`.

**Outputs**

- `data` (number): The response from Databento.

**Example output**

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

### Estimate record count

Estimate how many records a historical query would return.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.
- Symbols (`symbols`, list, required): Symbols to include in the request.
- Schema (`schema`, text, required): Market data schema. One of: `mbo`, `mbp-1`, `mbp-10`, `tbbo`, `trades`, `ohlcv-1s`, `ohlcv-1m`, `ohlcv-1h`, `ohlcv-1d`, `definition`, `statistics`, `status`.
- Start (`start`, date and time, required): Inclusive start time.
- End (`end`, date and time): Exclusive end time.
- Stype in (`stype_in`, text): Type of input symbol. One of: `raw_symbol` (Raw symbol), `instrument_id` (Instrument id), `continuous`, `parent`.
- Limit (`limit`, number): Maximum records to estimate. At least 1.

**Outputs**

- `data` (number): The response from Databento.

**Example output**

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

### Get batch job details

Read the current state and details of an existing historical export job.

**Inputs**

- Job (`job_id`, text, required): Select an existing batch job.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "XNAS-EXAMPLE",
    "state": "done",
    "ts_received": "2026-11-02T15:00:00Z"
  }
}
```

### Get dataset condition

Read daily historical data availability and quality for a dataset.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.
- Start date (`start_date`, date): First UTC date to include.
- End date (`end_date`, date): UTC end date for the range.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    {
      "condition": "available",
      "date": "2026-11-02",
      "last_modified_date": "2026-11-03"
    }
  ]
}
```

### Get dataset range

Get the available date range and schema ranges for a dataset.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "end": "2026-11-03",
    "schema": {
      "trades": {
        "end": "2026-11-03",
        "start": "2018-05-01"
      }
    },
    "start": "2018-05-01"
  }
}
```

### List batch job files

List the files and their download information for a completed export.

**Inputs**

- Job (`job_id`, text, required): Select an existing batch job.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    {
      "filename": "sample.dbn.zst",
      "size": 1024
    }
  ]
}
```

### List batch jobs

List existing historical export jobs and their states.

**Inputs**

- States (`states`, list): Job states to include. One or more of: `queued`, `processing`, `done`, `expired`.
- Since (`since`, date and time): Only show jobs submitted at or after this time.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    {
      "id": "XNAS-EXAMPLE",
      "state": "done",
      "ts_received": "2026-11-02T15:00:00Z"
    }
  ]
}
```

### List dataset schemas

List record schemas available for a dataset.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    "trades",
    "ohlcv-1d"
  ]
}
```

### List dataset unit prices

List data prices in US dollars per gigabyte, by feed mode and schema.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    {
      "feed_mode": "historical",
      "schema": "trades",
      "unit_price": 1.0
    }
  ]
}
```

### List datasets

List available market data dataset codes for an optional date range.

**Inputs**

- Start date (`start_date`, date): First UTC date to include.
- End date (`end_date`, date): UTC end date for the range.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    "XNAS.ITCH"
  ]
}
```

### List publishers

List Databento publishers and their market data dataset codes.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    {
      "dataset": "XNAS.ITCH",
      "description": "Nasdaq TotalView",
      "publisher_id": 2,
      "venue": "XNAS"
    }
  ]
}
```

### List schema fields

List fields for a record schema and output encoding.

**Inputs**

- Schema (`schema`, text, required): Market data schema. One of: `mbo`, `mbp-1`, `mbp-10`, `tbbo`, `trades`, `ohlcv-1s`, `ohlcv-1m`, `ohlcv-1h`, `ohlcv-1d`, `definition`, `statistics`, `status`.
- Encoding (`encoding`, text, required): Output encoding. One of: `dbn`, `csv`, `json`.
- Dataset (`dataset`, text): Limit fields to this dataset.

**Outputs**

- `data` (list): The response from Databento.

**Example output**

```json
{
  "data": [
    {
      "name": "price",
      "type": "float"
    }
  ]
}
```

### Resolve symbols

Translate instrument symbols between supported Databento symbology types.

**Inputs**

- Dataset (`dataset`, text, required): The Databento dataset code.
- Symbols (`symbols`, list, required): Symbols to include in the request.
- Stype in (`stype_in`, text, required): Type of input symbol. One of: `raw_symbol` (Raw symbol), `instrument_id` (Instrument id), `continuous`, `parent`.
- Stype out (`stype_out`, text, required): Type of output symbol. One of: `raw_symbol` (Raw symbol), `instrument_id` (Instrument id), `continuous`, `parent`.
- Start date (`start_date`, date, required): Inclusive start date.
- End date (`end_date`, date): Exclusive end date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "not_found": [],
    "partial": [],
    "result": {
      "AAPL": [
        {
          "d0": "2026-11-02",
          "d1": "2026-11-03",
          "s": "1"
        }
      ]
    },
    "stype_in": "raw_symbol",
    "stype_out": "instrument_id",
    "symbols": [
      "AAPL"
    ]
  }
}
```
