Market LabDocs

Open Interest

Normalized open-interest dictionaries available to Python V2.

KeyTypeMeaning
tintegerUnix timestamp in milliseconds.
valuenumberCurrent normalized OI value.
o, h, l, cnumberPeriod OHLC or normalized snapshot value.
nintegerSample count.
mark_pricenumber, optionalCurrent mark price.
notionalnumber, optionalCurrent OI notional.
current = history.source("btc@oi@binancef@mmt:timeframe=60", 0)
previous = history.source("btc@oi@binancef@mmt:timeframe=60", 1)

if current is not None and previous is not None:
    change = current["value"] - previous["value"]

Open interest is available only for futures markets. See Open Interest Source.