R/orderList.R

Defines functions orderList

Documented in orderList

orderList<-function(token){
  
  headers = c(
    Authorization = paste0("Token ",token)
  )
  
  res<-GET('https://apiv2.nobitex.ir/market/orders/list?details=2',
      add_headers(.headers=headers)
      )
  
  res<-content(res, as = "parsed")
  
  res<-as.data.frame(do.call(rbind, res$orders))
  
  res$dstCurrency[substr(res$market, 5, 8)=="-RLS"]<-"RLS"
  
  res
  }

Try the TSEtools package in your browser

Any scripts or data that you put into this service are public.

TSEtools documentation built on Jan. 8, 2026, 5:07 p.m.