> ## 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.

# Open interest

> The single open-interest series, `oi`, and what it holds where an instrument has no open interest.

`oi` is a series float holding the open interest of the bar. It is the only open-interest name: there is no `oi` namespace and no other function.

```lipi theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("Open interest change")
plot(oi - oi[1], title="Change in open interest", style=plotStyle.histogram)
```

Where the instrument has no open-interest data, the bar carries none and `oi` is 0, not `na`. Test `oi > 0` rather than `na(oi)` to find out whether there is data.


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