> ## Documentation Index
> Fetch the complete documentation index at: https://gocharting.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data availability by market

> What market data a script can read, how it behaves where an instrument lacks it, and that no other instrument's data can be requested.

A script reads the bars of the chart it runs on, and nothing else. This page lists what is there and how a script finds out that an instrument lacks some of it.

## What a script can read

The bars at the chart's interval (`open`, `high`, `low`, `close`, `volume`), the `syminfo` and `interval` namespaces, open interest (`oi`) and the `orderflow` series.

## What a script cannot read

There is no request for another instrument or another interval: no `request` namespace exists, and `request.security(...)` is refused with No variable with name `request` found. A script cannot read a second symbol's price, nor the same symbol at a higher interval. `timeframe.*` does not exist either. Nothing in the language or the compiler states which markets carry open-interest or footprint data, so the manual does not either.

## When an instrument lacks the data

| Data | Where the instrument has none |
| - | - |
| `orderflow.*` | `na` on every bar. Test with `na(orderflow.delta)`. |
| `oi` | 0 on every bar. Test with `oi > 0`. |

Write for both cases and the same script runs on every instrument:

```lipi theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("Delta where it exists")
hasFlow = not na(orderflow.delta)
plot(hasFlow ? orderflow.delta : na, title="Delta", style=plotStyle.histogram)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.