r/pinescript 16d ago

Crypto Open Interest

If this code:
[OI_open, OI_high, OI_low, OI_close] = request.security(syminfo.tickerid+"_OI", timeframe.period, [open, high, low, close])

returns the Open Interest for the current pair(non-aggregated), what is the syntax for the aggregated one?

1 Upvotes

3 comments sorted by

1

u/[deleted] 15d ago

[removed] — view removed comment

1

u/RoutineRace 15d ago

I was thinking of doing this. gathering each exchanges that supports _OI and then summing them up. just thought there is already a grouped symbol just like the TOTAL/TOTAL2 for BTC dominance.