binance_open_interest

Get the current open interest data for a specific trading pair.

  • Github function here.

Example: USD-m (fapi)

Show the code
library(binancer)
library(dplyr)
open_interest <- binance_open_interest("BTCUSDT", api = "fapi") 

Example: COIN-m (fapi)

Show the code
library(binancer)
library(dplyr)
open_interest <- binance_open_interest("BTCUSD_PERP", api = "dapi") 

Example: COIN-m (fapi)

Show the code
library(binancer)
library(dplyr)
open_interest <- binance_open_interest("BTC", api = "eapi", expiration = Sys.Date() + 2) 
df_open_interest <- head(open_interest, n = 5)
Back to top

Citation

BibTeX citation:
@online{sartini2024,
  author = {Sartini, Beniamino},
  date = {2024-06-18},
  url = {https://cryptoverser.org/binancer-docs/binance_open_interest.html},
  langid = {en}
}
For attribution, please cite this work as:
Sartini, Beniamino. 2024. June 18, 2024. https://cryptoverser.org/binancer-docs/binance_open_interest.html.