# Open Interest (/scripting-v2/sources/oi)



Open interest is futures-only.

MMT provides OI candles in live jobs and backtests:

```python
history.source("btc@oi@binancef@mmt:timeframe=60")
```

Standalone BULK and Hyperliquid provide current live snapshots:

```python
history.source("btc@oi@bulkf")
history.source("btc@oi@hyperliquidf")
```

Do not add a timeframe to standalone live OI. Direct BULK and Hyperliquid OI are not available in backtests.

```python
current = history.source("btc@oi@binancef@mmt:timeframe=60", 0)
previous = history.source("btc@oi@binancef@mmt:timeframe=60", 1)
series = history.source("btc@oi@binancef@mmt:timeframe=60")
```

Spot and outcome selectors are rejected because those markets do not expose OI.

See [Open Interest Data](/scripting-v2/data-types/oi).
